From 40c533e6b96f20fade579e441e46905f7978d5e8 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 18 Sep 2023 22:52:18 +0000 Subject: [PATCH 1/2] feat: add `ROOT_FOLDER` field to Document Warehouse API v1 feat: add `cloud_function`fields to support new ingestion option in Document Warehouse API v1 PiperOrigin-RevId: 566393178 Source-Link: https://github.com/googleapis/googleapis/commit/c7c2ce2311e90a82cd097f98da5b9a90324f086b Source-Link: https://github.com/googleapis/googleapis-gen/commit/b24ddfec8352e05c1702159e1894194f6d5ef845 Copy-Tag: eyJwIjoiamF2YS1jb250ZW50d2FyZWhvdXNlLy5Pd2xCb3QueWFtbCIsImgiOiJiMjRkZGZlYzgzNTJlMDVjMTcwMjE1OWUxODk0MTk0ZjZkNWVmODQ1In0= --- .../v1/DocumentLinkServiceGrpc.java | 750 ---- .../v1/DocumentSchemaServiceGrpc.java | 921 ----- .../v1/DocumentServiceGrpc.java | 1236 ------ .../v1/RuleSetServiceGrpc.java | 850 ---- .../v1/SynonymSetServiceGrpc.java | 881 ---- .../v1/AsyncDocumentServiceRequestProto.java | 85 - .../contentwarehouse/v1/CommonProto.java | 163 - .../v1/CreateDocumentMetadataOrBuilder.java | 24 - .../CreateDocumentSchemaRequestOrBuilder.java | 95 - .../v1/CreateRuleSetRequestOrBuilder.java | 97 - .../v1/CreateSynonymSetRequestOrBuilder.java | 97 - .../v1/DateTimeTypeOptionsOrBuilder.java | 24 - .../v1/DeleteDocumentActionOrBuilder.java | 39 - .../DeleteDocumentSchemaRequestOrBuilder.java | 54 - .../v1/DeleteRuleSetRequestOrBuilder.java | 58 - .../v1/DeleteSynonymSetRequestOrBuilder.java | 58 - .../v1/DocumentLinkServiceProto.java | 248 -- .../contentwarehouse/v1/DocumentProto.java | 397 -- .../v1/DocumentSchemaProto.java | 267 -- .../v1/DocumentSchemaServiceProto.java | 207 - .../v1/DocumentServiceProto.java | 290 -- .../v1/DocumentServiceRequestProto.java | 289 -- .../contentwarehouse/v1/FiltersProto.java | 183 - .../v1/FloatTypeOptionsOrBuilder.java | 24 - .../v1/GetDocumentSchemaRequestOrBuilder.java | 54 - .../v1/GetRuleSetRequestOrBuilder.java | 58 - .../v1/GetSynonymSetRequestOrBuilder.java | 58 - .../contentwarehouse/v1/HistogramProto.java | 135 - .../v1/IntegerTypeOptionsOrBuilder.java | 24 - .../v1/MapTypeOptionsOrBuilder.java | 24 - .../v1/PipelineServiceProto.java | 129 - .../contentwarehouse/v1/PipelinesProto.java | 293 -- .../v1/PropertyTypeOptionsOrBuilder.java | 89 - .../contentwarehouse/v1/RuleEngineProto.java | 375 -- .../v1/RuleSetServiceProto.java | 105 - .../v1/RuleSetServiceRequestProto.java | 163 - .../v1/RunPipelineResponseOrBuilder.java | 24 - .../contentwarehouse/v1/SynonymSetProto.java | 97 - .../v1/SynonymSetServiceProto.java | 107 - .../v1/SynonymSetServiceRequestProto.java | 164 - .../v1/TextTypeOptionsOrBuilder.java | 24 - .../v1/TimestampTypeOptionsOrBuilder.java | 24 - .../v1/UpdateDocumentMetadataOrBuilder.java | 24 - .../UpdateDocumentSchemaRequestOrBuilder.java | 99 - .../v1/UpdateRuleSetRequestOrBuilder.java | 99 - .../v1/UpdateSynonymSetRequestOrBuilder.java | 99 - .../v1/DocumentLinkServiceClient.java | 0 .../v1/DocumentLinkServiceSettings.java | 1 + .../v1/DocumentSchemaServiceClient.java | 0 .../v1/DocumentSchemaServiceSettings.java | 1 + .../v1/DocumentServiceClient.java | 0 .../v1/DocumentServiceSettings.java | 1 + .../v1/PipelineServiceClient.java | 0 .../v1/PipelineServiceSettings.java | 1 + .../v1/RuleSetServiceClient.java | 0 .../v1/RuleSetServiceSettings.java | 1 + .../v1/SynonymSetServiceClient.java | 0 .../v1/SynonymSetServiceSettings.java | 1 + .../contentwarehouse/v1/gapic_metadata.json | 0 .../contentwarehouse/v1/package-info.java | 0 .../v1/stub/DocumentLinkServiceStub.java | 0 .../stub/DocumentLinkServiceStubSettings.java | 0 .../v1/stub/DocumentSchemaServiceStub.java | 0 .../DocumentSchemaServiceStubSettings.java | 0 .../v1/stub/DocumentServiceStub.java | 0 .../v1/stub/DocumentServiceStubSettings.java | 0 ...rpcDocumentLinkServiceCallableFactory.java | 0 .../v1/stub/GrpcDocumentLinkServiceStub.java | 1 + ...cDocumentSchemaServiceCallableFactory.java | 0 .../stub/GrpcDocumentSchemaServiceStub.java | 1 + .../GrpcDocumentServiceCallableFactory.java | 0 .../v1/stub/GrpcDocumentServiceStub.java | 1 + .../GrpcPipelineServiceCallableFactory.java | 0 .../v1/stub/GrpcPipelineServiceStub.java | 1 + .../GrpcRuleSetServiceCallableFactory.java | 0 .../v1/stub/GrpcRuleSetServiceStub.java | 1 + .../GrpcSynonymSetServiceCallableFactory.java | 0 .../v1/stub/GrpcSynonymSetServiceStub.java | 1 + ...sonDocumentLinkServiceCallableFactory.java | 0 .../stub/HttpJsonDocumentLinkServiceStub.java | 0 ...nDocumentSchemaServiceCallableFactory.java | 0 .../HttpJsonDocumentSchemaServiceStub.java | 0 ...ttpJsonDocumentServiceCallableFactory.java | 0 .../v1/stub/HttpJsonDocumentServiceStub.java | 0 ...ttpJsonPipelineServiceCallableFactory.java | 0 .../v1/stub/HttpJsonPipelineServiceStub.java | 1 + ...HttpJsonRuleSetServiceCallableFactory.java | 0 .../v1/stub/HttpJsonRuleSetServiceStub.java | 0 ...pJsonSynonymSetServiceCallableFactory.java | 0 .../stub/HttpJsonSynonymSetServiceStub.java | 0 .../v1/stub/PipelineServiceStub.java | 0 .../v1/stub/PipelineServiceStubSettings.java | 0 .../v1/stub/RuleSetServiceStub.java | 0 .../v1/stub/RuleSetServiceStubSettings.java | 0 .../v1/stub/SynonymSetServiceStub.java | 0 .../stub/SynonymSetServiceStubSettings.java | 0 .../reflect-config.json | 0 ...DocumentLinkServiceClientHttpJsonTest.java | 0 .../v1/DocumentLinkServiceClientTest.java | 0 ...cumentSchemaServiceClientHttpJsonTest.java | 0 .../v1/DocumentSchemaServiceClientTest.java | 0 .../v1/DocumentServiceClientHttpJsonTest.java | 0 .../v1/DocumentServiceClientTest.java | 0 .../v1/MockDocumentLinkService.java | 0 .../v1/MockDocumentLinkServiceImpl.java | 0 .../v1/MockDocumentSchemaService.java | 0 .../v1/MockDocumentSchemaServiceImpl.java | 0 .../v1/MockDocumentService.java | 0 .../v1/MockDocumentServiceImpl.java | 0 .../v1/MockPipelineService.java | 0 .../v1/MockPipelineServiceImpl.java | 0 .../v1/MockRuleSetService.java | 0 .../v1/MockRuleSetServiceImpl.java | 0 .../v1/MockSynonymSetService.java | 0 .../v1/MockSynonymSetServiceImpl.java | 0 .../v1/PipelineServiceClientHttpJsonTest.java | 0 .../v1/PipelineServiceClientTest.java | 0 .../v1/RuleSetServiceClientHttpJsonTest.java | 0 .../v1/RuleSetServiceClientTest.java | 0 .../SynonymSetServiceClientHttpJsonTest.java | 0 .../v1/SynonymSetServiceClientTest.java | 0 .../v1/DocumentLinkServiceGrpc.java | 587 +++ .../v1/DocumentSchemaServiceGrpc.java | 703 ++++ .../v1/DocumentServiceGrpc.java | 953 +++++ .../v1/PipelineServiceGrpc.java | 205 +- .../v1/RuleSetServiceGrpc.java | 671 +++ .../v1/SynonymSetServiceGrpc.java | 695 ++++ .../v1/AccessControlAction.java | 502 +-- .../v1/AccessControlActionOrBuilder.java | 38 +- .../v1/AccessControlMode.java | 87 +- .../cloud/contentwarehouse/v1/Action.java | 1162 ++---- .../v1/ActionExecutorOutput.java | 458 +-- .../v1/ActionExecutorOutputOrBuilder.java | 33 +- .../contentwarehouse/v1/ActionOrBuilder.java | 107 +- .../contentwarehouse/v1/ActionOutput.java | 539 +-- .../v1/ActionOutputOrBuilder.java | 42 +- .../v1/AddToFolderAction.java | 358 +- .../v1/AddToFolderActionOrBuilder.java | 36 +- .../v1/AsyncDocumentServiceRequestProto.java | 73 + .../v1/CloudAIDocumentOption.java | 525 +-- .../v1/CloudAIDocumentOptionOrBuilder.java | 51 +- .../contentwarehouse/v1/CommonProto.java | 141 + .../contentwarehouse/v1/ContentCategory.java | 89 +- .../v1/CreateDocumentLinkRequest.java | 622 +-- .../CreateDocumentLinkRequestOrBuilder.java | 63 +- .../v1/CreateDocumentMetadata.java | 248 +- .../v1/CreateDocumentMetadataOrBuilder.java | 9 + .../v1/CreateDocumentRequest.java | 923 ++--- .../v1/CreateDocumentRequestOrBuilder.java | 99 +- .../v1/CreateDocumentResponse.java | 708 ++-- .../v1/CreateDocumentResponseOrBuilder.java | 60 +- .../v1/CreateDocumentSchemaRequest.java | 520 +-- .../CreateDocumentSchemaRequestOrBuilder.java | 56 + .../v1/CreateRuleSetRequest.java | 492 +-- .../v1/CreateRuleSetRequestOrBuilder.java | 58 + .../v1/CreateSynonymSetRequest.java | 503 +-- .../v1/CreateSynonymSetRequestOrBuilder.java | 58 + .../v1/CustomWeightsMetadata.java | 541 +-- .../v1/CustomWeightsMetadataOrBuilder.java | 59 +- .../contentwarehouse/v1/DataUpdateAction.java | 502 ++- .../v1/DataUpdateActionOrBuilder.java | 48 +- .../v1/DataValidationAction.java | 497 +-- .../v1/DataValidationActionOrBuilder.java | 48 +- .../contentwarehouse/v1/DatabaseType.java | 82 +- .../contentwarehouse/v1/DateTimeArray.java | 415 +- .../v1/DateTimeArrayOrBuilder.java | 37 +- .../v1/DateTimeTypeOptions.java | 248 +- .../v1/DateTimeTypeOptionsOrBuilder.java | 9 + .../v1/DeleteDocumentAction.java | 287 +- .../v1/DeleteDocumentActionOrBuilder.java | 20 + .../v1/DeleteDocumentLinkRequest.java | 478 +-- .../DeleteDocumentLinkRequestOrBuilder.java | 43 +- .../v1/DeleteDocumentRequest.java | 458 +-- .../v1/DeleteDocumentRequestOrBuilder.java | 43 +- .../v1/DeleteDocumentSchemaRequest.java | 373 +- .../DeleteDocumentSchemaRequestOrBuilder.java | 29 + .../v1/DeleteRuleSetRequest.java | 350 +- .../v1/DeleteRuleSetRequestOrBuilder.java | 33 + .../v1/DeleteSynonymSetRequest.java | 360 +- .../v1/DeleteSynonymSetRequestOrBuilder.java | 33 + .../cloud/contentwarehouse/v1/Document.java | 2216 ++++------ .../v1/DocumentCreatorDefaultRole.java | 84 +- .../contentwarehouse/v1/DocumentLink.java | 1075 ++--- .../contentwarehouse/v1/DocumentLinkName.java | 0 .../v1/DocumentLinkOrBuilder.java | 98 +- .../v1/DocumentLinkServiceProto.java | 221 + .../contentwarehouse/v1/DocumentName.java | 0 .../v1/DocumentOrBuilder.java | 255 +- .../contentwarehouse/v1/DocumentProto.java | 318 ++ .../contentwarehouse/v1/DocumentQuery.java | 1521 +++---- .../v1/DocumentQueryOrBuilder.java | 193 +- .../v1/DocumentReference.java | 998 ++--- .../v1/DocumentReferenceOrBuilder.java | 113 +- .../contentwarehouse/v1/DocumentSchema.java | 1022 ++--- .../v1/DocumentSchemaName.java | 0 .../v1/DocumentSchemaOrBuilder.java | 111 +- .../v1/DocumentSchemaProto.java | 229 ++ .../v1/DocumentSchemaServiceProto.java | 187 + .../v1/DocumentServiceProto.java | 259 ++ .../v1/DocumentServiceRequestProto.java | 248 ++ .../cloud/contentwarehouse/v1/EnumArray.java | 348 +- .../v1/EnumArrayOrBuilder.java | 36 +- .../contentwarehouse/v1/EnumTypeOptions.java | 389 +- .../v1/EnumTypeOptionsOrBuilder.java | 39 +- .../cloud/contentwarehouse/v1/EnumValue.java | 312 +- .../v1/EnumValueOrBuilder.java | 27 +- .../v1/ExportToCdwPipeline.java | 538 +-- .../v1/ExportToCdwPipelineOrBuilder.java | 57 +- .../contentwarehouse/v1/FetchAclRequest.java | 461 +-- .../v1/FetchAclRequestOrBuilder.java | 38 +- .../contentwarehouse/v1/FetchAclResponse.java | 430 +- .../v1/FetchAclResponseOrBuilder.java | 34 +- .../contentwarehouse/v1/FileTypeFilter.java | 405 +- .../v1/FileTypeFilterOrBuilder.java | 24 +- .../contentwarehouse/v1/FiltersProto.java | 153 + .../cloud/contentwarehouse/v1/FloatArray.java | 339 +- .../v1/FloatArrayOrBuilder.java | 27 +- .../contentwarehouse/v1/FloatTypeOptions.java | 248 +- .../v1/FloatTypeOptionsOrBuilder.java | 9 + .../v1/GcsIngestPipeline.java | 659 ++- .../v1/GcsIngestPipelineOrBuilder.java | 68 +- .../GcsIngestWithDocAiProcessorsPipeline.java | 1035 ++--- ...tWithDocAiProcessorsPipelineOrBuilder.java | 100 +- .../v1/GetDocumentRequest.java | 458 +-- .../v1/GetDocumentRequestOrBuilder.java | 43 +- .../v1/GetDocumentSchemaRequest.java | 360 +- .../v1/GetDocumentSchemaRequestOrBuilder.java | 29 + .../v1/GetRuleSetRequest.java | 350 +- .../v1/GetRuleSetRequestOrBuilder.java | 33 + .../v1/GetSynonymSetRequest.java | 350 +- .../v1/GetSynonymSetRequestOrBuilder.java | 33 + .../contentwarehouse/v1/HistogramProto.java | 115 + .../contentwarehouse/v1/HistogramQuery.java | 517 +-- .../v1/HistogramQueryOrBuilder.java | 53 +- .../v1/HistogramQueryPropertyNameFilter.java | 680 ++- ...ogramQueryPropertyNameFilterOrBuilder.java | 68 +- .../v1/HistogramQueryResult.java | 566 ++- .../v1/HistogramQueryResultOrBuilder.java | 57 +- .../v1/IngestPipelineConfig.java | 775 ++-- .../v1/IngestPipelineConfigOrBuilder.java | 102 +- .../contentwarehouse/v1/IntegerArray.java | 346 +- .../v1/IntegerArrayOrBuilder.java | 27 +- .../v1/IntegerTypeOptions.java | 248 +- .../v1/IntegerTypeOptionsOrBuilder.java | 9 + .../contentwarehouse/v1/InvalidRule.java | 408 +- .../v1/InvalidRuleOrBuilder.java | 35 +- .../v1/ListDocumentSchemasRequest.java | 476 +-- .../ListDocumentSchemasRequestOrBuilder.java | 47 +- .../v1/ListDocumentSchemasResponse.java | 492 +-- .../ListDocumentSchemasResponseOrBuilder.java | 42 +- .../v1/ListLinkedSourcesRequest.java | 573 +-- .../v1/ListLinkedSourcesRequestOrBuilder.java | 55 +- .../v1/ListLinkedSourcesResponse.java | 486 +-- .../ListLinkedSourcesResponseOrBuilder.java | 45 +- .../v1/ListLinkedTargetsRequest.java | 468 +-- .../v1/ListLinkedTargetsRequestOrBuilder.java | 43 +- .../v1/ListLinkedTargetsResponse.java | 486 +-- .../ListLinkedTargetsResponseOrBuilder.java | 45 +- .../v1/ListRuleSetsRequest.java | 453 +- .../v1/ListRuleSetsRequestOrBuilder.java | 47 +- .../v1/ListRuleSetsResponse.java | 483 +-- .../v1/ListRuleSetsResponseOrBuilder.java | 45 +- .../v1/ListSynonymSetsRequest.java | 453 +- .../v1/ListSynonymSetsRequestOrBuilder.java | 47 +- .../v1/ListSynonymSetsResponse.java | 476 +-- .../v1/ListSynonymSetsResponseOrBuilder.java | 45 +- .../contentwarehouse/v1/LocationName.java | 0 .../v1/LockDocumentRequest.java | 517 +-- .../v1/LockDocumentRequestOrBuilder.java | 52 +- .../contentwarehouse/v1/MapProperty.java | 489 +-- .../v1/MapPropertyOrBuilder.java | 48 +- .../contentwarehouse/v1/MapTypeOptions.java | 245 +- .../v1/MapTypeOptionsOrBuilder.java | 9 + .../v1/MergeFieldsOptions.java | 333 +- .../v1/MergeFieldsOptionsOrBuilder.java | 30 +- .../v1/PipelineServiceProto.java | 108 + .../contentwarehouse/v1/PipelinesProto.java | 255 ++ .../v1/ProcessWithDocAiPipeline.java | 612 ++- .../v1/ProcessWithDocAiPipelineOrBuilder.java | 62 +- .../contentwarehouse/v1/ProcessorInfo.java | 463 +-- .../v1/ProcessorInfoOrBuilder.java | 45 +- .../cloud/contentwarehouse/v1/Property.java | 1118 ++--- .../contentwarehouse/v1/PropertyArray.java | 405 +- .../v1/PropertyArrayOrBuilder.java | 36 +- .../v1/PropertyDefinition.java | 2542 ++++-------- .../v1/PropertyDefinitionOrBuilder.java | 192 +- .../contentwarehouse/v1/PropertyFilter.java | 395 +- .../v1/PropertyFilterOrBuilder.java | 36 +- .../v1/PropertyOrBuilder.java | 91 +- .../v1/PropertyTypeOptions.java | 530 +-- .../v1/PropertyTypeOptionsOrBuilder.java | 53 + .../contentwarehouse/v1/PublishAction.java | 427 +- .../v1/PublishActionOrBuilder.java | 45 +- .../cloud/contentwarehouse/v1/QAResult.java | 737 ++-- .../v1/QAResultOrBuilder.java | 36 +- .../v1/RawDocumentFileType.java | 105 +- .../v1/RemoveFromFolderAction.java | 394 +- .../v1/RemoveFromFolderActionOrBuilder.java | 36 +- .../contentwarehouse/v1/RequestMetadata.java | 344 +- .../v1/RequestMetadataOrBuilder.java | 26 +- .../contentwarehouse/v1/ResponseMetadata.java | 322 +- .../v1/ResponseMetadataOrBuilder.java | 27 +- .../cloud/contentwarehouse/v1/Rule.java | 750 ++-- .../contentwarehouse/v1/RuleActionsPair.java | 480 +-- .../v1/RuleActionsPairOrBuilder.java | 44 +- .../contentwarehouse/v1/RuleEngineOutput.java | 578 +-- .../v1/RuleEngineOutputOrBuilder.java | 49 +- .../contentwarehouse/v1/RuleEngineProto.java | 331 ++ .../v1/RuleEvaluatorOutput.java | 703 ++-- .../v1/RuleEvaluatorOutputOrBuilder.java | 72 +- .../contentwarehouse/v1/RuleOrBuilder.java | 69 +- .../cloud/contentwarehouse/v1/RuleSet.java | 613 ++- .../contentwarehouse/v1/RuleSetName.java | 0 .../contentwarehouse/v1/RuleSetOrBuilder.java | 63 +- .../v1/RuleSetServiceProto.java | 92 + .../v1/RuleSetServiceRequestProto.java | 143 + .../v1/RunPipelineMetadata.java | 3658 ++++++----------- .../v1/RunPipelineMetadataOrBuilder.java | 157 +- .../v1/RunPipelineRequest.java | 1095 ++--- .../v1/RunPipelineRequestOrBuilder.java | 108 +- .../v1/RunPipelineResponse.java | 248 +- .../v1/RunPipelineResponseOrBuilder.java | 9 + .../v1/SearchDocumentsRequest.java | 1152 ++---- .../v1/SearchDocumentsRequestOrBuilder.java | 110 +- .../v1/SearchDocumentsResponse.java | 1748 +++----- .../v1/SearchDocumentsResponseOrBuilder.java | 129 +- .../contentwarehouse/v1/SetAclRequest.java | 543 +-- .../v1/SetAclRequestOrBuilder.java | 46 +- .../contentwarehouse/v1/SetAclResponse.java | 427 +- .../v1/SetAclResponseOrBuilder.java | 34 +- .../cloud/contentwarehouse/v1/SynonymSet.java | 905 ++-- .../contentwarehouse/v1/SynonymSetName.java | 0 .../v1/SynonymSetOrBuilder.java | 54 +- .../contentwarehouse/v1/SynonymSetProto.java | 79 + .../v1/SynonymSetServiceProto.java | 94 + .../v1/SynonymSetServiceRequestProto.java | 144 + .../cloud/contentwarehouse/v1/TextArray.java | 348 +- .../v1/TextArrayOrBuilder.java | 36 +- .../contentwarehouse/v1/TextTypeOptions.java | 245 +- .../v1/TextTypeOptionsOrBuilder.java | 9 + .../cloud/contentwarehouse/v1/TimeFilter.java | 471 +-- .../v1/TimeFilterOrBuilder.java | 30 +- .../contentwarehouse/v1/TimestampArray.java | 404 +- .../v1/TimestampArrayOrBuilder.java | 36 +- .../v1/TimestampTypeOptions.java | 248 +- .../v1/TimestampTypeOptionsOrBuilder.java | 9 + .../contentwarehouse/v1/TimestampValue.java | 478 +-- .../v1/TimestampValueOrBuilder.java | 38 +- .../v1/UpdateDocumentMetadata.java | 248 +- .../v1/UpdateDocumentMetadataOrBuilder.java | 9 + .../v1/UpdateDocumentRequest.java | 848 ++-- .../v1/UpdateDocumentRequestOrBuilder.java | 91 +- .../v1/UpdateDocumentResponse.java | 554 +-- .../v1/UpdateDocumentResponseOrBuilder.java | 42 +- .../v1/UpdateDocumentSchemaRequest.java | 520 +-- .../UpdateDocumentSchemaRequestOrBuilder.java | 60 + .../contentwarehouse/v1/UpdateOptions.java | 506 +-- .../v1/UpdateOptionsOrBuilder.java | 40 +- .../v1/UpdateRuleSetRequest.java | 492 +-- .../v1/UpdateRuleSetRequestOrBuilder.java | 60 + .../v1/UpdateSynonymSetRequest.java | 503 +-- .../v1/UpdateSynonymSetRequestOrBuilder.java | 60 + .../cloud/contentwarehouse/v1/UpdateType.java | 110 +- .../cloud/contentwarehouse/v1/UserInfo.java | 420 +- .../v1/UserInfoOrBuilder.java | 45 +- .../cloud/contentwarehouse/v1/Value.java | 829 ++-- .../contentwarehouse/v1/ValueOrBuilder.java | 72 +- .../v1/WeightedSchemaProperty.java | 430 +- .../v1/WeightedSchemaPropertyOrBuilder.java | 45 +- .../v1/async_document_service_request.proto | 0 .../cloud/contentwarehouse/v1/common.proto | 0 .../cloud/contentwarehouse/v1/document.proto | 0 .../v1/document_link_service.proto | 0 .../contentwarehouse/v1/document_schema.proto | 0 .../v1/document_schema_service.proto | 0 .../v1/document_service.proto | 0 .../v1/document_service_request.proto | 0 .../cloud/contentwarehouse/v1/filters.proto | 3 + .../cloud/contentwarehouse/v1/histogram.proto | 0 .../v1/pipeline_service.proto | 0 .../cloud/contentwarehouse/v1/pipelines.proto | 31 + .../contentwarehouse/v1/rule_engine.proto | 0 .../contentwarehouse/v1/ruleset_service.proto | 0 .../v1/ruleset_service_request.proto | 0 .../contentwarehouse/v1/synonymset.proto | 0 .../v1/synonymset_service.proto | 0 .../v1/synonymset_service_request.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateDocumentLink.java | 0 .../SyncCreateDocumentLink.java | 0 ...eDocumentLinkDocumentnameDocumentlink.java | 0 ...cCreateDocumentLinkStringDocumentlink.java | 0 .../AsyncDeleteDocumentLink.java | 0 .../SyncDeleteDocumentLink.java | 0 ...yncDeleteDocumentLinkDocumentlinkname.java | 0 .../SyncDeleteDocumentLinkString.java | 0 .../AsyncListLinkedSources.java | 0 .../AsyncListLinkedSourcesPaged.java | 0 .../SyncListLinkedSources.java | 0 .../SyncListLinkedSourcesDocumentname.java | 0 .../SyncListLinkedSourcesString.java | 0 .../AsyncListLinkedTargets.java | 0 .../SyncListLinkedTargets.java | 0 .../SyncListLinkedTargetsDocumentname.java | 0 .../SyncListLinkedTargetsString.java | 0 .../SyncListLinkedTargets.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateDocumentSchema.java | 0 .../SyncCreateDocumentSchema.java | 0 ...umentSchemaLocationnameDocumentschema.java | 0 ...ateDocumentSchemaStringDocumentschema.java | 0 .../AsyncDeleteDocumentSchema.java | 0 .../SyncDeleteDocumentSchema.java | 0 ...eleteDocumentSchemaDocumentschemaname.java | 0 .../SyncDeleteDocumentSchemaString.java | 0 .../AsyncGetDocumentSchema.java | 0 .../SyncGetDocumentSchema.java | 0 ...ncGetDocumentSchemaDocumentschemaname.java | 0 .../SyncGetDocumentSchemaString.java | 0 .../AsyncListDocumentSchemas.java | 0 .../AsyncListDocumentSchemasPaged.java | 0 .../SyncListDocumentSchemas.java | 0 .../SyncListDocumentSchemasLocationname.java | 0 .../SyncListDocumentSchemasString.java | 0 .../AsyncUpdateDocumentSchema.java | 0 .../SyncUpdateDocumentSchema.java | 0 ...chemaDocumentschemanameDocumentschema.java | 0 ...ateDocumentSchemaStringDocumentschema.java | 0 .../SyncCreateDocumentSchema.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createdocument/AsyncCreateDocument.java | 0 .../createdocument/SyncCreateDocument.java | 0 ...yncCreateDocumentLocationnameDocument.java | 0 .../SyncCreateDocumentStringDocument.java | 0 .../deletedocument/AsyncDeleteDocument.java | 0 .../deletedocument/SyncDeleteDocument.java | 0 .../SyncDeleteDocumentDocumentname.java | 0 .../SyncDeleteDocumentString.java | 0 .../fetchacl/AsyncFetchAcl.java | 0 .../fetchacl/SyncFetchAcl.java | 0 .../fetchacl/SyncFetchAclString.java | 0 .../getdocument/AsyncGetDocument.java | 0 .../getdocument/SyncGetDocument.java | 0 .../SyncGetDocumentDocumentname.java | 0 .../getdocument/SyncGetDocumentString.java | 0 .../lockdocument/AsyncLockDocument.java | 0 .../lockdocument/SyncLockDocument.java | 0 .../SyncLockDocumentDocumentname.java | 0 .../lockdocument/SyncLockDocumentString.java | 0 .../searchdocuments/AsyncSearchDocuments.java | 0 .../AsyncSearchDocumentsPaged.java | 0 .../searchdocuments/SyncSearchDocuments.java | 0 .../SyncSearchDocumentsLocationname.java | 0 .../SyncSearchDocumentsString.java | 0 .../documentservice/setacl/AsyncSetAcl.java | 0 .../v1/documentservice/setacl/SyncSetAcl.java | 0 .../setacl/SyncSetAclStringPolicy.java | 0 .../updatedocument/AsyncUpdateDocument.java | 0 .../updatedocument/SyncUpdateDocument.java | 0 ...yncUpdateDocumentDocumentnameDocument.java | 0 .../SyncUpdateDocumentStringDocument.java | 0 .../createdocument/SyncCreateDocument.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../runpipeline/AsyncRunPipeline.java | 0 .../runpipeline/AsyncRunPipelineLRO.java | 0 .../runpipeline/SyncRunPipeline.java | 0 .../SyncRunPipelineLocationname.java | 0 .../runpipeline/SyncRunPipelineString.java | 0 .../runpipeline/SyncRunPipeline.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createruleset/AsyncCreateRuleSet.java | 0 .../createruleset/SyncCreateRuleSet.java | 0 .../SyncCreateRuleSetLocationnameRuleset.java | 0 .../SyncCreateRuleSetStringRuleset.java | 0 .../deleteruleset/AsyncDeleteRuleSet.java | 0 .../deleteruleset/SyncDeleteRuleSet.java | 0 .../SyncDeleteRuleSetRulesetname.java | 0 .../SyncDeleteRuleSetString.java | 0 .../getruleset/AsyncGetRuleSet.java | 0 .../getruleset/SyncGetRuleSet.java | 0 .../getruleset/SyncGetRuleSetRulesetname.java | 0 .../getruleset/SyncGetRuleSetString.java | 0 .../listrulesets/AsyncListRuleSets.java | 0 .../listrulesets/AsyncListRuleSetsPaged.java | 0 .../listrulesets/SyncListRuleSets.java | 0 .../SyncListRuleSetsLocationname.java | 0 .../listrulesets/SyncListRuleSetsString.java | 0 .../updateruleset/AsyncUpdateRuleSet.java | 0 .../updateruleset/SyncUpdateRuleSet.java | 0 .../SyncUpdateRuleSetRulesetnameRuleset.java | 0 .../SyncUpdateRuleSetStringRuleset.java | 0 .../createruleset/SyncCreateRuleSet.java | 0 .../SyncListLinkedTargets.java | 0 .../SyncCreateDocumentSchema.java | 0 .../createdocument/SyncCreateDocument.java | 0 .../runpipeline/SyncRunPipeline.java | 0 .../createruleset/SyncCreateRuleSet.java | 0 .../SyncCreateSynonymSet.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateSynonymSet.java | 0 .../SyncCreateSynonymSet.java | 0 ...reateSynonymSetLocationnameSynonymset.java | 0 .../SyncCreateSynonymSetStringSynonymset.java | 0 .../AsyncDeleteSynonymSet.java | 0 .../SyncDeleteSynonymSet.java | 0 .../SyncDeleteSynonymSetString.java | 0 .../SyncDeleteSynonymSetSynonymsetname.java | 0 .../getsynonymset/AsyncGetSynonymSet.java | 0 .../getsynonymset/SyncGetSynonymSet.java | 0 .../SyncGetSynonymSetString.java | 0 .../SyncGetSynonymSetSynonymsetname.java | 0 .../listsynonymsets/AsyncListSynonymSets.java | 0 .../AsyncListSynonymSetsPaged.java | 0 .../listsynonymsets/SyncListSynonymSets.java | 0 .../SyncListSynonymSetsLocationname.java | 0 .../SyncListSynonymSetsString.java | 0 .../AsyncUpdateSynonymSet.java | 0 .../SyncUpdateSynonymSet.java | 0 .../SyncUpdateSynonymSetStringSynonymset.java | 0 ...ateSynonymSetSynonymsetnameSynonymset.java | 0 .../SyncCreateSynonymSet.java | 0 533 files changed, 33123 insertions(+), 54117 deletions(-) delete mode 100644 java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java delete mode 100644 java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java delete mode 100644 java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java delete mode 100644 java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java delete mode 100644 java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java delete mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStub.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStub.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStub.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceCallableFactory.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceCallableFactory.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceCallableFactory.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceCallableFactory.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceCallableFactory.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceCallableFactory.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceStub.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceCallableFactory.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceStub.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceCallableFactory.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceStub.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceCallableFactory.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceStub.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceCallableFactory.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceStub.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStub.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStub.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientHttpJsonTest.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientTest.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientHttpJsonTest.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientTest.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkService.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkServiceImpl.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaService.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaServiceImpl.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentService.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentServiceImpl.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetService.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetServiceImpl.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetService.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetServiceImpl.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientHttpJsonTest.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientTest.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientHttpJsonTest.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientTest.java (100%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java create mode 100644 owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java create mode 100644 owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java (55%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java create mode 100644 owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java (68%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java (68%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java (82%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java (63%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java (68%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java (64%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java (59%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java (68%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java (64%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java (63%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java (63%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java (77%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java (73%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java (81%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java (59%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java (61%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java (60%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java (63%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java (50%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java (62%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java (62%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java (66%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java (59%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java (63%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java (65%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java (66%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java (64%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java (65%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java (60%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java (64%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java (62%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java (68%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java (79%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentName.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentOrBuilder.java (81%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java (82%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java (90%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java (68%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java (66%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java (57%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java (66%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java (52%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java (74%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java (77%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java (76%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java (66%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java (55%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java (65%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java (57%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java (63%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java (77%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java (65%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java (62%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java (64%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java (64%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java (68%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java (68%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java (82%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java (64%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java (61%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java (63%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java (64%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java (57%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java (63%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java (61%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java (63%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java (64%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java (63%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java (68%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java (62%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java (63%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java (59%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java (57%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java (63%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java (74%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java (80%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipeline.java (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java (77%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java (74%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java (65%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java (79%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java (79%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java (87%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java (87%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java (60%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java (68%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java (63%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java (61%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java (66%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java (61%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java (65%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java (50%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java (74%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java (73%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java (73%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java (68%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java (77%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java (79%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java (76%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java (73%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java (71%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java (60%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java (51%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java (65%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java (62%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java (81%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java (90%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java (78%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java (88%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java (73%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java (66%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java (57%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java (64%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java (63%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java (64%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java (63%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java (63%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java (67%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java (73%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java (70%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java (80%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java (60%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java (69%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java (77%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java (61%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java (61%) create mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java (73%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java (72%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java (71%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java (81%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java (68%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java (65%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/async_document_service_request.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_link_service.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema_service.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service_request.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto (99%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/histogram.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto (88%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/rule_engine.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service_request.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service_request.proto (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetEndpoint.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/AsyncCreateDocumentLink.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLink.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkDocumentnameDocumentlink.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkStringDocumentlink.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/AsyncDeleteDocumentLink.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLink.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkDocumentlinkname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSources.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSourcesPaged.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSources.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesDocumentname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/AsyncListLinkedTargets.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargets.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsDocumentname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservicesettings/listlinkedtargets/SyncListLinkedTargets.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetEndpoint.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/AsyncCreateDocumentSchema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaLocationnameDocumentschema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaStringDocumentschema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/AsyncDeleteDocumentSchema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaDocumentschemaname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/AsyncGetDocumentSchema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaDocumentschemaname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemas.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemasPaged.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemas.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasLocationname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/AsyncUpdateDocumentSchema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaDocumentschemanameDocumentschema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaStringDocumentschema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservicesettings/createdocumentschema/SyncCreateDocumentSchema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetEndpoint.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/AsyncCreateDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentLocationnameDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentStringDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/AsyncDeleteDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/AsyncFetchAcl.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAcl.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAclString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/AsyncGetDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/AsyncLockDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentDocumentname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocuments.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocumentsPaged.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocuments.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsLocationname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/AsyncSetAcl.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAcl.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAclStringPolicy.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/AsyncUpdateDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentDocumentnameDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentStringDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservicesettings/createdocument/SyncCreateDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetEndpoint.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipeline.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipelineLRO.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipeline.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineLocationname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservicesettings/runpipeline/SyncRunPipeline.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetEndpoint.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/AsyncCreateRuleSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetLocationnameRuleset.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetStringRuleset.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/AsyncDeleteRuleSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetRulesetname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/AsyncGetRuleSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetRulesetname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSets.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSetsPaged.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSets.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsLocationname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/AsyncUpdateRuleSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetRulesetnameRuleset.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetStringRuleset.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservicesettings/createruleset/SyncCreateRuleSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentlinkservicestubsettings/listlinkedtargets/SyncListLinkedTargets.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentschemaservicestubsettings/createdocumentschema/SyncCreateDocumentSchema.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentservicestubsettings/createdocument/SyncCreateDocument.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/pipelineservicestubsettings/runpipeline/SyncRunPipeline.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/rulesetservicestubsettings/createruleset/SyncCreateRuleSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/synonymsetservicestubsettings/createsynonymset/SyncCreateSynonymSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetEndpoint.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/AsyncCreateSynonymSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetLocationnameSynonymset.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetStringSynonymset.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/AsyncDeleteSynonymSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetSynonymsetname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/AsyncGetSynonymSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetSynonymsetname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSets.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSetsPaged.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSets.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsLocationname.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsString.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/AsyncUpdateSynonymSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSet.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetStringSynonymset.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetSynonymsetnameSynonymset.java (100%) rename {java-contentwarehouse => owl-bot-staging/java-contentwarehouse/v1}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservicesettings/createsynonymset/SyncCreateSynonymSet.java (100%) diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java deleted file mode 100644 index a7d2d4e643ab..000000000000 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java +++ /dev/null @@ -1,750 +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.contentwarehouse.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * This service lets you manage document-links.
- * Document-Links are treated as sub-resources under source documents.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/document_link_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DocumentLinkServiceGrpc { - - private DocumentLinkServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.DocumentLinkService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest, - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse> - getListLinkedTargetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLinkedTargets", - requestType = com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest, - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse> - getListLinkedTargetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest, - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse> - getListLinkedTargetsMethod; - if ((getListLinkedTargetsMethod = DocumentLinkServiceGrpc.getListLinkedTargetsMethod) == null) { - synchronized (DocumentLinkServiceGrpc.class) { - if ((getListLinkedTargetsMethod = DocumentLinkServiceGrpc.getListLinkedTargetsMethod) - == null) { - DocumentLinkServiceGrpc.getListLinkedTargetsMethod = - getListLinkedTargetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinkedTargets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentLinkServiceMethodDescriptorSupplier("ListLinkedTargets")) - .build(); - } - } - } - return getListLinkedTargetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest, - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse> - getListLinkedSourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLinkedSources", - requestType = com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest, - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse> - getListLinkedSourcesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest, - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse> - getListLinkedSourcesMethod; - if ((getListLinkedSourcesMethod = DocumentLinkServiceGrpc.getListLinkedSourcesMethod) == null) { - synchronized (DocumentLinkServiceGrpc.class) { - if ((getListLinkedSourcesMethod = DocumentLinkServiceGrpc.getListLinkedSourcesMethod) - == null) { - DocumentLinkServiceGrpc.getListLinkedSourcesMethod = - getListLinkedSourcesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinkedSources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentLinkServiceMethodDescriptorSupplier("ListLinkedSources")) - .build(); - } - } - } - return getListLinkedSourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest, - com.google.cloud.contentwarehouse.v1.DocumentLink> - getCreateDocumentLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDocumentLink", - requestType = com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.DocumentLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest, - com.google.cloud.contentwarehouse.v1.DocumentLink> - getCreateDocumentLinkMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest, - com.google.cloud.contentwarehouse.v1.DocumentLink> - getCreateDocumentLinkMethod; - if ((getCreateDocumentLinkMethod = DocumentLinkServiceGrpc.getCreateDocumentLinkMethod) - == null) { - synchronized (DocumentLinkServiceGrpc.class) { - if ((getCreateDocumentLinkMethod = DocumentLinkServiceGrpc.getCreateDocumentLinkMethod) - == null) { - DocumentLinkServiceGrpc.getCreateDocumentLinkMethod = - getCreateDocumentLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocumentLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DocumentLink - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentLinkServiceMethodDescriptorSupplier("CreateDocumentLink")) - .build(); - } - } - } - return getCreateDocumentLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, com.google.protobuf.Empty> - getDeleteDocumentLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDocumentLink", - requestType = com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, com.google.protobuf.Empty> - getDeleteDocumentLinkMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, - com.google.protobuf.Empty> - getDeleteDocumentLinkMethod; - if ((getDeleteDocumentLinkMethod = DocumentLinkServiceGrpc.getDeleteDocumentLinkMethod) - == null) { - synchronized (DocumentLinkServiceGrpc.class) { - if ((getDeleteDocumentLinkMethod = DocumentLinkServiceGrpc.getDeleteDocumentLinkMethod) - == null) { - DocumentLinkServiceGrpc.getDeleteDocumentLinkMethod = - getDeleteDocumentLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocumentLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentLinkServiceMethodDescriptorSupplier("DeleteDocumentLink")) - .build(); - } - } - } - return getDeleteDocumentLinkMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DocumentLinkServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentLinkServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentLinkServiceStub(channel, callOptions); - } - }; - return DocumentLinkServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DocumentLinkServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentLinkServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentLinkServiceBlockingStub(channel, callOptions); - } - }; - return DocumentLinkServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DocumentLinkServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentLinkServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentLinkServiceFutureStub(channel, callOptions); - } - }; - return DocumentLinkServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * This service lets you manage document-links.
-   * Document-Links are treated as sub-resources under source documents.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Return all target document-links from the document.
-     * 
- */ - default void listLinkedTargets( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLinkedTargetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Return all source document-links from the document.
-     * 
- */ - default void listLinkedSources( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLinkedSourcesMethod(), responseObserver); - } - - /** - * - * - *
-     * Create a link between a source document and a target document.
-     * 
- */ - default void createDocumentLink( - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDocumentLinkMethod(), responseObserver); - } - - /** - * - * - *
-     * Remove the link between the source and target documents.
-     * 
- */ - default void deleteDocumentLink( - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDocumentLinkMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DocumentLinkService. - * - *
-   * This service lets you manage document-links.
-   * Document-Links are treated as sub-resources under source documents.
-   * 
- */ - public abstract static class DocumentLinkServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return DocumentLinkServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service DocumentLinkService. - * - *
-   * This service lets you manage document-links.
-   * Document-Links are treated as sub-resources under source documents.
-   * 
- */ - public static final class DocumentLinkServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DocumentLinkServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentLinkServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentLinkServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Return all target document-links from the document.
-     * 
- */ - public void listLinkedTargets( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLinkedTargetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Return all source document-links from the document.
-     * 
- */ - public void listLinkedSources( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLinkedSourcesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Create a link between a source document and a target document.
-     * 
- */ - public void createDocumentLink( - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDocumentLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Remove the link between the source and target documents.
-     * 
- */ - public void deleteDocumentLink( - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDocumentLinkMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service DocumentLinkService. - * - *
-   * This service lets you manage document-links.
-   * Document-Links are treated as sub-resources under source documents.
-   * 
- */ - public static final class DocumentLinkServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DocumentLinkServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentLinkServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentLinkServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Return all target document-links from the document.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse listLinkedTargets( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLinkedTargetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Return all source document-links from the document.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse listLinkedSources( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLinkedSourcesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Create a link between a source document and a target document.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.DocumentLink createDocumentLink( - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDocumentLinkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Remove the link between the source and target documents.
-     * 
- */ - public com.google.protobuf.Empty deleteDocumentLink( - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDocumentLinkMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentLinkService. - * - *
-   * This service lets you manage document-links.
-   * Document-Links are treated as sub-resources under source documents.
-   * 
- */ - public static final class DocumentLinkServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DocumentLinkServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentLinkServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentLinkServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Return all target document-links from the document.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse> - listLinkedTargets(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLinkedTargetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Return all source document-links from the document.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse> - listLinkedSources(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLinkedSourcesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Create a link between a source document and a target document.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.DocumentLink> - createDocumentLink(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDocumentLinkMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Remove the link between the source and target documents.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteDocumentLink(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDocumentLinkMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_LINKED_TARGETS = 0; - private static final int METHODID_LIST_LINKED_SOURCES = 1; - private static final int METHODID_CREATE_DOCUMENT_LINK = 2; - private static final int METHODID_DELETE_DOCUMENT_LINK = 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_LIST_LINKED_TARGETS: - serviceImpl.listLinkedTargets( - (com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse>) - responseObserver); - break; - case METHODID_LIST_LINKED_SOURCES: - serviceImpl.listLinkedSources( - (com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse>) - responseObserver); - break; - case METHODID_CREATE_DOCUMENT_LINK: - serviceImpl.createDocumentLink( - (com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_DOCUMENT_LINK: - serviceImpl.deleteDocumentLink( - (com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) 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( - getListLinkedTargetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest, - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse>( - service, METHODID_LIST_LINKED_TARGETS))) - .addMethod( - getListLinkedSourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest, - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse>( - service, METHODID_LIST_LINKED_SOURCES))) - .addMethod( - getCreateDocumentLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest, - com.google.cloud.contentwarehouse.v1.DocumentLink>( - service, METHODID_CREATE_DOCUMENT_LINK))) - .addMethod( - getDeleteDocumentLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_DOCUMENT_LINK))) - .build(); - } - - private abstract static class DocumentLinkServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DocumentLinkServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DocumentLinkService"); - } - } - - private static final class DocumentLinkServiceFileDescriptorSupplier - extends DocumentLinkServiceBaseDescriptorSupplier { - DocumentLinkServiceFileDescriptorSupplier() {} - } - - private static final class DocumentLinkServiceMethodDescriptorSupplier - extends DocumentLinkServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DocumentLinkServiceMethodDescriptorSupplier(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 (DocumentLinkServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DocumentLinkServiceFileDescriptorSupplier()) - .addMethod(getListLinkedTargetsMethod()) - .addMethod(getListLinkedSourcesMethod()) - .addMethod(getCreateDocumentLinkMethod()) - .addMethod(getDeleteDocumentLinkMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java deleted file mode 100644 index 002fc7a643fb..000000000000 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java +++ /dev/null @@ -1,921 +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.contentwarehouse.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * This service lets you manage document schema.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/document_schema_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DocumentSchemaServiceGrpc { - - private DocumentSchemaServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.contentwarehouse.v1.DocumentSchemaService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema> - getCreateDocumentSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDocumentSchema", - requestType = com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.DocumentSchema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema> - getCreateDocumentSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema> - getCreateDocumentSchemaMethod; - if ((getCreateDocumentSchemaMethod = DocumentSchemaServiceGrpc.getCreateDocumentSchemaMethod) - == null) { - synchronized (DocumentSchemaServiceGrpc.class) { - if ((getCreateDocumentSchemaMethod = - DocumentSchemaServiceGrpc.getCreateDocumentSchemaMethod) - == null) { - DocumentSchemaServiceGrpc.getCreateDocumentSchemaMethod = - getCreateDocumentSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateDocumentSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DocumentSchema - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentSchemaServiceMethodDescriptorSupplier("CreateDocumentSchema")) - .build(); - } - } - } - return getCreateDocumentSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema> - getUpdateDocumentSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDocumentSchema", - requestType = com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.DocumentSchema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema> - getUpdateDocumentSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema> - getUpdateDocumentSchemaMethod; - if ((getUpdateDocumentSchemaMethod = DocumentSchemaServiceGrpc.getUpdateDocumentSchemaMethod) - == null) { - synchronized (DocumentSchemaServiceGrpc.class) { - if ((getUpdateDocumentSchemaMethod = - DocumentSchemaServiceGrpc.getUpdateDocumentSchemaMethod) - == null) { - DocumentSchemaServiceGrpc.getUpdateDocumentSchemaMethod = - getUpdateDocumentSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateDocumentSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DocumentSchema - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentSchemaServiceMethodDescriptorSupplier("UpdateDocumentSchema")) - .build(); - } - } - } - return getUpdateDocumentSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema> - getGetDocumentSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDocumentSchema", - requestType = com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.DocumentSchema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema> - getGetDocumentSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema> - getGetDocumentSchemaMethod; - if ((getGetDocumentSchemaMethod = DocumentSchemaServiceGrpc.getGetDocumentSchemaMethod) - == null) { - synchronized (DocumentSchemaServiceGrpc.class) { - if ((getGetDocumentSchemaMethod = DocumentSchemaServiceGrpc.getGetDocumentSchemaMethod) - == null) { - DocumentSchemaServiceGrpc.getGetDocumentSchemaMethod = - getGetDocumentSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDocumentSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DocumentSchema - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentSchemaServiceMethodDescriptorSupplier("GetDocumentSchema")) - .build(); - } - } - } - return getGetDocumentSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, - com.google.protobuf.Empty> - getDeleteDocumentSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDocumentSchema", - requestType = com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, - com.google.protobuf.Empty> - getDeleteDocumentSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, - com.google.protobuf.Empty> - getDeleteDocumentSchemaMethod; - if ((getDeleteDocumentSchemaMethod = DocumentSchemaServiceGrpc.getDeleteDocumentSchemaMethod) - == null) { - synchronized (DocumentSchemaServiceGrpc.class) { - if ((getDeleteDocumentSchemaMethod = - DocumentSchemaServiceGrpc.getDeleteDocumentSchemaMethod) - == null) { - DocumentSchemaServiceGrpc.getDeleteDocumentSchemaMethod = - getDeleteDocumentSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteDocumentSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentSchemaServiceMethodDescriptorSupplier("DeleteDocumentSchema")) - .build(); - } - } - } - return getDeleteDocumentSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest, - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse> - getListDocumentSchemasMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDocumentSchemas", - requestType = com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest, - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse> - getListDocumentSchemasMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest, - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse> - getListDocumentSchemasMethod; - if ((getListDocumentSchemasMethod = DocumentSchemaServiceGrpc.getListDocumentSchemasMethod) - == null) { - synchronized (DocumentSchemaServiceGrpc.class) { - if ((getListDocumentSchemasMethod = DocumentSchemaServiceGrpc.getListDocumentSchemasMethod) - == null) { - DocumentSchemaServiceGrpc.getListDocumentSchemasMethod = - getListDocumentSchemasMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListDocumentSchemas")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentSchemaServiceMethodDescriptorSupplier("ListDocumentSchemas")) - .build(); - } - } - } - return getListDocumentSchemasMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DocumentSchemaServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentSchemaServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentSchemaServiceStub(channel, callOptions); - } - }; - return DocumentSchemaServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DocumentSchemaServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentSchemaServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentSchemaServiceBlockingStub(channel, callOptions); - } - }; - return DocumentSchemaServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DocumentSchemaServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentSchemaServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentSchemaServiceFutureStub(channel, callOptions); - } - }; - return DocumentSchemaServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * This service lets you manage document schema.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Creates a document schema.
-     * 
- */ - default void createDocumentSchema( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDocumentSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
-     * Document Schema is non-empty and does not equal the existing name.
-     * Supports only appending new properties, adding new ENUM possible values,
-     * and updating the
-     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
-     * flag for ENUM possible values. Updating existing properties will result
-     * into INVALID_ARGUMENT.
-     * 
- */ - default void updateDocumentSchema( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDocumentSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a document schema. Returns NOT_FOUND if the document schema does not
-     * exist.
-     * 
- */ - default void getDocumentSchema( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDocumentSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a document schema. Returns NOT_FOUND if the document schema does
-     * not exist. Returns BAD_REQUEST if the document schema has documents
-     * depending on it.
-     * 
- */ - default void deleteDocumentSchema( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDocumentSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists document schemas.
-     * 
- */ - default void listDocumentSchemas( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDocumentSchemasMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DocumentSchemaService. - * - *
-   * This service lets you manage document schema.
-   * 
- */ - public abstract static class DocumentSchemaServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return DocumentSchemaServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service DocumentSchemaService. - * - *
-   * This service lets you manage document schema.
-   * 
- */ - public static final class DocumentSchemaServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DocumentSchemaServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentSchemaServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentSchemaServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a document schema.
-     * 
- */ - public void createDocumentSchema( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDocumentSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
-     * Document Schema is non-empty and does not equal the existing name.
-     * Supports only appending new properties, adding new ENUM possible values,
-     * and updating the
-     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
-     * flag for ENUM possible values. Updating existing properties will result
-     * into INVALID_ARGUMENT.
-     * 
- */ - public void updateDocumentSchema( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDocumentSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a document schema. Returns NOT_FOUND if the document schema does not
-     * exist.
-     * 
- */ - public void getDocumentSchema( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDocumentSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a document schema. Returns NOT_FOUND if the document schema does
-     * not exist. Returns BAD_REQUEST if the document schema has documents
-     * depending on it.
-     * 
- */ - public void deleteDocumentSchema( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDocumentSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists document schemas.
-     * 
- */ - public void listDocumentSchemas( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDocumentSchemasMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service DocumentSchemaService. - * - *
-   * This service lets you manage document schema.
-   * 
- */ - public static final class DocumentSchemaServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DocumentSchemaServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentSchemaServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentSchemaServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a document schema.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.DocumentSchema createDocumentSchema( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDocumentSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
-     * Document Schema is non-empty and does not equal the existing name.
-     * Supports only appending new properties, adding new ENUM possible values,
-     * and updating the
-     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
-     * flag for ENUM possible values. Updating existing properties will result
-     * into INVALID_ARGUMENT.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.DocumentSchema updateDocumentSchema( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDocumentSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a document schema. Returns NOT_FOUND if the document schema does not
-     * exist.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDocumentSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a document schema. Returns NOT_FOUND if the document schema does
-     * not exist. Returns BAD_REQUEST if the document schema has documents
-     * depending on it.
-     * 
- */ - public com.google.protobuf.Empty deleteDocumentSchema( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDocumentSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists document schemas.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse listDocumentSchemas( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDocumentSchemasMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * DocumentSchemaService. - * - *
-   * This service lets you manage document schema.
-   * 
- */ - public static final class DocumentSchemaServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DocumentSchemaServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentSchemaServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentSchemaServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a document schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.DocumentSchema> - createDocumentSchema( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDocumentSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
-     * Document Schema is non-empty and does not equal the existing name.
-     * Supports only appending new properties, adding new ENUM possible values,
-     * and updating the
-     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
-     * flag for ENUM possible values. Updating existing properties will result
-     * into INVALID_ARGUMENT.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.DocumentSchema> - updateDocumentSchema( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDocumentSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a document schema. Returns NOT_FOUND if the document schema does not
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.DocumentSchema> - getDocumentSchema(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDocumentSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a document schema. Returns NOT_FOUND if the document schema does
-     * not exist. Returns BAD_REQUEST if the document schema has documents
-     * depending on it.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteDocumentSchema( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDocumentSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists document schemas.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse> - listDocumentSchemas( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDocumentSchemasMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_DOCUMENT_SCHEMA = 0; - private static final int METHODID_UPDATE_DOCUMENT_SCHEMA = 1; - private static final int METHODID_GET_DOCUMENT_SCHEMA = 2; - private static final int METHODID_DELETE_DOCUMENT_SCHEMA = 3; - private static final int METHODID_LIST_DOCUMENT_SCHEMAS = 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_CREATE_DOCUMENT_SCHEMA: - serviceImpl.createDocumentSchema( - (com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_DOCUMENT_SCHEMA: - serviceImpl.updateDocumentSchema( - (com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_DOCUMENT_SCHEMA: - serviceImpl.getDocumentSchema( - (com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_DOCUMENT_SCHEMA: - serviceImpl.deleteDocumentSchema( - (com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DOCUMENT_SCHEMAS: - serviceImpl.listDocumentSchemas( - (com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse>) - 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( - getCreateDocumentSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema>( - service, METHODID_CREATE_DOCUMENT_SCHEMA))) - .addMethod( - getUpdateDocumentSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema>( - service, METHODID_UPDATE_DOCUMENT_SCHEMA))) - .addMethod( - getGetDocumentSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema>( - service, METHODID_GET_DOCUMENT_SCHEMA))) - .addMethod( - getDeleteDocumentSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_DOCUMENT_SCHEMA))) - .addMethod( - getListDocumentSchemasMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest, - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse>( - service, METHODID_LIST_DOCUMENT_SCHEMAS))) - .build(); - } - - private abstract static class DocumentSchemaServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DocumentSchemaServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DocumentSchemaService"); - } - } - - private static final class DocumentSchemaServiceFileDescriptorSupplier - extends DocumentSchemaServiceBaseDescriptorSupplier { - DocumentSchemaServiceFileDescriptorSupplier() {} - } - - private static final class DocumentSchemaServiceMethodDescriptorSupplier - extends DocumentSchemaServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DocumentSchemaServiceMethodDescriptorSupplier(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 (DocumentSchemaServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DocumentSchemaServiceFileDescriptorSupplier()) - .addMethod(getCreateDocumentSchemaMethod()) - .addMethod(getUpdateDocumentSchemaMethod()) - .addMethod(getGetDocumentSchemaMethod()) - .addMethod(getDeleteDocumentSchemaMethod()) - .addMethod(getListDocumentSchemasMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java deleted file mode 100644 index 6936c3613c24..000000000000 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java +++ /dev/null @@ -1,1236 +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.contentwarehouse.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * This service lets you manage document.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/document_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DocumentServiceGrpc { - - private DocumentServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.DocumentService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest, - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse> - getCreateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDocument", - requestType = com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest, - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse> - getCreateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest, - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse> - 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.contentwarehouse.v1.CreateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("CreateDocument")) - .build(); - } - } - } - return getCreateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.GetDocumentRequest, - com.google.cloud.contentwarehouse.v1.Document> - getGetDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDocument", - requestType = com.google.cloud.contentwarehouse.v1.GetDocumentRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.Document.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.GetDocumentRequest, - com.google.cloud.contentwarehouse.v1.Document> - getGetDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.GetDocumentRequest, - com.google.cloud.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("GetDocument")) - .build(); - } - } - } - return getGetDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse> - getUpdateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDocument", - requestType = com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse> - getUpdateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse> - 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.contentwarehouse.v1.UpdateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("UpdateDocument")) - .build(); - } - } - } - return getUpdateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, com.google.protobuf.Empty> - getDeleteDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDocument", - requestType = com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, com.google.protobuf.Empty> - getDeleteDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.SearchDocumentsRequest, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse> - getSearchDocumentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchDocuments", - requestType = com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse> - getSearchDocumentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse> - getSearchDocumentsMethod; - if ((getSearchDocumentsMethod = DocumentServiceGrpc.getSearchDocumentsMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getSearchDocumentsMethod = DocumentServiceGrpc.getSearchDocumentsMethod) == null) { - DocumentServiceGrpc.getSearchDocumentsMethod = - getSearchDocumentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchDocuments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("SearchDocuments")) - .build(); - } - } - } - return getSearchDocumentsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.LockDocumentRequest, - com.google.cloud.contentwarehouse.v1.Document> - getLockDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LockDocument", - requestType = com.google.cloud.contentwarehouse.v1.LockDocumentRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.Document.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.LockDocumentRequest, - com.google.cloud.contentwarehouse.v1.Document> - getLockDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.LockDocumentRequest, - com.google.cloud.contentwarehouse.v1.Document> - getLockDocumentMethod; - if ((getLockDocumentMethod = DocumentServiceGrpc.getLockDocumentMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getLockDocumentMethod = DocumentServiceGrpc.getLockDocumentMethod) == null) { - DocumentServiceGrpc.getLockDocumentMethod = - getLockDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LockDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.LockDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("LockDocument")) - .build(); - } - } - } - return getLockDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.FetchAclRequest, - com.google.cloud.contentwarehouse.v1.FetchAclResponse> - getFetchAclMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchAcl", - requestType = com.google.cloud.contentwarehouse.v1.FetchAclRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.FetchAclResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.FetchAclRequest, - com.google.cloud.contentwarehouse.v1.FetchAclResponse> - getFetchAclMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.FetchAclRequest, - com.google.cloud.contentwarehouse.v1.FetchAclResponse> - getFetchAclMethod; - if ((getFetchAclMethod = DocumentServiceGrpc.getFetchAclMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getFetchAclMethod = DocumentServiceGrpc.getFetchAclMethod) == null) { - DocumentServiceGrpc.getFetchAclMethod = - getFetchAclMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchAcl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.FetchAclRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.FetchAclResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("FetchAcl")) - .build(); - } - } - } - return getFetchAclMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.SetAclRequest, - com.google.cloud.contentwarehouse.v1.SetAclResponse> - getSetAclMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetAcl", - requestType = com.google.cloud.contentwarehouse.v1.SetAclRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.SetAclResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.SetAclRequest, - com.google.cloud.contentwarehouse.v1.SetAclResponse> - getSetAclMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.SetAclRequest, - com.google.cloud.contentwarehouse.v1.SetAclResponse> - getSetAclMethod; - if ((getSetAclMethod = DocumentServiceGrpc.getSetAclMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getSetAclMethod = DocumentServiceGrpc.getSetAclMethod) == null) { - DocumentServiceGrpc.getSetAclMethod = - getSetAclMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAcl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SetAclRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SetAclResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("SetAcl")) - .build(); - } - } - } - return getSetAclMethod; - } - - /** 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); - } - - /** - * - * - *
-   * This service lets you manage document.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Creates a document.
-     * 
- */ - default void createDocument( - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - default void getDocument( - com.google.cloud.contentwarehouse.v1.GetDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
-     * is non-empty and does not equal the existing name.
-     * 
- */ - default void updateDocument( - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - default void deleteDocument( - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Searches for documents using provided
-     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
-     * This call only returns documents that the caller has permission to search
-     * against.
-     * 
- */ - default void searchDocuments( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchDocumentsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lock the document so the document cannot be updated by other users.
-     * 
- */ - default void lockDocument( - com.google.cloud.contentwarehouse.v1.LockDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getLockDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource. Returns NOT_FOUND error if
-     * the resource does not exist. Returns an empty policy if the resource exists
-     * but does not have a policy set.
-     * 
- */ - default void fetchAcl( - com.google.cloud.contentwarehouse.v1.FetchAclRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchAclMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * 
- */ - default void setAcl( - com.google.cloud.contentwarehouse.v1.SetAclRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetAclMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DocumentService. - * - *
-   * This service lets you manage document.
-   * 
- */ - 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. - * - *
-   * This service lets you manage document.
-   * 
- */ - 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); - } - - /** - * - * - *
-     * Creates a document.
-     * 
- */ - public void createDocument( - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public void getDocument( - com.google.cloud.contentwarehouse.v1.GetDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
-     * is non-empty and does not equal the existing name.
-     * 
- */ - public void updateDocument( - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public void deleteDocument( - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Searches for documents using provided
-     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
-     * This call only returns documents that the caller has permission to search
-     * against.
-     * 
- */ - public void searchDocuments( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchDocumentsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lock the document so the document cannot be updated by other users.
-     * 
- */ - public void lockDocument( - com.google.cloud.contentwarehouse.v1.LockDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLockDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource. Returns NOT_FOUND error if
-     * the resource does not exist. Returns an empty policy if the resource exists
-     * but does not have a policy set.
-     * 
- */ - public void fetchAcl( - com.google.cloud.contentwarehouse.v1.FetchAclRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchAclMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * 
- */ - public void setAcl( - com.google.cloud.contentwarehouse.v1.SetAclRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetAclMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service DocumentService. - * - *
-   * This service lets you manage document.
-   * 
- */ - 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); - } - - /** - * - * - *
-     * Creates a document.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse createDocument( - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.Document getDocument( - com.google.cloud.contentwarehouse.v1.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
-     * is non-empty and does not equal the existing name.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse updateDocument( - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public com.google.protobuf.Empty deleteDocument( - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Searches for documents using provided
-     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
-     * This call only returns documents that the caller has permission to search
-     * against.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse searchDocuments( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchDocumentsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lock the document so the document cannot be updated by other users.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.Document lockDocument( - com.google.cloud.contentwarehouse.v1.LockDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLockDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource. Returns NOT_FOUND error if
-     * the resource does not exist. Returns an empty policy if the resource exists
-     * but does not have a policy set.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.FetchAclResponse fetchAcl( - com.google.cloud.contentwarehouse.v1.FetchAclRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchAclMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.SetAclResponse setAcl( - com.google.cloud.contentwarehouse.v1.SetAclRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetAclMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentService. - * - *
-   * This service lets you manage document.
-   * 
- */ - 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); - } - - /** - * - * - *
-     * Creates a document.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse> - createDocument(com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.Document> - getDocument(com.google.cloud.contentwarehouse.v1.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
-     * is non-empty and does not equal the existing name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse> - updateDocument(com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteDocument(com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Searches for documents using provided
-     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
-     * This call only returns documents that the caller has permission to search
-     * against.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse> - searchDocuments(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchDocumentsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lock the document so the document cannot be updated by other users.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.Document> - lockDocument(com.google.cloud.contentwarehouse.v1.LockDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLockDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource. Returns NOT_FOUND error if
-     * the resource does not exist. Returns an empty policy if the resource exists
-     * but does not have a policy set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.FetchAclResponse> - fetchAcl(com.google.cloud.contentwarehouse.v1.FetchAclRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchAclMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.SetAclResponse> - setAcl(com.google.cloud.contentwarehouse.v1.SetAclRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetAclMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_DOCUMENT = 0; - private static final int METHODID_GET_DOCUMENT = 1; - private static final int METHODID_UPDATE_DOCUMENT = 2; - private static final int METHODID_DELETE_DOCUMENT = 3; - private static final int METHODID_SEARCH_DOCUMENTS = 4; - private static final int METHODID_LOCK_DOCUMENT = 5; - private static final int METHODID_FETCH_ACL = 6; - private static final int METHODID_SET_ACL = 7; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_DOCUMENT: - serviceImpl.createDocument( - (com.google.cloud.contentwarehouse.v1.CreateDocumentRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse>) - responseObserver); - break; - case METHODID_GET_DOCUMENT: - serviceImpl.getDocument( - (com.google.cloud.contentwarehouse.v1.GetDocumentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_DOCUMENT: - serviceImpl.updateDocument( - (com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse>) - responseObserver); - break; - case METHODID_DELETE_DOCUMENT: - serviceImpl.deleteDocument( - (com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_DOCUMENTS: - serviceImpl.searchDocuments( - (com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse>) - responseObserver); - break; - case METHODID_LOCK_DOCUMENT: - serviceImpl.lockDocument( - (com.google.cloud.contentwarehouse.v1.LockDocumentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_FETCH_ACL: - serviceImpl.fetchAcl( - (com.google.cloud.contentwarehouse.v1.FetchAclRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SET_ACL: - serviceImpl.setAcl( - (com.google.cloud.contentwarehouse.v1.SetAclRequest) 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( - getCreateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest, - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse>( - service, METHODID_CREATE_DOCUMENT))) - .addMethod( - getGetDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.GetDocumentRequest, - com.google.cloud.contentwarehouse.v1.Document>(service, METHODID_GET_DOCUMENT))) - .addMethod( - getUpdateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse>( - service, METHODID_UPDATE_DOCUMENT))) - .addMethod( - getDeleteDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_DOCUMENT))) - .addMethod( - getSearchDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse>( - service, METHODID_SEARCH_DOCUMENTS))) - .addMethod( - getLockDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.LockDocumentRequest, - com.google.cloud.contentwarehouse.v1.Document>( - service, METHODID_LOCK_DOCUMENT))) - .addMethod( - getFetchAclMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.FetchAclRequest, - com.google.cloud.contentwarehouse.v1.FetchAclResponse>( - service, METHODID_FETCH_ACL))) - .addMethod( - getSetAclMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.SetAclRequest, - com.google.cloud.contentwarehouse.v1.SetAclResponse>( - service, METHODID_SET_ACL))) - .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.contentwarehouse.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 String methodName; - - DocumentServiceMethodDescriptorSupplier(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(getCreateDocumentMethod()) - .addMethod(getGetDocumentMethod()) - .addMethod(getUpdateDocumentMethod()) - .addMethod(getDeleteDocumentMethod()) - .addMethod(getSearchDocumentsMethod()) - .addMethod(getLockDocumentMethod()) - .addMethod(getFetchAclMethod()) - .addMethod(getSetAclMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java deleted file mode 100644 index 48d79b7fb3c6..000000000000 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java +++ /dev/null @@ -1,850 +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.contentwarehouse.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service to manage customer specific RuleSets.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/ruleset_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class RuleSetServiceGrpc { - - private RuleSetServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.RuleSetService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet> - getCreateRuleSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRuleSet", - requestType = com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.RuleSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet> - getCreateRuleSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet> - getCreateRuleSetMethod; - if ((getCreateRuleSetMethod = RuleSetServiceGrpc.getCreateRuleSetMethod) == null) { - synchronized (RuleSetServiceGrpc.class) { - if ((getCreateRuleSetMethod = RuleSetServiceGrpc.getCreateRuleSetMethod) == null) { - RuleSetServiceGrpc.getCreateRuleSetMethod = - getCreateRuleSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRuleSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance())) - .setSchemaDescriptor( - new RuleSetServiceMethodDescriptorSupplier("CreateRuleSet")) - .build(); - } - } - } - return getCreateRuleSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet> - getGetRuleSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRuleSet", - requestType = com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.RuleSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet> - getGetRuleSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet> - getGetRuleSetMethod; - if ((getGetRuleSetMethod = RuleSetServiceGrpc.getGetRuleSetMethod) == null) { - synchronized (RuleSetServiceGrpc.class) { - if ((getGetRuleSetMethod = RuleSetServiceGrpc.getGetRuleSetMethod) == null) { - RuleSetServiceGrpc.getGetRuleSetMethod = - getGetRuleSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRuleSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance())) - .setSchemaDescriptor(new RuleSetServiceMethodDescriptorSupplier("GetRuleSet")) - .build(); - } - } - } - return getGetRuleSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet> - getUpdateRuleSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRuleSet", - requestType = com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.RuleSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet> - getUpdateRuleSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet> - getUpdateRuleSetMethod; - if ((getUpdateRuleSetMethod = RuleSetServiceGrpc.getUpdateRuleSetMethod) == null) { - synchronized (RuleSetServiceGrpc.class) { - if ((getUpdateRuleSetMethod = RuleSetServiceGrpc.getUpdateRuleSetMethod) == null) { - RuleSetServiceGrpc.getUpdateRuleSetMethod = - getUpdateRuleSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRuleSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance())) - .setSchemaDescriptor( - new RuleSetServiceMethodDescriptorSupplier("UpdateRuleSet")) - .build(); - } - } - } - return getUpdateRuleSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, com.google.protobuf.Empty> - getDeleteRuleSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRuleSet", - requestType = com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, com.google.protobuf.Empty> - getDeleteRuleSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, com.google.protobuf.Empty> - getDeleteRuleSetMethod; - if ((getDeleteRuleSetMethod = RuleSetServiceGrpc.getDeleteRuleSetMethod) == null) { - synchronized (RuleSetServiceGrpc.class) { - if ((getDeleteRuleSetMethod = RuleSetServiceGrpc.getDeleteRuleSetMethod) == null) { - RuleSetServiceGrpc.getDeleteRuleSetMethod = - getDeleteRuleSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRuleSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new RuleSetServiceMethodDescriptorSupplier("DeleteRuleSet")) - .build(); - } - } - } - return getDeleteRuleSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest, - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse> - getListRuleSetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRuleSets", - requestType = com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest, - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse> - getListRuleSetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest, - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse> - getListRuleSetsMethod; - if ((getListRuleSetsMethod = RuleSetServiceGrpc.getListRuleSetsMethod) == null) { - synchronized (RuleSetServiceGrpc.class) { - if ((getListRuleSetsMethod = RuleSetServiceGrpc.getListRuleSetsMethod) == null) { - RuleSetServiceGrpc.getListRuleSetsMethod = - getListRuleSetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuleSets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new RuleSetServiceMethodDescriptorSupplier("ListRuleSets")) - .build(); - } - } - } - return getListRuleSetsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static RuleSetServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RuleSetServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RuleSetServiceStub(channel, callOptions); - } - }; - return RuleSetServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static RuleSetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RuleSetServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RuleSetServiceBlockingStub(channel, callOptions); - } - }; - return RuleSetServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static RuleSetServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RuleSetServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RuleSetServiceFutureStub(channel, callOptions); - } - }; - return RuleSetServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service to manage customer specific RuleSets.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Creates a ruleset.
-     * 
- */ - default void createRuleSet( - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateRuleSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
-     * 
- */ - default void getRuleSet( - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRuleSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
-     * is non-empty and does not equal the existing name.
-     * 
- */ - default void updateRuleSet( - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateRuleSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - default void deleteRuleSet( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRuleSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists rulesets.
-     * 
- */ - default void listRuleSets( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRuleSetsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service RuleSetService. - * - *
-   * Service to manage customer specific RuleSets.
-   * 
- */ - public abstract static class RuleSetServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return RuleSetServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service RuleSetService. - * - *
-   * Service to manage customer specific RuleSets.
-   * 
- */ - public static final class RuleSetServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private RuleSetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RuleSetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RuleSetServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a ruleset.
-     * 
- */ - public void createRuleSet( - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRuleSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
-     * 
- */ - public void getRuleSet( - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRuleSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
-     * is non-empty and does not equal the existing name.
-     * 
- */ - public void updateRuleSet( - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRuleSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public void deleteRuleSet( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRuleSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists rulesets.
-     * 
- */ - public void listRuleSets( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRuleSetsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service RuleSetService. - * - *
-   * Service to manage customer specific RuleSets.
-   * 
- */ - public static final class RuleSetServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private RuleSetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RuleSetServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RuleSetServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a ruleset.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.RuleSet createRuleSet( - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRuleSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet( - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRuleSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
-     * is non-empty and does not equal the existing name.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.RuleSet updateRuleSet( - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRuleSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public com.google.protobuf.Empty deleteRuleSet( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRuleSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists rulesets.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse listRuleSets( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRuleSetsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service RuleSetService. - * - *
-   * Service to manage customer specific RuleSets.
-   * 
- */ - public static final class RuleSetServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private RuleSetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RuleSetServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RuleSetServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a ruleset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.RuleSet> - createRuleSet(com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRuleSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.RuleSet> - getRuleSet(com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRuleSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
-     * is non-empty and does not equal the existing name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.RuleSet> - updateRuleSet(com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRuleSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRuleSet(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRuleSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists rulesets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse> - listRuleSets(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRuleSetsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_RULE_SET = 0; - private static final int METHODID_GET_RULE_SET = 1; - private static final int METHODID_UPDATE_RULE_SET = 2; - private static final int METHODID_DELETE_RULE_SET = 3; - private static final int METHODID_LIST_RULE_SETS = 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_CREATE_RULE_SET: - serviceImpl.createRuleSet( - (com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_RULE_SET: - serviceImpl.getRuleSet( - (com.google.cloud.contentwarehouse.v1.GetRuleSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_RULE_SET: - serviceImpl.updateRuleSet( - (com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_RULE_SET: - serviceImpl.deleteRuleSet( - (com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RULE_SETS: - serviceImpl.listRuleSets( - (com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse>) - 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( - getCreateRuleSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet>( - service, METHODID_CREATE_RULE_SET))) - .addMethod( - getGetRuleSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet>(service, METHODID_GET_RULE_SET))) - .addMethod( - getUpdateRuleSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet>( - service, METHODID_UPDATE_RULE_SET))) - .addMethod( - getDeleteRuleSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_RULE_SET))) - .addMethod( - getListRuleSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest, - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse>( - service, METHODID_LIST_RULE_SETS))) - .build(); - } - - private abstract static class RuleSetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - RuleSetServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("RuleSetService"); - } - } - - private static final class RuleSetServiceFileDescriptorSupplier - extends RuleSetServiceBaseDescriptorSupplier { - RuleSetServiceFileDescriptorSupplier() {} - } - - private static final class RuleSetServiceMethodDescriptorSupplier - extends RuleSetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - RuleSetServiceMethodDescriptorSupplier(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 (RuleSetServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new RuleSetServiceFileDescriptorSupplier()) - .addMethod(getCreateRuleSetMethod()) - .addMethod(getGetRuleSetMethod()) - .addMethod(getUpdateRuleSetMethod()) - .addMethod(getDeleteRuleSetMethod()) - .addMethod(getListRuleSetsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java deleted file mode 100644 index 6bc700e7cda9..000000000000 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java +++ /dev/null @@ -1,881 +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.contentwarehouse.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * A Service that manage/custom customer specified SynonymSets.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/synonymset_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SynonymSetServiceGrpc { - - private SynonymSetServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.SynonymSetService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet> - getCreateSynonymSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSynonymSet", - requestType = com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.SynonymSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet> - getCreateSynonymSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet> - getCreateSynonymSetMethod; - if ((getCreateSynonymSetMethod = SynonymSetServiceGrpc.getCreateSynonymSetMethod) == null) { - synchronized (SynonymSetServiceGrpc.class) { - if ((getCreateSynonymSetMethod = SynonymSetServiceGrpc.getCreateSynonymSetMethod) == null) { - SynonymSetServiceGrpc.getCreateSynonymSetMethod = - getCreateSynonymSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSynonymSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())) - .setSchemaDescriptor( - new SynonymSetServiceMethodDescriptorSupplier("CreateSynonymSet")) - .build(); - } - } - } - return getCreateSynonymSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet> - getGetSynonymSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSynonymSet", - requestType = com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.SynonymSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet> - getGetSynonymSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet> - getGetSynonymSetMethod; - if ((getGetSynonymSetMethod = SynonymSetServiceGrpc.getGetSynonymSetMethod) == null) { - synchronized (SynonymSetServiceGrpc.class) { - if ((getGetSynonymSetMethod = SynonymSetServiceGrpc.getGetSynonymSetMethod) == null) { - SynonymSetServiceGrpc.getGetSynonymSetMethod = - getGetSynonymSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSynonymSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())) - .setSchemaDescriptor( - new SynonymSetServiceMethodDescriptorSupplier("GetSynonymSet")) - .build(); - } - } - } - return getGetSynonymSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet> - getUpdateSynonymSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSynonymSet", - requestType = com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.SynonymSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet> - getUpdateSynonymSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet> - getUpdateSynonymSetMethod; - if ((getUpdateSynonymSetMethod = SynonymSetServiceGrpc.getUpdateSynonymSetMethod) == null) { - synchronized (SynonymSetServiceGrpc.class) { - if ((getUpdateSynonymSetMethod = SynonymSetServiceGrpc.getUpdateSynonymSetMethod) == null) { - SynonymSetServiceGrpc.getUpdateSynonymSetMethod = - getUpdateSynonymSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSynonymSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())) - .setSchemaDescriptor( - new SynonymSetServiceMethodDescriptorSupplier("UpdateSynonymSet")) - .build(); - } - } - } - return getUpdateSynonymSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, com.google.protobuf.Empty> - getDeleteSynonymSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSynonymSet", - requestType = com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, com.google.protobuf.Empty> - getDeleteSynonymSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, com.google.protobuf.Empty> - getDeleteSynonymSetMethod; - if ((getDeleteSynonymSetMethod = SynonymSetServiceGrpc.getDeleteSynonymSetMethod) == null) { - synchronized (SynonymSetServiceGrpc.class) { - if ((getDeleteSynonymSetMethod = SynonymSetServiceGrpc.getDeleteSynonymSetMethod) == null) { - SynonymSetServiceGrpc.getDeleteSynonymSetMethod = - getDeleteSynonymSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSynonymSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new SynonymSetServiceMethodDescriptorSupplier("DeleteSynonymSet")) - .build(); - } - } - } - return getDeleteSynonymSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest, - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse> - getListSynonymSetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSynonymSets", - requestType = com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest, - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse> - getListSynonymSetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest, - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse> - getListSynonymSetsMethod; - if ((getListSynonymSetsMethod = SynonymSetServiceGrpc.getListSynonymSetsMethod) == null) { - synchronized (SynonymSetServiceGrpc.class) { - if ((getListSynonymSetsMethod = SynonymSetServiceGrpc.getListSynonymSetsMethod) == null) { - SynonymSetServiceGrpc.getListSynonymSetsMethod = - getListSynonymSetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSynonymSets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SynonymSetServiceMethodDescriptorSupplier("ListSynonymSets")) - .build(); - } - } - } - return getListSynonymSetsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SynonymSetServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SynonymSetServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SynonymSetServiceStub(channel, callOptions); - } - }; - return SynonymSetServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SynonymSetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SynonymSetServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SynonymSetServiceBlockingStub(channel, callOptions); - } - }; - return SynonymSetServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SynonymSetServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SynonymSetServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SynonymSetServiceFutureStub(channel, callOptions); - } - }; - return SynonymSetServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * A Service that manage/custom customer specified SynonymSets.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Creates a SynonymSet for a single context.
-     * Throws an ALREADY_EXISTS exception if a synonymset already exists
-     * for the context.
-     * 
- */ - default void createSynonymSet( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSynonymSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a SynonymSet for a particular context.
-     * Throws a NOT_FOUND exception if the Synonymset
-     * does not exist
-     * 
- */ - default void getSynonymSet( - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSynonymSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Remove the existing SynonymSet for the context and replaces it
-     * with a new one.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - default void updateSynonymSet( - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSynonymSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a SynonymSet for a given context.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - default void deleteSynonymSet( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSynonymSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all SynonymSets (for all contexts) for the specified location.
-     * 
- */ - default void listSynonymSets( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSynonymSetsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service SynonymSetService. - * - *
-   * A Service that manage/custom customer specified SynonymSets.
-   * 
- */ - public abstract static class SynonymSetServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return SynonymSetServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service SynonymSetService. - * - *
-   * A Service that manage/custom customer specified SynonymSets.
-   * 
- */ - public static final class SynonymSetServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private SynonymSetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SynonymSetServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SynonymSetServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a SynonymSet for a single context.
-     * Throws an ALREADY_EXISTS exception if a synonymset already exists
-     * for the context.
-     * 
- */ - public void createSynonymSet( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSynonymSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a SynonymSet for a particular context.
-     * Throws a NOT_FOUND exception if the Synonymset
-     * does not exist
-     * 
- */ - public void getSynonymSet( - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSynonymSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Remove the existing SynonymSet for the context and replaces it
-     * with a new one.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - public void updateSynonymSet( - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSynonymSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a SynonymSet for a given context.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - public void deleteSynonymSet( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSynonymSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all SynonymSets (for all contexts) for the specified location.
-     * 
- */ - public void listSynonymSets( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSynonymSetsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service SynonymSetService. - * - *
-   * A Service that manage/custom customer specified SynonymSets.
-   * 
- */ - public static final class SynonymSetServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SynonymSetServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SynonymSetServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SynonymSetServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a SynonymSet for a single context.
-     * Throws an ALREADY_EXISTS exception if a synonymset already exists
-     * for the context.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.SynonymSet createSynonymSet( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSynonymSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a SynonymSet for a particular context.
-     * Throws a NOT_FOUND exception if the Synonymset
-     * does not exist
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet( - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSynonymSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Remove the existing SynonymSet for the context and replaces it
-     * with a new one.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.SynonymSet updateSynonymSet( - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSynonymSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a SynonymSet for a given context.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - public com.google.protobuf.Empty deleteSynonymSet( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSynonymSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all SynonymSets (for all contexts) for the specified location.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse listSynonymSets( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSynonymSetsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service SynonymSetService. - * - *
-   * A Service that manage/custom customer specified SynonymSets.
-   * 
- */ - public static final class SynonymSetServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SynonymSetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SynonymSetServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SynonymSetServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a SynonymSet for a single context.
-     * Throws an ALREADY_EXISTS exception if a synonymset already exists
-     * for the context.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.SynonymSet> - createSynonymSet(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSynonymSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a SynonymSet for a particular context.
-     * Throws a NOT_FOUND exception if the Synonymset
-     * does not exist
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.SynonymSet> - getSynonymSet(com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSynonymSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Remove the existing SynonymSet for the context and replaces it
-     * with a new one.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.SynonymSet> - updateSynonymSet(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSynonymSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a SynonymSet for a given context.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSynonymSet(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSynonymSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all SynonymSets (for all contexts) for the specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse> - listSynonymSets(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSynonymSetsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SYNONYM_SET = 0; - private static final int METHODID_GET_SYNONYM_SET = 1; - private static final int METHODID_UPDATE_SYNONYM_SET = 2; - private static final int METHODID_DELETE_SYNONYM_SET = 3; - private static final int METHODID_LIST_SYNONYM_SETS = 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_CREATE_SYNONYM_SET: - serviceImpl.createSynonymSet( - (com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SYNONYM_SET: - serviceImpl.getSynonymSet( - (com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_SYNONYM_SET: - serviceImpl.updateSynonymSet( - (com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SYNONYM_SET: - serviceImpl.deleteSynonymSet( - (com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SYNONYM_SETS: - serviceImpl.listSynonymSets( - (com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse>) - 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( - getCreateSynonymSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet>( - service, METHODID_CREATE_SYNONYM_SET))) - .addMethod( - getGetSynonymSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet>( - service, METHODID_GET_SYNONYM_SET))) - .addMethod( - getUpdateSynonymSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet>( - service, METHODID_UPDATE_SYNONYM_SET))) - .addMethod( - getDeleteSynonymSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_SYNONYM_SET))) - .addMethod( - getListSynonymSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest, - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse>( - service, METHODID_LIST_SYNONYM_SETS))) - .build(); - } - - private abstract static class SynonymSetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SynonymSetServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SynonymSetService"); - } - } - - private static final class SynonymSetServiceFileDescriptorSupplier - extends SynonymSetServiceBaseDescriptorSupplier { - SynonymSetServiceFileDescriptorSupplier() {} - } - - private static final class SynonymSetServiceMethodDescriptorSupplier - extends SynonymSetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SynonymSetServiceMethodDescriptorSupplier(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 (SynonymSetServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SynonymSetServiceFileDescriptorSupplier()) - .addMethod(getCreateSynonymSetMethod()) - .addMethod(getGetSynonymSetMethod()) - .addMethod(getUpdateSynonymSetMethod()) - .addMethod(getDeleteSynonymSetMethod()) - .addMethod(getListSynonymSetsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java deleted file mode 100644 index c7ac6c381907..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java +++ /dev/null @@ -1,85 +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/contentwarehouse/v1/async_document_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class AsyncDocumentServiceRequestProto { - private AsyncDocumentServiceRequestProto() {} - - 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_contentwarehouse_v1_CreateDocumentMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_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/contentwarehouse/v1/async" - + "_document_service_request.proto\022 google." - + "cloud.contentwarehouse.v1\032\037google/api/fi" - + "eld_behavior.proto\032\031google/api/resource." - + "proto\"\030\n\026CreateDocumentMetadata\"\030\n\026Updat" - + "eDocumentMetadataB\210\002\n$com.google.cloud.c" - + "ontentwarehouse.v1B AsyncDocumentService" - + "RequestProtoP\001ZPcloud.google.com/go/cont" - + "entwarehouse/apiv1/contentwarehousepb;co" - + "ntentwarehousepb\252\002 Google.Cloud.ContentW" - + "arehouse.V1\312\002 Google\\Cloud\\ContentWareho" - + "use\\V1\352\002#Google::Cloud::ContentWarehouse" - + "::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(), - }); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor, - new java.lang.String[] {}); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java deleted file mode 100644 index 85572ff65a01..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.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/contentwarehouse/v1/common.proto - -package com.google.cloud.contentwarehouse.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_contentwarehouse_v1_RequestMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_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/contentwarehouse/v1/commo" - + "n.proto\022 google.cloud.contentwarehouse.v" - + "1\032\031google/api/resource.proto\032 google/pro" - + "tobuf/field_mask.proto\"P\n\017RequestMetadat" - + "a\022=\n\tuser_info\030\001 \001(\0132*.google.cloud.cont" - + "entwarehouse.v1.UserInfo\"&\n\020ResponseMeta" - + "data\022\022\n\nrequest_id\030\001 \001(\t\")\n\010UserInfo\022\n\n\002" - + "id\030\001 \001(\t\022\021\n\tgroup_ids\030\002 \003(\t\"\327\001\n\rUpdateOp" - + "tions\022A\n\013update_type\030\001 \001(\0162,.google.clou" - + "d.contentwarehouse.v1.UpdateType\022/\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "k\022R\n\024merge_fields_options\030\003 \001(\01324.google" - + ".cloud.contentwarehouse.v1.MergeFieldsOp" - + "tions\"\226\001\n\022MergeFieldsOptions\022#\n\026replace_" - + "message_fields\030\001 \001(\010H\000\210\001\001\022$\n\027replace_rep" - + "eated_fields\030\002 \001(\010H\001\210\001\001B\031\n\027_replace_mess" - + "age_fieldsB\032\n\030_replace_repeated_fields*\237" - + "\002\n\nUpdateType\022\033\n\027UPDATE_TYPE_UNSPECIFIED" - + "\020\000\022\027\n\023UPDATE_TYPE_REPLACE\020\001\022\025\n\021UPDATE_TY" - + "PE_MERGE\020\002\022*\n&UPDATE_TYPE_INSERT_PROPERT" - + "IES_BY_NAMES\020\003\022+\n\'UPDATE_TYPE_REPLACE_PR" - + "OPERTIES_BY_NAMES\020\004\022*\n&UPDATE_TYPE_DELET" - + "E_PROPERTIES_BY_NAMES\020\005\022?\n;UPDATE_TYPE_M" - + "ERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY" - + "_NAMES\020\006*S\n\014DatabaseType\022\016\n\nDB_UNKNOWN\020\000" - + "\022\024\n\020DB_INFRA_SPANNER\020\001\022\035\n\025DB_CLOUD_SQL_P" - + "OSTGRES\020\002\032\002\010\001*\252\001\n\021AccessControlMode\022\024\n\020A" - + "CL_MODE_UNKNOWN\020\000\022\035\n\031ACL_MODE_UNIVERSAL_" - + "ACCESS\020\001\0220\n,ACL_MODE_DOCUMENT_LEVEL_ACCE" - + "SS_CONTROL_BYOID\020\002\022.\n*ACL_MODE_DOCUMENT_" - + "LEVEL_ACCESS_CONTROL_GCI\020\003*\211\001\n\032DocumentC" - + "reatorDefaultRole\022-\n)DOCUMENT_CREATOR_DE" - + "FAULT_ROLE_UNSPECIFIED\020\000\022\022\n\016DOCUMENT_ADM" - + "IN\020\001\022\023\n\017DOCUMENT_EDITOR\020\002\022\023\n\017DOCUMENT_VI" - + "EWER\020\003B\311\002\n$com.google.cloud.contentwareh" - + "ouse.v1B\013CommonProtoP\001ZPcloud.google.com" - + "/go/contentwarehouse/apiv1/contentwareho" - + "usepb;contentwarehousepb\252\002 Google.Cloud." - + "ContentWarehouse.V1\312\002 Google\\Cloud\\Conte" - + "ntWarehouse\\V1\352\002#Google::Cloud::ContentW" - + "arehouse::V1\352AS\n(contentwarehouse.google" - + "apis.com/Location\022\'projects/{project}/lo" - + "cations/{location}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor, - new java.lang.String[] { - "UserInfo", - }); - internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor, - new java.lang.String[] { - "RequestId", - }); - internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor, - new java.lang.String[] { - "Id", "GroupIds", - }); - internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor, - new java.lang.String[] { - "UpdateType", "UpdateMask", "MergeFieldsOptions", - }); - internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor, - new java.lang.String[] { - "ReplaceMessageFields", - "ReplaceRepeatedFields", - "ReplaceMessageFields", - "ReplaceRepeatedFields", - }); - 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(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java deleted file mode 100644 index 3d70907522a8..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java +++ /dev/null @@ -1,24 +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/contentwarehouse/v1/async_document_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface CreateDocumentMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentMetadata) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java deleted file mode 100644 index ebd11f86c159..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java +++ /dev/null @@ -1,95 +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/contentwarehouse/v1/document_schema_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface CreateDocumentSchemaRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent name.
-   * 
- * - * - * 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 schema to create.
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the documentSchema field is set. - */ - boolean hasDocumentSchema(); - /** - * - * - *
-   * Required. The document schema to create.
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The documentSchema. - */ - com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema(); - /** - * - * - *
-   * Required. The document schema to create.
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder(); -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java deleted file mode 100644 index 24a8c7eafed5..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.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/contentwarehouse/v1/ruleset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface CreateRuleSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateRuleSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent name.
-   * Format: projects/{project_number}/locations/{location}.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent name.
-   * Format: projects/{project_number}/locations/{location}.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The rule set to create.
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the ruleSet field is set. - */ - boolean hasRuleSet(); - /** - * - * - *
-   * Required. The rule set to create.
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The ruleSet. - */ - com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet(); - /** - * - * - *
-   * Required. The rule set to create.
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder(); -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java deleted file mode 100644 index 7c380ea220a9..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.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/contentwarehouse/v1/synonymset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface CreateSynonymSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent name.
-   * Format: projects/{project_number}/locations/{location}.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent name.
-   * Format: projects/{project_number}/locations/{location}.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The synonymSet to be created for a context
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the synonymSet field is set. - */ - boolean hasSynonymSet(); - /** - * - * - *
-   * Required. The synonymSet to be created for a context
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The synonymSet. - */ - com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet(); - /** - * - * - *
-   * Required. The synonymSet to be created for a context
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder(); -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java deleted file mode 100644 index 03191b19ca3a..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java +++ /dev/null @@ -1,24 +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/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface DateTimeTypeOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DateTimeTypeOptions) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java deleted file mode 100644 index b9a61f3206d1..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java +++ /dev/null @@ -1,39 +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/contentwarehouse/v1/rule_engine.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface DeleteDocumentActionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteDocumentAction) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Boolean field to select between hard vs soft delete options.
-   * Set 'true' for 'hard delete' and 'false' for 'soft delete'.
-   * 
- * - * bool enable_hard_delete = 1; - * - * @return The enableHardDelete. - */ - boolean getEnableHardDelete(); -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java deleted file mode 100644 index 0c58a06ecced..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/contentwarehouse/v1/document_schema_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface DeleteDocumentSchemaRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the document schema to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the document schema to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java deleted file mode 100644 index 93de1bea19a5..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/contentwarehouse/v1/ruleset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface DeleteRuleSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the rule set to delete.
-   * Format:
-   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the rule set to delete.
-   * Format:
-   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java deleted file mode 100644 index e7687e154577..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/contentwarehouse/v1/synonymset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface DeleteSynonymSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the synonymSet to delete
-   * Format:
-   * projects/{project_number}/locations/{location}/synonymSets/{context}.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the synonymSet to delete
-   * Format:
-   * projects/{project_number}/locations/{location}/synonymSets/{context}.
-   * 
- * - * - * 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-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java deleted file mode 100644 index 01ecad39e87c..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java +++ /dev/null @@ -1,248 +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/contentwarehouse/v1/document_link_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class DocumentLinkServiceProto { - private DocumentLinkServiceProto() {} - - 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_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DocumentLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_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\nproperti" - + "es\030\007 \003(\0132*.google.cloud.contentwarehouse" - + ".v1.Property\0225\n\013update_time\030\010 \001(\0132\032.goog" - + "le.protobuf.TimestampB\004\342A\001\003\0225\n\013create_ti" - + "me\030\t \001(\0132\032.google.protobuf.TimestampB\004\342A" - + "\001\003\022U\n\026raw_document_file_type\030\n \001(\01625.goo" - + "gle.cloud.contentwarehouse.v1.RawDocumen" - + "tFileType\022\031\n\rasync_enabled\030\014 \001(\010B\002\030\001\022K\n\020" - + "content_category\030\024 \001(\01621.google.cloud.co" - + "ntentwarehouse.v1.ContentCategory\022$\n\030tex" - + "t_extraction_disabled\030\023 \001(\010B\002\030\001\022\037\n\027text_" - + "extraction_enabled\030\025 \001(\010\022\017\n\007creator\030\r \001(" - + "\t\022\017\n\007updater\030\016 \001(\t\022:\n\020disposition_time\030\026" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\030" - + "\n\nlegal_hold\030\027 \001(\010B\004\342A\001\003:\272\001\352A\266\001\n(content" - + "warehouse.googleapis.com/Document\022\n\nproperties\030\001 \003" - + "(\0132*.google.cloud.contentwarehouse.v1.Pr" - + "operty\"\260\001\n\013MapProperty\022I\n\006fields\030\001 \003(\01329" - + ".google.cloud.contentwarehouse.v1.MapPro" - + "perty.FieldsEntry\032V\n\013FieldsEntry\022\013\n\003key\030" - + "\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google.cloud.cont" - + "entwarehouse.v1.Value:\0028\001\"\255\002\n\005Value\022\025\n\013f" - + "loat_value\030\001 \001(\002H\000\022\023\n\tint_value\030\002 \001(\005H\000\022" - + "\026\n\014string_value\030\003 \001(\tH\000\022A\n\nenum_value\030\004 " - + "\001(\0132+.google.cloud.contentwarehouse.v1.E" - + "numValueH\000\022/\n\016datetime_value\030\005 \001(\0132\025.goo" - + "gle.type.DateTimeH\000\022K\n\017timestamp_value\030\006" - + " \001(\01320.google.cloud.contentwarehouse.v1." - + "TimestampValueH\000\022\027\n\rboolean_value\030\007 \001(\010H" - + "\000B\006\n\004kind\"\032\n\tEnumValue\022\r\n\005value\030\001 \001(\t*\202\002" - + "\n\023RawDocumentFileType\022&\n\"RAW_DOCUMENT_FI" - + "LE_TYPE_UNSPECIFIED\020\000\022\036\n\032RAW_DOCUMENT_FI" - + "LE_TYPE_PDF\020\001\022\037\n\033RAW_DOCUMENT_FILE_TYPE_" - + "DOCX\020\002\022\037\n\033RAW_DOCUMENT_FILE_TYPE_XLSX\020\003\022" - + "\037\n\033RAW_DOCUMENT_FILE_TYPE_PPTX\020\004\022\037\n\033RAW_" - + "DOCUMENT_FILE_TYPE_TEXT\020\005\022\037\n\033RAW_DOCUMEN" - + "T_FILE_TYPE_TIFF\020\006*\207\001\n\017ContentCategory\022 " - + "\n\034CONTENT_CATEGORY_UNSPECIFIED\020\000\022\032\n\026CONT" - + "ENT_CATEGORY_IMAGE\020\001\022\032\n\026CONTENT_CATEGORY" - + "_AUDIO\020\002\022\032\n\026CONTENT_CATEGORY_VIDEO\020\003B\365\001\n" - + "$com.google.cloud.contentwarehouse.v1B\rD" - + "ocumentProtoP\001ZPcloud.google.com/go/cont" - + "entwarehouse/apiv1/contentwarehousepb;co" - + "ntentwarehousepb\252\002 Google.Cloud.ContentW" - + "arehouse.V1\312\002 Google\\Cloud\\ContentWareho" - + "use\\V1\352\002#Google::Cloud::ContentWarehouse" - + "::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.documentai.v1.DocumentProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.DateTimeProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_Document_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_Document_descriptor, - new java.lang.String[] { - "Name", - "ReferenceId", - "DisplayName", - "Title", - "DisplayUri", - "DocumentSchemaName", - "PlainText", - "CloudAiDocument", - "StructuredContentUri", - "RawDocumentPath", - "InlineRawDocument", - "Properties", - "UpdateTime", - "CreateTime", - "RawDocumentFileType", - "AsyncEnabled", - "ContentCategory", - "TextExtractionDisabled", - "TextExtractionEnabled", - "Creator", - "Updater", - "DispositionTime", - "LegalHold", - "StructuredContent", - "RawDocument", - }); - internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor, - new java.lang.String[] { - "DocumentName", - "DisplayName", - "Snippet", - "DocumentIsFolder", - "UpdateTime", - "CreateTime", - "DeleteTime", - "DocumentIsRetentionFolder", - "DocumentIsLegalHoldFolder", - }); - internal_static_google_cloud_contentwarehouse_v1_Property_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_Property_descriptor, - new java.lang.String[] { - "Name", - "IntegerValues", - "FloatValues", - "TextValues", - "EnumValues", - "PropertyValues", - "DateTimeValues", - "MapProperty", - "TimestampValues", - "Values", - }); - internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor, - new java.lang.String[] { - "TimestampValue", "TextValue", "Value", - }); - internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor, - new java.lang.String[] { - "Properties", - }); - internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor, - new java.lang.String[] { - "Fields", - }); - internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor = - internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_contentwarehouse_v1_Value_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_Value_descriptor, - new java.lang.String[] { - "FloatValue", - "IntValue", - "StringValue", - "EnumValue", - "DatetimeValue", - "TimestampValue", - "BooleanValue", - "Kind", - }); - internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_contentwarehouse_v1_EnumValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor, - new java.lang.String[] { - "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.documentai.v1.DocumentProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.DateTimeProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java deleted file mode 100644 index 28acabee4fbc..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java +++ /dev/null @@ -1,267 +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/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class DocumentSchemaProto { - private DocumentSchemaProto() {} - - 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_contentwarehouse_v1_DocumentSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_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/contentwarehouse/v1/docum" - + "ent_schema.proto\022 google.cloud.contentwa" - + "rehouse.v1\032\037google/api/field_behavior.pr" - + "oto\032\031google/api/resource.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\255\003\n\016DocumentSche" - + "ma\022\014\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004" - + "\342A\001\002\022R\n\024property_definitions\030\003 \003(\01324.goo" - + "gle.cloud.contentwarehouse.v1.PropertyDe" - + "finition\022\032\n\022document_is_folder\030\004 \001(\010\0225\n\013" - + "update_time\030\005 \001(\0132\032.google.protobuf.Time" - + "stampB\004\342A\001\003\0225\n\013create_time\030\006 \001(\0132\032.googl" - + "e.protobuf.TimestampB\004\342A\001\003\022\023\n\013descriptio" - + "n\030\007 \001(\t:~\352A{\n.contentwarehouse.googleapi" - + "s.com/DocumentSchema\022Iprojects/{project}" - + "/locations/{location}/documentSchemas/{d" - + "ocument_schema}\"\336\t\n\022PropertyDefinition\022\022" - + "\n\004name\030\001 \001(\tB\004\342A\001\002\022\024\n\014display_name\030\014 \001(\t" - + "\022\025\n\ris_repeatable\030\002 \001(\010\022\025\n\ris_filterable" - + "\030\003 \001(\010\022\025\n\ris_searchable\030\004 \001(\010\022\023\n\013is_meta" - + "data\030\005 \001(\010\022\023\n\013is_required\030\016 \001(\010\022f\n\024retri" - + "eval_importance\030\022 \001(\0162H.google.cloud.con" - + "tentwarehouse.v1.PropertyDefinition.Retr" - + "ievalImportance\022T\n\024integer_type_options\030" - + "\007 \001(\01324.google.cloud.contentwarehouse.v1" - + ".IntegerTypeOptionsH\000\022P\n\022float_type_opti" - + "ons\030\010 \001(\01322.google.cloud.contentwarehous" - + "e.v1.FloatTypeOptionsH\000\022N\n\021text_type_opt" - + "ions\030\t \001(\01321.google.cloud.contentwarehou" - + "se.v1.TextTypeOptionsH\000\022V\n\025property_type" - + "_options\030\n \001(\01325.google.cloud.contentwar" - + "ehouse.v1.PropertyTypeOptionsH\000\022N\n\021enum_" - + "type_options\030\013 \001(\01321.google.cloud.conten" - + "twarehouse.v1.EnumTypeOptionsH\000\022W\n\026date_" - + "time_type_options\030\r \001(\01325.google.cloud.c" - + "ontentwarehouse.v1.DateTimeTypeOptionsH\000" - + "\022L\n\020map_type_options\030\017 \001(\01320.google.clou" - + "d.contentwarehouse.v1.MapTypeOptionsH\000\022X" - + "\n\026timestamp_type_options\030\020 \001(\01326.google." - + "cloud.contentwarehouse.v1.TimestampTypeO" - + "ptionsH\000\022Y\n\016schema_sources\030\023 \003(\0132A.googl" - + "e.cloud.contentwarehouse.v1.PropertyDefi" - + "nition.SchemaSource\0324\n\014SchemaSource\022\014\n\004n" - + "ame\030\001 \001(\t\022\026\n\016processor_type\030\002 \001(\t\"\177\n\023Ret" - + "rievalImportance\022$\n RETRIEVAL_IMPORTANCE" - + "_UNSPECIFIED\020\000\022\013\n\007HIGHEST\020\001\022\n\n\006HIGHER\020\002\022" - + "\010\n\004HIGH\020\003\022\n\n\006MEDIUM\020\004\022\007\n\003LOW\020\005\022\n\n\006LOWEST" - + "\020\006B\024\n\022value_type_options\"\024\n\022IntegerTypeO" - + "ptions\"\022\n\020FloatTypeOptions\"\021\n\017TextTypeOp" - + "tions\"\025\n\023DateTimeTypeOptions\"\020\n\016MapTypeO" - + "ptions\"\026\n\024TimestampTypeOptions\"o\n\023Proper" - + "tyTypeOptions\022X\n\024property_definitions\030\001 " - + "\003(\01324.google.cloud.contentwarehouse.v1.P" - + "ropertyDefinitionB\004\342A\001\002\"S\n\017EnumTypeOptio" - + "ns\022\035\n\017possible_values\030\001 \003(\tB\004\342A\001\002\022!\n\031val" - + "idation_check_disabled\030\002 \001(\010B\373\001\n$com.goo" - + "gle.cloud.contentwarehouse.v1B\023DocumentS" - + "chemaProtoP\001ZPcloud.google.com/go/conten" - + "twarehouse/apiv1/contentwarehousepb;cont" - + "entwarehousepb\252\002 Google.Cloud.ContentWar" - + "ehouse.V1\312\002 Google\\Cloud\\ContentWarehous" - + "e\\V1\352\002#Google::Cloud::ContentWarehouse::" - + "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_contentwarehouse_v1_DocumentSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "PropertyDefinitions", - "DocumentIsFolder", - "UpdateTime", - "CreateTime", - "Description", - }); - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "IsRepeatable", - "IsFilterable", - "IsSearchable", - "IsMetadata", - "IsRequired", - "RetrievalImportance", - "IntegerTypeOptions", - "FloatTypeOptions", - "TextTypeOptions", - "PropertyTypeOptions", - "EnumTypeOptions", - "DateTimeTypeOptions", - "MapTypeOptions", - "TimestampTypeOptions", - "SchemaSources", - "ValueTypeOptions", - }); - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor = - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor, - new java.lang.String[] { - "Name", "ProcessorType", - }); - internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor, - new java.lang.String[] { - "PropertyDefinitions", - }); - internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor, - new java.lang.String[] { - "PossibleValues", "ValidationCheckDisabled", - }); - 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.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java deleted file mode 100644 index 4c98e3a6a180..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java +++ /dev/null @@ -1,207 +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/contentwarehouse/v1/document_schema_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class DocumentSchemaServiceProto { - private DocumentSchemaServiceProto() {} - - 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_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_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/contentwarehouse/v1/docum" - + "ent_schema_service.proto\022 google.cloud.c" - + "ontentwarehouse.v1\032\034google/api/annotatio" - + "ns.proto\032\027google/api/client.proto\032\037googl" - + "e/api/field_behavior.proto\032\031google/api/r" - + "esource.proto\0326google/cloud/contentwareh" - + "ouse/v1/document_schema.proto\032\033google/pr" - + "otobuf/empty.proto\"\261\001\n\033CreateDocumentSch" - + "emaRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(con" - + "tentwarehouse.googleapis.com/Location\022O\n" - + "\017document_schema\030\002 \001(\01320.google.cloud.co" - + "ntentwarehouse.v1.DocumentSchemaB\004\342A\001\002\"a" - + "\n\030GetDocumentSchemaRequest\022E\n\004name\030\001 \001(\t" - + "B7\342A\001\002\372A0\n.contentwarehouse.googleapis.c" - + "om/DocumentSchema\"\265\001\n\033UpdateDocumentSche" - + "maRequest\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.conten" - + "twarehouse.googleapis.com/DocumentSchema" - + "\022O\n\017document_schema\030\002 \001(\01320.google.cloud" - + ".contentwarehouse.v1.DocumentSchemaB\004\342A\001" - + "\002\"d\n\033DeleteDocumentSchemaRequest\022E\n\004name" - + "\030\001 \001(\tB7\342A\001\002\372A0\n.contentwarehouse.google" - + "apis.com/DocumentSchema\"\206\001\n\032ListDocument" - + "SchemasRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n" - + "(contentwarehouse.googleapis.com/Locatio" - + "n\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" - + "\"\202\001\n\033ListDocumentSchemasResponse\022J\n\020docu" - + "ment_schemas\030\001 \003(\01320.google.cloud.conten" - + "twarehouse.v1.DocumentSchema\022\027\n\017next_pag" - + "e_token\030\002 \001(\t2\225\t\n\025DocumentSchemaService\022" - + "\356\001\n\024CreateDocumentSchema\022=.google.cloud." - + "contentwarehouse.v1.CreateDocumentSchema" - + "Request\0320.google.cloud.contentwarehouse." - + "v1.DocumentSchema\"e\332A\026parent,document_sc" - + "hema\202\323\344\223\002F\"3/v1/{parent=projects/*/locat" - + "ions/*}/documentSchemas:\017document_schema" - + "\022\336\001\n\024UpdateDocumentSchema\022=.google.cloud" - + ".contentwarehouse.v1.UpdateDocumentSchem" - + "aRequest\0320.google.cloud.contentwarehouse" - + ".v1.DocumentSchema\"U\332A\024name,document_sch" - + "ema\202\323\344\223\002823/v1/{name=projects/*/location" - + "s/*/documentSchemas/*}:\001*\022\305\001\n\021GetDocumen" - + "tSchema\022:.google.cloud.contentwarehouse." - + "v1.GetDocumentSchemaRequest\0320.google.clo" - + "ud.contentwarehouse.v1.DocumentSchema\"B\332" - + "A\004name\202\323\344\223\0025\0223/v1/{name=projects/*/locat" - + "ions/*/documentSchemas/*}\022\261\001\n\024DeleteDocu" - + "mentSchema\022=.google.cloud.contentwarehou" - + "se.v1.DeleteDocumentSchemaRequest\032\026.goog" - + "le.protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3/v1/{n" - + "ame=projects/*/locations/*/documentSchem" - + "as/*}\022\330\001\n\023ListDocumentSchemas\022<.google.c" - + "loud.contentwarehouse.v1.ListDocumentSch" - + "emasRequest\032=.google.cloud.contentwareho" - + "use.v1.ListDocumentSchemasResponse\"D\332A\006p" - + "arent\202\323\344\223\0025\0223/v1/{parent=projects/*/loca" - + "tions/*}/documentSchemas\032S\312A\037contentware" - + "house.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\202\002\n$com.go" - + "ogle.cloud.contentwarehouse.v1B\032Document" - + "SchemaServiceProtoP\001ZPcloud.google.com/g" - + "o/contentwarehouse/apiv1/contentwarehous" - + "epb;contentwarehousepb\252\002 Google.Cloud.Co" - + "ntentWarehouse.V1\312\002 Google\\Cloud\\Content" - + "Warehouse\\V1\352\002#Google::Cloud::ContentWar" - + "ehouse::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.contentwarehouse.v1.DocumentSchemaProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor, - new java.lang.String[] { - "Parent", "DocumentSchema", - }); - internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor, - new java.lang.String[] { - "Name", "DocumentSchema", - }); - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor, - new java.lang.String[] { - "DocumentSchemas", "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.contentwarehouse.v1.DocumentSchemaProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java deleted file mode 100644 index 342b042f404a..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java +++ /dev/null @@ -1,290 +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/contentwarehouse/v1/document_service.proto - -package com.google.cloud.contentwarehouse.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_contentwarehouse_v1_CreateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_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/contentwarehouse/v1/docum" - + "ent_service.proto\022 google.cloud.contentw" - + "arehouse.v1\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\031google/api/r" - + "esource.proto\032-google/cloud/contentwareh" - + "ouse/v1/common.proto\032/google/cloud/conte" - + "ntwarehouse/v1/document.proto\032?google/cl" - + "oud/contentwarehouse/v1/document_service" - + "_request.proto\0320google/cloud/contentware" - + "house/v1/histogram.proto\0322google/cloud/c" - + "ontentwarehouse/v1/rule_engine.proto\032\032go" - + "ogle/iam/v1/policy.proto\032#google/longrun" - + "ning/operations.proto\032\033google/protobuf/e" - + "mpty.proto\"\254\002\n\026CreateDocumentResponse\022<\n" - + "\010document\030\001 \001(\0132*.google.cloud.contentwa" - + "rehouse.v1.Document\022N\n\022rule_engine_outpu" - + "t\030\002 \001(\01322.google.cloud.contentwarehouse." - + "v1.RuleEngineOutput\022D\n\010metadata\030\003 \001(\01322." - + "google.cloud.contentwarehouse.v1.Respons" - + "eMetadata\022>\n\027long_running_operations\030\004 \003" - + "(\0132\035.google.longrunning.Operation\"\354\001\n\026Up" - + "dateDocumentResponse\022<\n\010document\030\001 \001(\0132*" - + ".google.cloud.contentwarehouse.v1.Docume" - + "nt\022N\n\022rule_engine_output\030\002 \001(\01322.google." - + "cloud.contentwarehouse.v1.RuleEngineOutp" - + "ut\022D\n\010metadata\030\003 \001(\01322.google.cloud.cont" - + "entwarehouse.v1.ResponseMetadata\"\243\001\n\010QAR" - + "esult\022H\n\nhighlights\030\001 \003(\01324.google.cloud" - + ".contentwarehouse.v1.QAResult.Highlight\022" - + "\030\n\020confidence_score\030\002 \001(\002\0323\n\tHighlight\022\023" - + "\n\013start_index\030\001 \001(\005\022\021\n\tend_index\030\002 \001(\005\"\225" - + "\004\n\027SearchDocumentsResponse\022f\n\022matching_d" - + "ocuments\030\001 \003(\0132J.google.cloud.contentwar" - + "ehouse.v1.SearchDocumentsResponse.Matchi" - + "ngDocument\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\nt" - + "otal_size\030\003 \001(\005\022D\n\010metadata\030\004 \001(\01322.goog" - + "le.cloud.contentwarehouse.v1.ResponseMet" - + "adata\022W\n\027histogram_query_results\030\006 \003(\01326" - + ".google.cloud.contentwarehouse.v1.Histog" - + "ramQueryResult\022\027\n\017question_answer\030\007 \001(\t\032" - + "\254\001\n\020MatchingDocument\022<\n\010document\030\001 \001(\0132*" - + ".google.cloud.contentwarehouse.v1.Docume" - + "nt\022\033\n\023search_text_snippet\030\002 \001(\t\022=\n\tqa_re" - + "sult\030\003 \001(\0132*.google.cloud.contentwarehou" - + "se.v1.QAResult\"\177\n\020FetchAclResponse\022%\n\006po" - + "licy\030\001 \001(\0132\025.google.iam.v1.Policy\022D\n\010met" - + "adata\030\002 \001(\01322.google.cloud.contentwareho" - + "use.v1.ResponseMetadata\"}\n\016SetAclRespons" - + "e\022%\n\006policy\030\001 \001(\0132\025.google.iam.v1.Policy" - + "\022D\n\010metadata\030\002 \001(\01322.google.cloud.conten" - + "twarehouse.v1.ResponseMetadata2\242\017\n\017Docum" - + "entService\022\317\001\n\016CreateDocument\0227.google.c" - + "loud.contentwarehouse.v1.CreateDocumentR" - + "equest\0328.google.cloud.contentwarehouse.v" - + "1.CreateDocumentResponse\"J\332A\017parent,docu" - + "ment\202\323\344\223\0022\"-/v1/{parent=projects/*/locat" - + "ions/*}/documents:\001*\022\371\001\n\013GetDocument\0224.g" - + "oogle.cloud.contentwarehouse.v1.GetDocum" - + "entRequest\032*.google.cloud.contentwarehou" - + "se.v1.Document\"\207\001\332A\004name\202\323\344\223\002z\"1/v1/{nam" - + "e=projects/*/locations/*/documents/*}:ge" - + "t:\001*ZB\"=/v1/{name=projects/*/locations/*" - + "/documents/referenceId/*}:get:\001*\022\216\002\n\016Upd" - + "ateDocument\0227.google.cloud.contentwareho" - + "use.v1.UpdateDocumentRequest\0328.google.cl" - + "oud.contentwarehouse.v1.UpdateDocumentRe" - + "sponse\"\210\001\332A\rname,document\202\323\344\223\002r2-/v1/{na" - + "me=projects/*/locations/*/documents/*}:\001" - + "*Z>29/v1/{name=projects/*/locations/*/do" - + "cuments/referenceId/*}:\001*\022\362\001\n\016DeleteDocu" - + "ment\0227.google.cloud.contentwarehouse.v1." - + "DeleteDocumentRequest\032\026.google.protobuf." - + "Empty\"\216\001\332A\004name\202\323\344\223\002\200\001\"4/v1/{name=projec" - + "ts/*/locations/*/documents/*}:delete:\001*Z" - + "E\"@/v1/{name=projects/*/locations/*/docu" - + "ments/referenceId/*}:delete:\001*\022\320\001\n\017Searc" - + "hDocuments\0228.google.cloud.contentwarehou" - + "se.v1.SearchDocumentsRequest\0329.google.cl" - + "oud.contentwarehouse.v1.SearchDocumentsR" - + "esponse\"H\332A\006parent\202\323\344\223\0029\"4/v1/{parent=pr" - + "ojects/*/locations/*}/documents:search:\001" - + "*\022\267\001\n\014LockDocument\0225.google.cloud.conten" - + "twarehouse.v1.LockDocumentRequest\032*.goog" - + "le.cloud.contentwarehouse.v1.Document\"D\332" - + "A\004name\202\323\344\223\0027\"2/v1/{name=projects/*/locat" - + "ions/*/documents/*}:lock:\001*\022\354\001\n\010FetchAcl" - + "\0221.google.cloud.contentwarehouse.v1.Fetc" - + "hAclRequest\0322.google.cloud.contentwareho" - + "use.v1.FetchAclResponse\"y\332A\010resource\202\323\344\223" - + "\002h\":/v1/{resource=projects/*/locations/*" - + "/documents/*}:fetchAcl:\001*Z\'\"\"/v1/{resour" - + "ce=projects/*}:fetchAcl:\001*\022\351\001\n\006SetAcl\022/." - + "google.cloud.contentwarehouse.v1.SetAclR" - + "equest\0320.google.cloud.contentwarehouse.v" - + "1.SetAclResponse\"|\332A\017resource,policy\202\323\344\223" - + "\002d\"8/v1/{resource=projects/*/locations/*" - + "/documents/*}:setAcl:\001*Z%\" /v1/{resource" - + "=projects/*}:setAcl:\001*\032S\312A\037contentwareho" - + "use.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platformB\374\001\n$com.goog" - + "le.cloud.contentwarehouse.v1B\024DocumentSe" - + "rviceProtoP\001ZPcloud.google.com/go/conten" - + "twarehouse/apiv1/contentwarehousepb;cont" - + "entwarehousepb\252\002 Google.Cloud.ContentWar" - + "ehouse.V1\312\002 Google\\Cloud\\ContentWarehous" - + "e\\V1\352\002#Google::Cloud::ContentWarehouse::" - + "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.ResourceProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor, - new java.lang.String[] { - "Document", "RuleEngineOutput", "Metadata", "LongRunningOperations", - }); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor, - new java.lang.String[] { - "Document", "RuleEngineOutput", "Metadata", - }); - internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor, - new java.lang.String[] { - "Highlights", "ConfidenceScore", - }); - internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor = - internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor, - new java.lang.String[] { - "StartIndex", "EndIndex", - }); - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor, - new java.lang.String[] { - "MatchingDocuments", - "NextPageToken", - "TotalSize", - "Metadata", - "HistogramQueryResults", - "QuestionAnswer", - }); - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor = - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor, - new java.lang.String[] { - "Document", "SearchTextSnippet", "QaResult", - }); - internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor, - new java.lang.String[] { - "Policy", "Metadata", - }); - internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor, - new java.lang.String[] { - "Policy", "Metadata", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java deleted file mode 100644 index 4591b8586f9f..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.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/contentwarehouse/v1/document_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class DocumentServiceRequestProto { - private DocumentServiceRequestProto() {} - - 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_contentwarehouse_v1_CloudAIDocumentOption_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_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/contentwarehouse/v1/docum" - + "ent_service_request.proto\022 google.cloud." - + "contentwarehouse.v1\032\037google/api/field_be" - + "havior.proto\032\031google/api/resource.proto\032" - + "-google/cloud/contentwarehouse/v1/common" - + ".proto\032/google/cloud/contentwarehouse/v1" - + "/document.proto\032.google/cloud/contentwar" - + "ehouse/v1/filters.proto\0320google/cloud/co" - + "ntentwarehouse/v1/histogram.proto\032\032googl" - + "e/iam/v1/policy.proto\032 google/protobuf/f" - + "ield_mask.proto\"\247\002\n\025CloudAIDocumentOptio" - + "n\022#\n\033enable_entities_conversions\030\001 \001(\010\022\230" - + "\001\n*customized_entities_properties_conver" - + "sions\030\002 \003(\0132d.google.cloud.contentwareho" - + "use.v1.CloudAIDocumentOption.CustomizedE" - + "ntitiesPropertiesConversionsEntry\032N\n,Cus" - + "tomizedEntitiesPropertiesConversionsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\236\003\n\025Cr" - + "eateDocumentRequest\022A\n\006parent\030\001 \001(\tB1\342A\001" - + "\002\372A*\n(contentwarehouse.googleapis.com/Lo" - + "cation\022B\n\010document\030\002 \001(\0132*.google.cloud." - + "contentwarehouse.v1.DocumentB\004\342A\001\002\022K\n\020re" - + "quest_metadata\030\003 \001(\01321.google.cloud.cont" - + "entwarehouse.v1.RequestMetadata\022%\n\006polic" - + "y\030\004 \001(\0132\025.google.iam.v1.Policy\022Y\n\030cloud_" - + "ai_document_option\030\005 \001(\01327.google.cloud." - + "contentwarehouse.v1.CloudAIDocumentOptio" - + "n\022/\n\013create_mask\030\006 \001(\0132\032.google.protobuf" - + ".FieldMask\"\242\001\n\022GetDocumentRequest\022?\n\004nam" - + "e\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehouse.googl" - + "eapis.com/Document\022K\n\020request_metadata\030\002" - + " \001(\01321.google.cloud.contentwarehouse.v1." - + "RequestMetadata\"\215\003\n\025UpdateDocumentReques" - + "t\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehou" - + "se.googleapis.com/Document\022B\n\010document\030\002" - + " \001(\0132*.google.cloud.contentwarehouse.v1." - + "DocumentB\004\342A\001\002\022K\n\020request_metadata\030\003 \001(\013" - + "21.google.cloud.contentwarehouse.v1.Requ" - + "estMetadata\022Y\n\030cloud_ai_document_option\030" - + "\005 \001(\01327.google.cloud.contentwarehouse.v1" - + ".CloudAIDocumentOption\022G\n\016update_options" - + "\030\006 \001(\0132/.google.cloud.contentwarehouse.v" - + "1.UpdateOptions\"\245\001\n\025DeleteDocumentReques" - + "t\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehou" - + "se.googleapis.com/Document\022K\n\020request_me" - + "tadata\030\002 \001(\01321.google.cloud.contentwareh" - + "ouse.v1.RequestMetadata\"\372\004\n\026SearchDocume" - + "ntsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(con" - + "tentwarehouse.googleapis.com/Location\022K\n" - + "\020request_metadata\030\003 \001(\01321.google.cloud.c" - + "ontentwarehouse.v1.RequestMetadata\022G\n\016do" - + "cument_query\030\004 \001(\0132/.google.cloud.conten" - + "twarehouse.v1.DocumentQuery\022\016\n\006offset\030\005 " - + "\001(\005\022\021\n\tpage_size\030\006 \001(\005\022\022\n\npage_token\030\007 \001" - + "(\t\022\020\n\010order_by\030\010 \001(\t\022K\n\021histogram_querie" - + "s\030\t \003(\01320.google.cloud.contentwarehouse." - + "v1.HistogramQuery\022\032\n\022require_total_size\030" - + "\n \001(\010\022c\n\021total_result_size\030\014 \001(\0162H.googl" - + "e.cloud.contentwarehouse.v1.SearchDocume" - + "ntsRequest.TotalResultSize\022\025\n\rqa_size_li" - + "mit\030\013 \001(\005\"Y\n\017TotalResultSize\022!\n\035TOTAL_RE" - + "SULT_SIZE_UNSPECIFIED\020\000\022\022\n\016ESTIMATED_SIZ" - + "E\020\001\022\017\n\013ACTUAL_SIZE\020\002\"\257\001\n\023LockDocumentReq" - + "uest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentware" - + "house.googleapis.com/Document\022\025\n\rcollect" - + "ion_id\030\002 \001(\t\022@\n\014locking_user\030\003 \001(\0132*.goo" - + "gle.cloud.contentwarehouse.v1.UserInfo\"\215" - + "\001\n\017FetchAclRequest\022\026\n\010resource\030\001 \001(\tB\004\342A" - + "\001\002\022K\n\020request_metadata\030\002 \001(\01321.google.cl" - + "oud.contentwarehouse.v1.RequestMetadata\022" - + "\025\n\rproject_owner\030\003 \001(\010\"\270\001\n\rSetAclRequest" - + "\022\026\n\010resource\030\001 \001(\tB\004\342A\001\002\022+\n\006policy\030\002 \001(\013" - + "2\025.google.iam.v1.PolicyB\004\342A\001\002\022K\n\020request" - + "_metadata\030\003 \001(\01321.google.cloud.contentwa" - + "rehouse.v1.RequestMetadata\022\025\n\rproject_ow" - + "ner\030\004 \001(\010B\203\002\n$com.google.cloud.contentwa" - + "rehouse.v1B\033DocumentServiceRequestProtoP" - + "\001ZPcloud.google.com/go/contentwarehouse/" - + "apiv1/contentwarehousepb;contentwarehous" - + "epb\252\002 Google.Cloud.ContentWarehouse.V1\312\002" - + " Google\\Cloud\\ContentWarehouse\\V1\352\002#Goog" - + "le::Cloud::ContentWarehouse::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.contentwarehouse.v1.CommonProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.FiltersProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor, - new java.lang.String[] { - "EnableEntitiesConversions", "CustomizedEntitiesPropertiesConversions", - }); - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor = - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "Document", - "RequestMetadata", - "Policy", - "CloudAiDocumentOption", - "CreateMask", - }); - internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor, - new java.lang.String[] { - "Name", "RequestMetadata", - }); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor, - new java.lang.String[] { - "Name", "Document", "RequestMetadata", "CloudAiDocumentOption", "UpdateOptions", - }); - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor, - new java.lang.String[] { - "Name", "RequestMetadata", - }); - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor, - new java.lang.String[] { - "Parent", - "RequestMetadata", - "DocumentQuery", - "Offset", - "PageSize", - "PageToken", - "OrderBy", - "HistogramQueries", - "RequireTotalSize", - "TotalResultSize", - "QaSizeLimit", - }); - internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor, - new java.lang.String[] { - "Name", "CollectionId", "LockingUser", - }); - internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor, - new java.lang.String[] { - "Resource", "RequestMetadata", "ProjectOwner", - }); - internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor, - new java.lang.String[] { - "Resource", "Policy", "RequestMetadata", "ProjectOwner", - }); - 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.contentwarehouse.v1.CommonProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.FiltersProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java deleted file mode 100644 index 839f3d3d9073..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java +++ /dev/null @@ -1,183 +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/contentwarehouse/v1/filters.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class FiltersProto { - private FiltersProto() {} - - 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_contentwarehouse_v1_DocumentQuery_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_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/contentwarehouse/v1/filte" - + "rs.proto\022 google.cloud.contentwarehouse." - + "v1\032\031google/api/resource.proto\032\032google/ty" - + "pe/interval.proto\"\235\004\n\rDocumentQuery\022\r\n\005q" - + "uery\030\001 \001(\t\022\023\n\013is_nl_query\030\014 \001(\010\022\"\n\026custo" - + "m_property_filter\030\004 \001(\tB\002\030\001\022B\n\014time_filt" - + "ers\030\005 \003(\0132,.google.cloud.contentwarehous" - + "e.v1.TimeFilter\022\035\n\025document_schema_names" - + "\030\006 \003(\t\022I\n\017property_filter\030\007 \003(\01320.google" - + ".cloud.contentwarehouse.v1.PropertyFilte" - + "r\022J\n\020file_type_filter\030\010 \001(\01320.google.clo" - + "ud.contentwarehouse.v1.FileTypeFilter\022\032\n" - + "\022folder_name_filter\030\t \001(\t\022\034\n\024document_na" - + "me_filter\030\016 \003(\t\022\025\n\rquery_context\030\n \003(\t\022\037" - + "\n\027document_creator_filter\030\013 \003(\t\022X\n\027custo" - + "m_weights_metadata\030\r \001(\01327.google.cloud." - + "contentwarehouse.v1.CustomWeightsMetadat" - + "a\"\344\001\n\nTimeFilter\022)\n\ntime_range\030\001 \001(\0132\025.g" - + "oogle.type.Interval\022J\n\ntime_field\030\002 \001(\0162" - + "6.google.cloud.contentwarehouse.v1.TimeF" - + "ilter.TimeField\"_\n\tTimeField\022\032\n\026TIME_FIE" - + "LD_UNSPECIFIED\020\000\022\017\n\013CREATE_TIME\020\001\022\017\n\013UPD" - + "ATE_TIME\020\002\022\024\n\020DISPOSITION_TIME\020\003\"v\n\016Prop" - + "ertyFilter\022Q\n\024document_schema_name\030\001 \001(\t" - + "B3\372A0\n.contentwarehouse.googleapis.com/D" - + "ocumentSchema\022\021\n\tcondition\030\002 \001(\t\"\250\001\n\016Fil" - + "eTypeFilter\022L\n\tfile_type\030\001 \001(\01629.google." - + "cloud.contentwarehouse.v1.FileTypeFilter" - + ".FileType\"H\n\010FileType\022\031\n\025FILE_TYPE_UNSPE" - + "CIFIED\020\000\022\007\n\003ALL\020\001\022\n\n\006FOLDER\020\002\022\014\n\010DOCUMEN" - + "T\020\003\"u\n\025CustomWeightsMetadata\022\\\n\032weighted" - + "_schema_properties\030\001 \003(\01328.google.cloud." - + "contentwarehouse.v1.WeightedSchemaProper" - + "ty\"\203\001\n\026WeightedSchemaProperty\022Q\n\024documen" - + "t_schema_name\030\001 \001(\tB3\372A0\n.contentwarehou" - + "se.googleapis.com/DocumentSchema\022\026\n\016prop" - + "erty_names\030\002 \003(\tB\364\001\n$com.google.cloud.co" - + "ntentwarehouse.v1B\014FiltersProtoP\001ZPcloud" - + ".google.com/go/contentwarehouse/apiv1/co" - + "ntentwarehousepb;contentwarehousepb\252\002 Go" - + "ogle.Cloud.ContentWarehouse.V1\312\002 Google\\" - + "Cloud\\ContentWarehouse\\V1\352\002#Google::Clou" - + "d::ContentWarehouse::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.type.IntervalProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor, - new java.lang.String[] { - "Query", - "IsNlQuery", - "CustomPropertyFilter", - "TimeFilters", - "DocumentSchemaNames", - "PropertyFilter", - "FileTypeFilter", - "FolderNameFilter", - "DocumentNameFilter", - "QueryContext", - "DocumentCreatorFilter", - "CustomWeightsMetadata", - }); - internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor, - new java.lang.String[] { - "TimeRange", "TimeField", - }); - internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor, - new java.lang.String[] { - "DocumentSchemaName", "Condition", - }); - internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor, - new java.lang.String[] { - "FileType", - }); - internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor, - new java.lang.String[] { - "WeightedSchemaProperties", - }); - internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor, - new java.lang.String[] { - "DocumentSchemaName", "PropertyNames", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.type.IntervalProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java deleted file mode 100644 index 1cc44d2ed178..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java +++ /dev/null @@ -1,24 +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/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface FloatTypeOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.FloatTypeOptions) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java deleted file mode 100644 index 47029032eecb..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/contentwarehouse/v1/document_schema_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface GetDocumentSchemaRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the document schema to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the document schema to retrieve.
-   * 
- * - * - * 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-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java deleted file mode 100644 index 34c305e3a059..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/contentwarehouse/v1/ruleset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface GetRuleSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetRuleSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the rule set to retrieve.
-   * Format:
-   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the rule set to retrieve.
-   * Format:
-   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java deleted file mode 100644 index aa42787e87b5..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/contentwarehouse/v1/synonymset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface GetSynonymSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetSynonymSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the synonymSet to retrieve
-   * Format:
-   * projects/{project_number}/locations/{location}/synonymSets/{context}.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the synonymSet to retrieve
-   * Format:
-   * projects/{project_number}/locations/{location}/synonymSets/{context}.
-   * 
- * - * - * 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-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java deleted file mode 100644 index 84d267bea01a..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.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/contentwarehouse/v1/histogram.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class HistogramProto { - private HistogramProto() {} - - 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_contentwarehouse_v1_HistogramQuery_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_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/contentwarehouse/v1/histo" - + "gram.proto\022 google.cloud.contentwarehous" - + "e.v1\032\037google/api/field_behavior.proto\032\031g" - + "oogle/api/resource.proto\"\251\001\n\016HistogramQu" - + "ery\022\027\n\017histogram_query\030\001 \001(\t\022#\n\033require_" - + "precise_result_size\030\002 \001(\010\022Y\n\007filters\030\003 \001" - + "(\0132B.google.cloud.contentwarehouse.v1.Hi" - + "stogramQueryPropertyNameFilterB\004\342A\001\001\"\272\002\n" - + " HistogramQueryPropertyNameFilter\022M\n\020doc" - + "ument_schemas\030\001 \003(\tB3\372A0\n.contentwarehou" - + "se.googleapis.com/DocumentSchema\022\026\n\016prop" - + "erty_names\030\002 \003(\t\022a\n\006y_axis\030\003 \001(\0162Q.googl" - + "e.cloud.contentwarehouse.v1.HistogramQue" - + "ryPropertyNameFilter.HistogramYAxis\"L\n\016H" - + "istogramYAxis\022\034\n\030HISTOGRAM_YAXIS_DOCUMEN" - + "T\020\000\022\034\n\030HISTOGRAM_YAXIS_PROPERTY\020\001\"\273\001\n\024Hi" - + "stogramQueryResult\022\027\n\017histogram_query\030\001 " - + "\001(\t\022X\n\thistogram\030\002 \003(\0132E.google.cloud.co" - + "ntentwarehouse.v1.HistogramQueryResult.H" - + "istogramEntry\0320\n\016HistogramEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001B\366\001\n$com.google.c" - + "loud.contentwarehouse.v1B\016HistogramProto" - + "P\001ZPcloud.google.com/go/contentwarehouse" - + "/apiv1/contentwarehousepb;contentwarehou" - + "sepb\252\002 Google.Cloud.ContentWarehouse.V1\312" - + "\002 Google\\Cloud\\ContentWarehouse\\V1\352\002#Goo" - + "gle::Cloud::ContentWarehouse::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(), - }); - internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor, - new java.lang.String[] { - "HistogramQuery", "RequirePreciseResultSize", "Filters", - }); - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor, - new java.lang.String[] { - "DocumentSchemas", "PropertyNames", "YAxis", - }); - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor, - new java.lang.String[] { - "HistogramQuery", "Histogram", - }); - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor = - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java deleted file mode 100644 index dfac3e42de2d..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java +++ /dev/null @@ -1,24 +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/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface IntegerTypeOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.IntegerTypeOptions) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java deleted file mode 100644 index 760fb216dc68..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java +++ /dev/null @@ -1,24 +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/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface MapTypeOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.MapTypeOptions) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java deleted file mode 100644 index a785ff999cc2..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java +++ /dev/null @@ -1,129 +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/contentwarehouse/v1/pipeline_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class PipelineServiceProto { - private PipelineServiceProto() {} - - 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_contentwarehouse_v1_RunPipelineRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_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/contentwarehouse/v1/pipel" - + "ine_service.proto\022 google.cloud.contentw" - + "arehouse.v1\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032-google/cloud/contentwarehouse/v1" - + "/common.proto\0320google/cloud/contentwareh" - + "ouse/v1/pipelines.proto\032#google/longrunn" - + "ing/operations.proto\"\272\004\n\022RunPipelineRequ" - + "est\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareh" - + "ouse.googleapis.com/Location\022R\n\023gcs_inge" - + "st_pipeline\030\002 \001(\01323.google.cloud.content" - + "warehouse.v1.GcsIngestPipelineH\000\022|\n*gcs_" - + "ingest_with_doc_ai_processors_pipeline\030\003" - + " \001(\0132F.google.cloud.contentwarehouse.v1." - + "GcsIngestWithDocAiProcessorsPipelineH\000\022T" - + "\n\023export_cdw_pipeline\030\004 \001(\01325.google.clo" - + "ud.contentwarehouse.v1.ExportToCdwPipeli" - + "neH\000\022b\n\034process_with_doc_ai_pipeline\030\005 \001" - + "(\0132:.google.cloud.contentwarehouse.v1.Pr" - + "ocessWithDocAiPipelineH\000\022K\n\020request_meta" - + "data\030\006 \001(\01321.google.cloud.contentwarehou" - + "se.v1.RequestMetadataB\n\n\010pipeline2\271\002\n\017Pi" - + "pelineService\022\320\001\n\013RunPipeline\0224.google.c" - + "loud.contentwarehouse.v1.RunPipelineRequ" - + "est\032\035.google.longrunning.Operation\"l\312A*\n" - + "\023RunPipelineResponse\022\023RunPipelineMetadat" - + "a\332A\004name\202\323\344\223\0022\"-/v1/{name=projects/*/loc" - + "ations/*}:runPipeline:\001*\032S\312A\037contentware" - + "house.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\374\001\n$com.go" - + "ogle.cloud.contentwarehouse.v1B\024Pipeline" - + "ServiceProtoP\001ZPcloud.google.com/go/cont" - + "entwarehouse/apiv1/contentwarehousepb;co" - + "ntentwarehousepb\252\002 Google.Cloud.ContentW" - + "arehouse.V1\312\002 Google\\Cloud\\ContentWareho" - + "use\\V1\352\002#Google::Cloud::ContentWarehouse" - + "::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.contentwarehouse.v1.CommonProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.PipelinesProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor, - new java.lang.String[] { - "Name", - "GcsIngestPipeline", - "GcsIngestWithDocAiProcessorsPipeline", - "ExportCdwPipeline", - "ProcessWithDocAiPipeline", - "RequestMetadata", - "Pipeline", - }); - 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.contentwarehouse.v1.CommonProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.PipelinesProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java deleted file mode 100644 index e61fbd318215..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java +++ /dev/null @@ -1,293 +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/contentwarehouse/v1/pipelines.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class PipelinesProto { - private PipelinesProto() {} - - 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_contentwarehouse_v1_RunPipelineResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_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/contentwarehouse/v1/pipel" - + "ines.proto\022 google.cloud.contentwarehous" - + "e.v1\032\037google/api/field_behavior.proto\032\031g" - + "oogle/api/resource.proto\032-google/cloud/c" - + "ontentwarehouse/v1/common.proto\032\032google/" - + "iam/v1/policy.proto\032\027google/rpc/status.p" - + "roto\"\025\n\023RunPipelineResponse\"\372\007\n\023RunPipel" - + "ineMetadata\022\030\n\020total_file_count\030\001 \001(\005\022\031\n" - + "\021failed_file_count\030\002 \001(\005\022=\n\tuser_info\030\003 " - + "\001(\0132*.google.cloud.contentwarehouse.v1.U" - + "serInfo\022w\n\034gcs_ingest_pipeline_metadata\030" - + "\004 \001(\0132O.google.cloud.contentwarehouse.v1" - + ".RunPipelineMetadata.GcsIngestPipelineMe" - + "tadataH\000\022|\n\037export_to_cdw_pipeline_metad" - + "ata\030\006 \001(\0132Q.google.cloud.contentwarehous" - + "e.v1.RunPipelineMetadata.ExportToCdwPipe" - + "lineMetadataH\000\022\207\001\n%process_with_doc_ai_p" - + "ipeline_metadata\030\007 \001(\0132V.google.cloud.co" - + "ntentwarehouse.v1.RunPipelineMetadata.Pr" - + "ocessWithDocAiPipelineMetadataH\000\022t\n\034indi" - + "vidual_document_statuses\030\005 \003(\0132N.google." - + "cloud.contentwarehouse.v1.RunPipelineMet" - + "adata.IndividualDocumentStatus\032/\n\031GcsIng" - + "estPipelineMetadata\022\022\n\ninput_path\030\001 \001(\t\032" - + "]\n\033ExportToCdwPipelineMetadata\022\021\n\tdocume" - + "nts\030\001 \003(\t\022\026\n\016doc_ai_dataset\030\002 \001(\t\022\023\n\013out" - + "put_path\030\003 \001(\t\032~\n ProcessWithDocAiPipeli" - + "neMetadata\022\021\n\tdocuments\030\001 \003(\t\022G\n\016process" - + "or_info\030\002 \001(\0132/.google.cloud.contentware" - + "house.v1.ProcessorInfo\032S\n\030IndividualDocu" - + "mentStatus\022\023\n\013document_id\030\001 \001(\t\022\"\n\006statu" - + "s\030\002 \001(\0132\022.google.rpc.StatusB\023\n\021pipeline_" - + "metadata\"S\n\rProcessorInfo\022\026\n\016processor_n" - + "ame\030\001 \001(\t\022\025\n\rdocument_type\030\002 \001(\t\022\023\n\013sche" - + "ma_name\030\003 \001(\t\"\211\001\n\024IngestPipelineConfig\0222" - + "\n\023document_acl_policy\030\001 \001(\0132\025.google.iam" - + ".v1.Policy\022\'\n\037enable_document_text_extra" - + "ction\030\002 \001(\010\022\024\n\006folder\030\003 \001(\tB\004\342A\001\001\"\314\001\n\021Gc" - + "sIngestPipeline\022\022\n\ninput_path\030\001 \001(\t\022\023\n\013s" - + "chema_name\030\002 \001(\t\022\026\n\016processor_type\030\003 \001(\t" - + "\022\037\n\027skip_ingested_documents\030\004 \001(\010\022U\n\017pip" - + "eline_config\030\005 \001(\01326.google.cloud.conten" - + "twarehouse.v1.IngestPipelineConfigB\004\342A\001\001" - + "\"\203\003\n$GcsIngestWithDocAiProcessorsPipelin" - + "e\022\022\n\ninput_path\030\001 \001(\t\022V\n\035split_classify_" - + "processor_info\030\002 \001(\0132/.google.cloud.cont" - + "entwarehouse.v1.ProcessorInfo\022P\n\027extract" - + "_processor_infos\030\003 \003(\0132/.google.cloud.co" - + "ntentwarehouse.v1.ProcessorInfo\022%\n\035proce" - + "ssor_results_folder_path\030\004 \001(\t\022\037\n\027skip_i" - + "ngested_documents\030\005 \001(\010\022U\n\017pipeline_conf" - + "ig\030\006 \001(\01326.google.cloud.contentwarehouse" - + ".v1.IngestPipelineConfigB\004\342A\001\001\"\200\001\n\023Expor" - + "tToCdwPipeline\022\021\n\tdocuments\030\001 \003(\t\022\032\n\022exp" - + "ort_folder_path\030\002 \001(\t\022\034\n\016doc_ai_dataset\030" - + "\003 \001(\tB\004\342A\001\001\022\034\n\024training_split_ratio\030\004 \001(" - + "\002\"\271\001\n\030ProcessWithDocAiPipeline\022\021\n\tdocume" - + "nts\030\001 \003(\t\022\032\n\022export_folder_path\030\002 \001(\t\022G\n" - + "\016processor_info\030\003 \001(\0132/.google.cloud.con" - + "tentwarehouse.v1.ProcessorInfo\022%\n\035proces" - + "sor_results_folder_path\030\004 \001(\tB\366\001\n$com.go" - + "ogle.cloud.contentwarehouse.v1B\016Pipeline" - + "sProtoP\001ZPcloud.google.com/go/contentwar" - + "ehouse/apiv1/contentwarehousepb;contentw" - + "arehousepb\252\002 Google.Cloud.ContentWarehou" - + "se.V1\312\002 Google\\Cloud\\ContentWarehouse\\V1" - + "\352\002#Google::Cloud::ContentWarehouse::V1b\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.cloud.contentwarehouse.v1.CommonProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor, - new java.lang.String[] { - "TotalFileCount", - "FailedFileCount", - "UserInfo", - "GcsIngestPipelineMetadata", - "ExportToCdwPipelineMetadata", - "ProcessWithDocAiPipelineMetadata", - "IndividualDocumentStatuses", - "PipelineMetadata", - }); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor = - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor, - new java.lang.String[] { - "InputPath", - }); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor = - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor, - new java.lang.String[] { - "Documents", "DocAiDataset", "OutputPath", - }); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor = - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor, - new java.lang.String[] { - "Documents", "ProcessorInfo", - }); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor = - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor, - new java.lang.String[] { - "DocumentId", "Status", - }); - internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor, - new java.lang.String[] { - "ProcessorName", "DocumentType", "SchemaName", - }); - internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor, - new java.lang.String[] { - "DocumentAclPolicy", "EnableDocumentTextExtraction", "Folder", - }); - internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor, - new java.lang.String[] { - "InputPath", "SchemaName", "ProcessorType", "SkipIngestedDocuments", "PipelineConfig", - }); - internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor, - new java.lang.String[] { - "InputPath", - "SplitClassifyProcessorInfo", - "ExtractProcessorInfos", - "ProcessorResultsFolderPath", - "SkipIngestedDocuments", - "PipelineConfig", - }); - internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor, - new java.lang.String[] { - "Documents", "ExportFolderPath", "DocAiDataset", "TrainingSplitRatio", - }); - internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor, - new java.lang.String[] { - "Documents", "ExportFolderPath", "ProcessorInfo", "ProcessorResultsFolderPath", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java deleted file mode 100644 index 2040623ad3b5..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java +++ /dev/null @@ -1,89 +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/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface PropertyTypeOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PropertyTypeOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. List of property definitions.
-   * 
- * - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getPropertyDefinitionsList(); - /** - * - * - *
-   * Required. List of property definitions.
-   * 
- * - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index); - /** - * - * - *
-   * Required. List of property definitions.
-   * 
- * - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getPropertyDefinitionsCount(); - /** - * - * - *
-   * Required. List of property definitions.
-   * 
- * - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getPropertyDefinitionsOrBuilderList(); - /** - * - * - *
-   * Required. List of property definitions.
-   * 
- * - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( - int index); -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java deleted file mode 100644 index 7839b4c04f29..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java +++ /dev/null @@ -1,375 +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/contentwarehouse/v1/rule_engine.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class RuleEngineProto { - private RuleEngineProto() {} - - 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_contentwarehouse_v1_RuleSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ActionOutput_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/contentwarehouse/v1/rule_" - + "engine.proto\022 google.cloud.contentwareho" - + "use.v1\032\037google/api/field_behavior.proto\032" - + "\031google/api/resource.proto\032\032google/iam/v" - + "1/policy.proto\"\336\001\n\007RuleSet\022\014\n\004name\030\006 \001(\t" - + "\022\023\n\013description\030\001 \001(\t\022\016\n\006source\030\002 \001(\t\0225\n" - + "\005rules\030\003 \003(\0132&.google.cloud.contentwareh" - + "ouse.v1.Rule:i\352Af\n\'contentwarehouse.goog" - + "leapis.com/RuleSet\022;projects/{project}/l" - + "ocations/{location}/ruleSets/{rule_set}\"" - + "\246\002\n\004Rule\022\023\n\013description\030\001 \001(\t\022\017\n\007rule_id" - + "\030\002 \001(\t\022H\n\014trigger_type\030\003 \001(\01622.google.cl" - + "oud.contentwarehouse.v1.Rule.TriggerType" - + "\022\021\n\tcondition\030\004 \001(\t\0229\n\007actions\030\005 \003(\0132(.g" - + "oogle.cloud.contentwarehouse.v1.Action\"`" - + "\n\013TriggerType\022\013\n\007UNKNOWN\020\000\022\r\n\tON_CREATE\020" - + "\001\022\r\n\tON_UPDATE\020\004\022\022\n\016ON_CREATE_LINK\020\007\022\022\n\016" - + "ON_DELETE_LINK\020\010\"\352\004\n\006Action\022\021\n\taction_id" - + "\030\001 \001(\t\022O\n\016access_control\030\002 \001(\01325.google." - + "cloud.contentwarehouse.v1.AccessControlA" - + "ctionH\000\022Q\n\017data_validation\030\003 \001(\01326.googl" - + "e.cloud.contentwarehouse.v1.DataValidati" - + "onActionH\000\022I\n\013data_update\030\004 \001(\01322.google" - + ".cloud.contentwarehouse.v1.DataUpdateAct" - + "ionH\000\022L\n\radd_to_folder\030\005 \001(\01323.google.cl" - + "oud.contentwarehouse.v1.AddToFolderActio" - + "nH\000\022M\n\022publish_to_pub_sub\030\006 \001(\0132/.google" - + ".cloud.contentwarehouse.v1.PublishAction" - + "H\000\022]\n\031remove_from_folder_action\030\t \001(\01328." - + "google.cloud.contentwarehouse.v1.RemoveF" - + "romFolderActionH\000\022X\n\026delete_document_act" - + "ion\030\n \001(\01326.google.cloud.contentwarehous" - + "e.v1.DeleteDocumentActionH\000B\010\n\006action\"\206\002" - + "\n\023AccessControlAction\022[\n\016operation_type\030" - + "\001 \001(\0162C.google.cloud.contentwarehouse.v1" - + ".AccessControlAction.OperationType\022%\n\006po" - + "licy\030\002 \001(\0132\025.google.iam.v1.Policy\"k\n\rOpe" - + "rationType\022\013\n\007UNKNOWN\020\000\022\026\n\022ADD_POLICY_BI" - + "NDING\020\001\022\031\n\025REMOVE_POLICY_BINDING\020\002\022\032\n\026RE" - + "PLACE_POLICY_BINDING\020\003\"\245\001\n\024DataValidatio" - + "nAction\022Z\n\nconditions\030\001 \003(\0132F.google.clo" - + "ud.contentwarehouse.v1.DataValidationAct" - + "ion.ConditionsEntry\0321\n\017ConditionsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\224\001\n\020DataU" - + "pdateAction\022P\n\007entries\030\001 \003(\0132?.google.cl" - + "oud.contentwarehouse.v1.DataUpdateAction" - + ".EntriesEntry\032.\n\014EntriesEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\021AddToFolderActi" - + "on\022>\n\007folders\030\001 \003(\tB-\372A*\n(contentwarehou" - + "se.googleapis.com/Document\"j\n\026RemoveFrom" - + "FolderAction\022\021\n\tcondition\030\001 \001(\t\022=\n\006folde" - + "r\030\002 \001(\tB-\372A*\n(contentwarehouse.googleapi" - + "s.com/Document\"3\n\rPublishAction\022\020\n\010topic" - + "_id\030\001 \001(\t\022\020\n\010messages\030\002 \003(\t\"2\n\024DeleteDoc" - + "umentAction\022\032\n\022enable_hard_delete\030\001 \001(\010\"" - + "\327\001\n\020RuleEngineOutput\022\025\n\rdocument_name\030\003 " - + "\001(\t\022T\n\025rule_evaluator_output\030\001 \001(\01325.goo" - + "gle.cloud.contentwarehouse.v1.RuleEvalua" - + "torOutput\022V\n\026action_executor_output\030\002 \001(" - + "\01326.google.cloud.contentwarehouse.v1.Act" - + "ionExecutorOutput\"\333\001\n\023RuleEvaluatorOutpu" - + "t\022?\n\017triggered_rules\030\001 \003(\0132&.google.clou" - + "d.contentwarehouse.v1.Rule\022=\n\rmatched_ru" - + "les\030\002 \003(\0132&.google.cloud.contentwarehous" - + "e.v1.Rule\022D\n\rinvalid_rules\030\003 \003(\0132-.googl" - + "e.cloud.contentwarehouse.v1.InvalidRule\"" - + "R\n\013InvalidRule\0224\n\004rule\030\001 \001(\0132&.google.cl" - + "oud.contentwarehouse.v1.Rule\022\r\n\005error\030\002 " - + "\001(\t\"e\n\024ActionExecutorOutput\022M\n\022rule_acti" - + "ons_pairs\030\001 \003(\01321.google.cloud.contentwa" - + "rehouse.v1.RuleActionsPair\"\217\001\n\017RuleActio" - + "nsPair\0224\n\004rule\030\001 \001(\0132&.google.cloud.cont" - + "entwarehouse.v1.Rule\022F\n\016action_outputs\030\002" - + " \003(\0132..google.cloud.contentwarehouse.v1." - + "ActionOutput\"\356\001\n\014ActionOutput\022\021\n\taction_" - + "id\030\001 \001(\t\022J\n\014action_state\030\002 \001(\01624.google." - + "cloud.contentwarehouse.v1.ActionOutput.S" - + "tate\022\026\n\016output_message\030\003 \001(\t\"g\n\005State\022\013\n" - + "\007UNKNOWN\020\000\022\024\n\020ACTION_SUCCEEDED\020\001\022\021\n\rACTI" - + "ON_FAILED\020\002\022\024\n\020ACTION_TIMED_OUT\020\003\022\022\n\016ACT" - + "ION_PENDING\020\004B\367\001\n$com.google.cloud.conte" - + "ntwarehouse.v1B\017RuleEngineProtoP\001ZPcloud" - + ".google.com/go/contentwarehouse/apiv1/co" - + "ntentwarehousepb;contentwarehousepb\252\002 Go" - + "ogle.Cloud.ContentWarehouse.V1\312\002 Google\\" - + "Cloud\\ContentWarehouse\\V1\352\002#Google::Clou" - + "d::ContentWarehouse::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.iam.v1.PolicyProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor, - new java.lang.String[] { - "Name", "Description", "Source", "Rules", - }); - internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor, - new java.lang.String[] { - "Description", "RuleId", "TriggerType", "Condition", "Actions", - }); - internal_static_google_cloud_contentwarehouse_v1_Action_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_Action_descriptor, - new java.lang.String[] { - "ActionId", - "AccessControl", - "DataValidation", - "DataUpdate", - "AddToFolder", - "PublishToPubSub", - "RemoveFromFolderAction", - "DeleteDocumentAction", - "Action", - }); - internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor, - new java.lang.String[] { - "OperationType", "Policy", - }); - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor, - new java.lang.String[] { - "Conditions", - }); - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor = - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor, - new java.lang.String[] { - "Entries", - }); - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor = - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor, - new java.lang.String[] { - "Folders", - }); - internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor, - new java.lang.String[] { - "Condition", "Folder", - }); - internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor, - new java.lang.String[] { - "TopicId", "Messages", - }); - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor, - new java.lang.String[] { - "EnableHardDelete", - }); - internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor, - new java.lang.String[] { - "DocumentName", "RuleEvaluatorOutput", "ActionExecutorOutput", - }); - internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor, - new java.lang.String[] { - "TriggeredRules", "MatchedRules", "InvalidRules", - }); - internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor, - new java.lang.String[] { - "Rule", "Error", - }); - internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor, - new java.lang.String[] { - "RuleActionsPairs", - }); - internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor, - new java.lang.String[] { - "Rule", "ActionOutputs", - }); - internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_contentwarehouse_v1_ActionOutput_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor, - new java.lang.String[] { - "ActionId", "ActionState", "OutputMessage", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java deleted file mode 100644 index 73ac514e7747..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java +++ /dev/null @@ -1,105 +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/contentwarehouse/v1/ruleset_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class RuleSetServiceProto { - private RuleSetServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/contentwarehouse/v1/rules" - + "et_service.proto\022 google.cloud.contentwa" - + "rehouse.v1\032\034google/api/annotations.proto" - + "\032\027google/api/client.proto\0322google/cloud/" - + "contentwarehouse/v1/rule_engine.proto\032>g" - + "oogle/cloud/contentwarehouse/v1/ruleset_" - + "service_request.proto\032\033google/protobuf/e" - + "mpty.proto2\364\007\n\016RuleSetService\022\304\001\n\rCreate" - + "RuleSet\0226.google.cloud.contentwarehouse." - + "v1.CreateRuleSetRequest\032).google.cloud.c" - + "ontentwarehouse.v1.RuleSet\"P\332A\017parent,ru" - + "le_set\202\323\344\223\0028\",/v1/{parent=projects/*/loc" - + "ations/*}/ruleSets:\010rule_set\022\251\001\n\nGetRule" - + "Set\0223.google.cloud.contentwarehouse.v1.G" - + "etRuleSetRequest\032).google.cloud.contentw" - + "arehouse.v1.RuleSet\";\332A\004name\202\323\344\223\002.\022,/v1/" - + "{name=projects/*/locations/*/ruleSets/*}" - + "\022\273\001\n\rUpdateRuleSet\0226.google.cloud.conten" - + "twarehouse.v1.UpdateRuleSetRequest\032).goo" - + "gle.cloud.contentwarehouse.v1.RuleSet\"G\332" - + "A\rname,rule_set\202\323\344\223\00212,/v1/{name=project" - + "s/*/locations/*/ruleSets/*}:\001*\022\234\001\n\rDelet" - + "eRuleSet\0226.google.cloud.contentwarehouse" - + ".v1.DeleteRuleSetRequest\032\026.google.protob" - + "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1/{name=proje" - + "cts/*/locations/*/ruleSets/*}\022\274\001\n\014ListRu" - + "leSets\0225.google.cloud.contentwarehouse.v" - + "1.ListRuleSetsRequest\0326.google.cloud.con" - + "tentwarehouse.v1.ListRuleSetsResponse\"=\332" - + "A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/l" - + "ocations/*}/ruleSets\032S\312A\037contentwarehous" - + "e.googleapis.com\322A.https://www.googleapi" - + "s.com/auth/cloud-platformB\373\001\n$com.google" - + ".cloud.contentwarehouse.v1B\023RuleSetServi" - + "ceProtoP\001ZPcloud.google.com/go/contentwa" - + "rehouse/apiv1/contentwarehousepb;content" - + "warehousepb\252\002 Google.Cloud.ContentWareho" - + "use.V1\312\002 Google\\Cloud\\ContentWarehouse\\V" - + "1\352\002#Google::Cloud::ContentWarehouse::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.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java deleted file mode 100644 index 5eacea0fbe92..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.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/contentwarehouse/v1/ruleset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class RuleSetServiceRequestProto { - private RuleSetServiceRequestProto() {} - - 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_contentwarehouse_v1_CreateRuleSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_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/contentwarehouse/v1/rules" - + "et_service_request.proto\022 google.cloud.c" - + "ontentwarehouse.v1\032\037google/api/field_beh" - + "avior.proto\032\031google/api/resource.proto\0322" - + "google/cloud/contentwarehouse/v1/rule_en" - + "gine.proto\"\234\001\n\024CreateRuleSetRequest\022A\n\006p" - + "arent\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehouse.g" - + "oogleapis.com/Location\022A\n\010rule_set\030\002 \001(\013" - + "2).google.cloud.contentwarehouse.v1.Rule" - + "SetB\004\342A\001\002\"S\n\021GetRuleSetRequest\022>\n\004name\030\001" - + " \001(\tB0\342A\001\002\372A)\n\'contentwarehouse.googleap" - + "is.com/RuleSet\"\231\001\n\024UpdateRuleSetRequest\022" - + ">\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'contentwarehouse" - + ".googleapis.com/RuleSet\022A\n\010rule_set\030\002 \001(" - + "\0132).google.cloud.contentwarehouse.v1.Rul" - + "eSetB\004\342A\001\002\"V\n\024DeleteRuleSetRequest\022>\n\004na" - + "me\030\001 \001(\tB0\342A\001\002\372A)\n\'contentwarehouse.goog" - + "leapis.com/RuleSet\"\177\n\023ListRuleSetsReques" - + "t\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareh" - + "ouse.googleapis.com/Location\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"m\n\024ListRuleS" - + "etsResponse\022<\n\trule_sets\030\001 \003(\0132).google." - + "cloud.contentwarehouse.v1.RuleSet\022\027\n\017nex" - + "t_page_token\030\002 \001(\tB\202\002\n$com.google.cloud." - + "contentwarehouse.v1B\032RuleSetServiceReque" - + "stProtoP\001ZPcloud.google.com/go/contentwa" - + "rehouse/apiv1/contentwarehousepb;content" - + "warehousepb\252\002 Google.Cloud.ContentWareho" - + "use.V1\312\002 Google\\Cloud\\ContentWarehouse\\V" - + "1\352\002#Google::Cloud::ContentWarehouse::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.contentwarehouse.v1.RuleEngineProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor, - new java.lang.String[] { - "Parent", "RuleSet", - }); - internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor, - new java.lang.String[] { - "Name", "RuleSet", - }); - internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor, - new java.lang.String[] { - "RuleSets", "NextPageToken", - }); - 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.contentwarehouse.v1.RuleEngineProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java deleted file mode 100644 index ffb125a6a988..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java +++ /dev/null @@ -1,24 +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/contentwarehouse/v1/pipelines.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface RunPipelineResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java deleted file mode 100644 index ace10d124972..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.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/contentwarehouse/v1/synonymset.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class SynonymSetProto { - private SynonymSetProto() {} - - 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_contentwarehouse_v1_SynonymSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_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/contentwarehouse/v1/synon" - + "ymset.proto\022 google.cloud.contentwarehou" - + "se.v1\032\031google/api/resource.proto\"\375\001\n\nSyn" - + "onymSet\022\014\n\004name\030\001 \001(\t\022\017\n\007context\030\002 \001(\t\022F" - + "\n\010synonyms\030\003 \003(\01324.google.cloud.contentw" - + "arehouse.v1.SynonymSet.Synonym\032\030\n\007Synony" - + "m\022\r\n\005words\030\001 \003(\t:n\352Ak\n*contentwarehouse." - + "googleapis.com/SynonymSet\022=projects/{pro" - + "ject}/locations/{location}/synonymSets/{" - + "context}B\367\001\n$com.google.cloud.contentwar" - + "ehouse.v1B\017SynonymSetProtoP\001ZPcloud.goog" - + "le.com/go/contentwarehouse/apiv1/content" - + "warehousepb;contentwarehousepb\252\002 Google." - + "Cloud.ContentWarehouse.V1\312\002 Google\\Cloud" - + "\\ContentWarehouse\\V1\352\002#Google::Cloud::Co" - + "ntentWarehouse::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor, - new java.lang.String[] { - "Name", "Context", "Synonyms", - }); - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor = - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor, - new java.lang.String[] { - "Words", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java deleted file mode 100644 index 3e0a06a55aee..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java +++ /dev/null @@ -1,107 +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/contentwarehouse/v1/synonymset_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class SynonymSetServiceProto { - private SynonymSetServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/contentwarehouse/v1/synon" - + "ymset_service.proto\022 google.cloud.conten" - + "twarehouse.v1\032\034google/api/annotations.pr" - + "oto\032\027google/api/client.proto\0321google/clo" - + "ud/contentwarehouse/v1/synonymset.proto\032" - + "Agoogle/cloud/contentwarehouse/v1/synony" - + "mset_service_request.proto\032\033google/proto" - + "buf/empty.proto2\303\010\n\021SynonymSetService\022\326\001" - + "\n\020CreateSynonymSet\0229.google.cloud.conten" - + "twarehouse.v1.CreateSynonymSetRequest\032,." - + "google.cloud.contentwarehouse.v1.Synonym" - + "Set\"Y\332A\022parent,synonym_set\202\323\344\223\002>\"//v1/{p" - + "arent=projects/*/locations/*}/synonymSet" - + "s:\013synonym_set\022\265\001\n\rGetSynonymSet\0226.googl" - + "e.cloud.contentwarehouse.v1.GetSynonymSe" - + "tRequest\032,.google.cloud.contentwarehouse" - + ".v1.SynonymSet\">\332A\004name\202\323\344\223\0021\022//v1/{name" - + "=projects/*/locations/*/synonymSets/*}\022\324" - + "\001\n\020UpdateSynonymSet\0229.google.cloud.conte" - + "ntwarehouse.v1.UpdateSynonymSetRequest\032," - + ".google.cloud.contentwarehouse.v1.Synony" - + "mSet\"W\332A\020name,synonym_set\202\323\344\223\002>2//v1/{na" - + "me=projects/*/locations/*/synonymSets/*}" - + ":\013synonym_set\022\245\001\n\020DeleteSynonymSet\0229.goo" - + "gle.cloud.contentwarehouse.v1.DeleteSyno" - + "nymSetRequest\032\026.google.protobuf.Empty\">\332" - + "A\004name\202\323\344\223\0021*//v1/{name=projects/*/locat" - + "ions/*/synonymSets/*}\022\310\001\n\017ListSynonymSet" - + "s\0228.google.cloud.contentwarehouse.v1.Lis" - + "tSynonymSetsRequest\0329.google.cloud.conte" - + "ntwarehouse.v1.ListSynonymSetsResponse\"@" - + "\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/" - + "locations/*}/synonymSets\032S\312A\037contentware" - + "house.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\376\001\n$com.go" - + "ogle.cloud.contentwarehouse.v1B\026SynonymS" - + "etServiceProtoP\001ZPcloud.google.com/go/co" - + "ntentwarehouse/apiv1/contentwarehousepb;" - + "contentwarehousepb\252\002 Google.Cloud.Conten" - + "tWarehouse.V1\312\002 Google\\Cloud\\ContentWare" - + "house\\V1\352\002#Google::Cloud::ContentWarehou" - + "se::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.cloud.contentwarehouse.v1.SynonymSetProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.SynonymSetProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java deleted file mode 100644 index aecb14995a00..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java +++ /dev/null @@ -1,164 +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/contentwarehouse/v1/synonymset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class SynonymSetServiceRequestProto { - private SynonymSetServiceRequestProto() {} - - 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_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_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/contentwarehouse/v1/synon" - + "ymset_service_request.proto\022 google.clou" - + "d.contentwarehouse.v1\032\037google/api/field_" - + "behavior.proto\032\031google/api/resource.prot" - + "o\0321google/cloud/contentwarehouse/v1/syno" - + "nymset.proto\"\245\001\n\027CreateSynonymSetRequest" - + "\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareho" - + "use.googleapis.com/Location\022G\n\013synonym_s" - + "et\030\002 \001(\0132,.google.cloud.contentwarehouse" - + ".v1.SynonymSetB\004\342A\001\002\"Y\n\024GetSynonymSetReq" - + "uest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*contentware" - + "house.googleapis.com/SynonymSet\"\202\001\n\026List" - + "SynonymSetsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002" - + "\372A*\n(contentwarehouse.googleapis.com/Loc" - + "ation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\"v\n\027ListSynonymSetsResponse\022B\n\014synon" - + "ym_sets\030\001 \003(\0132,.google.cloud.contentware" - + "house.v1.SynonymSet\022\027\n\017next_page_token\030\002" - + " \001(\t\"\245\001\n\027UpdateSynonymSetRequest\022A\n\004name" - + "\030\001 \001(\tB3\342A\001\002\372A,\n*contentwarehouse.google" - + "apis.com/SynonymSet\022G\n\013synonym_set\030\002 \001(\013" - + "2,.google.cloud.contentwarehouse.v1.Syno" - + "nymSetB\004\342A\001\002\"\\\n\027DeleteSynonymSetRequest\022" - + "A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*contentwarehouse" - + ".googleapis.com/SynonymSetB\205\002\n$com.googl" - + "e.cloud.contentwarehouse.v1B\035SynonymSetS" - + "erviceRequestProtoP\001ZPcloud.google.com/g" - + "o/contentwarehouse/apiv1/contentwarehous" - + "epb;contentwarehousepb\252\002 Google.Cloud.Co" - + "ntentWarehouse.V1\312\002 Google\\Cloud\\Content" - + "Warehouse\\V1\352\002#Google::Cloud::ContentWar" - + "ehouse::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.contentwarehouse.v1.SynonymSetProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor, - new java.lang.String[] { - "Parent", "SynonymSet", - }); - internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor, - new java.lang.String[] { - "SynonymSets", "NextPageToken", - }); - internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor, - new java.lang.String[] { - "Name", "SynonymSet", - }); - internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - 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.contentwarehouse.v1.SynonymSetProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java deleted file mode 100644 index 2261e7ff0df0..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java +++ /dev/null @@ -1,24 +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/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface TextTypeOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TextTypeOptions) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java deleted file mode 100644 index aec1e5055999..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java +++ /dev/null @@ -1,24 +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/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface TimestampTypeOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TimestampTypeOptions) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java deleted file mode 100644 index 13f383fba208..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java +++ /dev/null @@ -1,24 +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/contentwarehouse/v1/async_document_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface UpdateDocumentMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java deleted file mode 100644 index c0945a71cd34..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java +++ /dev/null @@ -1,99 +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/contentwarehouse/v1/document_schema_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface UpdateDocumentSchemaRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the document schema to update.
-   * Format:
-   * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the document schema to update.
-   * Format:
-   * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The document schema to update with.
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the documentSchema field is set. - */ - boolean hasDocumentSchema(); - /** - * - * - *
-   * Required. The document schema to update with.
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The documentSchema. - */ - com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema(); - /** - * - * - *
-   * Required. The document schema to update with.
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder(); -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java deleted file mode 100644 index 7c7a9003ed14..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java +++ /dev/null @@ -1,99 +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/contentwarehouse/v1/ruleset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface UpdateRuleSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the rule set to update.
-   * Format:
-   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the rule set to update.
-   * Format:
-   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The rule set to update.
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the ruleSet field is set. - */ - boolean hasRuleSet(); - /** - * - * - *
-   * Required. The rule set to update.
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The ruleSet. - */ - com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet(); - /** - * - * - *
-   * Required. The rule set to update.
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder(); -} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java deleted file mode 100644 index bd74bee603ae..000000000000 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java +++ /dev/null @@ -1,99 +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/contentwarehouse/v1/synonymset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface UpdateSynonymSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the synonymSet to update
-   * Format:
-   * projects/{project_number}/locations/{location}/synonymSets/{context}.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the synonymSet to update
-   * Format:
-   * projects/{project_number}/locations/{location}/synonymSets/{context}.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The synonymSet to be updated for the customer
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the synonymSet field is set. - */ - boolean hasSynonymSet(); - /** - * - * - *
-   * Required. The synonymSet to be updated for the customer
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The synonymSet. - */ - com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet(); - /** - * - * - *
-   * Required. The synonymSet to be updated for the customer
-   * 
- * - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder(); -} diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java index 81ab7aeac54f..80dda09bf199 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.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.contentwarehouse.v1.stub.DocumentLinkServiceStubSettings; diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java index 5985a14d5fd7..117358af3b85 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.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.contentwarehouse.v1.stub.DocumentSchemaServiceStubSettings; diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java index c7a62590b7ea..d11ccc0ec545 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.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.contentwarehouse.v1.stub.DocumentServiceStubSettings; diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java index 6c5ad92a0136..4f82d48c4ebd 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java @@ -26,6 +26,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.contentwarehouse.v1.stub.PipelineServiceStubSettings; diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java index 7d60bd1b38ac..807d040f2fca 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.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.contentwarehouse.v1.stub.RuleSetServiceStubSettings; diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java index 0217223b7886..02fc5912b947 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.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.contentwarehouse.v1.stub.SynonymSetServiceStubSettings; diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStub.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStub.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStub.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStub.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStub.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStub.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceCallableFactory.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceCallableFactory.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceCallableFactory.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceCallableFactory.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java index dca476b1eae1..f35a4e0f1e7c 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.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-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceCallableFactory.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceCallableFactory.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceCallableFactory.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceCallableFactory.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java index abd9d31e7031..a733f4964ec5 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.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-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceCallableFactory.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceCallableFactory.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceCallableFactory.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceCallableFactory.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java index 733eadbe287a..9a0d97a16042 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java @@ -44,6 +44,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java index 981d16b51a81..d6c13a4ffc9b 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.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-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceCallableFactory.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceCallableFactory.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceCallableFactory.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceCallableFactory.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java index 6ebfe3656e0e..6a6ff6a512fa 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.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-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceCallableFactory.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceCallableFactory.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceCallableFactory.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceCallableFactory.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java index 0536836a6185..43ebb7051e7a 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.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-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceCallableFactory.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceCallableFactory.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceCallableFactory.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceCallableFactory.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceStub.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceStub.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceCallableFactory.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceCallableFactory.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceCallableFactory.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceCallableFactory.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceStub.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceStub.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceCallableFactory.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceCallableFactory.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceCallableFactory.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceCallableFactory.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceStub.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceStub.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java similarity index 99% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java index 1090ccefa4b2..3be4fb6c3083 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java +++ b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java @@ -29,6 +29,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-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceCallableFactory.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceCallableFactory.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceCallableFactory.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceCallableFactory.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceStub.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceStub.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceCallableFactory.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceCallableFactory.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceCallableFactory.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceCallableFactory.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceStub.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceStub.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStub.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStub.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStub.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStub.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStub.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStub.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientHttpJsonTest.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientHttpJsonTest.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientHttpJsonTest.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientHttpJsonTest.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientTest.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientTest.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientTest.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientTest.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientHttpJsonTest.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientHttpJsonTest.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientHttpJsonTest.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientHttpJsonTest.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientTest.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientTest.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientTest.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientTest.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkService.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkService.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkService.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkService.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkServiceImpl.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkServiceImpl.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkServiceImpl.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkServiceImpl.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaService.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaService.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaService.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaService.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaServiceImpl.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaServiceImpl.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaServiceImpl.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaServiceImpl.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentService.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentService.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentService.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentService.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentServiceImpl.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentServiceImpl.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentServiceImpl.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentServiceImpl.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetService.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetService.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetService.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetService.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetServiceImpl.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetServiceImpl.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetServiceImpl.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetServiceImpl.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetService.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetService.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetService.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetService.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetServiceImpl.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetServiceImpl.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetServiceImpl.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetServiceImpl.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientHttpJsonTest.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientHttpJsonTest.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientHttpJsonTest.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientHttpJsonTest.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientTest.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientTest.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientTest.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientTest.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientHttpJsonTest.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientHttpJsonTest.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientHttpJsonTest.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientHttpJsonTest.java diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientTest.java b/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientTest.java similarity index 100% rename from java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientTest.java rename to owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientTest.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java new file mode 100644 index 000000000000..40b20fa42b38 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java @@ -0,0 +1,587 @@ +package com.google.cloud.contentwarehouse.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * This service lets you manage document-links.
+ * Document-Links are treated as sub-resources under source documents.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/contentwarehouse/v1/document_link_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DocumentLinkServiceGrpc { + + private DocumentLinkServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.DocumentLinkService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListLinkedTargetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLinkedTargets", + requestType = com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListLinkedTargetsMethod() { + io.grpc.MethodDescriptor getListLinkedTargetsMethod; + if ((getListLinkedTargetsMethod = DocumentLinkServiceGrpc.getListLinkedTargetsMethod) == null) { + synchronized (DocumentLinkServiceGrpc.class) { + if ((getListLinkedTargetsMethod = DocumentLinkServiceGrpc.getListLinkedTargetsMethod) == null) { + DocumentLinkServiceGrpc.getListLinkedTargetsMethod = getListLinkedTargetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinkedTargets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DocumentLinkServiceMethodDescriptorSupplier("ListLinkedTargets")) + .build(); + } + } + } + return getListLinkedTargetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListLinkedSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLinkedSources", + requestType = com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListLinkedSourcesMethod() { + io.grpc.MethodDescriptor getListLinkedSourcesMethod; + if ((getListLinkedSourcesMethod = DocumentLinkServiceGrpc.getListLinkedSourcesMethod) == null) { + synchronized (DocumentLinkServiceGrpc.class) { + if ((getListLinkedSourcesMethod = DocumentLinkServiceGrpc.getListLinkedSourcesMethod) == null) { + DocumentLinkServiceGrpc.getListLinkedSourcesMethod = getListLinkedSourcesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinkedSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DocumentLinkServiceMethodDescriptorSupplier("ListLinkedSources")) + .build(); + } + } + } + return getListLinkedSourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateDocumentLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDocumentLink", + requestType = com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.DocumentLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDocumentLinkMethod() { + io.grpc.MethodDescriptor getCreateDocumentLinkMethod; + if ((getCreateDocumentLinkMethod = DocumentLinkServiceGrpc.getCreateDocumentLinkMethod) == null) { + synchronized (DocumentLinkServiceGrpc.class) { + if ((getCreateDocumentLinkMethod = DocumentLinkServiceGrpc.getCreateDocumentLinkMethod) == null) { + DocumentLinkServiceGrpc.getCreateDocumentLinkMethod = getCreateDocumentLinkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocumentLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance())) + .setSchemaDescriptor(new DocumentLinkServiceMethodDescriptorSupplier("CreateDocumentLink")) + .build(); + } + } + } + return getCreateDocumentLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDocumentLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDocumentLink", + requestType = com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDocumentLinkMethod() { + io.grpc.MethodDescriptor getDeleteDocumentLinkMethod; + if ((getDeleteDocumentLinkMethod = DocumentLinkServiceGrpc.getDeleteDocumentLinkMethod) == null) { + synchronized (DocumentLinkServiceGrpc.class) { + if ((getDeleteDocumentLinkMethod = DocumentLinkServiceGrpc.getDeleteDocumentLinkMethod) == null) { + DocumentLinkServiceGrpc.getDeleteDocumentLinkMethod = getDeleteDocumentLinkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocumentLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DocumentLinkServiceMethodDescriptorSupplier("DeleteDocumentLink")) + .build(); + } + } + } + return getDeleteDocumentLinkMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DocumentLinkServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentLinkServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentLinkServiceStub(channel, callOptions); + } + }; + return DocumentLinkServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DocumentLinkServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentLinkServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentLinkServiceBlockingStub(channel, callOptions); + } + }; + return DocumentLinkServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DocumentLinkServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentLinkServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentLinkServiceFutureStub(channel, callOptions); + } + }; + return DocumentLinkServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * This service lets you manage document-links.
+   * Document-Links are treated as sub-resources under source documents.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Return all target document-links from the document.
+     * 
+ */ + default void listLinkedTargets(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLinkedTargetsMethod(), responseObserver); + } + + /** + *
+     * Return all source document-links from the document.
+     * 
+ */ + default void listLinkedSources(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLinkedSourcesMethod(), responseObserver); + } + + /** + *
+     * Create a link between a source document and a target document.
+     * 
+ */ + default void createDocumentLink(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDocumentLinkMethod(), responseObserver); + } + + /** + *
+     * Remove the link between the source and target documents.
+     * 
+ */ + default void deleteDocumentLink(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentLinkMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DocumentLinkService. + *
+   * This service lets you manage document-links.
+   * Document-Links are treated as sub-resources under source documents.
+   * 
+ */ + public static abstract class DocumentLinkServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return DocumentLinkServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DocumentLinkService. + *
+   * This service lets you manage document-links.
+   * Document-Links are treated as sub-resources under source documents.
+   * 
+ */ + public static final class DocumentLinkServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DocumentLinkServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentLinkServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentLinkServiceStub(channel, callOptions); + } + + /** + *
+     * Return all target document-links from the document.
+     * 
+ */ + public void listLinkedTargets(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLinkedTargetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Return all source document-links from the document.
+     * 
+ */ + public void listLinkedSources(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLinkedSourcesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Create a link between a source document and a target document.
+     * 
+ */ + public void createDocumentLink(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDocumentLinkMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Remove the link between the source and target documents.
+     * 
+ */ + public void deleteDocumentLink(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDocumentLinkMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DocumentLinkService. + *
+   * This service lets you manage document-links.
+   * Document-Links are treated as sub-resources under source documents.
+   * 
+ */ + public static final class DocumentLinkServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DocumentLinkServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentLinkServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentLinkServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Return all target document-links from the document.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse listLinkedTargets(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLinkedTargetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Return all source document-links from the document.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse listLinkedSources(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLinkedSourcesMethod(), getCallOptions(), request); + } + + /** + *
+     * Create a link between a source document and a target document.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.DocumentLink createDocumentLink(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDocumentLinkMethod(), getCallOptions(), request); + } + + /** + *
+     * Remove the link between the source and target documents.
+     * 
+ */ + public com.google.protobuf.Empty deleteDocumentLink(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDocumentLinkMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentLinkService. + *
+   * This service lets you manage document-links.
+   * Document-Links are treated as sub-resources under source documents.
+   * 
+ */ + public static final class DocumentLinkServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DocumentLinkServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentLinkServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentLinkServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Return all target document-links from the document.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listLinkedTargets( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLinkedTargetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Return all source document-links from the document.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listLinkedSources( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLinkedSourcesMethod(), getCallOptions()), request); + } + + /** + *
+     * Create a link between a source document and a target document.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDocumentLink( + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDocumentLinkMethod(), getCallOptions()), request); + } + + /** + *
+     * Remove the link between the source and target documents.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDocumentLink( + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDocumentLinkMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_LINKED_TARGETS = 0; + private static final int METHODID_LIST_LINKED_SOURCES = 1; + private static final int METHODID_CREATE_DOCUMENT_LINK = 2; + private static final int METHODID_DELETE_DOCUMENT_LINK = 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_LIST_LINKED_TARGETS: + serviceImpl.listLinkedTargets((com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_LINKED_SOURCES: + serviceImpl.listLinkedSources((com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_DOCUMENT_LINK: + serviceImpl.createDocumentLink((com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DOCUMENT_LINK: + serviceImpl.deleteDocumentLink((com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) 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( + getListLinkedTargetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest, + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse>( + service, METHODID_LIST_LINKED_TARGETS))) + .addMethod( + getListLinkedSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest, + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse>( + service, METHODID_LIST_LINKED_SOURCES))) + .addMethod( + getCreateDocumentLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest, + com.google.cloud.contentwarehouse.v1.DocumentLink>( + service, METHODID_CREATE_DOCUMENT_LINK))) + .addMethod( + getDeleteDocumentLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_DOCUMENT_LINK))) + .build(); + } + + private static abstract class DocumentLinkServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DocumentLinkServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DocumentLinkService"); + } + } + + private static final class DocumentLinkServiceFileDescriptorSupplier + extends DocumentLinkServiceBaseDescriptorSupplier { + DocumentLinkServiceFileDescriptorSupplier() {} + } + + private static final class DocumentLinkServiceMethodDescriptorSupplier + extends DocumentLinkServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DocumentLinkServiceMethodDescriptorSupplier(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 (DocumentLinkServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DocumentLinkServiceFileDescriptorSupplier()) + .addMethod(getListLinkedTargetsMethod()) + .addMethod(getListLinkedSourcesMethod()) + .addMethod(getCreateDocumentLinkMethod()) + .addMethod(getDeleteDocumentLinkMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java new file mode 100644 index 000000000000..4258decfaebb --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java @@ -0,0 +1,703 @@ +package com.google.cloud.contentwarehouse.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * This service lets you manage document schema.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/contentwarehouse/v1/document_schema_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DocumentSchemaServiceGrpc { + + private DocumentSchemaServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.DocumentSchemaService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateDocumentSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDocumentSchema", + requestType = com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.DocumentSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDocumentSchemaMethod() { + io.grpc.MethodDescriptor getCreateDocumentSchemaMethod; + if ((getCreateDocumentSchemaMethod = DocumentSchemaServiceGrpc.getCreateDocumentSchemaMethod) == null) { + synchronized (DocumentSchemaServiceGrpc.class) { + if ((getCreateDocumentSchemaMethod = DocumentSchemaServiceGrpc.getCreateDocumentSchemaMethod) == null) { + DocumentSchemaServiceGrpc.getCreateDocumentSchemaMethod = getCreateDocumentSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocumentSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance())) + .setSchemaDescriptor(new DocumentSchemaServiceMethodDescriptorSupplier("CreateDocumentSchema")) + .build(); + } + } + } + return getCreateDocumentSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateDocumentSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDocumentSchema", + requestType = com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.DocumentSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateDocumentSchemaMethod() { + io.grpc.MethodDescriptor getUpdateDocumentSchemaMethod; + if ((getUpdateDocumentSchemaMethod = DocumentSchemaServiceGrpc.getUpdateDocumentSchemaMethod) == null) { + synchronized (DocumentSchemaServiceGrpc.class) { + if ((getUpdateDocumentSchemaMethod = DocumentSchemaServiceGrpc.getUpdateDocumentSchemaMethod) == null) { + DocumentSchemaServiceGrpc.getUpdateDocumentSchemaMethod = getUpdateDocumentSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDocumentSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance())) + .setSchemaDescriptor(new DocumentSchemaServiceMethodDescriptorSupplier("UpdateDocumentSchema")) + .build(); + } + } + } + return getUpdateDocumentSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetDocumentSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDocumentSchema", + requestType = com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.DocumentSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDocumentSchemaMethod() { + io.grpc.MethodDescriptor getGetDocumentSchemaMethod; + if ((getGetDocumentSchemaMethod = DocumentSchemaServiceGrpc.getGetDocumentSchemaMethod) == null) { + synchronized (DocumentSchemaServiceGrpc.class) { + if ((getGetDocumentSchemaMethod = DocumentSchemaServiceGrpc.getGetDocumentSchemaMethod) == null) { + DocumentSchemaServiceGrpc.getGetDocumentSchemaMethod = getGetDocumentSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDocumentSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance())) + .setSchemaDescriptor(new DocumentSchemaServiceMethodDescriptorSupplier("GetDocumentSchema")) + .build(); + } + } + } + return getGetDocumentSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDocumentSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDocumentSchema", + requestType = com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDocumentSchemaMethod() { + io.grpc.MethodDescriptor getDeleteDocumentSchemaMethod; + if ((getDeleteDocumentSchemaMethod = DocumentSchemaServiceGrpc.getDeleteDocumentSchemaMethod) == null) { + synchronized (DocumentSchemaServiceGrpc.class) { + if ((getDeleteDocumentSchemaMethod = DocumentSchemaServiceGrpc.getDeleteDocumentSchemaMethod) == null) { + DocumentSchemaServiceGrpc.getDeleteDocumentSchemaMethod = getDeleteDocumentSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocumentSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DocumentSchemaServiceMethodDescriptorSupplier("DeleteDocumentSchema")) + .build(); + } + } + } + return getDeleteDocumentSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDocumentSchemasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDocumentSchemas", + requestType = com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDocumentSchemasMethod() { + io.grpc.MethodDescriptor getListDocumentSchemasMethod; + if ((getListDocumentSchemasMethod = DocumentSchemaServiceGrpc.getListDocumentSchemasMethod) == null) { + synchronized (DocumentSchemaServiceGrpc.class) { + if ((getListDocumentSchemasMethod = DocumentSchemaServiceGrpc.getListDocumentSchemasMethod) == null) { + DocumentSchemaServiceGrpc.getListDocumentSchemasMethod = getListDocumentSchemasMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDocumentSchemas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.getDefaultInstance())) + .setSchemaDescriptor(new DocumentSchemaServiceMethodDescriptorSupplier("ListDocumentSchemas")) + .build(); + } + } + } + return getListDocumentSchemasMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DocumentSchemaServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentSchemaServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentSchemaServiceStub(channel, callOptions); + } + }; + return DocumentSchemaServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DocumentSchemaServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentSchemaServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentSchemaServiceBlockingStub(channel, callOptions); + } + }; + return DocumentSchemaServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DocumentSchemaServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentSchemaServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentSchemaServiceFutureStub(channel, callOptions); + } + }; + return DocumentSchemaServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * This service lets you manage document schema.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Creates a document schema.
+     * 
+ */ + default void createDocumentSchema(com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDocumentSchemaMethod(), responseObserver); + } + + /** + *
+     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
+     * Document Schema is non-empty and does not equal the existing name.
+     * Supports only appending new properties, adding new ENUM possible values,
+     * and updating the
+     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
+     * flag for ENUM possible values. Updating existing properties will result
+     * into INVALID_ARGUMENT.
+     * 
+ */ + default void updateDocumentSchema(com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDocumentSchemaMethod(), responseObserver); + } + + /** + *
+     * Gets a document schema. Returns NOT_FOUND if the document schema does not
+     * exist.
+     * 
+ */ + default void getDocumentSchema(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDocumentSchemaMethod(), responseObserver); + } + + /** + *
+     * Deletes a document schema. Returns NOT_FOUND if the document schema does
+     * not exist. Returns BAD_REQUEST if the document schema has documents
+     * depending on it.
+     * 
+ */ + default void deleteDocumentSchema(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentSchemaMethod(), responseObserver); + } + + /** + *
+     * Lists document schemas.
+     * 
+ */ + default void listDocumentSchemas(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDocumentSchemasMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DocumentSchemaService. + *
+   * This service lets you manage document schema.
+   * 
+ */ + public static abstract class DocumentSchemaServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return DocumentSchemaServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DocumentSchemaService. + *
+   * This service lets you manage document schema.
+   * 
+ */ + public static final class DocumentSchemaServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DocumentSchemaServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentSchemaServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentSchemaServiceStub(channel, callOptions); + } + + /** + *
+     * Creates a document schema.
+     * 
+ */ + public void createDocumentSchema(com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDocumentSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
+     * Document Schema is non-empty and does not equal the existing name.
+     * Supports only appending new properties, adding new ENUM possible values,
+     * and updating the
+     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
+     * flag for ENUM possible values. Updating existing properties will result
+     * into INVALID_ARGUMENT.
+     * 
+ */ + public void updateDocumentSchema(com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDocumentSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a document schema. Returns NOT_FOUND if the document schema does not
+     * exist.
+     * 
+ */ + public void getDocumentSchema(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDocumentSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a document schema. Returns NOT_FOUND if the document schema does
+     * not exist. Returns BAD_REQUEST if the document schema has documents
+     * depending on it.
+     * 
+ */ + public void deleteDocumentSchema(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDocumentSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists document schemas.
+     * 
+ */ + public void listDocumentSchemas(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDocumentSchemasMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DocumentSchemaService. + *
+   * This service lets you manage document schema.
+   * 
+ */ + public static final class DocumentSchemaServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DocumentSchemaServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentSchemaServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentSchemaServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a document schema.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.DocumentSchema createDocumentSchema(com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDocumentSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
+     * Document Schema is non-empty and does not equal the existing name.
+     * Supports only appending new properties, adding new ENUM possible values,
+     * and updating the
+     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
+     * flag for ENUM possible values. Updating existing properties will result
+     * into INVALID_ARGUMENT.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.DocumentSchema updateDocumentSchema(com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDocumentSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a document schema. Returns NOT_FOUND if the document schema does not
+     * exist.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDocumentSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a document schema. Returns NOT_FOUND if the document schema does
+     * not exist. Returns BAD_REQUEST if the document schema has documents
+     * depending on it.
+     * 
+ */ + public com.google.protobuf.Empty deleteDocumentSchema(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDocumentSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists document schemas.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse listDocumentSchemas(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDocumentSchemasMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentSchemaService. + *
+   * This service lets you manage document schema.
+   * 
+ */ + public static final class DocumentSchemaServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DocumentSchemaServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentSchemaServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentSchemaServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a document schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDocumentSchema( + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDocumentSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
+     * Document Schema is non-empty and does not equal the existing name.
+     * Supports only appending new properties, adding new ENUM possible values,
+     * and updating the
+     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
+     * flag for ENUM possible values. Updating existing properties will result
+     * into INVALID_ARGUMENT.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateDocumentSchema( + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDocumentSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a document schema. Returns NOT_FOUND if the document schema does not
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDocumentSchema( + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDocumentSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a document schema. Returns NOT_FOUND if the document schema does
+     * not exist. Returns BAD_REQUEST if the document schema has documents
+     * depending on it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDocumentSchema( + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDocumentSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists document schemas.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDocumentSchemas( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDocumentSchemasMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_DOCUMENT_SCHEMA = 0; + private static final int METHODID_UPDATE_DOCUMENT_SCHEMA = 1; + private static final int METHODID_GET_DOCUMENT_SCHEMA = 2; + private static final int METHODID_DELETE_DOCUMENT_SCHEMA = 3; + private static final int METHODID_LIST_DOCUMENT_SCHEMAS = 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_CREATE_DOCUMENT_SCHEMA: + serviceImpl.createDocumentSchema((com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DOCUMENT_SCHEMA: + serviceImpl.updateDocumentSchema((com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DOCUMENT_SCHEMA: + serviceImpl.getDocumentSchema((com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DOCUMENT_SCHEMA: + serviceImpl.deleteDocumentSchema((com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DOCUMENT_SCHEMAS: + serviceImpl.listDocumentSchemas((com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) 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( + getCreateDocumentSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema>( + service, METHODID_CREATE_DOCUMENT_SCHEMA))) + .addMethod( + getUpdateDocumentSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema>( + service, METHODID_UPDATE_DOCUMENT_SCHEMA))) + .addMethod( + getGetDocumentSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema>( + service, METHODID_GET_DOCUMENT_SCHEMA))) + .addMethod( + getDeleteDocumentSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_DOCUMENT_SCHEMA))) + .addMethod( + getListDocumentSchemasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest, + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse>( + service, METHODID_LIST_DOCUMENT_SCHEMAS))) + .build(); + } + + private static abstract class DocumentSchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DocumentSchemaServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DocumentSchemaService"); + } + } + + private static final class DocumentSchemaServiceFileDescriptorSupplier + extends DocumentSchemaServiceBaseDescriptorSupplier { + DocumentSchemaServiceFileDescriptorSupplier() {} + } + + private static final class DocumentSchemaServiceMethodDescriptorSupplier + extends DocumentSchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DocumentSchemaServiceMethodDescriptorSupplier(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 (DocumentSchemaServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DocumentSchemaServiceFileDescriptorSupplier()) + .addMethod(getCreateDocumentSchemaMethod()) + .addMethod(getUpdateDocumentSchemaMethod()) + .addMethod(getGetDocumentSchemaMethod()) + .addMethod(getDeleteDocumentSchemaMethod()) + .addMethod(getListDocumentSchemasMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java new file mode 100644 index 000000000000..b6c9d1972b40 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java @@ -0,0 +1,953 @@ +package com.google.cloud.contentwarehouse.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * This service lets you manage document.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/contentwarehouse/v1/document_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DocumentServiceGrpc { + + private DocumentServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.DocumentService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDocument", + requestType = com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.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.contentwarehouse.v1.CreateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("CreateDocument")) + .build(); + } + } + } + return getCreateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDocument", + requestType = com.google.cloud.contentwarehouse.v1.GetDocumentRequest.class, + responseType = com.google.cloud.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("GetDocument")) + .build(); + } + } + } + return getGetDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDocument", + requestType = com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.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.contentwarehouse.v1.UpdateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.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.contentwarehouse.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.contentwarehouse.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 getSearchDocumentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchDocuments", + requestType = com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSearchDocumentsMethod() { + io.grpc.MethodDescriptor getSearchDocumentsMethod; + if ((getSearchDocumentsMethod = DocumentServiceGrpc.getSearchDocumentsMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getSearchDocumentsMethod = DocumentServiceGrpc.getSearchDocumentsMethod) == null) { + DocumentServiceGrpc.getSearchDocumentsMethod = getSearchDocumentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("SearchDocuments")) + .build(); + } + } + } + return getSearchDocumentsMethod; + } + + private static volatile io.grpc.MethodDescriptor getLockDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LockDocument", + requestType = com.google.cloud.contentwarehouse.v1.LockDocumentRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.Document.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLockDocumentMethod() { + io.grpc.MethodDescriptor getLockDocumentMethod; + if ((getLockDocumentMethod = DocumentServiceGrpc.getLockDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getLockDocumentMethod = DocumentServiceGrpc.getLockDocumentMethod) == null) { + DocumentServiceGrpc.getLockDocumentMethod = getLockDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LockDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.LockDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("LockDocument")) + .build(); + } + } + } + return getLockDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getFetchAclMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchAcl", + requestType = com.google.cloud.contentwarehouse.v1.FetchAclRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.FetchAclResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getFetchAclMethod() { + io.grpc.MethodDescriptor getFetchAclMethod; + if ((getFetchAclMethod = DocumentServiceGrpc.getFetchAclMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getFetchAclMethod = DocumentServiceGrpc.getFetchAclMethod) == null) { + DocumentServiceGrpc.getFetchAclMethod = getFetchAclMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchAcl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.FetchAclRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.FetchAclResponse.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("FetchAcl")) + .build(); + } + } + } + return getFetchAclMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetAclMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetAcl", + requestType = com.google.cloud.contentwarehouse.v1.SetAclRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.SetAclResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetAclMethod() { + io.grpc.MethodDescriptor getSetAclMethod; + if ((getSetAclMethod = DocumentServiceGrpc.getSetAclMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getSetAclMethod = DocumentServiceGrpc.getSetAclMethod) == null) { + DocumentServiceGrpc.getSetAclMethod = getSetAclMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAcl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SetAclRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SetAclResponse.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("SetAcl")) + .build(); + } + } + } + return getSetAclMethod; + } + + /** + * 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); + } + + /** + *
+   * This service lets you manage document.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Creates a document.
+     * 
+ */ + default void createDocument(com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDocumentMethod(), responseObserver); + } + + /** + *
+     * Gets a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + default void getDocument(com.google.cloud.contentwarehouse.v1.GetDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDocumentMethod(), responseObserver); + } + + /** + *
+     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + default void updateDocument(com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDocumentMethod(), responseObserver); + } + + /** + *
+     * Deletes a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + default void deleteDocument(com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentMethod(), responseObserver); + } + + /** + *
+     * Searches for documents using provided
+     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
+     * This call only returns documents that the caller has permission to search
+     * against.
+     * 
+ */ + default void searchDocuments(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchDocumentsMethod(), responseObserver); + } + + /** + *
+     * Lock the document so the document cannot be updated by other users.
+     * 
+ */ + default void lockDocument(com.google.cloud.contentwarehouse.v1.LockDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLockDocumentMethod(), responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource. Returns NOT_FOUND error if
+     * the resource does not exist. Returns an empty policy if the resource exists
+     * but does not have a policy set.
+     * 
+ */ + default void fetchAcl(com.google.cloud.contentwarehouse.v1.FetchAclRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchAclMethod(), responseObserver); + } + + /** + *
+     * Sets the access control policy for a resource. Replaces any existing
+     * policy.
+     * 
+ */ + default void setAcl(com.google.cloud.contentwarehouse.v1.SetAclRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetAclMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DocumentService. + *
+   * This service lets you manage document.
+   * 
+ */ + 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. + *
+   * This service lets you manage document.
+   * 
+ */ + 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); + } + + /** + *
+     * Creates a document.
+     * 
+ */ + public void createDocument(com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public void getDocument(com.google.cloud.contentwarehouse.v1.GetDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + public void updateDocument(com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public void deleteDocument(com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Searches for documents using provided
+     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
+     * This call only returns documents that the caller has permission to search
+     * against.
+     * 
+ */ + public void searchDocuments(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchDocumentsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lock the document so the document cannot be updated by other users.
+     * 
+ */ + public void lockDocument(com.google.cloud.contentwarehouse.v1.LockDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLockDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource. Returns NOT_FOUND error if
+     * the resource does not exist. Returns an empty policy if the resource exists
+     * but does not have a policy set.
+     * 
+ */ + public void fetchAcl(com.google.cloud.contentwarehouse.v1.FetchAclRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchAclMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the access control policy for a resource. Replaces any existing
+     * policy.
+     * 
+ */ + public void setAcl(com.google.cloud.contentwarehouse.v1.SetAclRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetAclMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DocumentService. + *
+   * This service lets you manage document.
+   * 
+ */ + 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); + } + + /** + *
+     * Creates a document.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse createDocument(com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.Document getDocument(com.google.cloud.contentwarehouse.v1.GetDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse updateDocument(com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public com.google.protobuf.Empty deleteDocument(com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Searches for documents using provided
+     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
+     * This call only returns documents that the caller has permission to search
+     * against.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse searchDocuments(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchDocumentsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lock the document so the document cannot be updated by other users.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.Document lockDocument(com.google.cloud.contentwarehouse.v1.LockDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLockDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the access control policy for a resource. Returns NOT_FOUND error if
+     * the resource does not exist. Returns an empty policy if the resource exists
+     * but does not have a policy set.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.FetchAclResponse fetchAcl(com.google.cloud.contentwarehouse.v1.FetchAclRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchAclMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the access control policy for a resource. Replaces any existing
+     * policy.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.SetAclResponse setAcl(com.google.cloud.contentwarehouse.v1.SetAclRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetAclMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentService. + *
+   * This service lets you manage document.
+   * 
+ */ + 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); + } + + /** + *
+     * Creates a document.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDocument( + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDocument( + com.google.cloud.contentwarehouse.v1.GetDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateDocument( + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDocument( + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Searches for documents using provided
+     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
+     * This call only returns documents that the caller has permission to search
+     * against.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture searchDocuments( + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchDocumentsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lock the document so the document cannot be updated by other users.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture lockDocument( + com.google.cloud.contentwarehouse.v1.LockDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLockDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the access control policy for a resource. Returns NOT_FOUND error if
+     * the resource does not exist. Returns an empty policy if the resource exists
+     * but does not have a policy set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture fetchAcl( + com.google.cloud.contentwarehouse.v1.FetchAclRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchAclMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the access control policy for a resource. Replaces any existing
+     * policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setAcl( + com.google.cloud.contentwarehouse.v1.SetAclRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetAclMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_DOCUMENT = 0; + private static final int METHODID_GET_DOCUMENT = 1; + private static final int METHODID_UPDATE_DOCUMENT = 2; + private static final int METHODID_DELETE_DOCUMENT = 3; + private static final int METHODID_SEARCH_DOCUMENTS = 4; + private static final int METHODID_LOCK_DOCUMENT = 5; + private static final int METHODID_FETCH_ACL = 6; + private static final int METHODID_SET_ACL = 7; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_DOCUMENT: + serviceImpl.createDocument((com.google.cloud.contentwarehouse.v1.CreateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DOCUMENT: + serviceImpl.getDocument((com.google.cloud.contentwarehouse.v1.GetDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DOCUMENT: + serviceImpl.updateDocument((com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DOCUMENT: + serviceImpl.deleteDocument((com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_DOCUMENTS: + serviceImpl.searchDocuments((com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LOCK_DOCUMENT: + serviceImpl.lockDocument((com.google.cloud.contentwarehouse.v1.LockDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_ACL: + serviceImpl.fetchAcl((com.google.cloud.contentwarehouse.v1.FetchAclRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_ACL: + serviceImpl.setAcl((com.google.cloud.contentwarehouse.v1.SetAclRequest) 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( + getCreateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest, + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse>( + service, METHODID_CREATE_DOCUMENT))) + .addMethod( + getGetDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.GetDocumentRequest, + com.google.cloud.contentwarehouse.v1.Document>( + service, METHODID_GET_DOCUMENT))) + .addMethod( + getUpdateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse>( + service, METHODID_UPDATE_DOCUMENT))) + .addMethod( + getDeleteDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_DOCUMENT))) + .addMethod( + getSearchDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse>( + service, METHODID_SEARCH_DOCUMENTS))) + .addMethod( + getLockDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.LockDocumentRequest, + com.google.cloud.contentwarehouse.v1.Document>( + service, METHODID_LOCK_DOCUMENT))) + .addMethod( + getFetchAclMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.FetchAclRequest, + com.google.cloud.contentwarehouse.v1.FetchAclResponse>( + service, METHODID_FETCH_ACL))) + .addMethod( + getSetAclMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.SetAclRequest, + com.google.cloud.contentwarehouse.v1.SetAclResponse>( + service, METHODID_SET_ACL))) + .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.contentwarehouse.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 String methodName; + + DocumentServiceMethodDescriptorSupplier(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(getCreateDocumentMethod()) + .addMethod(getGetDocumentMethod()) + .addMethod(getUpdateDocumentMethod()) + .addMethod(getDeleteDocumentMethod()) + .addMethod(getSearchDocumentsMethod()) + .addMethod(getLockDocumentMethod()) + .addMethod(getFetchAclMethod()) + .addMethod(getSetAclMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java similarity index 55% rename from java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java rename to owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java index b4fdcf79314e..293725e2bf3e 100644 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java +++ b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.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.contentwarehouse.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * This service lets you manage pipelines.
  * 
@@ -35,94 +18,82 @@ private PipelineServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.PipelineService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.RunPipelineRequest, com.google.longrunning.Operation> - getRunPipelineMethod; + private static volatile io.grpc.MethodDescriptor getRunPipelineMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RunPipeline", requestType = com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.RunPipelineRequest, com.google.longrunning.Operation> - getRunPipelineMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.contentwarehouse.v1.RunPipelineRequest, - com.google.longrunning.Operation> - getRunPipelineMethod; + public static io.grpc.MethodDescriptor getRunPipelineMethod() { + io.grpc.MethodDescriptor getRunPipelineMethod; if ((getRunPipelineMethod = PipelineServiceGrpc.getRunPipelineMethod) == null) { synchronized (PipelineServiceGrpc.class) { if ((getRunPipelineMethod = PipelineServiceGrpc.getRunPipelineMethod) == null) { - PipelineServiceGrpc.getRunPipelineMethod = - getRunPipelineMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunPipeline")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.RunPipelineRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new PipelineServiceMethodDescriptorSupplier("RunPipeline")) - .build(); + PipelineServiceGrpc.getRunPipelineMethod = getRunPipelineMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunPipeline")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.RunPipelineRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PipelineServiceMethodDescriptorSupplier("RunPipeline")) + .build(); } } } return getRunPipelineMethod; } - /** 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 PipelineServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PipelineServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PipelineServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PipelineServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PipelineServiceStub(channel, callOptions); + } + }; return PipelineServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static PipelineServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static PipelineServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PipelineServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PipelineServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PipelineServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PipelineServiceBlockingStub(channel, callOptions); + } + }; return PipelineServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static PipelineServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static PipelineServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PipelineServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PipelineServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PipelineServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PipelineServiceFutureStub(channel, callOptions); + } + }; return PipelineServiceFutureStub.newStub(factory, channel); } /** - * - * *
    * This service lets you manage pipelines.
    * 
@@ -130,81 +101,71 @@ public PipelineServiceFutureStub newStub( public interface AsyncService { /** - * - * *
      * Run a predefined pipeline.
      * 
*/ - default void runPipeline( - com.google.cloud.contentwarehouse.v1.RunPipelineRequest request, + default void runPipeline(com.google.cloud.contentwarehouse.v1.RunPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRunPipelineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunPipelineMethod(), responseObserver); } } /** * Base class for the server implementation of the service PipelineService. - * *
    * This service lets you manage pipelines.
    * 
*/ - public abstract static class PipelineServiceImplBase + public static abstract class PipelineServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return PipelineServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service PipelineService. - * *
    * This service lets you manage pipelines.
    * 
*/ public static final class PipelineServiceStub extends io.grpc.stub.AbstractAsyncStub { - private PipelineServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private PipelineServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected PipelineServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected PipelineServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PipelineServiceStub(channel, callOptions); } /** - * - * *
      * Run a predefined pipeline.
      * 
*/ - public void runPipeline( - com.google.cloud.contentwarehouse.v1.RunPipelineRequest request, + public void runPipeline(com.google.cloud.contentwarehouse.v1.RunPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunPipelineMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRunPipelineMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service PipelineService. - * *
    * This service lets you manage pipelines.
    * 
*/ public static final class PipelineServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private PipelineServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private PipelineServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -215,14 +176,11 @@ protected PipelineServiceBlockingStub build( } /** - * - * *
      * Run a predefined pipeline.
      * 
*/ - public com.google.longrunning.Operation runPipeline( - com.google.cloud.contentwarehouse.v1.RunPipelineRequest request) { + public com.google.longrunning.Operation runPipeline(com.google.cloud.contentwarehouse.v1.RunPipelineRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRunPipelineMethod(), getCallOptions(), request); } @@ -230,14 +188,14 @@ public com.google.longrunning.Operation runPipeline( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service PipelineService. - * *
    * This service lets you manage pipelines.
    * 
*/ public static final class PipelineServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private PipelineServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private PipelineServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -248,14 +206,12 @@ protected PipelineServiceFutureStub build( } /** - * - * *
      * Run a predefined pipeline.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - runPipeline(com.google.cloud.contentwarehouse.v1.RunPipelineRequest request) { + public com.google.common.util.concurrent.ListenableFuture runPipeline( + com.google.cloud.contentwarehouse.v1.RunPipelineRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRunPipelineMethod(), getCallOptions()), request); } @@ -263,11 +219,11 @@ protected PipelineServiceFutureStub build( private static final int METHODID_RUN_PIPELINE = 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; @@ -281,8 +237,7 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_RUN_PIPELINE: - serviceImpl.runPipeline( - (com.google.cloud.contentwarehouse.v1.RunPipelineRequest) request, + serviceImpl.runPipeline((com.google.cloud.contentwarehouse.v1.RunPipelineRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -304,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( - getRunPipelineMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.RunPipelineRequest, - com.google.longrunning.Operation>(service, METHODID_RUN_PIPELINE))) + getRunPipelineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.RunPipelineRequest, + com.google.longrunning.Operation>( + service, METHODID_RUN_PIPELINE))) .build(); } - private abstract static class PipelineServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class PipelineServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PipelineServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -356,12 +311,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (PipelineServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PipelineServiceFileDescriptorSupplier()) - .addMethod(getRunPipelineMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PipelineServiceFileDescriptorSupplier()) + .addMethod(getRunPipelineMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java new file mode 100644 index 000000000000..c7c7cb669eb7 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java @@ -0,0 +1,671 @@ +package com.google.cloud.contentwarehouse.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service to manage customer specific RuleSets.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/contentwarehouse/v1/ruleset_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class RuleSetServiceGrpc { + + private RuleSetServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.RuleSetService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateRuleSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRuleSet", + requestType = com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.RuleSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateRuleSetMethod() { + io.grpc.MethodDescriptor getCreateRuleSetMethod; + if ((getCreateRuleSetMethod = RuleSetServiceGrpc.getCreateRuleSetMethod) == null) { + synchronized (RuleSetServiceGrpc.class) { + if ((getCreateRuleSetMethod = RuleSetServiceGrpc.getCreateRuleSetMethod) == null) { + RuleSetServiceGrpc.getCreateRuleSetMethod = getCreateRuleSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRuleSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance())) + .setSchemaDescriptor(new RuleSetServiceMethodDescriptorSupplier("CreateRuleSet")) + .build(); + } + } + } + return getCreateRuleSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetRuleSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRuleSet", + requestType = com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.RuleSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRuleSetMethod() { + io.grpc.MethodDescriptor getGetRuleSetMethod; + if ((getGetRuleSetMethod = RuleSetServiceGrpc.getGetRuleSetMethod) == null) { + synchronized (RuleSetServiceGrpc.class) { + if ((getGetRuleSetMethod = RuleSetServiceGrpc.getGetRuleSetMethod) == null) { + RuleSetServiceGrpc.getGetRuleSetMethod = getGetRuleSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRuleSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance())) + .setSchemaDescriptor(new RuleSetServiceMethodDescriptorSupplier("GetRuleSet")) + .build(); + } + } + } + return getGetRuleSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateRuleSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRuleSet", + requestType = com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.RuleSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateRuleSetMethod() { + io.grpc.MethodDescriptor getUpdateRuleSetMethod; + if ((getUpdateRuleSetMethod = RuleSetServiceGrpc.getUpdateRuleSetMethod) == null) { + synchronized (RuleSetServiceGrpc.class) { + if ((getUpdateRuleSetMethod = RuleSetServiceGrpc.getUpdateRuleSetMethod) == null) { + RuleSetServiceGrpc.getUpdateRuleSetMethod = getUpdateRuleSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRuleSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance())) + .setSchemaDescriptor(new RuleSetServiceMethodDescriptorSupplier("UpdateRuleSet")) + .build(); + } + } + } + return getUpdateRuleSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteRuleSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRuleSet", + requestType = com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteRuleSetMethod() { + io.grpc.MethodDescriptor getDeleteRuleSetMethod; + if ((getDeleteRuleSetMethod = RuleSetServiceGrpc.getDeleteRuleSetMethod) == null) { + synchronized (RuleSetServiceGrpc.class) { + if ((getDeleteRuleSetMethod = RuleSetServiceGrpc.getDeleteRuleSetMethod) == null) { + RuleSetServiceGrpc.getDeleteRuleSetMethod = getDeleteRuleSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRuleSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new RuleSetServiceMethodDescriptorSupplier("DeleteRuleSet")) + .build(); + } + } + } + return getDeleteRuleSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRuleSetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuleSets", + requestType = com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRuleSetsMethod() { + io.grpc.MethodDescriptor getListRuleSetsMethod; + if ((getListRuleSetsMethod = RuleSetServiceGrpc.getListRuleSetsMethod) == null) { + synchronized (RuleSetServiceGrpc.class) { + if ((getListRuleSetsMethod = RuleSetServiceGrpc.getListRuleSetsMethod) == null) { + RuleSetServiceGrpc.getListRuleSetsMethod = getListRuleSetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuleSets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new RuleSetServiceMethodDescriptorSupplier("ListRuleSets")) + .build(); + } + } + } + return getListRuleSetsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static RuleSetServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RuleSetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleSetServiceStub(channel, callOptions); + } + }; + return RuleSetServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static RuleSetServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RuleSetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleSetServiceBlockingStub(channel, callOptions); + } + }; + return RuleSetServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static RuleSetServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RuleSetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleSetServiceFutureStub(channel, callOptions); + } + }; + return RuleSetServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service to manage customer specific RuleSets.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Creates a ruleset.
+     * 
+ */ + default void createRuleSet(com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRuleSetMethod(), responseObserver); + } + + /** + *
+     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
+     * 
+ */ + default void getRuleSet(com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRuleSetMethod(), responseObserver); + } + + /** + *
+     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + default void updateRuleSet(com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRuleSetMethod(), responseObserver); + } + + /** + *
+     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + default void deleteRuleSet(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRuleSetMethod(), responseObserver); + } + + /** + *
+     * Lists rulesets.
+     * 
+ */ + default void listRuleSets(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuleSetsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service RuleSetService. + *
+   * Service to manage customer specific RuleSets.
+   * 
+ */ + public static abstract class RuleSetServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return RuleSetServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service RuleSetService. + *
+   * Service to manage customer specific RuleSets.
+   * 
+ */ + public static final class RuleSetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private RuleSetServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RuleSetServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleSetServiceStub(channel, callOptions); + } + + /** + *
+     * Creates a ruleset.
+     * 
+ */ + public void createRuleSet(com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRuleSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
+     * 
+ */ + public void getRuleSet(com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRuleSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + public void updateRuleSet(com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRuleSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public void deleteRuleSet(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRuleSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists rulesets.
+     * 
+ */ + public void listRuleSets(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRuleSetsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service RuleSetService. + *
+   * Service to manage customer specific RuleSets.
+   * 
+ */ + public static final class RuleSetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private RuleSetServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RuleSetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleSetServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a ruleset.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.RuleSet createRuleSet(com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRuleSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet(com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRuleSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.RuleSet updateRuleSet(com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRuleSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public com.google.protobuf.Empty deleteRuleSet(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRuleSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists rulesets.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse listRuleSets(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuleSetsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service RuleSetService. + *
+   * Service to manage customer specific RuleSets.
+   * 
+ */ + public static final class RuleSetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private RuleSetServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RuleSetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleSetServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a ruleset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createRuleSet( + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRuleSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getRuleSet( + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRuleSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateRuleSet( + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRuleSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteRuleSet( + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRuleSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists rulesets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listRuleSets( + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuleSetsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_RULE_SET = 0; + private static final int METHODID_GET_RULE_SET = 1; + private static final int METHODID_UPDATE_RULE_SET = 2; + private static final int METHODID_DELETE_RULE_SET = 3; + private static final int METHODID_LIST_RULE_SETS = 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_CREATE_RULE_SET: + serviceImpl.createRuleSet((com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_RULE_SET: + serviceImpl.getRuleSet((com.google.cloud.contentwarehouse.v1.GetRuleSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_RULE_SET: + serviceImpl.updateRuleSet((com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RULE_SET: + serviceImpl.deleteRuleSet((com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RULE_SETS: + serviceImpl.listRuleSets((com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest) 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( + getCreateRuleSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet>( + service, METHODID_CREATE_RULE_SET))) + .addMethod( + getGetRuleSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet>( + service, METHODID_GET_RULE_SET))) + .addMethod( + getUpdateRuleSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet>( + service, METHODID_UPDATE_RULE_SET))) + .addMethod( + getDeleteRuleSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_RULE_SET))) + .addMethod( + getListRuleSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest, + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse>( + service, METHODID_LIST_RULE_SETS))) + .build(); + } + + private static abstract class RuleSetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + RuleSetServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("RuleSetService"); + } + } + + private static final class RuleSetServiceFileDescriptorSupplier + extends RuleSetServiceBaseDescriptorSupplier { + RuleSetServiceFileDescriptorSupplier() {} + } + + private static final class RuleSetServiceMethodDescriptorSupplier + extends RuleSetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + RuleSetServiceMethodDescriptorSupplier(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 (RuleSetServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RuleSetServiceFileDescriptorSupplier()) + .addMethod(getCreateRuleSetMethod()) + .addMethod(getGetRuleSetMethod()) + .addMethod(getUpdateRuleSetMethod()) + .addMethod(getDeleteRuleSetMethod()) + .addMethod(getListRuleSetsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java new file mode 100644 index 000000000000..648005add03f --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java @@ -0,0 +1,695 @@ +package com.google.cloud.contentwarehouse.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * A Service that manage/custom customer specified SynonymSets.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/contentwarehouse/v1/synonymset_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SynonymSetServiceGrpc { + + private SynonymSetServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.SynonymSetService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateSynonymSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSynonymSet", + requestType = com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.SynonymSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSynonymSetMethod() { + io.grpc.MethodDescriptor getCreateSynonymSetMethod; + if ((getCreateSynonymSetMethod = SynonymSetServiceGrpc.getCreateSynonymSetMethod) == null) { + synchronized (SynonymSetServiceGrpc.class) { + if ((getCreateSynonymSetMethod = SynonymSetServiceGrpc.getCreateSynonymSetMethod) == null) { + SynonymSetServiceGrpc.getCreateSynonymSetMethod = getCreateSynonymSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSynonymSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())) + .setSchemaDescriptor(new SynonymSetServiceMethodDescriptorSupplier("CreateSynonymSet")) + .build(); + } + } + } + return getCreateSynonymSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSynonymSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSynonymSet", + requestType = com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.SynonymSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSynonymSetMethod() { + io.grpc.MethodDescriptor getGetSynonymSetMethod; + if ((getGetSynonymSetMethod = SynonymSetServiceGrpc.getGetSynonymSetMethod) == null) { + synchronized (SynonymSetServiceGrpc.class) { + if ((getGetSynonymSetMethod = SynonymSetServiceGrpc.getGetSynonymSetMethod) == null) { + SynonymSetServiceGrpc.getGetSynonymSetMethod = getGetSynonymSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSynonymSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())) + .setSchemaDescriptor(new SynonymSetServiceMethodDescriptorSupplier("GetSynonymSet")) + .build(); + } + } + } + return getGetSynonymSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSynonymSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSynonymSet", + requestType = com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.SynonymSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSynonymSetMethod() { + io.grpc.MethodDescriptor getUpdateSynonymSetMethod; + if ((getUpdateSynonymSetMethod = SynonymSetServiceGrpc.getUpdateSynonymSetMethod) == null) { + synchronized (SynonymSetServiceGrpc.class) { + if ((getUpdateSynonymSetMethod = SynonymSetServiceGrpc.getUpdateSynonymSetMethod) == null) { + SynonymSetServiceGrpc.getUpdateSynonymSetMethod = getUpdateSynonymSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSynonymSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())) + .setSchemaDescriptor(new SynonymSetServiceMethodDescriptorSupplier("UpdateSynonymSet")) + .build(); + } + } + } + return getUpdateSynonymSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSynonymSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSynonymSet", + requestType = com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSynonymSetMethod() { + io.grpc.MethodDescriptor getDeleteSynonymSetMethod; + if ((getDeleteSynonymSetMethod = SynonymSetServiceGrpc.getDeleteSynonymSetMethod) == null) { + synchronized (SynonymSetServiceGrpc.class) { + if ((getDeleteSynonymSetMethod = SynonymSetServiceGrpc.getDeleteSynonymSetMethod) == null) { + SynonymSetServiceGrpc.getDeleteSynonymSetMethod = getDeleteSynonymSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSynonymSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SynonymSetServiceMethodDescriptorSupplier("DeleteSynonymSet")) + .build(); + } + } + } + return getDeleteSynonymSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSynonymSetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSynonymSets", + requestType = com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSynonymSetsMethod() { + io.grpc.MethodDescriptor getListSynonymSetsMethod; + if ((getListSynonymSetsMethod = SynonymSetServiceGrpc.getListSynonymSetsMethod) == null) { + synchronized (SynonymSetServiceGrpc.class) { + if ((getListSynonymSetsMethod = SynonymSetServiceGrpc.getListSynonymSetsMethod) == null) { + SynonymSetServiceGrpc.getListSynonymSetsMethod = getListSynonymSetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSynonymSets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SynonymSetServiceMethodDescriptorSupplier("ListSynonymSets")) + .build(); + } + } + } + return getListSynonymSetsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SynonymSetServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SynonymSetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SynonymSetServiceStub(channel, callOptions); + } + }; + return SynonymSetServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SynonymSetServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SynonymSetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SynonymSetServiceBlockingStub(channel, callOptions); + } + }; + return SynonymSetServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SynonymSetServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SynonymSetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SynonymSetServiceFutureStub(channel, callOptions); + } + }; + return SynonymSetServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * A Service that manage/custom customer specified SynonymSets.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Creates a SynonymSet for a single context.
+     * Throws an ALREADY_EXISTS exception if a synonymset already exists
+     * for the context.
+     * 
+ */ + default void createSynonymSet(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSynonymSetMethod(), responseObserver); + } + + /** + *
+     * Gets a SynonymSet for a particular context.
+     * Throws a NOT_FOUND exception if the Synonymset
+     * does not exist
+     * 
+ */ + default void getSynonymSet(com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSynonymSetMethod(), responseObserver); + } + + /** + *
+     * Remove the existing SynonymSet for the context and replaces it
+     * with a new one.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + default void updateSynonymSet(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSynonymSetMethod(), responseObserver); + } + + /** + *
+     * Deletes a SynonymSet for a given context.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + default void deleteSynonymSet(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSynonymSetMethod(), responseObserver); + } + + /** + *
+     * Returns all SynonymSets (for all contexts) for the specified location.
+     * 
+ */ + default void listSynonymSets(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSynonymSetsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SynonymSetService. + *
+   * A Service that manage/custom customer specified SynonymSets.
+   * 
+ */ + public static abstract class SynonymSetServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return SynonymSetServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SynonymSetService. + *
+   * A Service that manage/custom customer specified SynonymSets.
+   * 
+ */ + public static final class SynonymSetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SynonymSetServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SynonymSetServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SynonymSetServiceStub(channel, callOptions); + } + + /** + *
+     * Creates a SynonymSet for a single context.
+     * Throws an ALREADY_EXISTS exception if a synonymset already exists
+     * for the context.
+     * 
+ */ + public void createSynonymSet(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSynonymSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a SynonymSet for a particular context.
+     * Throws a NOT_FOUND exception if the Synonymset
+     * does not exist
+     * 
+ */ + public void getSynonymSet(com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSynonymSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Remove the existing SynonymSet for the context and replaces it
+     * with a new one.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + public void updateSynonymSet(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSynonymSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a SynonymSet for a given context.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + public void deleteSynonymSet(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSynonymSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all SynonymSets (for all contexts) for the specified location.
+     * 
+ */ + public void listSynonymSets(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSynonymSetsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SynonymSetService. + *
+   * A Service that manage/custom customer specified SynonymSets.
+   * 
+ */ + public static final class SynonymSetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SynonymSetServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SynonymSetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SynonymSetServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a SynonymSet for a single context.
+     * Throws an ALREADY_EXISTS exception if a synonymset already exists
+     * for the context.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.SynonymSet createSynonymSet(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSynonymSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a SynonymSet for a particular context.
+     * Throws a NOT_FOUND exception if the Synonymset
+     * does not exist
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet(com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSynonymSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Remove the existing SynonymSet for the context and replaces it
+     * with a new one.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.SynonymSet updateSynonymSet(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSynonymSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a SynonymSet for a given context.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + public com.google.protobuf.Empty deleteSynonymSet(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSynonymSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all SynonymSets (for all contexts) for the specified location.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse listSynonymSets(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSynonymSetsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SynonymSetService. + *
+   * A Service that manage/custom customer specified SynonymSets.
+   * 
+ */ + public static final class SynonymSetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SynonymSetServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SynonymSetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SynonymSetServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a SynonymSet for a single context.
+     * Throws an ALREADY_EXISTS exception if a synonymset already exists
+     * for the context.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSynonymSet( + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSynonymSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a SynonymSet for a particular context.
+     * Throws a NOT_FOUND exception if the Synonymset
+     * does not exist
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSynonymSet( + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSynonymSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Remove the existing SynonymSet for the context and replaces it
+     * with a new one.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSynonymSet( + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSynonymSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a SynonymSet for a given context.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSynonymSet( + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSynonymSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all SynonymSets (for all contexts) for the specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSynonymSets( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSynonymSetsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SYNONYM_SET = 0; + private static final int METHODID_GET_SYNONYM_SET = 1; + private static final int METHODID_UPDATE_SYNONYM_SET = 2; + private static final int METHODID_DELETE_SYNONYM_SET = 3; + private static final int METHODID_LIST_SYNONYM_SETS = 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_CREATE_SYNONYM_SET: + serviceImpl.createSynonymSet((com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SYNONYM_SET: + serviceImpl.getSynonymSet((com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SYNONYM_SET: + serviceImpl.updateSynonymSet((com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SYNONYM_SET: + serviceImpl.deleteSynonymSet((com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SYNONYM_SETS: + serviceImpl.listSynonymSets((com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) 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( + getCreateSynonymSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet>( + service, METHODID_CREATE_SYNONYM_SET))) + .addMethod( + getGetSynonymSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet>( + service, METHODID_GET_SYNONYM_SET))) + .addMethod( + getUpdateSynonymSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet>( + service, METHODID_UPDATE_SYNONYM_SET))) + .addMethod( + getDeleteSynonymSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_SYNONYM_SET))) + .addMethod( + getListSynonymSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest, + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse>( + service, METHODID_LIST_SYNONYM_SETS))) + .build(); + } + + private static abstract class SynonymSetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SynonymSetServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SynonymSetService"); + } + } + + private static final class SynonymSetServiceFileDescriptorSupplier + extends SynonymSetServiceBaseDescriptorSupplier { + SynonymSetServiceFileDescriptorSupplier() {} + } + + private static final class SynonymSetServiceMethodDescriptorSupplier + extends SynonymSetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SynonymSetServiceMethodDescriptorSupplier(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 (SynonymSetServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SynonymSetServiceFileDescriptorSupplier()) + .addMethod(getCreateSynonymSetMethod()) + .addMethod(getGetSynonymSetMethod()) + .addMethod(getUpdateSynonymSetMethod()) + .addMethod(getDeleteSynonymSetMethod()) + .addMethod(getListSynonymSetsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java index a87c4d31b065..748cfeb44ac0 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents the action responsible for access control list management
  * operations.
@@ -28,54 +11,49 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.AccessControlAction}
  */
-public final class AccessControlAction extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AccessControlAction extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.AccessControlAction)
     AccessControlActionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AccessControlAction.newBuilder() to construct.
   private AccessControlAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AccessControlAction() {
     operationType_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AccessControlAction();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-        .internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-        .internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.AccessControlAction.class,
-            com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder.class);
+            com.google.cloud.contentwarehouse.v1.AccessControlAction.class, com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Type of ACL modification operation.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.AccessControlAction.OperationType} */ - public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { + public enum OperationType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The unknown operation type.
      * 
@@ -84,8 +62,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
      * Adds newly given policy bindings in the existing bindings list.
      * 
@@ -94,8 +70,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ ADD_POLICY_BINDING(1), /** - * - * *
      * Removes newly given policy bindings from the existing bindings list.
      * 
@@ -104,8 +78,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ REMOVE_POLICY_BINDING(2), /** - * - * *
      * Replaces existing policy bindings with the given policy binding list
      * 
@@ -117,8 +89,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The unknown operation type.
      * 
@@ -127,8 +97,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * Adds newly given policy bindings in the existing bindings list.
      * 
@@ -137,8 +105,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADD_POLICY_BINDING_VALUE = 1; /** - * - * *
      * Removes newly given policy bindings from the existing bindings list.
      * 
@@ -147,8 +113,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REMOVE_POLICY_BINDING_VALUE = 2; /** - * - * *
      * Replaces existing policy bindings with the given policy binding list
      * 
@@ -157,6 +121,7 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REPLACE_POLICY_BINDING_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -181,53 +146,50 @@ public static OperationType valueOf(int value) { */ public static OperationType forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return ADD_POLICY_BINDING; - case 2: - return REMOVE_POLICY_BINDING; - case 3: - return REPLACE_POLICY_BINDING; - default: - return null; + case 0: return UNKNOWN; + case 1: return ADD_POLICY_BINDING; + case 2: return REMOVE_POLICY_BINDING; + case 3: return REPLACE_POLICY_BINDING; + 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< + OperationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationType findValueByNumber(int number) { + return OperationType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OperationType findValueByNumber(int number) { - return OperationType.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.contentwarehouse.v1.AccessControlAction.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.AccessControlAction.getDescriptor().getEnumTypes().get(0); } private static final OperationType[] VALUES = values(); - public static OperationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static OperationType 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; @@ -247,48 +209,32 @@ private OperationType(int value) { public static final int OPERATION_TYPE_FIELD_NUMBER = 1; private int operationType_ = 0; /** - * - * *
    * Identifies the type of operation.
    * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; - * - * + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override - public int getOperationTypeValue() { + @java.lang.Override public int getOperationTypeValue() { return operationType_; } /** - * - * *
    * Identifies the type of operation.
    * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; - * - * + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; * @return The operationType. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType getOperationType() { - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.forNumber( - operationType_); - return result == null - ? com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType getOperationType() { + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.forNumber(operationType_); + return result == null ? com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNRECOGNIZED : result; } public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v1.Policy policy_; /** - * - * *
    * Represents the new policy from which bindings are added, removed or
    * replaced based on the type of the operation. the policy is limited to a few
@@ -296,7 +242,6 @@ public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType ge
    * 
* * .google.iam.v1.Policy policy = 2; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -304,8 +249,6 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Represents the new policy from which bindings are added, removed or
    * replaced based on the type of the operation. the policy is limited to a few
@@ -313,7 +256,6 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 2; - * * @return The policy. */ @java.lang.Override @@ -321,8 +263,6 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * Represents the new policy from which bindings are added, removed or
    * replaced based on the type of the operation. the policy is limited to a few
@@ -337,7 +277,6 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -349,10 +288,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (operationType_
-        != com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNKNOWN
-            .getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (operationType_ != com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNKNOWN.getNumber()) {
       output.writeEnum(1, operationType_);
     }
     if (policy_ != null) {
@@ -367,13 +305,13 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (operationType_
-        != com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNKNOWN
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, operationType_);
+    if (operationType_ != com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNKNOWN.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, operationType_);
     }
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getPolicy());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -383,18 +321,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.contentwarehouse.v1.AccessControlAction)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.AccessControlAction other =
-        (com.google.cloud.contentwarehouse.v1.AccessControlAction) obj;
+    com.google.cloud.contentwarehouse.v1.AccessControlAction other = (com.google.cloud.contentwarehouse.v1.AccessControlAction) obj;
 
     if (operationType_ != other.operationType_) return false;
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy().equals(other.getPolicy())) return false;
+      if (!getPolicy()
+          .equals(other.getPolicy())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -419,104 +357,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction 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.contentwarehouse.v1.AccessControlAction parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction 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.contentwarehouse.v1.AccessControlAction parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.AccessControlAction prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.AccessControlAction prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Represents the action responsible for access control list management
    * operations.
@@ -524,32 +456,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.AccessControlAction}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.AccessControlAction)
       com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-          .internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-          .internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.AccessControlAction.class,
-              com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder.class);
+              com.google.cloud.contentwarehouse.v1.AccessControlAction.class, com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.AccessControlAction.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();
@@ -564,9 +497,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-          .internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
     }
 
     @java.lang.Override
@@ -585,11 +518,8 @@ public com.google.cloud.contentwarehouse.v1.AccessControlAction build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.AccessControlAction buildPartial() {
-      com.google.cloud.contentwarehouse.v1.AccessControlAction result =
-          new com.google.cloud.contentwarehouse.v1.AccessControlAction(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.contentwarehouse.v1.AccessControlAction result = new com.google.cloud.contentwarehouse.v1.AccessControlAction(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -600,7 +530,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.AccessControlAct
         result.operationType_ = operationType_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build();
+        result.policy_ = policyBuilder_ == null
+            ? policy_
+            : policyBuilder_.build();
       }
     }
 
@@ -608,39 +540,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.AccessControlAct
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.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.contentwarehouse.v1.AccessControlAction) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.AccessControlAction) other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.AccessControlAction)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -648,8 +579,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.AccessControlAction other) {
-      if (other == com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance()) return this;
       if (other.operationType_ != 0) {
         setOperationTypeValue(other.getOperationTypeValue());
       }
@@ -682,25 +612,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                operationType_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              operationType_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getPolicyFieldBuilder().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) {
@@ -710,36 +639,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private int operationType_ = 0;
     /**
-     *
-     *
      * 
      * Identifies the type of operation.
      * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; - * - * + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override - public int getOperationTypeValue() { + @java.lang.Override public int getOperationTypeValue() { return operationType_; } /** - * - * *
      * Identifies the type of operation.
      * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; - * - * + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; * @param value The enum numeric value on the wire for operationType to set. * @return This builder for chaining. */ @@ -750,42 +669,28 @@ public Builder setOperationTypeValue(int value) { return this; } /** - * - * *
      * Identifies the type of operation.
      * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; - * - * + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; * @return The operationType. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType - getOperationType() { - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.forNumber( - operationType_); - return result == null - ? com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNRECOGNIZED - : result; + public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType getOperationType() { + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.forNumber(operationType_); + return result == null ? com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNRECOGNIZED : result; } /** - * - * *
      * Identifies the type of operation.
      * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; - * - * + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; * @param value The operationType to set. * @return This builder for chaining. */ - public Builder setOperationType( - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType value) { + public Builder setOperationType(com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType value) { if (value == null) { throw new NullPointerException(); } @@ -795,15 +700,11 @@ public Builder setOperationType( return this; } /** - * - * *
      * Identifies the type of operation.
      * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; - * - * + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; * @return This builder for chaining. */ public Builder clearOperationType() { @@ -815,13 +716,8 @@ public Builder clearOperationType() { private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - policyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; /** - * - * *
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -829,15 +725,12 @@ public Builder clearOperationType() {
      * 
* * .google.iam.v1.Policy policy = 2; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -845,7 +738,6 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 2; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -856,8 +748,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -880,8 +770,6 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -890,7 +778,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
      *
      * .google.iam.v1.Policy policy = 2;
      */
-    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
+    public Builder setPolicy(
+        com.google.iam.v1.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
       } else {
@@ -901,8 +790,6 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -913,9 +800,9 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
      */
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && policy_ != null
-            && policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          policy_ != null &&
+          policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
           getPolicyBuilder().mergeFrom(value);
         } else {
           policy_ = value;
@@ -928,8 +815,6 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -949,8 +834,6 @@ public Builder clearPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -965,8 +848,6 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -979,12 +860,11 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ?
+            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
-     *
-     *
      * 
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -994,23 +874,21 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v1.Policy policy = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy,
-            com.google.iam.v1.Policy.Builder,
-            com.google.iam.v1.PolicyOrBuilder>
+        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.iam.v1.Policy,
-                com.google.iam.v1.Policy.Builder,
-                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
+        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
+                getPolicy(),
+                getParentForChildren(),
+                isClean());
         policy_ = null;
       }
       return policyBuilder_;
     }
-
     @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,12 +898,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.AccessControlAction)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.AccessControlAction)
   private static final com.google.cloud.contentwarehouse.v1.AccessControlAction DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.AccessControlAction();
   }
@@ -1034,27 +912,27 @@ public static com.google.cloud.contentwarehouse.v1.AccessControlAction getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AccessControlAction parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 AccessControlAction parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1069,4 +947,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.AccessControlAction getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java
similarity index 68%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java
index e53f19db4dad..cdefe30c569d 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java
@@ -1,58 +1,32 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface AccessControlActionOrBuilder
-    extends
+public interface AccessControlActionOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.AccessControlAction)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Identifies the type of operation.
    * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; - * - * + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; * @return The enum numeric value on the wire for operationType. */ int getOperationTypeValue(); /** - * - * *
    * Identifies the type of operation.
    * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; - * - * + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; * @return The operationType. */ com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType getOperationType(); /** - * - * *
    * Represents the new policy from which bindings are added, removed or
    * replaced based on the type of the operation. the policy is limited to a few
@@ -60,13 +34,10 @@ public interface AccessControlActionOrBuilder
    * 
* * .google.iam.v1.Policy policy = 2; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * Represents the new policy from which bindings are added, removed or
    * replaced based on the type of the operation. the policy is limited to a few
@@ -74,13 +45,10 @@ public interface AccessControlActionOrBuilder
    * 
* * .google.iam.v1.Policy policy = 2; - * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** - * - * *
    * Represents the new policy from which bindings are added, removed or
    * replaced based on the type of the operation. the policy is limited to a few
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java
similarity index 71%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java
index e0b2df5fd292..82929009a903 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java
@@ -1,36 +1,18 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/common.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Access Control Mode.
  * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.AccessControlMode} */ -public enum AccessControlMode implements com.google.protobuf.ProtocolMessageEnum { +public enum AccessControlMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * This value is required by protobuf best practices
    * 
@@ -39,8 +21,6 @@ public enum AccessControlMode implements com.google.protobuf.ProtocolMessageEnum */ ACL_MODE_UNKNOWN(0), /** - * - * *
    * Universal Access: No document level access control.
    * 
@@ -49,8 +29,6 @@ public enum AccessControlMode implements com.google.protobuf.ProtocolMessageEnum */ ACL_MODE_UNIVERSAL_ACCESS(1), /** - * - * *
    * Document level access control with customer own Identity Service.
    * 
@@ -59,8 +37,6 @@ public enum AccessControlMode implements com.google.protobuf.ProtocolMessageEnum */ ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID(2), /** - * - * *
    * Document level access control using Google Cloud Identity.
    * 
@@ -72,8 +48,6 @@ public enum AccessControlMode implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
    * This value is required by protobuf best practices
    * 
@@ -82,8 +56,6 @@ public enum AccessControlMode implements com.google.protobuf.ProtocolMessageEnum */ public static final int ACL_MODE_UNKNOWN_VALUE = 0; /** - * - * *
    * Universal Access: No document level access control.
    * 
@@ -92,8 +64,6 @@ public enum AccessControlMode implements com.google.protobuf.ProtocolMessageEnum */ public static final int ACL_MODE_UNIVERSAL_ACCESS_VALUE = 1; /** - * - * *
    * Document level access control with customer own Identity Service.
    * 
@@ -102,8 +72,6 @@ public enum AccessControlMode implements com.google.protobuf.ProtocolMessageEnum */ public static final int ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID_VALUE = 2; /** - * - * *
    * Document level access control using Google Cloud Identity.
    * 
@@ -112,6 +80,7 @@ public enum AccessControlMode implements com.google.protobuf.ProtocolMessageEnum */ public static final int ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,44 +105,40 @@ public static AccessControlMode valueOf(int value) { */ public static AccessControlMode forNumber(int value) { switch (value) { - case 0: - return ACL_MODE_UNKNOWN; - case 1: - return ACL_MODE_UNIVERSAL_ACCESS; - case 2: - return ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID; - case 3: - return ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI; - default: - return null; + case 0: return ACL_MODE_UNKNOWN; + case 1: return ACL_MODE_UNIVERSAL_ACCESS; + case 2: return ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID; + case 3: return ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AccessControlMode findValueByNumber(int number) { - return AccessControlMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + AccessControlMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AccessControlMode findValueByNumber(int number) { + return AccessControlMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor().getEnumTypes().get(2); } @@ -182,7 +147,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static AccessControlMode 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; @@ -198,3 +164,4 @@ private AccessControlMode(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.AccessControlMode) } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java similarity index 71% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java index bb5e90a0bae3..b979bfd0c28a 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java @@ -1,75 +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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents the action triggered by Rule Engine when the rule is true.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.Action} */ -public final class Action extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Action extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.Action) ActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Action.newBuilder() to construct. private Action(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Action() { actionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Action(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Action.class, - com.google.cloud.contentwarehouse.v1.Action.Builder.class); + com.google.cloud.contentwarehouse.v1.Action.class, com.google.cloud.contentwarehouse.v1.Action.Builder.class); } private int actionCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object action_; - public enum ActionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ACCESS_CONTROL(2), DATA_VALIDATION(3), @@ -80,7 +58,6 @@ public enum ActionCase DELETE_DOCUMENT_ACTION(10), ACTION_NOT_SET(0); private final int value; - private ActionCase(int value) { this.value = value; } @@ -96,49 +73,37 @@ public static ActionCase valueOf(int value) { public static ActionCase forNumber(int value) { switch (value) { - case 2: - return ACCESS_CONTROL; - case 3: - return DATA_VALIDATION; - case 4: - return DATA_UPDATE; - case 5: - return ADD_TO_FOLDER; - case 6: - return PUBLISH_TO_PUB_SUB; - case 9: - return REMOVE_FROM_FOLDER_ACTION; - case 10: - return DELETE_DOCUMENT_ACTION; - case 0: - return ACTION_NOT_SET; - default: - return null; + case 2: return ACCESS_CONTROL; + case 3: return DATA_VALIDATION; + case 4: return DATA_UPDATE; + case 5: return ADD_TO_FOLDER; + case 6: return PUBLISH_TO_PUB_SUB; + case 9: return REMOVE_FROM_FOLDER_ACTION; + case 10: return DELETE_DOCUMENT_ACTION; + case 0: return ACTION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); + public ActionCase + getActionCase() { + return ActionCase.forNumber( + actionCase_); } public static final int ACTION_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object actionId_ = ""; /** - * - * *
    * ID of the action. Managed internally.
    * 
* * string action_id = 1; - * * @return The actionId. */ @java.lang.Override @@ -147,29 +112,29 @@ public java.lang.String getActionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionId_ = s; return s; } } /** - * - * *
    * ID of the action. Managed internally.
    * 
* * string action_id = 1; - * * @return The bytes for actionId. */ @java.lang.Override - public com.google.protobuf.ByteString getActionIdBytes() { + public com.google.protobuf.ByteString + getActionIdBytes() { java.lang.Object ref = actionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionId_ = b; return b; } else { @@ -179,14 +144,11 @@ public com.google.protobuf.ByteString getActionIdBytes() { public static final int ACCESS_CONTROL_FIELD_NUMBER = 2; /** - * - * *
    * Action triggering access control operations.
    * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; - * * @return Whether the accessControl field is set. */ @java.lang.Override @@ -194,26 +156,21 @@ public boolean hasAccessControl() { return actionCase_ == 2; } /** - * - * *
    * Action triggering access control operations.
    * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; - * * @return The accessControl. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.AccessControlAction getAccessControl() { if (actionCase_ == 2) { - return (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_; + return (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_; } return com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance(); } /** - * - * *
    * Action triggering access control operations.
    * 
@@ -221,24 +178,20 @@ public com.google.cloud.contentwarehouse.v1.AccessControlAction getAccessControl * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder - getAccessControlOrBuilder() { + public com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder getAccessControlOrBuilder() { if (actionCase_ == 2) { - return (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_; + return (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_; } return com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance(); } public static final int DATA_VALIDATION_FIELD_NUMBER = 3; /** - * - * *
    * Action triggering data validation operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; - * * @return Whether the dataValidation field is set. */ @java.lang.Override @@ -246,26 +199,21 @@ public boolean hasDataValidation() { return actionCase_ == 3; } /** - * - * *
    * Action triggering data validation operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; - * * @return The dataValidation. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DataValidationAction getDataValidation() { if (actionCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_; + return (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_; } return com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance(); } /** - * - * *
    * Action triggering data validation operations.
    * 
@@ -273,24 +221,20 @@ public com.google.cloud.contentwarehouse.v1.DataValidationAction getDataValidati * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder - getDataValidationOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder getDataValidationOrBuilder() { if (actionCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_; + return (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_; } return com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance(); } public static final int DATA_UPDATE_FIELD_NUMBER = 4; /** - * - * *
    * Action triggering data update operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; - * * @return Whether the dataUpdate field is set. */ @java.lang.Override @@ -298,26 +242,21 @@ public boolean hasDataUpdate() { return actionCase_ == 4; } /** - * - * *
    * Action triggering data update operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; - * * @return The dataUpdate. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DataUpdateAction getDataUpdate() { if (actionCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_; + return (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_; } return com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance(); } /** - * - * *
    * Action triggering data update operations.
    * 
@@ -327,21 +266,18 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction getDataUpdate() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder getDataUpdateOrBuilder() { if (actionCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_; + return (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_; } return com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance(); } public static final int ADD_TO_FOLDER_FIELD_NUMBER = 5; /** - * - * *
    * Action triggering create document link operation.
    * 
* * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; - * * @return Whether the addToFolder field is set. */ @java.lang.Override @@ -349,26 +285,21 @@ public boolean hasAddToFolder() { return actionCase_ == 5; } /** - * - * *
    * Action triggering create document link operation.
    * 
* * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; - * * @return The addToFolder. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.AddToFolderAction getAddToFolder() { if (actionCase_ == 5) { - return (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_; + return (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_; } return com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance(); } /** - * - * *
    * Action triggering create document link operation.
    * 
@@ -378,21 +309,18 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction getAddToFolder() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder getAddToFolderOrBuilder() { if (actionCase_ == 5) { - return (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_; + return (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_; } return com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance(); } public static final int PUBLISH_TO_PUB_SUB_FIELD_NUMBER = 6; /** - * - * *
    * Action publish to Pub/Sub operation.
    * 
* * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; - * * @return Whether the publishToPubSub field is set. */ @java.lang.Override @@ -400,26 +328,21 @@ public boolean hasPublishToPubSub() { return actionCase_ == 6; } /** - * - * *
    * Action publish to Pub/Sub operation.
    * 
* * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; - * * @return The publishToPubSub. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.PublishAction getPublishToPubSub() { if (actionCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.PublishAction) action_; + return (com.google.cloud.contentwarehouse.v1.PublishAction) action_; } return com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance(); } /** - * - * *
    * Action publish to Pub/Sub operation.
    * 
@@ -429,22 +352,18 @@ public com.google.cloud.contentwarehouse.v1.PublishAction getPublishToPubSub() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder getPublishToPubSubOrBuilder() { if (actionCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.PublishAction) action_; + return (com.google.cloud.contentwarehouse.v1.PublishAction) action_; } return com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance(); } public static final int REMOVE_FROM_FOLDER_ACTION_FIELD_NUMBER = 9; /** - * - * *
    * Action removing a document from a folder.
    * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; * @return Whether the removeFromFolderAction field is set. */ @java.lang.Override @@ -452,54 +371,42 @@ public boolean hasRemoveFromFolderAction() { return actionCase_ == 9; } /** - * - * *
    * Action removing a document from a folder.
    * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; * @return The removeFromFolderAction. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction getRemoveFromFolderAction() { if (actionCase_ == 9) { - return (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_; + return (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_; } return com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance(); } /** - * - * *
    * Action removing a document from a folder.
    * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder - getRemoveFromFolderActionOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder getRemoveFromFolderActionOrBuilder() { if (actionCase_ == 9) { - return (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_; + return (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_; } return com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance(); } public static final int DELETE_DOCUMENT_ACTION_FIELD_NUMBER = 10; /** - * - * *
    * Action deleting the document.
    * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; * @return Whether the deleteDocumentAction field is set. */ @java.lang.Override @@ -507,45 +414,36 @@ public boolean hasDeleteDocumentAction() { return actionCase_ == 10; } /** - * - * *
    * Action deleting the document.
    * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; * @return The deleteDocumentAction. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction getDeleteDocumentAction() { if (actionCase_ == 10) { - return (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_; + return (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_; } return com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance(); } /** - * - * *
    * Action deleting the document.
    * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder - getDeleteDocumentActionOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder getDeleteDocumentActionOrBuilder() { if (actionCase_ == 10) { - return (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_; + return (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_; } return com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -557,7 +455,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(actionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionId_); } @@ -595,39 +494,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, actionId_); } if (actionCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_); } if (actionCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_); } if (actionCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_); } if (actionCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_); } if (actionCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.contentwarehouse.v1.PublishAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.contentwarehouse.v1.PublishAction) action_); } if (actionCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_); } if (actionCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -637,37 +529,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.Action)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.Action other = - (com.google.cloud.contentwarehouse.v1.Action) obj; + com.google.cloud.contentwarehouse.v1.Action other = (com.google.cloud.contentwarehouse.v1.Action) obj; - if (!getActionId().equals(other.getActionId())) return false; + if (!getActionId() + .equals(other.getActionId())) return false; if (!getActionCase().equals(other.getActionCase())) return false; switch (actionCase_) { case 2: - if (!getAccessControl().equals(other.getAccessControl())) return false; + if (!getAccessControl() + .equals(other.getAccessControl())) return false; break; case 3: - if (!getDataValidation().equals(other.getDataValidation())) return false; + if (!getDataValidation() + .equals(other.getDataValidation())) return false; break; case 4: - if (!getDataUpdate().equals(other.getDataUpdate())) return false; + if (!getDataUpdate() + .equals(other.getDataUpdate())) return false; break; case 5: - if (!getAddToFolder().equals(other.getAddToFolder())) return false; + if (!getAddToFolder() + .equals(other.getAddToFolder())) return false; break; case 6: - if (!getPublishToPubSub().equals(other.getPublishToPubSub())) return false; + if (!getPublishToPubSub() + .equals(other.getPublishToPubSub())) return false; break; case 9: - if (!getRemoveFromFolderAction().equals(other.getRemoveFromFolderAction())) return false; + if (!getRemoveFromFolderAction() + .equals(other.getRemoveFromFolderAction())) return false; break; case 10: - if (!getDeleteDocumentAction().equals(other.getDeleteDocumentAction())) return false; + if (!getDeleteDocumentAction() + .equals(other.getDeleteDocumentAction())) return false; break; case 0: default: @@ -722,136 +621,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.Action parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.Action parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.Action parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Action parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.Action parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Action parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.Action parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Action 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.contentwarehouse.v1.Action parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Action parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.Action parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.Action 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.contentwarehouse.v1.Action parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.Action parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.Action prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the action triggered by Rule Engine when the rule is true.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.Action} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.Action) com.google.cloud.contentwarehouse.v1.ActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Action.class, - com.google.cloud.contentwarehouse.v1.Action.Builder.class); + com.google.cloud.contentwarehouse.v1.Action.class, com.google.cloud.contentwarehouse.v1.Action.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.Action.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(); @@ -884,9 +779,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; } @java.lang.Override @@ -905,11 +800,8 @@ public com.google.cloud.contentwarehouse.v1.Action build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.Action buildPartial() { - com.google.cloud.contentwarehouse.v1.Action result = - new com.google.cloud.contentwarehouse.v1.Action(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.Action result = new com.google.cloud.contentwarehouse.v1.Action(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -925,25 +817,32 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Action result) { private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Action result) { result.actionCase_ = actionCase_; result.action_ = this.action_; - if (actionCase_ == 2 && accessControlBuilder_ != null) { + if (actionCase_ == 2 && + accessControlBuilder_ != null) { result.action_ = accessControlBuilder_.build(); } - if (actionCase_ == 3 && dataValidationBuilder_ != null) { + if (actionCase_ == 3 && + dataValidationBuilder_ != null) { result.action_ = dataValidationBuilder_.build(); } - if (actionCase_ == 4 && dataUpdateBuilder_ != null) { + if (actionCase_ == 4 && + dataUpdateBuilder_ != null) { result.action_ = dataUpdateBuilder_.build(); } - if (actionCase_ == 5 && addToFolderBuilder_ != null) { + if (actionCase_ == 5 && + addToFolderBuilder_ != null) { result.action_ = addToFolderBuilder_.build(); } - if (actionCase_ == 6 && publishToPubSubBuilder_ != null) { + if (actionCase_ == 6 && + publishToPubSubBuilder_ != null) { result.action_ = publishToPubSubBuilder_.build(); } - if (actionCase_ == 9 && removeFromFolderActionBuilder_ != null) { + if (actionCase_ == 9 && + removeFromFolderActionBuilder_ != null) { result.action_ = removeFromFolderActionBuilder_.build(); } - if (actionCase_ == 10 && deleteDocumentActionBuilder_ != null) { + if (actionCase_ == 10 && + deleteDocumentActionBuilder_ != null) { result.action_ = deleteDocumentActionBuilder_.build(); } } @@ -952,39 +851,38 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Action 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.contentwarehouse.v1.Action) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.Action) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.Action)other); } else { super.mergeFrom(other); return this; @@ -999,45 +897,37 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Action other) { onChanged(); } switch (other.getActionCase()) { - case ACCESS_CONTROL: - { - mergeAccessControl(other.getAccessControl()); - break; - } - case DATA_VALIDATION: - { - mergeDataValidation(other.getDataValidation()); - break; - } - case DATA_UPDATE: - { - mergeDataUpdate(other.getDataUpdate()); - break; - } - case ADD_TO_FOLDER: - { - mergeAddToFolder(other.getAddToFolder()); - break; - } - case PUBLISH_TO_PUB_SUB: - { - mergePublishToPubSub(other.getPublishToPubSub()); - break; - } - case REMOVE_FROM_FOLDER_ACTION: - { - mergeRemoveFromFolderAction(other.getRemoveFromFolderAction()); - break; - } - case DELETE_DOCUMENT_ACTION: - { - mergeDeleteDocumentAction(other.getDeleteDocumentAction()); - break; - } - case ACTION_NOT_SET: - { - break; - } + case ACCESS_CONTROL: { + mergeAccessControl(other.getAccessControl()); + break; + } + case DATA_VALIDATION: { + mergeDataValidation(other.getDataValidation()); + break; + } + case DATA_UPDATE: { + mergeDataUpdate(other.getDataUpdate()); + break; + } + case ADD_TO_FOLDER: { + mergeAddToFolder(other.getAddToFolder()); + break; + } + case PUBLISH_TO_PUB_SUB: { + mergePublishToPubSub(other.getPublishToPubSub()); + break; + } + case REMOVE_FROM_FOLDER_ACTION: { + mergeRemoveFromFolderAction(other.getRemoveFromFolderAction()); + break; + } + case DELETE_DOCUMENT_ACTION: { + mergeDeleteDocumentAction(other.getDeleteDocumentAction()); + break; + } + case ACTION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1065,63 +955,66 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - actionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getAccessControlFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getDataValidationFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getDataUpdateFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getAddToFolderFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getPublishToPubSubFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 6; - break; - } // case 50 - case 74: - { - input.readMessage( - getRemoveFromFolderActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 9; - break; - } // case 74 - case 82: - { - input.readMessage( - getDeleteDocumentActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 10; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + actionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAccessControlFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getDataValidationFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getDataUpdateFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getAddToFolderFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getPublishToPubSubFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 6; + break; + } // case 50 + case 74: { + input.readMessage( + getRemoveFromFolderActionFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getDeleteDocumentActionFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 10; + 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) { @@ -1131,12 +1024,12 @@ public Builder mergeFrom( } // finally return this; } - private int actionCase_ = 0; private java.lang.Object action_; - - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); + public ActionCase + getActionCase() { + return ActionCase.forNumber( + actionCase_); } public Builder clearAction() { @@ -1150,20 +1043,18 @@ public Builder clearAction() { private java.lang.Object actionId_ = ""; /** - * - * *
      * ID of the action. Managed internally.
      * 
* * string action_id = 1; - * * @return The actionId. */ public java.lang.String getActionId() { java.lang.Object ref = actionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionId_ = s; return s; @@ -1172,21 +1063,20 @@ public java.lang.String getActionId() { } } /** - * - * *
      * ID of the action. Managed internally.
      * 
* * string action_id = 1; - * * @return The bytes for actionId. */ - public com.google.protobuf.ByteString getActionIdBytes() { + public com.google.protobuf.ByteString + getActionIdBytes() { java.lang.Object ref = actionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionId_ = b; return b; } else { @@ -1194,35 +1084,28 @@ public com.google.protobuf.ByteString getActionIdBytes() { } } /** - * - * *
      * ID of the action. Managed internally.
      * 
* * string action_id = 1; - * * @param value The actionId to set. * @return This builder for chaining. */ - public Builder setActionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } actionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * ID of the action. Managed internally.
      * 
* * string action_id = 1; - * * @return This builder for chaining. */ public Builder clearActionId() { @@ -1232,21 +1115,17 @@ public Builder clearActionId() { return this; } /** - * - * *
      * ID of the action. Managed internally.
      * 
* * string action_id = 1; - * * @param value The bytes for actionId to set. * @return This builder for chaining. */ - public Builder setActionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); actionId_ = value; bitField0_ |= 0x00000001; @@ -1255,19 +1134,13 @@ public Builder setActionIdBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.AccessControlAction, - com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder, - com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder> - accessControlBuilder_; + com.google.cloud.contentwarehouse.v1.AccessControlAction, com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder, com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder> accessControlBuilder_; /** - * - * *
      * Action triggering access control operations.
      * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; - * * @return Whether the accessControl field is set. */ @java.lang.Override @@ -1275,14 +1148,11 @@ public boolean hasAccessControl() { return actionCase_ == 2; } /** - * - * *
      * Action triggering access control operations.
      * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; - * * @return The accessControl. */ @java.lang.Override @@ -1300,16 +1170,13 @@ public com.google.cloud.contentwarehouse.v1.AccessControlAction getAccessControl } } /** - * - * *
      * Action triggering access control operations.
      * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; */ - public Builder setAccessControl( - com.google.cloud.contentwarehouse.v1.AccessControlAction value) { + public Builder setAccessControl(com.google.cloud.contentwarehouse.v1.AccessControlAction value) { if (accessControlBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1323,8 +1190,6 @@ public Builder setAccessControl( return this; } /** - * - * *
      * Action triggering access control operations.
      * 
@@ -1343,25 +1208,18 @@ public Builder setAccessControl( return this; } /** - * - * *
      * Action triggering access control operations.
      * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; */ - public Builder mergeAccessControl( - com.google.cloud.contentwarehouse.v1.AccessControlAction value) { + public Builder mergeAccessControl(com.google.cloud.contentwarehouse.v1.AccessControlAction value) { if (accessControlBuilder_ == null) { - if (actionCase_ == 2 - && action_ - != com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance()) { - action_ = - com.google.cloud.contentwarehouse.v1.AccessControlAction.newBuilder( - (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 2 && + action_ != com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance()) { + action_ = com.google.cloud.contentwarehouse.v1.AccessControlAction.newBuilder((com.google.cloud.contentwarehouse.v1.AccessControlAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -1377,8 +1235,6 @@ public Builder mergeAccessControl( return this; } /** - * - * *
      * Action triggering access control operations.
      * 
@@ -1402,21 +1258,16 @@ public Builder clearAccessControl() { return this; } /** - * - * *
      * Action triggering access control operations.
      * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; */ - public com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder - getAccessControlBuilder() { + public com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder getAccessControlBuilder() { return getAccessControlFieldBuilder().getBuilder(); } /** - * - * *
      * Action triggering access control operations.
      * 
@@ -1424,8 +1275,7 @@ public Builder clearAccessControl() { * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder - getAccessControlOrBuilder() { + public com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder getAccessControlOrBuilder() { if ((actionCase_ == 2) && (accessControlBuilder_ != null)) { return accessControlBuilder_.getMessageOrBuilder(); } else { @@ -1436,8 +1286,6 @@ public Builder clearAccessControl() { } } /** - * - * *
      * Action triggering access control operations.
      * 
@@ -1445,19 +1293,14 @@ public Builder clearAccessControl() { * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.AccessControlAction, - com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder, - com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder> + com.google.cloud.contentwarehouse.v1.AccessControlAction, com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder, com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder> getAccessControlFieldBuilder() { if (accessControlBuilder_ == null) { if (!(actionCase_ == 2)) { action_ = com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance(); } - accessControlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.AccessControlAction, - com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder, - com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder>( + accessControlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.AccessControlAction, com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder, com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_, getParentForChildren(), isClean()); @@ -1469,19 +1312,13 @@ public Builder clearAccessControl() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DataValidationAction, - com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder, - com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder> - dataValidationBuilder_; + com.google.cloud.contentwarehouse.v1.DataValidationAction, com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder, com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder> dataValidationBuilder_; /** - * - * *
      * Action triggering data validation operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; - * * @return Whether the dataValidation field is set. */ @java.lang.Override @@ -1489,14 +1326,11 @@ public boolean hasDataValidation() { return actionCase_ == 3; } /** - * - * *
      * Action triggering data validation operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; - * * @return The dataValidation. */ @java.lang.Override @@ -1514,16 +1348,13 @@ public com.google.cloud.contentwarehouse.v1.DataValidationAction getDataValidati } } /** - * - * *
      * Action triggering data validation operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; */ - public Builder setDataValidation( - com.google.cloud.contentwarehouse.v1.DataValidationAction value) { + public Builder setDataValidation(com.google.cloud.contentwarehouse.v1.DataValidationAction value) { if (dataValidationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1537,8 +1368,6 @@ public Builder setDataValidation( return this; } /** - * - * *
      * Action triggering data validation operations.
      * 
@@ -1557,25 +1386,18 @@ public Builder setDataValidation( return this; } /** - * - * *
      * Action triggering data validation operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; */ - public Builder mergeDataValidation( - com.google.cloud.contentwarehouse.v1.DataValidationAction value) { + public Builder mergeDataValidation(com.google.cloud.contentwarehouse.v1.DataValidationAction value) { if (dataValidationBuilder_ == null) { - if (actionCase_ == 3 - && action_ - != com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance()) { - action_ = - com.google.cloud.contentwarehouse.v1.DataValidationAction.newBuilder( - (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 3 && + action_ != com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance()) { + action_ = com.google.cloud.contentwarehouse.v1.DataValidationAction.newBuilder((com.google.cloud.contentwarehouse.v1.DataValidationAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -1591,8 +1413,6 @@ public Builder mergeDataValidation( return this; } /** - * - * *
      * Action triggering data validation operations.
      * 
@@ -1616,21 +1436,16 @@ public Builder clearDataValidation() { return this; } /** - * - * *
      * Action triggering data validation operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; */ - public com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder - getDataValidationBuilder() { + public com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder getDataValidationBuilder() { return getDataValidationFieldBuilder().getBuilder(); } /** - * - * *
      * Action triggering data validation operations.
      * 
@@ -1638,8 +1453,7 @@ public Builder clearDataValidation() { * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder - getDataValidationOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder getDataValidationOrBuilder() { if ((actionCase_ == 3) && (dataValidationBuilder_ != null)) { return dataValidationBuilder_.getMessageOrBuilder(); } else { @@ -1650,8 +1464,6 @@ public Builder clearDataValidation() { } } /** - * - * *
      * Action triggering data validation operations.
      * 
@@ -1659,19 +1471,14 @@ public Builder clearDataValidation() { * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DataValidationAction, - com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder, - com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder> + com.google.cloud.contentwarehouse.v1.DataValidationAction, com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder, com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder> getDataValidationFieldBuilder() { if (dataValidationBuilder_ == null) { if (!(actionCase_ == 3)) { action_ = com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance(); } - dataValidationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DataValidationAction, - com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder, - com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder>( + dataValidationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DataValidationAction, com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder, com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_, getParentForChildren(), isClean()); @@ -1683,19 +1490,13 @@ public Builder clearDataValidation() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DataUpdateAction, - com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder, - com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder> - dataUpdateBuilder_; + com.google.cloud.contentwarehouse.v1.DataUpdateAction, com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder, com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder> dataUpdateBuilder_; /** - * - * *
      * Action triggering data update operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; - * * @return Whether the dataUpdate field is set. */ @java.lang.Override @@ -1703,14 +1504,11 @@ public boolean hasDataUpdate() { return actionCase_ == 4; } /** - * - * *
      * Action triggering data update operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; - * * @return The dataUpdate. */ @java.lang.Override @@ -1728,8 +1526,6 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction getDataUpdate() { } } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1750,8 +1546,6 @@ public Builder setDataUpdate(com.google.cloud.contentwarehouse.v1.DataUpdateActi return this; } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1770,8 +1564,6 @@ public Builder setDataUpdate( return this; } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1780,14 +1572,10 @@ public Builder setDataUpdate( */ public Builder mergeDataUpdate(com.google.cloud.contentwarehouse.v1.DataUpdateAction value) { if (dataUpdateBuilder_ == null) { - if (actionCase_ == 4 - && action_ - != com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance()) { - action_ = - com.google.cloud.contentwarehouse.v1.DataUpdateAction.newBuilder( - (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 4 && + action_ != com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance()) { + action_ = com.google.cloud.contentwarehouse.v1.DataUpdateAction.newBuilder((com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -1803,8 +1591,6 @@ public Builder mergeDataUpdate(com.google.cloud.contentwarehouse.v1.DataUpdateAc return this; } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1828,8 +1614,6 @@ public Builder clearDataUpdate() { return this; } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1840,8 +1624,6 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder getDataUpda return getDataUpdateFieldBuilder().getBuilder(); } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1860,8 +1642,6 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder getDataUpd } } /** - * - * *
      * Action triggering data update operations.
      * 
@@ -1869,19 +1649,14 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder getDataUpd * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DataUpdateAction, - com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder, - com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder> + com.google.cloud.contentwarehouse.v1.DataUpdateAction, com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder, com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder> getDataUpdateFieldBuilder() { if (dataUpdateBuilder_ == null) { if (!(actionCase_ == 4)) { action_ = com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance(); } - dataUpdateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DataUpdateAction, - com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder, - com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder>( + dataUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DataUpdateAction, com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder, com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_, getParentForChildren(), isClean()); @@ -1893,19 +1668,13 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder getDataUpd } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.AddToFolderAction, - com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder, - com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder> - addToFolderBuilder_; + com.google.cloud.contentwarehouse.v1.AddToFolderAction, com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder, com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder> addToFolderBuilder_; /** - * - * *
      * Action triggering create document link operation.
      * 
* * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; - * * @return Whether the addToFolder field is set. */ @java.lang.Override @@ -1913,14 +1682,11 @@ public boolean hasAddToFolder() { return actionCase_ == 5; } /** - * - * *
      * Action triggering create document link operation.
      * 
* * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; - * * @return The addToFolder. */ @java.lang.Override @@ -1938,8 +1704,6 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction getAddToFolder() { } } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -1960,8 +1724,6 @@ public Builder setAddToFolder(com.google.cloud.contentwarehouse.v1.AddToFolderAc return this; } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -1980,8 +1742,6 @@ public Builder setAddToFolder( return this; } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -1990,14 +1750,10 @@ public Builder setAddToFolder( */ public Builder mergeAddToFolder(com.google.cloud.contentwarehouse.v1.AddToFolderAction value) { if (addToFolderBuilder_ == null) { - if (actionCase_ == 5 - && action_ - != com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance()) { - action_ = - com.google.cloud.contentwarehouse.v1.AddToFolderAction.newBuilder( - (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 5 && + action_ != com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance()) { + action_ = com.google.cloud.contentwarehouse.v1.AddToFolderAction.newBuilder((com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -2013,8 +1769,6 @@ public Builder mergeAddToFolder(com.google.cloud.contentwarehouse.v1.AddToFolder return this; } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -2038,8 +1792,6 @@ public Builder clearAddToFolder() { return this; } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -2050,8 +1802,6 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder getAddToFo return getAddToFolderFieldBuilder().getBuilder(); } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -2059,8 +1809,7 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder getAddToFo * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder - getAddToFolderOrBuilder() { + public com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder getAddToFolderOrBuilder() { if ((actionCase_ == 5) && (addToFolderBuilder_ != null)) { return addToFolderBuilder_.getMessageOrBuilder(); } else { @@ -2071,8 +1820,6 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder getAddToFo } } /** - * - * *
      * Action triggering create document link operation.
      * 
@@ -2080,19 +1827,14 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder getAddToFo * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.AddToFolderAction, - com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder, - com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder> + com.google.cloud.contentwarehouse.v1.AddToFolderAction, com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder, com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder> getAddToFolderFieldBuilder() { if (addToFolderBuilder_ == null) { if (!(actionCase_ == 5)) { action_ = com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance(); } - addToFolderBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.AddToFolderAction, - com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder, - com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder>( + addToFolderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.AddToFolderAction, com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder, com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_, getParentForChildren(), isClean()); @@ -2104,19 +1846,13 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder getAddToFo } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PublishAction, - com.google.cloud.contentwarehouse.v1.PublishAction.Builder, - com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder> - publishToPubSubBuilder_; + com.google.cloud.contentwarehouse.v1.PublishAction, com.google.cloud.contentwarehouse.v1.PublishAction.Builder, com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder> publishToPubSubBuilder_; /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
* * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; - * * @return Whether the publishToPubSub field is set. */ @java.lang.Override @@ -2124,14 +1860,11 @@ public boolean hasPublishToPubSub() { return actionCase_ == 6; } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
* * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; - * * @return The publishToPubSub. */ @java.lang.Override @@ -2149,8 +1882,6 @@ public com.google.cloud.contentwarehouse.v1.PublishAction getPublishToPubSub() { } } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2171,8 +1902,6 @@ public Builder setPublishToPubSub(com.google.cloud.contentwarehouse.v1.PublishAc return this; } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2191,8 +1920,6 @@ public Builder setPublishToPubSub( return this; } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2201,13 +1928,10 @@ public Builder setPublishToPubSub( */ public Builder mergePublishToPubSub(com.google.cloud.contentwarehouse.v1.PublishAction value) { if (publishToPubSubBuilder_ == null) { - if (actionCase_ == 6 - && action_ != com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance()) { - action_ = - com.google.cloud.contentwarehouse.v1.PublishAction.newBuilder( - (com.google.cloud.contentwarehouse.v1.PublishAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 6 && + action_ != com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance()) { + action_ = com.google.cloud.contentwarehouse.v1.PublishAction.newBuilder((com.google.cloud.contentwarehouse.v1.PublishAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -2223,8 +1947,6 @@ public Builder mergePublishToPubSub(com.google.cloud.contentwarehouse.v1.Publish return this; } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2248,8 +1970,6 @@ public Builder clearPublishToPubSub() { return this; } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2260,8 +1980,6 @@ public com.google.cloud.contentwarehouse.v1.PublishAction.Builder getPublishToPu return getPublishToPubSubFieldBuilder().getBuilder(); } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2269,8 +1987,7 @@ public com.google.cloud.contentwarehouse.v1.PublishAction.Builder getPublishToPu * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder - getPublishToPubSubOrBuilder() { + public com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder getPublishToPubSubOrBuilder() { if ((actionCase_ == 6) && (publishToPubSubBuilder_ != null)) { return publishToPubSubBuilder_.getMessageOrBuilder(); } else { @@ -2281,8 +1998,6 @@ public com.google.cloud.contentwarehouse.v1.PublishAction.Builder getPublishToPu } } /** - * - * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2290,19 +2005,14 @@ public com.google.cloud.contentwarehouse.v1.PublishAction.Builder getPublishToPu * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PublishAction, - com.google.cloud.contentwarehouse.v1.PublishAction.Builder, - com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder> + com.google.cloud.contentwarehouse.v1.PublishAction, com.google.cloud.contentwarehouse.v1.PublishAction.Builder, com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder> getPublishToPubSubFieldBuilder() { if (publishToPubSubBuilder_ == null) { if (!(actionCase_ == 6)) { action_ = com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance(); } - publishToPubSubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PublishAction, - com.google.cloud.contentwarehouse.v1.PublishAction.Builder, - com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder>( + publishToPubSubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.PublishAction, com.google.cloud.contentwarehouse.v1.PublishAction.Builder, com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.PublishAction) action_, getParentForChildren(), isClean()); @@ -2314,20 +2024,13 @@ public com.google.cloud.contentwarehouse.v1.PublishAction.Builder getPublishToPu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction, - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder, - com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder> - removeFromFolderActionBuilder_; + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction, com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder, com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder> removeFromFolderActionBuilder_; /** - * - * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; * @return Whether the removeFromFolderAction field is set. */ @java.lang.Override @@ -2335,15 +2038,11 @@ public boolean hasRemoveFromFolderAction() { return actionCase_ == 9; } /** - * - * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; * @return The removeFromFolderAction. */ @java.lang.Override @@ -2361,17 +2060,13 @@ public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction getRemoveFrom } } /** - * - * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; */ - public Builder setRemoveFromFolderAction( - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction value) { + public Builder setRemoveFromFolderAction(com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction value) { if (removeFromFolderActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2385,14 +2080,11 @@ public Builder setRemoveFromFolderAction( return this; } /** - * - * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; */ public Builder setRemoveFromFolderAction( com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder builderForValue) { @@ -2406,27 +2098,18 @@ public Builder setRemoveFromFolderAction( return this; } /** - * - * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; */ - public Builder mergeRemoveFromFolderAction( - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction value) { + public Builder mergeRemoveFromFolderAction(com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction value) { if (removeFromFolderActionBuilder_ == null) { - if (actionCase_ == 9 - && action_ - != com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction - .getDefaultInstance()) { - action_ = - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.newBuilder( - (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 9 && + action_ != com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance()) { + action_ = com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.newBuilder((com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -2442,14 +2125,11 @@ public Builder mergeRemoveFromFolderAction( return this; } /** - * - * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; */ public Builder clearRemoveFromFolderAction() { if (removeFromFolderActionBuilder_ == null) { @@ -2468,32 +2148,24 @@ public Builder clearRemoveFromFolderAction() { return this; } /** - * - * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; */ - public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder - getRemoveFromFolderActionBuilder() { + public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder getRemoveFromFolderActionBuilder() { return getRemoveFromFolderActionFieldBuilder().getBuilder(); } /** - * - * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder - getRemoveFromFolderActionOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder getRemoveFromFolderActionOrBuilder() { if ((actionCase_ == 9) && (removeFromFolderActionBuilder_ != null)) { return removeFromFolderActionBuilder_.getMessageOrBuilder(); } else { @@ -2504,30 +2176,21 @@ public Builder clearRemoveFromFolderAction() { } } /** - * - * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction, - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder, - com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder> + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction, com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder, com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder> getRemoveFromFolderActionFieldBuilder() { if (removeFromFolderActionBuilder_ == null) { if (!(actionCase_ == 9)) { - action_ = - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance(); - } - removeFromFolderActionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction, - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder, - com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder>( + action_ = com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance(); + } + removeFromFolderActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction, com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder, com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_, getParentForChildren(), isClean()); @@ -2539,20 +2202,13 @@ public Builder clearRemoveFromFolderAction() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction, - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder, - com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder> - deleteDocumentActionBuilder_; + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction, com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder, com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder> deleteDocumentActionBuilder_; /** - * - * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; * @return Whether the deleteDocumentAction field is set. */ @java.lang.Override @@ -2560,15 +2216,11 @@ public boolean hasDeleteDocumentAction() { return actionCase_ == 10; } /** - * - * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; * @return The deleteDocumentAction. */ @java.lang.Override @@ -2586,17 +2238,13 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction getDeleteDocume } } /** - * - * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; */ - public Builder setDeleteDocumentAction( - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction value) { + public Builder setDeleteDocumentAction(com.google.cloud.contentwarehouse.v1.DeleteDocumentAction value) { if (deleteDocumentActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2610,14 +2258,11 @@ public Builder setDeleteDocumentAction( return this; } /** - * - * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; */ public Builder setDeleteDocumentAction( com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder builderForValue) { @@ -2631,26 +2276,18 @@ public Builder setDeleteDocumentAction( return this; } /** - * - * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; */ - public Builder mergeDeleteDocumentAction( - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction value) { + public Builder mergeDeleteDocumentAction(com.google.cloud.contentwarehouse.v1.DeleteDocumentAction value) { if (deleteDocumentActionBuilder_ == null) { - if (actionCase_ == 10 - && action_ - != com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance()) { - action_ = - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.newBuilder( - (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 10 && + action_ != com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance()) { + action_ = com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.newBuilder((com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -2666,14 +2303,11 @@ public Builder mergeDeleteDocumentAction( return this; } /** - * - * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; */ public Builder clearDeleteDocumentAction() { if (deleteDocumentActionBuilder_ == null) { @@ -2692,32 +2326,24 @@ public Builder clearDeleteDocumentAction() { return this; } /** - * - * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; */ - public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder - getDeleteDocumentActionBuilder() { + public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder getDeleteDocumentActionBuilder() { return getDeleteDocumentActionFieldBuilder().getBuilder(); } /** - * - * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder - getDeleteDocumentActionOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder getDeleteDocumentActionOrBuilder() { if ((actionCase_ == 10) && (deleteDocumentActionBuilder_ != null)) { return deleteDocumentActionBuilder_.getMessageOrBuilder(); } else { @@ -2728,29 +2354,21 @@ public Builder clearDeleteDocumentAction() { } } /** - * - * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction, - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder, - com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder> + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction, com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder, com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder> getDeleteDocumentActionFieldBuilder() { if (deleteDocumentActionBuilder_ == null) { if (!(actionCase_ == 10)) { action_ = com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance(); } - deleteDocumentActionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction, - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder, - com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder>( + deleteDocumentActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction, com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder, com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_, getParentForChildren(), isClean()); @@ -2760,9 +2378,9 @@ public Builder clearDeleteDocumentAction() { onChanged(); return deleteDocumentActionBuilder_; } - @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); } @@ -2772,12 +2390,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.Action) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.Action) private static final com.google.cloud.contentwarehouse.v1.Action DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.Action(); } @@ -2786,27 +2404,27 @@ public static com.google.cloud.contentwarehouse.v1.Action getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Action parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Action parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2821,4 +2439,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.Action getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java index c83047c8d9b9..489c63f103d1 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java @@ -1,74 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents the output of the Action Executor.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ActionExecutorOutput} */ -public final class ActionExecutorOutput extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ActionExecutorOutput extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ActionExecutorOutput) ActionExecutorOutputOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ActionExecutorOutput.newBuilder() to construct. private ActionExecutorOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ActionExecutorOutput() { ruleActionsPairs_ = 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 ActionExecutorOutput(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.class, - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder.class); + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.class, com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder.class); } public static final int RULE_ACTIONS_PAIRS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List ruleActionsPairs_; /** - * - * *
    * List of rule and corresponding actions result.
    * 
@@ -76,13 +54,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ @java.lang.Override - public java.util.List - getRuleActionsPairsList() { + public java.util.List getRuleActionsPairsList() { return ruleActionsPairs_; } /** - * - * *
    * List of rule and corresponding actions result.
    * 
@@ -90,13 +65,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRuleActionsPairsOrBuilderList() { return ruleActionsPairs_; } /** - * - * *
    * List of rule and corresponding actions result.
    * 
@@ -108,8 +81,6 @@ public int getRuleActionsPairsCount() { return ruleActionsPairs_.size(); } /** - * - * *
    * List of rule and corresponding actions result.
    * 
@@ -121,8 +92,6 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair getRuleActionsPairs( return ruleActionsPairs_.get(index); } /** - * - * *
    * List of rule and corresponding actions result.
    * 
@@ -136,7 +105,6 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder getRuleActi } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +116,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 < ruleActionsPairs_.size(); i++) { output.writeMessage(1, ruleActionsPairs_.get(i)); } @@ -162,7 +131,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < ruleActionsPairs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ruleActionsPairs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, ruleActionsPairs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -172,15 +142,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.contentwarehouse.v1.ActionExecutorOutput)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput other = - (com.google.cloud.contentwarehouse.v1.ActionExecutorOutput) obj; + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput other = (com.google.cloud.contentwarehouse.v1.ActionExecutorOutput) obj; - if (!getRuleActionsPairsList().equals(other.getRuleActionsPairsList())) return false; + if (!getRuleActionsPairsList() + .equals(other.getRuleActionsPairsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,136 +172,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput 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.contentwarehouse.v1.ActionExecutorOutput parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput 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.contentwarehouse.v1.ActionExecutorOutput parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ActionExecutorOutput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the output of the Action Executor.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ActionExecutorOutput} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ActionExecutorOutput) com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.class, - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder.class); + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.class, com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.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(); @@ -347,9 +312,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; } @java.lang.Override @@ -368,18 +333,14 @@ public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput buildPartial() { - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput result = - new com.google.cloud.contentwarehouse.v1.ActionExecutorOutput(this); + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput result = new com.google.cloud.contentwarehouse.v1.ActionExecutorOutput(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.ActionExecutorOutput result) { if (ruleActionsPairsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { ruleActionsPairs_ = java.util.Collections.unmodifiableList(ruleActionsPairs_); @@ -399,39 +360,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ActionExecutorOu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.ActionExecutorOutput) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ActionExecutorOutput) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ActionExecutorOutput)other); } else { super.mergeFrom(other); return this; @@ -439,8 +399,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ActionExecutorOutput other) { - if (other == com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance()) return this; if (ruleActionsPairsBuilder_ == null) { if (!other.ruleActionsPairs_.isEmpty()) { if (ruleActionsPairs_.isEmpty()) { @@ -459,10 +418,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ActionExecutorOutp ruleActionsPairsBuilder_ = null; ruleActionsPairs_ = other.ruleActionsPairs_; bitField0_ = (bitField0_ & ~0x00000001); - ruleActionsPairsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRuleActionsPairsFieldBuilder() - : null; + ruleActionsPairsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRuleActionsPairsFieldBuilder() : null; } else { ruleActionsPairsBuilder_.addAllMessages(other.ruleActionsPairs_); } @@ -494,27 +452,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.RuleActionsPair m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.RuleActionsPair.parser(), - extensionRegistry); - if (ruleActionsPairsBuilder_ == null) { - ensureRuleActionsPairsIsMutable(); - ruleActionsPairs_.add(m); - } else { - ruleActionsPairsBuilder_.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.contentwarehouse.v1.RuleActionsPair m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.RuleActionsPair.parser(), + extensionRegistry); + if (ruleActionsPairsBuilder_ == null) { + ensureRuleActionsPairsIsMutable(); + ruleActionsPairs_.add(m); + } else { + ruleActionsPairsBuilder_.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) { @@ -524,39 +480,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List ruleActionsPairs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRuleActionsPairsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - ruleActionsPairs_ = - new java.util.ArrayList( - ruleActionsPairs_); + ruleActionsPairs_ = new java.util.ArrayList(ruleActionsPairs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleActionsPair, - com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder, - com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder> - ruleActionsPairsBuilder_; + com.google.cloud.contentwarehouse.v1.RuleActionsPair, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder, com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder> ruleActionsPairsBuilder_; /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ - public java.util.List - getRuleActionsPairsList() { + public java.util.List getRuleActionsPairsList() { if (ruleActionsPairsBuilder_ == null) { return java.util.Collections.unmodifiableList(ruleActionsPairs_); } else { @@ -564,14 +509,11 @@ private void ensureRuleActionsPairsIsMutable() { } } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public int getRuleActionsPairsCount() { if (ruleActionsPairsBuilder_ == null) { @@ -581,14 +523,11 @@ public int getRuleActionsPairsCount() { } } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public com.google.cloud.contentwarehouse.v1.RuleActionsPair getRuleActionsPairs(int index) { if (ruleActionsPairsBuilder_ == null) { @@ -598,14 +537,11 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair getRuleActionsPairs( } } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public Builder setRuleActionsPairs( int index, com.google.cloud.contentwarehouse.v1.RuleActionsPair value) { @@ -622,14 +558,11 @@ public Builder setRuleActionsPairs( return this; } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public Builder setRuleActionsPairs( int index, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder builderForValue) { @@ -643,14 +576,11 @@ public Builder setRuleActionsPairs( return this; } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public Builder addRuleActionsPairs(com.google.cloud.contentwarehouse.v1.RuleActionsPair value) { if (ruleActionsPairsBuilder_ == null) { @@ -666,14 +596,11 @@ public Builder addRuleActionsPairs(com.google.cloud.contentwarehouse.v1.RuleActi return this; } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public Builder addRuleActionsPairs( int index, com.google.cloud.contentwarehouse.v1.RuleActionsPair value) { @@ -690,14 +617,11 @@ public Builder addRuleActionsPairs( return this; } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public Builder addRuleActionsPairs( com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder builderForValue) { @@ -711,14 +635,11 @@ public Builder addRuleActionsPairs( return this; } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public Builder addRuleActionsPairs( int index, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder builderForValue) { @@ -732,20 +653,18 @@ public Builder addRuleActionsPairs( return this; } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public Builder addAllRuleActionsPairs( java.lang.Iterable values) { if (ruleActionsPairsBuilder_ == null) { ensureRuleActionsPairsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ruleActionsPairs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ruleActionsPairs_); onChanged(); } else { ruleActionsPairsBuilder_.addAllMessages(values); @@ -753,14 +672,11 @@ public Builder addAllRuleActionsPairs( return this; } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public Builder clearRuleActionsPairs() { if (ruleActionsPairsBuilder_ == null) { @@ -773,14 +689,11 @@ public Builder clearRuleActionsPairs() { return this; } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public Builder removeRuleActionsPairs(int index) { if (ruleActionsPairsBuilder_ == null) { @@ -793,49 +706,39 @@ public Builder removeRuleActionsPairs(int index) { return this; } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder getRuleActionsPairsBuilder( int index) { return getRuleActionsPairsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ - public com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder - getRuleActionsPairsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder getRuleActionsPairsOrBuilder( + int index) { if (ruleActionsPairsBuilder_ == null) { - return ruleActionsPairs_.get(index); - } else { + return ruleActionsPairs_.get(index); } else { return ruleActionsPairsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ - public java.util.List - getRuleActionsPairsOrBuilderList() { + public java.util.List + getRuleActionsPairsOrBuilderList() { if (ruleActionsPairsBuilder_ != null) { return ruleActionsPairsBuilder_.getMessageOrBuilderList(); } else { @@ -843,62 +746,45 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder getRuleActio } } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ - public com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder - addRuleActionsPairsBuilder() { - return getRuleActionsPairsFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.RuleActionsPair.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder addRuleActionsPairsBuilder() { + return getRuleActionsPairsFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.RuleActionsPair.getDefaultInstance()); } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ public com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder addRuleActionsPairsBuilder( int index) { - return getRuleActionsPairsFieldBuilder() - .addBuilder( - index, com.google.cloud.contentwarehouse.v1.RuleActionsPair.getDefaultInstance()); + return getRuleActionsPairsFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.RuleActionsPair.getDefaultInstance()); } /** - * - * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; - * + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ - public java.util.List - getRuleActionsPairsBuilderList() { + public java.util.List + getRuleActionsPairsBuilderList() { return getRuleActionsPairsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleActionsPair, - com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder, - com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder> + com.google.cloud.contentwarehouse.v1.RuleActionsPair, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder, com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder> getRuleActionsPairsFieldBuilder() { if (ruleActionsPairsBuilder_ == null) { - ruleActionsPairsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleActionsPair, - com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder, - com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder>( + ruleActionsPairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RuleActionsPair, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder, com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder>( ruleActionsPairs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -907,9 +793,9 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder addRuleActio } return ruleActionsPairsBuilder_; } - @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); } @@ -919,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ActionExecutorOutput) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ActionExecutorOutput) private static final com.google.cloud.contentwarehouse.v1.ActionExecutorOutput DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ActionExecutorOutput(); } @@ -933,27 +819,27 @@ public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActionExecutorOutput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ActionExecutorOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,4 +854,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java similarity index 68% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java index 9da31e16321a..7edc4c07b9cc 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface ActionExecutorOutputOrBuilder - extends +public interface ActionExecutorOutputOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ActionExecutorOutput) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of rule and corresponding actions result.
    * 
* * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ - java.util.List getRuleActionsPairsList(); + java.util.List + getRuleActionsPairsList(); /** - * - * *
    * List of rule and corresponding actions result.
    * 
@@ -44,8 +25,6 @@ public interface ActionExecutorOutputOrBuilder */ com.google.cloud.contentwarehouse.v1.RuleActionsPair getRuleActionsPairs(int index); /** - * - * *
    * List of rule and corresponding actions result.
    * 
@@ -54,19 +33,15 @@ public interface ActionExecutorOutputOrBuilder */ int getRuleActionsPairsCount(); /** - * - * *
    * List of rule and corresponding actions result.
    * 
* * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ - java.util.List + java.util.List getRuleActionsPairsOrBuilderList(); /** - * - * *
    * List of rule and corresponding actions result.
    * 
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java similarity index 82% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java index 26f88a93b89a..e85b75af84ae 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface ActionOrBuilder - extends +public interface ActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.Action) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * ID of the action. Managed internally.
    * 
* * string action_id = 1; - * * @return The actionId. */ java.lang.String getActionId(); /** - * - * *
    * ID of the action. Managed internally.
    * 
* * string action_id = 1; - * * @return The bytes for actionId. */ - com.google.protobuf.ByteString getActionIdBytes(); + com.google.protobuf.ByteString + getActionIdBytes(); /** - * - * *
    * Action triggering access control operations.
    * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; - * * @return Whether the accessControl field is set. */ boolean hasAccessControl(); /** - * - * *
    * Action triggering access control operations.
    * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; - * * @return The accessControl. */ com.google.cloud.contentwarehouse.v1.AccessControlAction getAccessControl(); /** - * - * *
    * Action triggering access control operations.
    * 
@@ -84,32 +55,24 @@ public interface ActionOrBuilder com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder getAccessControlOrBuilder(); /** - * - * *
    * Action triggering data validation operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; - * * @return Whether the dataValidation field is set. */ boolean hasDataValidation(); /** - * - * *
    * Action triggering data validation operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; - * * @return The dataValidation. */ com.google.cloud.contentwarehouse.v1.DataValidationAction getDataValidation(); /** - * - * *
    * Action triggering data validation operations.
    * 
@@ -119,32 +82,24 @@ public interface ActionOrBuilder com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder getDataValidationOrBuilder(); /** - * - * *
    * Action triggering data update operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; - * * @return Whether the dataUpdate field is set. */ boolean hasDataUpdate(); /** - * - * *
    * Action triggering data update operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; - * * @return The dataUpdate. */ com.google.cloud.contentwarehouse.v1.DataUpdateAction getDataUpdate(); /** - * - * *
    * Action triggering data update operations.
    * 
@@ -154,32 +109,24 @@ public interface ActionOrBuilder com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder getDataUpdateOrBuilder(); /** - * - * *
    * Action triggering create document link operation.
    * 
* * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; - * * @return Whether the addToFolder field is set. */ boolean hasAddToFolder(); /** - * - * *
    * Action triggering create document link operation.
    * 
* * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; - * * @return The addToFolder. */ com.google.cloud.contentwarehouse.v1.AddToFolderAction getAddToFolder(); /** - * - * *
    * Action triggering create document link operation.
    * 
@@ -189,32 +136,24 @@ public interface ActionOrBuilder com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder getAddToFolderOrBuilder(); /** - * - * *
    * Action publish to Pub/Sub operation.
    * 
* * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; - * * @return Whether the publishToPubSub field is set. */ boolean hasPublishToPubSub(); /** - * - * *
    * Action publish to Pub/Sub operation.
    * 
* * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; - * * @return The publishToPubSub. */ com.google.cloud.contentwarehouse.v1.PublishAction getPublishToPubSub(); /** - * - * *
    * Action publish to Pub/Sub operation.
    * 
@@ -224,82 +163,58 @@ public interface ActionOrBuilder com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder getPublishToPubSubOrBuilder(); /** - * - * *
    * Action removing a document from a folder.
    * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; * @return Whether the removeFromFolderAction field is set. */ boolean hasRemoveFromFolderAction(); /** - * - * *
    * Action removing a document from a folder.
    * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; * @return The removeFromFolderAction. */ com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction getRemoveFromFolderAction(); /** - * - * *
    * Action removing a document from a folder.
    * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; - * + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; */ - com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder - getRemoveFromFolderActionOrBuilder(); + com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder getRemoveFromFolderActionOrBuilder(); /** - * - * *
    * Action deleting the document.
    * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; * @return Whether the deleteDocumentAction field is set. */ boolean hasDeleteDocumentAction(); /** - * - * *
    * Action deleting the document.
    * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; * @return The deleteDocumentAction. */ com.google.cloud.contentwarehouse.v1.DeleteDocumentAction getDeleteDocumentAction(); /** - * - * *
    * Action deleting the document.
    * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; - * + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; */ - com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder - getDeleteDocumentActionOrBuilder(); + com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder getDeleteDocumentActionOrBuilder(); com.google.cloud.contentwarehouse.v1.Action.ActionCase getActionCase(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java index 15ce4fb811ff..fcd2532e3266 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents the result of executing an action.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ActionOutput} */ -public final class ActionOutput extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ActionOutput extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ActionOutput) ActionOutputOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ActionOutput.newBuilder() to construct. private ActionOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ActionOutput() { actionId_ = ""; actionState_ = 0; @@ -45,38 +27,34 @@ private ActionOutput() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ActionOutput(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_ActionOutput_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ActionOutput.class, - com.google.cloud.contentwarehouse.v1.ActionOutput.Builder.class); + com.google.cloud.contentwarehouse.v1.ActionOutput.class, com.google.cloud.contentwarehouse.v1.ActionOutput.Builder.class); } /** - * - * *
    * Represents execution state of the action.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.ActionOutput.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The unknown state.
      * 
@@ -85,8 +63,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
      * State indicating action executed successfully.
      * 
@@ -95,8 +71,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_SUCCEEDED(1), /** - * - * *
      * State indicating action failed.
      * 
@@ -105,8 +79,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_FAILED(2), /** - * - * *
      * State indicating action timed out.
      * 
@@ -115,8 +87,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_TIMED_OUT(3), /** - * - * *
      * State indicating action is pending.
      * 
@@ -128,8 +98,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The unknown state.
      * 
@@ -138,8 +106,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * State indicating action executed successfully.
      * 
@@ -148,8 +114,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_SUCCEEDED_VALUE = 1; /** - * - * *
      * State indicating action failed.
      * 
@@ -158,8 +122,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_FAILED_VALUE = 2; /** - * - * *
      * State indicating action timed out.
      * 
@@ -168,8 +130,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_TIMED_OUT_VALUE = 3; /** - * - * *
      * State indicating action is pending.
      * 
@@ -178,6 +138,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_PENDING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -202,55 +163,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return ACTION_SUCCEEDED; - case 2: - return ACTION_FAILED; - case 3: - return ACTION_TIMED_OUT; - case 4: - return ACTION_PENDING; - default: - return null; + case 0: return UNKNOWN; + case 1: return ACTION_SUCCEEDED; + case 2: return ACTION_FAILED; + case 3: return ACTION_TIMED_OUT; + case 4: return ACTION_PENDING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.ActionOutput.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.ActionOutput.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; @@ -268,18 +225,14 @@ private State(int value) { } public static final int ACTION_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object actionId_ = ""; /** - * - * *
    * ID of the action.
    * 
* * string action_id = 1; - * * @return The actionId. */ @java.lang.Override @@ -288,29 +241,29 @@ public java.lang.String getActionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionId_ = s; return s; } } /** - * - * *
    * ID of the action.
    * 
* * string action_id = 1; - * * @return The bytes for actionId. */ @java.lang.Override - public com.google.protobuf.ByteString getActionIdBytes() { + public com.google.protobuf.ByteString + getActionIdBytes() { java.lang.Object ref = actionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionId_ = b; return b; } else { @@ -321,53 +274,38 @@ public com.google.protobuf.ByteString getActionIdBytes() { public static final int ACTION_STATE_FIELD_NUMBER = 2; private int actionState_ = 0; /** - * - * *
    * State of an action.
    * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; - * * @return The enum numeric value on the wire for actionState. */ - @java.lang.Override - public int getActionStateValue() { + @java.lang.Override public int getActionStateValue() { return actionState_; } /** - * - * *
    * State of an action.
    * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; - * * @return The actionState. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ActionOutput.State getActionState() { - com.google.cloud.contentwarehouse.v1.ActionOutput.State result = - com.google.cloud.contentwarehouse.v1.ActionOutput.State.forNumber(actionState_); - return result == null - ? com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.contentwarehouse.v1.ActionOutput.State getActionState() { + com.google.cloud.contentwarehouse.v1.ActionOutput.State result = com.google.cloud.contentwarehouse.v1.ActionOutput.State.forNumber(actionState_); + return result == null ? com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNRECOGNIZED : result; } public static final int OUTPUT_MESSAGE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object outputMessage_ = ""; /** - * - * *
    * Action execution output message.
    * 
* * string output_message = 3; - * * @return The outputMessage. */ @java.lang.Override @@ -376,29 +314,29 @@ public java.lang.String getOutputMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputMessage_ = s; return s; } } /** - * - * *
    * Action execution output message.
    * 
* * string output_message = 3; - * * @return The bytes for outputMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputMessageBytes() { + public com.google.protobuf.ByteString + getOutputMessageBytes() { java.lang.Object ref = outputMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputMessage_ = b; return b; } else { @@ -407,7 +345,6 @@ public com.google.protobuf.ByteString getOutputMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -419,12 +356,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(actionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionId_); } - if (actionState_ - != com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNKNOWN.getNumber()) { + if (actionState_ != com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNKNOWN.getNumber()) { output.writeEnum(2, actionState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputMessage_)) { @@ -442,9 +379,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, actionId_); } - if (actionState_ - != com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, actionState_); + if (actionState_ != com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, actionState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputMessage_); @@ -457,17 +394,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.contentwarehouse.v1.ActionOutput)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ActionOutput other = - (com.google.cloud.contentwarehouse.v1.ActionOutput) obj; + com.google.cloud.contentwarehouse.v1.ActionOutput other = (com.google.cloud.contentwarehouse.v1.ActionOutput) obj; - if (!getActionId().equals(other.getActionId())) return false; + if (!getActionId() + .equals(other.getActionId())) return false; if (actionState_ != other.actionState_) return false; - if (!getOutputMessage().equals(other.getOutputMessage())) return false; + if (!getOutputMessage() + .equals(other.getOutputMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -491,135 +429,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ActionOutput 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.contentwarehouse.v1.ActionOutput parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ActionOutput parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ActionOutput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ActionOutput 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.contentwarehouse.v1.ActionOutput parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ActionOutput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the result of executing an action.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ActionOutput} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ActionOutput) com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_ActionOutput_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ActionOutput.class, - com.google.cloud.contentwarehouse.v1.ActionOutput.Builder.class); + com.google.cloud.contentwarehouse.v1.ActionOutput.class, com.google.cloud.contentwarehouse.v1.ActionOutput.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ActionOutput.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(); @@ -631,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; } @java.lang.Override @@ -652,11 +586,8 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ActionOutput buildPartial() { - com.google.cloud.contentwarehouse.v1.ActionOutput result = - new com.google.cloud.contentwarehouse.v1.ActionOutput(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.ActionOutput result = new com.google.cloud.contentwarehouse.v1.ActionOutput(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -678,39 +609,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ActionOutput 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.contentwarehouse.v1.ActionOutput) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ActionOutput) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ActionOutput)other); } else { super.mergeFrom(other); return this; @@ -718,8 +648,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ActionOutput other) { - if (other == com.google.cloud.contentwarehouse.v1.ActionOutput.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.ActionOutput.getDefaultInstance()) return this; if (!other.getActionId().isEmpty()) { actionId_ = other.actionId_; bitField0_ |= 0x00000001; @@ -759,31 +688,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - actionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - actionState_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - outputMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + actionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + actionState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + outputMessage_ = 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) { @@ -793,25 +718,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object actionId_ = ""; /** - * - * *
      * ID of the action.
      * 
* * string action_id = 1; - * * @return The actionId. */ public java.lang.String getActionId() { java.lang.Object ref = actionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionId_ = s; return s; @@ -820,21 +742,20 @@ public java.lang.String getActionId() { } } /** - * - * *
      * ID of the action.
      * 
* * string action_id = 1; - * * @return The bytes for actionId. */ - public com.google.protobuf.ByteString getActionIdBytes() { + public com.google.protobuf.ByteString + getActionIdBytes() { java.lang.Object ref = actionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionId_ = b; return b; } else { @@ -842,35 +763,28 @@ public com.google.protobuf.ByteString getActionIdBytes() { } } /** - * - * *
      * ID of the action.
      * 
* * string action_id = 1; - * * @param value The actionId to set. * @return This builder for chaining. */ - public Builder setActionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } actionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * ID of the action.
      * 
* * string action_id = 1; - * * @return This builder for chaining. */ public Builder clearActionId() { @@ -880,21 +794,17 @@ public Builder clearActionId() { return this; } /** - * - * *
      * ID of the action.
      * 
* * string action_id = 1; - * * @param value The bytes for actionId to set. * @return This builder for chaining. */ - public Builder setActionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); actionId_ = value; bitField0_ |= 0x00000001; @@ -904,29 +814,22 @@ public Builder setActionIdBytes(com.google.protobuf.ByteString value) { private int actionState_ = 0; /** - * - * *
      * State of an action.
      * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; - * * @return The enum numeric value on the wire for actionState. */ - @java.lang.Override - public int getActionStateValue() { + @java.lang.Override public int getActionStateValue() { return actionState_; } /** - * - * *
      * State of an action.
      * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; - * * @param value The enum numeric value on the wire for actionState to set. * @return This builder for chaining. */ @@ -937,33 +840,24 @@ public Builder setActionStateValue(int value) { return this; } /** - * - * *
      * State of an action.
      * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; - * * @return The actionState. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ActionOutput.State getActionState() { - com.google.cloud.contentwarehouse.v1.ActionOutput.State result = - com.google.cloud.contentwarehouse.v1.ActionOutput.State.forNumber(actionState_); - return result == null - ? com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNRECOGNIZED - : result; + com.google.cloud.contentwarehouse.v1.ActionOutput.State result = com.google.cloud.contentwarehouse.v1.ActionOutput.State.forNumber(actionState_); + return result == null ? com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNRECOGNIZED : result; } /** - * - * *
      * State of an action.
      * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; - * * @param value The actionState to set. * @return This builder for chaining. */ @@ -977,14 +871,11 @@ public Builder setActionState(com.google.cloud.contentwarehouse.v1.ActionOutput. return this; } /** - * - * *
      * State of an action.
      * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; - * * @return This builder for chaining. */ public Builder clearActionState() { @@ -996,20 +887,18 @@ public Builder clearActionState() { private java.lang.Object outputMessage_ = ""; /** - * - * *
      * Action execution output message.
      * 
* * string output_message = 3; - * * @return The outputMessage. */ public java.lang.String getOutputMessage() { java.lang.Object ref = outputMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputMessage_ = s; return s; @@ -1018,21 +907,20 @@ public java.lang.String getOutputMessage() { } } /** - * - * *
      * Action execution output message.
      * 
* * string output_message = 3; - * * @return The bytes for outputMessage. */ - public com.google.protobuf.ByteString getOutputMessageBytes() { + public com.google.protobuf.ByteString + getOutputMessageBytes() { java.lang.Object ref = outputMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputMessage_ = b; return b; } else { @@ -1040,35 +928,28 @@ public com.google.protobuf.ByteString getOutputMessageBytes() { } } /** - * - * *
      * Action execution output message.
      * 
* * string output_message = 3; - * * @param value The outputMessage to set. * @return This builder for chaining. */ - public Builder setOutputMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOutputMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } outputMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Action execution output message.
      * 
* * string output_message = 3; - * * @return This builder for chaining. */ public Builder clearOutputMessage() { @@ -1078,30 +959,26 @@ public Builder clearOutputMessage() { return this; } /** - * - * *
      * Action execution output message.
      * 
* * string output_message = 3; - * * @param value The bytes for outputMessage to set. * @return This builder for chaining. */ - public Builder setOutputMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOutputMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); outputMessage_ = 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); } @@ -1111,12 +988,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ActionOutput) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ActionOutput) private static final com.google.cloud.contentwarehouse.v1.ActionOutput DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ActionOutput(); } @@ -1125,27 +1002,27 @@ public static com.google.cloud.contentwarehouse.v1.ActionOutput getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActionOutput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ActionOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +1037,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ActionOutput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java index 600b03305793..75324a8dcf12 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java @@ -1,100 +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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface ActionOutputOrBuilder - extends +public interface ActionOutputOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ActionOutput) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * ID of the action.
    * 
* * string action_id = 1; - * * @return The actionId. */ java.lang.String getActionId(); /** - * - * *
    * ID of the action.
    * 
* * string action_id = 1; - * * @return The bytes for actionId. */ - com.google.protobuf.ByteString getActionIdBytes(); + com.google.protobuf.ByteString + getActionIdBytes(); /** - * - * *
    * State of an action.
    * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; - * * @return The enum numeric value on the wire for actionState. */ int getActionStateValue(); /** - * - * *
    * State of an action.
    * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; - * * @return The actionState. */ com.google.cloud.contentwarehouse.v1.ActionOutput.State getActionState(); /** - * - * *
    * Action execution output message.
    * 
* * string output_message = 3; - * * @return The outputMessage. */ java.lang.String getOutputMessage(); /** - * - * *
    * Action execution output message.
    * 
* * string output_message = 3; - * * @return The bytes for outputMessage. */ - com.google.protobuf.ByteString getOutputMessageBytes(); + com.google.protobuf.ByteString + getOutputMessageBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java similarity index 70% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java index 80c9f18acfc2..bfaec8fa3d09 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java @@ -1,75 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents the action responsible for adding document under a folder.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.AddToFolderAction} */ -public final class AddToFolderAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AddToFolderAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.AddToFolderAction) AddToFolderActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AddToFolderAction.newBuilder() to construct. private AddToFolderAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AddToFolderAction() { - folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + folders_ = + 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 AddToFolderAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.AddToFolderAction.class, - com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder.class); + com.google.cloud.contentwarehouse.v1.AddToFolderAction.class, com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder.class); } public static final int FOLDERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -77,15 +56,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the folders. */ - public com.google.protobuf.ProtocolStringList getFoldersList() { + public com.google.protobuf.ProtocolStringList + getFoldersList() { return folders_; } /** - * - * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -93,15 +70,12 @@ public com.google.protobuf.ProtocolStringList getFoldersList() {
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of folders. */ public int getFoldersCount() { return folders_.size(); } /** - * - * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -109,7 +83,6 @@ public int getFoldersCount() {
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -117,8 +90,6 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** - * - * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -126,16 +97,15 @@ public java.lang.String getFolders(int index) {
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - public com.google.protobuf.ByteString getFoldersBytes(int index) { + public com.google.protobuf.ByteString + getFoldersBytes(int index) { return folders_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +117,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 < folders_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folders_.getRaw(i)); } @@ -176,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.contentwarehouse.v1.AddToFolderAction)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.AddToFolderAction other = - (com.google.cloud.contentwarehouse.v1.AddToFolderAction) obj; + com.google.cloud.contentwarehouse.v1.AddToFolderAction other = (com.google.cloud.contentwarehouse.v1.AddToFolderAction) obj; - if (!getFoldersList().equals(other.getFoldersList())) return false; + if (!getFoldersList() + .equals(other.getFoldersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -206,148 +177,144 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.AddToFolderAction 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.contentwarehouse.v1.AddToFolderAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.AddToFolderAction 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.contentwarehouse.v1.AddToFolderAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.AddToFolderAction prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.AddToFolderAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the action responsible for adding document under a folder.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.AddToFolderAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.AddToFolderAction) com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.AddToFolderAction.class, - com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder.class); + com.google.cloud.contentwarehouse.v1.AddToFolderAction.class, com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.AddToFolderAction.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; - folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + folders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; } @java.lang.Override @@ -366,11 +333,8 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.AddToFolderAction buildPartial() { - com.google.cloud.contentwarehouse.v1.AddToFolderAction result = - new com.google.cloud.contentwarehouse.v1.AddToFolderAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.AddToFolderAction result = new com.google.cloud.contentwarehouse.v1.AddToFolderAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -387,39 +351,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.AddToFolderActio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.AddToFolderAction) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.AddToFolderAction) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.AddToFolderAction)other); } else { super.mergeFrom(other); return this; @@ -427,8 +390,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.AddToFolderAction other) { - if (other == com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance()) return this; if (!other.folders_.isEmpty()) { if (folders_.isEmpty()) { folders_ = other.folders_; @@ -465,20 +427,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFoldersIsMutable(); - folders_.add(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(); + ensureFoldersIsMutable(); + folders_.add(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) { @@ -488,12 +448,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureFoldersIsMutable() { if (!folders_.isModifiable()) { folders_ = new com.google.protobuf.LazyStringArrayList(folders_); @@ -501,8 +459,6 @@ private void ensureFoldersIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -510,16 +466,14 @@ private void ensureFoldersIsMutable() {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the folders. */ - public com.google.protobuf.ProtocolStringList getFoldersList() { + public com.google.protobuf.ProtocolStringList + getFoldersList() { folders_.makeImmutable(); return folders_; } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -527,15 +481,12 @@ public com.google.protobuf.ProtocolStringList getFoldersList() {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of folders. */ public int getFoldersCount() { return folders_.size(); } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -543,7 +494,6 @@ public int getFoldersCount() {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -551,8 +501,6 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -560,16 +508,14 @@ public java.lang.String getFolders(int index) {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - public com.google.protobuf.ByteString getFoldersBytes(int index) { + public com.google.protobuf.ByteString + getFoldersBytes(int index) { return folders_.getByteString(index); } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -577,15 +523,13 @@ public com.google.protobuf.ByteString getFoldersBytes(int index) {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index to set the value at. * @param value The folders to set. * @return This builder for chaining. */ - public Builder setFolders(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFolders( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureFoldersIsMutable(); folders_.set(index, value); bitField0_ |= 0x00000001; @@ -593,8 +537,6 @@ public Builder setFolders(int index, java.lang.String value) { return this; } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -602,14 +544,12 @@ public Builder setFolders(int index, java.lang.String value) {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @param value The folders to add. * @return This builder for chaining. */ - public Builder addFolders(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addFolders( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureFoldersIsMutable(); folders_.add(value); bitField0_ |= 0x00000001; @@ -617,8 +557,6 @@ public Builder addFolders(java.lang.String value) { return this; } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -626,20 +564,19 @@ public Builder addFolders(java.lang.String value) {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @param values The folders to add. * @return This builder for chaining. */ - public Builder addAllFolders(java.lang.Iterable values) { + public Builder addAllFolders( + java.lang.Iterable values) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, folders_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -647,19 +584,16 @@ public Builder addAllFolders(java.lang.Iterable values) {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearFolders() { - folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + folders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -667,14 +601,12 @@ public Builder clearFolders() {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes of the folders to add. * @return This builder for chaining. */ - public Builder addFoldersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addFoldersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFoldersIsMutable(); folders_.add(value); @@ -682,9 +614,9 @@ public Builder addFoldersBytes(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); } @@ -694,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.AddToFolderAction) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.AddToFolderAction) private static final com.google.cloud.contentwarehouse.v1.AddToFolderAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.AddToFolderAction(); } @@ -708,27 +640,27 @@ public static com.google.cloud.contentwarehouse.v1.AddToFolderAction getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddToFolderAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 AddToFolderAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -743,4 +675,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.AddToFolderAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java similarity index 68% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java index 0f7f41716189..67dc066dd6f4 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface AddToFolderActionOrBuilder - extends +public interface AddToFolderActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.AddToFolderAction) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -33,13 +15,11 @@ public interface AddToFolderActionOrBuilder
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the folders. */ - java.util.List getFoldersList(); + java.util.List + getFoldersList(); /** - * - * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -47,13 +27,10 @@ public interface AddToFolderActionOrBuilder
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of folders. */ int getFoldersCount(); /** - * - * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -61,14 +38,11 @@ public interface AddToFolderActionOrBuilder
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The folders at the given index. */ java.lang.String getFolders(int index); /** - * - * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -76,9 +50,9 @@ public interface AddToFolderActionOrBuilder
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - com.google.protobuf.ByteString getFoldersBytes(int index); + com.google.protobuf.ByteString + getFoldersBytes(int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java new file mode 100644 index 000000000000..72224199d205 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/async_document_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class AsyncDocumentServiceRequestProto { + private AsyncDocumentServiceRequestProto() {} + 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_contentwarehouse_v1_CreateDocumentMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_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/contentwarehouse/v1/async" + + "_document_service_request.proto\022 google." + + "cloud.contentwarehouse.v1\032\037google/api/fi" + + "eld_behavior.proto\032\031google/api/resource." + + "proto\"\030\n\026CreateDocumentMetadata\"\030\n\026Updat" + + "eDocumentMetadataB\210\002\n$com.google.cloud.c" + + "ontentwarehouse.v1B AsyncDocumentService" + + "RequestProtoP\001ZPcloud.google.com/go/cont" + + "entwarehouse/apiv1/contentwarehousepb;co" + + "ntentwarehousepb\252\002 Google.Cloud.ContentW" + + "arehouse.V1\312\002 Google\\Cloud\\ContentWareho" + + "use\\V1\352\002#Google::Cloud::ContentWarehouse" + + "::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(), + }); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor, + new java.lang.String[] { }); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java similarity index 64% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java index d9265860c35b..8179c0122f66 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java @@ -1,87 +1,67 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request Option for processing Cloud AI Document in CW Document.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CloudAIDocumentOption} */ -public final class CloudAIDocumentOption extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CloudAIDocumentOption extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CloudAIDocumentOption) CloudAIDocumentOptionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CloudAIDocumentOption.newBuilder() to construct. private CloudAIDocumentOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CloudAIDocumentOption() {} + private CloudAIDocumentOption() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CloudAIDocumentOption(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetCustomizedEntitiesPropertiesConversions(); 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.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.class, - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder.class); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.class, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder.class); } public static final int ENABLE_ENTITIES_CONVERSIONS_FIELD_NUMBER = 1; private boolean enableEntitiesConversions_ = false; /** - * - * *
    * Whether to convert all the entities to properties.
    * 
* * bool enable_entities_conversions = 1; - * * @return The enableEntitiesConversions. */ @java.lang.Override @@ -90,37 +70,32 @@ public boolean getEnableEntitiesConversions() { } public static final int CUSTOMIZED_ENTITIES_PROPERTIES_CONVERSIONS_FIELD_NUMBER = 2; - private static final class CustomizedEntitiesPropertiesConversionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_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.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_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> customizedEntitiesPropertiesConversions_; private com.google.protobuf.MapField - customizedEntitiesPropertiesConversions_; - - private com.google.protobuf.MapField - internalGetCustomizedEntitiesPropertiesConversions() { + internalGetCustomizedEntitiesPropertiesConversions() { if (customizedEntitiesPropertiesConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry); } return customizedEntitiesPropertiesConversions_; } - public int getCustomizedEntitiesPropertiesConversionsCount() { return internalGetCustomizedEntitiesPropertiesConversions().getMap().size(); } /** - * - * *
    * If set, only selected entities will be converted to properties.
    * 
@@ -128,22 +103,20 @@ public int getCustomizedEntitiesPropertiesConversionsCount() { * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsCustomizedEntitiesPropertiesConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetCustomizedEntitiesPropertiesConversions().getMap().containsKey(key); } - /** Use {@link #getCustomizedEntitiesPropertiesConversionsMap()} instead. */ + /** + * Use {@link #getCustomizedEntitiesPropertiesConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getCustomizedEntitiesPropertiesConversions() { + public java.util.Map getCustomizedEntitiesPropertiesConversions() { return getCustomizedEntitiesPropertiesConversionsMap(); } /** - * - * *
    * If set, only selected entities will be converted to properties.
    * 
@@ -151,13 +124,10 @@ public boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public java.util.Map - getCustomizedEntitiesPropertiesConversionsMap() { + public java.util.Map getCustomizedEntitiesPropertiesConversionsMap() { return internalGetCustomizedEntitiesPropertiesConversions().getMap(); } /** - * - * *
    * If set, only selected entities will be converted to properties.
    * 
@@ -165,20 +135,17 @@ public boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public /* nullable */ java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( + public /* nullable */ +java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCustomizedEntitiesPropertiesConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * If set, only selected entities will be converted to properties.
    * 
@@ -186,10 +153,9 @@ public boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCustomizedEntitiesPropertiesConversions().getMap(); if (!map.containsKey(key)) { @@ -199,7 +165,6 @@ public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow(java.l } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,11 +176,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 (enableEntitiesConversions_ != false) { output.writeBool(1, enableEntitiesConversions_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetCustomizedEntitiesPropertiesConversions(), CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry, @@ -230,20 +197,18 @@ public int getSerializedSize() { size = 0; if (enableEntitiesConversions_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableEntitiesConversions_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableEntitiesConversions_); } - for (java.util.Map.Entry entry : - internalGetCustomizedEntitiesPropertiesConversions().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetCustomizedEntitiesPropertiesConversions().getMap().entrySet()) { com.google.protobuf.MapEntry - customizedEntitiesPropertiesConversions__ = - CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, customizedEntitiesPropertiesConversions__); + customizedEntitiesPropertiesConversions__ = CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, customizedEntitiesPropertiesConversions__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -253,17 +218,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.contentwarehouse.v1.CloudAIDocumentOption)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption other = - (com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption) obj; + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption other = (com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption) obj; - if (getEnableEntitiesConversions() != other.getEnableEntitiesConversions()) return false; - if (!internalGetCustomizedEntitiesPropertiesConversions() - .equals(other.internalGetCustomizedEntitiesPropertiesConversions())) return false; + if (getEnableEntitiesConversions() + != other.getEnableEntitiesConversions()) return false; + if (!internalGetCustomizedEntitiesPropertiesConversions().equals( + other.internalGetCustomizedEntitiesPropertiesConversions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -276,7 +241,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_ENTITIES_CONVERSIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableEntitiesConversions()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableEntitiesConversions()); if (!internalGetCustomizedEntitiesPropertiesConversions().getMap().isEmpty()) { hash = (37 * hash) + CUSTOMIZED_ENTITIES_PROPERTIES_CONVERSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetCustomizedEntitiesPropertiesConversions().hashCode(); @@ -287,156 +253,153 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption 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.contentwarehouse.v1.CloudAIDocumentOption parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption 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.contentwarehouse.v1.CloudAIDocumentOption parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 Option for processing Cloud AI Document in CW Document.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CloudAIDocumentOption} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CloudAIDocumentOption) com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetCustomizedEntitiesPropertiesConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableCustomizedEntitiesPropertiesConversions(); 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.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.class, - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder.class); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.class, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.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(); @@ -447,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor; } @java.lang.Override @@ -468,11 +431,8 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption buildPartial() { - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption result = - new com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption result = new com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -483,8 +443,7 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CloudAIDocumentO result.enableEntitiesConversions_ = enableEntitiesConversions_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.customizedEntitiesPropertiesConversions_ = - internalGetCustomizedEntitiesPropertiesConversions(); + result.customizedEntitiesPropertiesConversions_ = internalGetCustomizedEntitiesPropertiesConversions(); result.customizedEntitiesPropertiesConversions_.makeImmutable(); } } @@ -493,39 +452,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CloudAIDocumentO public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.CloudAIDocumentOption) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption)other); } else { super.mergeFrom(other); return this; @@ -533,13 +491,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption other) { - if (other == com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance()) return this; if (other.getEnableEntitiesConversions() != false) { setEnableEntitiesConversions(other.getEnableEntitiesConversions()); } - internalGetMutableCustomizedEntitiesPropertiesConversions() - .mergeFrom(other.internalGetCustomizedEntitiesPropertiesConversions()); + internalGetMutableCustomizedEntitiesPropertiesConversions().mergeFrom( + other.internalGetCustomizedEntitiesPropertiesConversions()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -567,35 +524,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableEntitiesConversions_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.protobuf.MapEntry - customizedEntitiesPropertiesConversions__ = - input.readMessage( - CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry - .getParserForType(), - extensionRegistry); - internalGetMutableCustomizedEntitiesPropertiesConversions() - .getMutableMap() - .put( - customizedEntitiesPropertiesConversions__.getKey(), - customizedEntitiesPropertiesConversions__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableEntitiesConversions_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + com.google.protobuf.MapEntry + customizedEntitiesPropertiesConversions__ = input.readMessage( + CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().put( + customizedEntitiesPropertiesConversions__.getKey(), customizedEntitiesPropertiesConversions__.getValue()); + 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) { @@ -605,19 +553,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enableEntitiesConversions_; + private boolean enableEntitiesConversions_ ; /** - * - * *
      * Whether to convert all the entities to properties.
      * 
* * bool enable_entities_conversions = 1; - * * @return The enableEntitiesConversions. */ @java.lang.Override @@ -625,14 +569,11 @@ public boolean getEnableEntitiesConversions() { return enableEntitiesConversions_; } /** - * - * *
      * Whether to convert all the entities to properties.
      * 
* * bool enable_entities_conversions = 1; - * * @param value The enableEntitiesConversions to set. * @return This builder for chaining. */ @@ -644,14 +585,11 @@ public Builder setEnableEntitiesConversions(boolean value) { return this; } /** - * - * *
      * Whether to convert all the entities to properties.
      * 
* * bool enable_entities_conversions = 1; - * * @return This builder for chaining. */ public Builder clearEnableEntitiesConversions() { @@ -661,9 +599,8 @@ public Builder clearEnableEntitiesConversions() { return this; } - private com.google.protobuf.MapField - customizedEntitiesPropertiesConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> customizedEntitiesPropertiesConversions_; private com.google.protobuf.MapField internalGetCustomizedEntitiesPropertiesConversions() { if (customizedEntitiesPropertiesConversions_ == null) { @@ -672,13 +609,11 @@ public Builder clearEnableEntitiesConversions() { } return customizedEntitiesPropertiesConversions_; } - private com.google.protobuf.MapField internalGetMutableCustomizedEntitiesPropertiesConversions() { if (customizedEntitiesPropertiesConversions_ == null) { - customizedEntitiesPropertiesConversions_ = - com.google.protobuf.MapField.newMapField( - CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry); + customizedEntitiesPropertiesConversions_ = com.google.protobuf.MapField.newMapField( + CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry); } if (!customizedEntitiesPropertiesConversions_.isMutable()) { customizedEntitiesPropertiesConversions_ = customizedEntitiesPropertiesConversions_.copy(); @@ -687,13 +622,10 @@ public Builder clearEnableEntitiesConversions() { onChanged(); return customizedEntitiesPropertiesConversions_; } - public int getCustomizedEntitiesPropertiesConversionsCount() { return internalGetCustomizedEntitiesPropertiesConversions().getMap().size(); } /** - * - * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -701,22 +633,20 @@ public int getCustomizedEntitiesPropertiesConversionsCount() { * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsCustomizedEntitiesPropertiesConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetCustomizedEntitiesPropertiesConversions().getMap().containsKey(key); } - /** Use {@link #getCustomizedEntitiesPropertiesConversionsMap()} instead. */ + /** + * Use {@link #getCustomizedEntitiesPropertiesConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getCustomizedEntitiesPropertiesConversions() { + public java.util.Map getCustomizedEntitiesPropertiesConversions() { return getCustomizedEntitiesPropertiesConversionsMap(); } /** - * - * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -724,13 +654,10 @@ public boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public java.util.Map - getCustomizedEntitiesPropertiesConversionsMap() { + public java.util.Map getCustomizedEntitiesPropertiesConversionsMap() { return internalGetCustomizedEntitiesPropertiesConversions().getMap(); } /** - * - * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -738,20 +665,17 @@ public boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public /* nullable */ java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( + public /* nullable */ +java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCustomizedEntitiesPropertiesConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -761,9 +685,7 @@ public boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String @java.lang.Override public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCustomizedEntitiesPropertiesConversions().getMap(); if (!map.containsKey(key)) { @@ -771,29 +693,29 @@ public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow( } return map.get(key); } - public Builder clearCustomizedEntitiesPropertiesConversions() { bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().clear(); + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap() + .clear(); return this; } /** - * - * *
      * If set, only selected entities will be converted to properties.
      * 
* * map<string, string> customized_entities_properties_conversions = 2; */ - public Builder removeCustomizedEntitiesPropertiesConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().remove(key); + public Builder removeCustomizedEntitiesPropertiesConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableCustomizedEntitiesPropertiesConversions() { @@ -801,8 +723,6 @@ public Builder removeCustomizedEntitiesPropertiesConversions(java.lang.String ke return internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap(); } /** - * - * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -810,20 +730,16 @@ public Builder removeCustomizedEntitiesPropertiesConversions(java.lang.String ke * map<string, string> customized_entities_properties_conversions = 2; */ public Builder putCustomizedEntitiesPropertiesConversions( - java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().put(key, value); + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap() + .put(key, value); bitField0_ |= 0x00000002; return this; } /** - * - * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -832,13 +748,14 @@ public Builder putCustomizedEntitiesPropertiesConversions( */ public Builder putAllCustomizedEntitiesPropertiesConversions( java.util.Map values) { - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().putAll(values); + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap() + .putAll(values); bitField0_ |= 0x00000002; 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); } @@ -848,12 +765,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CloudAIDocumentOption) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CloudAIDocumentOption) private static final com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption(); } @@ -862,27 +779,27 @@ public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudAIDocumentOption parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CloudAIDocumentOption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -897,4 +814,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java similarity index 59% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java index ff358d977b29..23e01ad46307 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface CloudAIDocumentOptionOrBuilder - extends +public interface CloudAIDocumentOptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CloudAIDocumentOption) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Whether to convert all the entities to properties.
    * 
* * bool enable_entities_conversions = 1; - * * @return The enableEntitiesConversions. */ boolean getEnableEntitiesConversions(); /** - * - * *
    * If set, only selected entities will be converted to properties.
    * 
@@ -47,31 +26,30 @@ public interface CloudAIDocumentOptionOrBuilder */ int getCustomizedEntitiesPropertiesConversionsCount(); /** - * - * *
    * If set, only selected entities will be converted to properties.
    * 
* * map<string, string> customized_entities_properties_conversions = 2; */ - boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String key); - /** Use {@link #getCustomizedEntitiesPropertiesConversionsMap()} instead. */ + boolean containsCustomizedEntitiesPropertiesConversions( + java.lang.String key); + /** + * Use {@link #getCustomizedEntitiesPropertiesConversionsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getCustomizedEntitiesPropertiesConversions(); + java.util.Map + getCustomizedEntitiesPropertiesConversions(); /** - * - * *
    * If set, only selected entities will be converted to properties.
    * 
* * map<string, string> customized_entities_properties_conversions = 2; */ - java.util.Map getCustomizedEntitiesPropertiesConversionsMap(); + java.util.Map + getCustomizedEntitiesPropertiesConversionsMap(); /** - * - * *
    * If set, only selected entities will be converted to properties.
    * 
@@ -79,18 +57,17 @@ public interface CloudAIDocumentOptionOrBuilder * map<string, string> customized_entities_properties_conversions = 2; */ /* nullable */ - java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( +java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * If set, only selected entities will be converted to properties.
    * 
* * map<string, string> customized_entities_properties_conversions = 2; */ - java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow(java.lang.String key); + java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow( + java.lang.String key); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java new file mode 100644 index 000000000000..16880b3ec0a1 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java @@ -0,0 +1,141 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/common.proto + +package com.google.cloud.contentwarehouse.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_contentwarehouse_v1_RequestMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_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/contentwarehouse/v1/commo" + + "n.proto\022 google.cloud.contentwarehouse.v" + + "1\032\031google/api/resource.proto\032 google/pro" + + "tobuf/field_mask.proto\"P\n\017RequestMetadat" + + "a\022=\n\tuser_info\030\001 \001(\0132*.google.cloud.cont" + + "entwarehouse.v1.UserInfo\"&\n\020ResponseMeta" + + "data\022\022\n\nrequest_id\030\001 \001(\t\")\n\010UserInfo\022\n\n\002" + + "id\030\001 \001(\t\022\021\n\tgroup_ids\030\002 \003(\t\"\327\001\n\rUpdateOp" + + "tions\022A\n\013update_type\030\001 \001(\0162,.google.clou" + + "d.contentwarehouse.v1.UpdateType\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "k\022R\n\024merge_fields_options\030\003 \001(\01324.google" + + ".cloud.contentwarehouse.v1.MergeFieldsOp" + + "tions\"\226\001\n\022MergeFieldsOptions\022#\n\026replace_" + + "message_fields\030\001 \001(\010H\000\210\001\001\022$\n\027replace_rep" + + "eated_fields\030\002 \001(\010H\001\210\001\001B\031\n\027_replace_mess" + + "age_fieldsB\032\n\030_replace_repeated_fields*\237" + + "\002\n\nUpdateType\022\033\n\027UPDATE_TYPE_UNSPECIFIED" + + "\020\000\022\027\n\023UPDATE_TYPE_REPLACE\020\001\022\025\n\021UPDATE_TY" + + "PE_MERGE\020\002\022*\n&UPDATE_TYPE_INSERT_PROPERT" + + "IES_BY_NAMES\020\003\022+\n\'UPDATE_TYPE_REPLACE_PR" + + "OPERTIES_BY_NAMES\020\004\022*\n&UPDATE_TYPE_DELET" + + "E_PROPERTIES_BY_NAMES\020\005\022?\n;UPDATE_TYPE_M" + + "ERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY" + + "_NAMES\020\006*S\n\014DatabaseType\022\016\n\nDB_UNKNOWN\020\000" + + "\022\024\n\020DB_INFRA_SPANNER\020\001\022\035\n\025DB_CLOUD_SQL_P" + + "OSTGRES\020\002\032\002\010\001*\252\001\n\021AccessControlMode\022\024\n\020A" + + "CL_MODE_UNKNOWN\020\000\022\035\n\031ACL_MODE_UNIVERSAL_" + + "ACCESS\020\001\0220\n,ACL_MODE_DOCUMENT_LEVEL_ACCE" + + "SS_CONTROL_BYOID\020\002\022.\n*ACL_MODE_DOCUMENT_" + + "LEVEL_ACCESS_CONTROL_GCI\020\003*\211\001\n\032DocumentC" + + "reatorDefaultRole\022-\n)DOCUMENT_CREATOR_DE" + + "FAULT_ROLE_UNSPECIFIED\020\000\022\022\n\016DOCUMENT_ADM" + + "IN\020\001\022\023\n\017DOCUMENT_EDITOR\020\002\022\023\n\017DOCUMENT_VI" + + "EWER\020\003B\311\002\n$com.google.cloud.contentwareh" + + "ouse.v1B\013CommonProtoP\001ZPcloud.google.com" + + "/go/contentwarehouse/apiv1/contentwareho" + + "usepb;contentwarehousepb\252\002 Google.Cloud." + + "ContentWarehouse.V1\312\002 Google\\Cloud\\Conte" + + "ntWarehouse\\V1\352\002#Google::Cloud::ContentW" + + "arehouse::V1\352AS\n(contentwarehouse.google" + + "apis.com/Location\022\'projects/{project}/lo" + + "cations/{location}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor, + new java.lang.String[] { "UserInfo", }); + internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor, + new java.lang.String[] { "RequestId", }); + internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor, + new java.lang.String[] { "Id", "GroupIds", }); + internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor, + new java.lang.String[] { "UpdateType", "UpdateMask", "MergeFieldsOptions", }); + internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor, + new java.lang.String[] { "ReplaceMessageFields", "ReplaceRepeatedFields", "ReplaceMessageFields", "ReplaceRepeatedFields", }); + 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(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java similarity index 68% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java index f28fee3d8881..fa422a6ead4e 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * When a raw document or structured content is supplied, this stores the
  * content category.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.contentwarehouse.v1.ContentCategory}
  */
-public enum ContentCategory implements com.google.protobuf.ProtocolMessageEnum {
+public enum ContentCategory
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No category is specified.
    * 
@@ -40,8 +22,6 @@ public enum ContentCategory implements com.google.protobuf.ProtocolMessageEnum { */ CONTENT_CATEGORY_UNSPECIFIED(0), /** - * - * *
    * Content is of image type.
    * 
@@ -50,8 +30,6 @@ public enum ContentCategory implements com.google.protobuf.ProtocolMessageEnum { */ CONTENT_CATEGORY_IMAGE(1), /** - * - * *
    * Content is of audio type.
    * 
@@ -60,8 +38,6 @@ public enum ContentCategory implements com.google.protobuf.ProtocolMessageEnum { */ CONTENT_CATEGORY_AUDIO(2), /** - * - * *
    * Content is of video type.
    * 
@@ -73,8 +49,6 @@ public enum ContentCategory implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * No category is specified.
    * 
@@ -83,8 +57,6 @@ public enum ContentCategory implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTENT_CATEGORY_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Content is of image type.
    * 
@@ -93,8 +65,6 @@ public enum ContentCategory implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTENT_CATEGORY_IMAGE_VALUE = 1; /** - * - * *
    * Content is of audio type.
    * 
@@ -103,8 +73,6 @@ public enum ContentCategory implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTENT_CATEGORY_AUDIO_VALUE = 2; /** - * - * *
    * Content is of video type.
    * 
@@ -113,6 +81,7 @@ public enum ContentCategory implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTENT_CATEGORY_VIDEO_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -137,51 +106,50 @@ public static ContentCategory valueOf(int value) { */ public static ContentCategory forNumber(int value) { switch (value) { - case 0: - return CONTENT_CATEGORY_UNSPECIFIED; - case 1: - return CONTENT_CATEGORY_IMAGE; - case 2: - return CONTENT_CATEGORY_AUDIO; - case 3: - return CONTENT_CATEGORY_VIDEO; - default: - return null; + case 0: return CONTENT_CATEGORY_UNSPECIFIED; + case 1: return CONTENT_CATEGORY_IMAGE; + case 2: return CONTENT_CATEGORY_AUDIO; + case 3: return CONTENT_CATEGORY_VIDEO; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ContentCategory findValueByNumber(int number) { - return ContentCategory.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ContentCategory> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContentCategory findValueByNumber(int number) { + return ContentCategory.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor().getEnumTypes().get(1); } private static final ContentCategory[] VALUES = values(); - public static ContentCategory valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ContentCategory 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; @@ -197,3 +165,4 @@ private ContentCategory(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.ContentCategory) } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java similarity index 64% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java index 5fa654363bac..a9af806302db 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java @@ -1,74 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentLinkService.CreateDocumentLink.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest} */ -public final class CreateDocumentLinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDocumentLinkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) CreateDocumentLinkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDocumentLinkRequest.newBuilder() to construct. private CreateDocumentLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDocumentLinkRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDocumentLinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.class, - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.class, com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent of the document-link to be created.
    * parent of document-link should be a document.
@@ -76,10 +54,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{project_number}/locations/{location}/documents/{source_document_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 @@ -88,15 +63,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. Parent of the document-link to be created.
    * parent of document-link should be a document.
@@ -104,18 +78,17 @@ public java.lang.String getParent() {
    * projects/{project_number}/locations/{location}/documents/{source_document_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 { @@ -126,17 +99,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DOCUMENT_LINK_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.DocumentLink documentLink_; /** - * - * *
    * Required. Document links associated with the source documents
    * (source_document_id).
    * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentLink field is set. */ @java.lang.Override @@ -144,56 +112,40 @@ public boolean hasDocumentLink() { return documentLink_ != null; } /** - * - * *
    * Required. Document links associated with the source documents
    * (source_document_id).
    * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The documentLink. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLink() { - return documentLink_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() - : documentLink_; + return documentLink_ == null ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() : documentLink_; } /** - * - * *
    * Required. Document links associated with the source documents
    * (source_document_id).
    * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinkOrBuilder() { - return documentLink_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() - : documentLink_; + return documentLink_ == null ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() : documentLink_; } public static final int REQUEST_METADATA_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -201,26 +153,19 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
@@ -229,15 +174,11 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-      getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-        : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -249,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(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -272,10 +214,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (documentLink_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentLink());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getDocumentLink());
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getRequestMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -285,22 +229,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.contentwarehouse.v1.CreateDocumentLinkRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest other =
-        (com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) obj;
+    com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest other = (com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
     if (hasDocumentLink() != other.hasDocumentLink()) return false;
     if (hasDocumentLink()) {
-      if (!getDocumentLink().equals(other.getDocumentLink())) return false;
+      if (!getDocumentLink()
+          .equals(other.getDocumentLink())) return false;
     }
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata()
+          .equals(other.getRequestMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -329,136 +275,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest 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.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest 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.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder 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 DocumentLinkService.CreateDocumentLink.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.class, - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.class, com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.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 +419,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.getDefaultInstance(); } @@ -500,28 +440,26 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest result = - new com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest result = new com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.documentLink_ = - documentLinkBuilder_ == null ? documentLink_ : documentLinkBuilder_.build(); + result.documentLink_ = documentLinkBuilder_ == null + ? documentLink_ + : documentLinkBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.requestMetadata_ = - requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + result.requestMetadata_ = requestMetadataBuilder_ == null + ? requestMetadata_ + : requestMetadataBuilder_.build(); } } @@ -529,39 +467,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.contentwarehouse.v1.CreateDocumentLinkRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest)other); } else { super.mergeFrom(other); return this; @@ -569,9 +506,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest other) { - if (other - == com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -609,31 +544,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getDocumentLinkFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - 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( + getDocumentLinkFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getRequestMetadataFieldBuilder().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) { @@ -643,13 +578,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -657,16 +589,14 @@ public Builder mergeFrom(
      * projects/{project_number}/locations/{location}/documents/{source_document_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; @@ -675,8 +605,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -684,17 +612,16 @@ public java.lang.String getParent() {
      * projects/{project_number}/locations/{location}/documents/{source_document_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 { @@ -702,8 +629,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -711,25 +636,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * projects/{project_number}/locations/{location}/documents/{source_document_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. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -737,10 +656,7 @@ public Builder setParent(java.lang.String value) {
      * projects/{project_number}/locations/{location}/documents/{source_document_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() { @@ -750,8 +666,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -759,17 +673,13 @@ public Builder clearParent() {
      * projects/{project_number}/locations/{location}/documents/{source_document_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; @@ -779,61 +689,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.DocumentLink documentLink_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, - com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> - documentLinkBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> documentLinkBuilder_; /** - * - * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentLink field is set. */ public boolean hasDocumentLink() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The documentLink. */ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLink() { if (documentLinkBuilder_ == null) { - return documentLink_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() - : documentLink_; + return documentLink_ == null ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() : documentLink_; } else { return documentLinkBuilder_.getMessage(); } } /** - * - * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentLink(com.google.cloud.contentwarehouse.v1.DocumentLink value) { if (documentLinkBuilder_ == null) { @@ -849,16 +740,12 @@ public Builder setDocumentLink(com.google.cloud.contentwarehouse.v1.DocumentLink return this; } /** - * - * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentLink( com.google.cloud.contentwarehouse.v1.DocumentLink.Builder builderForValue) { @@ -872,23 +759,18 @@ public Builder setDocumentLink( return this; } /** - * - * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDocumentLink(com.google.cloud.contentwarehouse.v1.DocumentLink value) { if (documentLinkBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && documentLink_ != null - && documentLink_ - != com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + documentLink_ != null && + documentLink_ != com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()) { getDocumentLinkBuilder().mergeFrom(value); } else { documentLink_ = value; @@ -901,16 +783,12 @@ public Builder mergeDocumentLink(com.google.cloud.contentwarehouse.v1.DocumentLi return this; } /** - * - * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocumentLink() { bitField0_ = (bitField0_ & ~0x00000002); @@ -923,16 +801,12 @@ public Builder clearDocumentLink() { return this; } /** - * - * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLinkBuilder() { bitField0_ |= 0x00000002; @@ -940,50 +814,38 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink return getDocumentLinkFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinkOrBuilder() { if (documentLinkBuilder_ != null) { return documentLinkBuilder_.getMessageOrBuilder(); } else { - return documentLink_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() - : documentLink_; + return documentLink_ == null ? + com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() : documentLink_; } } /** - * - * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, - com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> getDocumentLinkFieldBuilder() { if (documentLinkBuilder_ == null) { - documentLinkBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, - com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>( - getDocumentLink(), getParentForChildren(), isClean()); + documentLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>( + getDocumentLink(), + getParentForChildren(), + isClean()); documentLink_ = null; } return documentLinkBuilder_; @@ -991,49 +853,36 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> - requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; /** - * - * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** - * - * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1055,8 +904,6 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1076,8 +923,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1085,13 +930,11 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public Builder mergeRequestMetadata(
-        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && requestMetadata_ != null
-            && requestMetadata_
-                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          requestMetadata_ != null &&
+          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -1104,8 +947,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1124,8 +965,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1133,15 +972,12 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
-        getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1149,19 +985,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-        getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-            : requestMetadata_;
+        return requestMetadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1170,24 +1002,21 @@ public Builder clearRequestMetadata() {
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RequestMetadata,
-                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(), getParentForChildren(), isClean());
+        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(),
+                getParentForChildren(),
+                isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
-
     @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);
     }
 
@@ -1197,43 +1026,41 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest)
-  private static final com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest();
   }
 
-  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
-      getDefaultInstance() {
+  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CreateDocumentLinkRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 CreateDocumentLinkRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1245,8 +1072,9 @@ public com.google.protobuf.Parser getParserForType()
   }
 
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java
similarity index 63%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java
index 57b451f36f00..c676f3518a31 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.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/contentwarehouse/v1/document_link_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface CreateDocumentLinkRequestOrBuilder
-    extends
+public interface CreateDocumentLinkRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Parent of the document-link to be created.
    * parent of document-link should be a document.
@@ -33,16 +15,11 @@ public interface CreateDocumentLinkRequestOrBuilder
    * projects/{project_number}/locations/{location}/documents/{source_document_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. Parent of the document-link to be created.
    * parent of document-link should be a document.
@@ -50,87 +27,63 @@ public interface CreateDocumentLinkRequestOrBuilder
    * projects/{project_number}/locations/{location}/documents/{source_document_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(); /** - * - * *
    * Required. Document links associated with the source documents
    * (source_document_id).
    * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentLink field is set. */ boolean hasDocumentLink(); /** - * - * *
    * Required. Document links associated with the source documents
    * (source_document_id).
    * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The documentLink. */ com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLink(); /** - * - * *
    * Required. Document links associated with the source documents
    * (source_document_id).
    * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinkOrBuilder(); /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java
similarity index 63%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java
index 42d8a74f2376..5113f1a22294 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java
@@ -1,67 +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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/async_document_service_request.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Metadata object for CreateDocument request (currently empty).
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentMetadata} */ -public final class CreateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDocumentMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CreateDocumentMetadata) CreateDocumentMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDocumentMetadata.newBuilder() to construct. private CreateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CreateDocumentMetadata() {} + private CreateDocumentMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDocumentMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.class, - com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.class, com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -73,7 +54,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 { getUnknownFields().writeTo(output); } @@ -91,13 +73,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.contentwarehouse.v1.CreateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata other = - (com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata) obj; + com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata other = (com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -116,136 +97,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata 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.contentwarehouse.v1.CreateDocumentMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata 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.contentwarehouse.v1.CreateDocumentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 object for CreateDocument request (currently empty).
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CreateDocumentMetadata) com.google.cloud.contentwarehouse.v1.CreateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.class, - com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.class, com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.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(); @@ -253,9 +229,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor; } @java.lang.Override @@ -274,8 +250,7 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata result = - new com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata(this); + com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata result = new com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata(this); onBuilt(); return result; } @@ -284,39 +259,38 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata)other); } else { super.mergeFrom(other); return this; @@ -324,8 +298,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -352,13 +325,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -368,9 +340,9 @@ public Builder mergeFrom( } // finally 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); } @@ -380,12 +352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateDocumentMetadata) private static final com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata(); } @@ -394,27 +366,27 @@ public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -429,4 +401,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java new file mode 100644 index 000000000000..2f7f3aa6ff87 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/async_document_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface CreateDocumentMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java similarity index 70% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java index 4fa9e7f3ae72..993d4fc8e3a6 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentService.CreateDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.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_ = ""; } @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.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.class, - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.class, com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 DOCUMENT_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.Document document_; /** - * - * *
    * Required. The document to create.
    * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ @java.lang.Override @@ -139,54 +107,38 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
    * Required. The document to create.
    * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.Document getDocument() { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } /** - * - * *
    * Required. The document to create.
    * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } public static final int REQUEST_METADATA_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -194,26 +146,19 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -222,18 +167,13 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-      getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-        : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
   }
 
   public static final int POLICY_FIELD_NUMBER = 4;
   private com.google.iam.v1.Policy policy_;
   /**
-   *
-   *
    * 
    * Default document policy during creation.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -242,7 +182,6 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * 
* * .google.iam.v1.Policy policy = 4; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -250,8 +189,6 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Default document policy during creation.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -260,7 +197,6 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 4; - * * @return The policy. */ @java.lang.Override @@ -268,8 +204,6 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * Default document policy during creation.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -287,8 +221,6 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
   public static final int CLOUD_AI_DOCUMENT_OPTION_FIELD_NUMBER = 5;
   private com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloudAiDocumentOption_;
   /**
-   *
-   *
    * 
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -296,9 +228,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; * @return Whether the cloudAiDocumentOption field is set. */ @java.lang.Override @@ -306,8 +236,6 @@ public boolean hasCloudAiDocumentOption() { return cloudAiDocumentOption_ != null; } /** - * - * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -315,20 +243,14 @@ public boolean hasCloudAiDocumentOption() {
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; * @return The cloudAiDocumentOption. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocumentOption() { - return cloudAiDocumentOption_ == null - ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() - : cloudAiDocumentOption_; + return cloudAiDocumentOption_ == null ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; } /** - * - * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -336,22 +258,16 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocu
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder - getCloudAiDocumentOptionOrBuilder() { - return cloudAiDocumentOption_ == null - ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() - : cloudAiDocumentOption_; + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder() { + return cloudAiDocumentOption_ == null ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; } public static final int CREATE_MASK_FIELD_NUMBER = 6; private com.google.protobuf.FieldMask createMask_; /** - * - * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
@@ -361,7 +277,6 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocu
    * 
* * .google.protobuf.FieldMask create_mask = 6; - * * @return Whether the createMask field is set. */ @java.lang.Override @@ -369,8 +284,6 @@ public boolean hasCreateMask() { return createMask_ != null; } /** - * - * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
@@ -380,7 +293,6 @@ public boolean hasCreateMask() {
    * 
* * .google.protobuf.FieldMask create_mask = 6; - * * @return The createMask. */ @java.lang.Override @@ -388,8 +300,6 @@ public com.google.protobuf.FieldMask getCreateMask() { return createMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : createMask_; } /** - * - * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
@@ -406,7 +316,6 @@ public com.google.protobuf.FieldMaskOrBuilder getCreateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -418,7 +327,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_);
     }
@@ -450,20 +360,24 @@ 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 (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getRequestMetadata());
     }
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPolicy());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getPolicy());
     }
     if (cloudAiDocumentOption_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCloudAiDocumentOption());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getCloudAiDocumentOption());
     }
     if (createMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getCreateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -473,34 +387,39 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.contentwarehouse.v1.CreateDocumentRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.CreateDocumentRequest other =
-        (com.google.cloud.contentwarehouse.v1.CreateDocumentRequest) obj;
+    com.google.cloud.contentwarehouse.v1.CreateDocumentRequest other = (com.google.cloud.contentwarehouse.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 (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata()
+          .equals(other.getRequestMetadata())) return false;
     }
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy().equals(other.getPolicy())) return false;
+      if (!getPolicy()
+          .equals(other.getPolicy())) return false;
     }
     if (hasCloudAiDocumentOption() != other.hasCloudAiDocumentOption()) return false;
     if (hasCloudAiDocumentOption()) {
-      if (!getCloudAiDocumentOption().equals(other.getCloudAiDocumentOption())) return false;
+      if (!getCloudAiDocumentOption()
+          .equals(other.getCloudAiDocumentOption())) return false;
     }
     if (hasCreateMask() != other.hasCreateMask()) return false;
     if (hasCreateMask()) {
-      if (!getCreateMask().equals(other.getCreateMask())) return false;
+      if (!getCreateMask()
+          .equals(other.getCreateMask())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -541,136 +460,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.CreateDocumentRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.CreateDocumentRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.CreateDocumentRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.CreateDocumentRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.CreateDocumentRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.CreateDocumentRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.CreateDocumentRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.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.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.v1.CreateDocumentRequest) com.google.cloud.contentwarehouse.v1.CreateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.class, - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.class, com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.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(); @@ -705,9 +619,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; } @java.lang.Override @@ -726,11 +640,8 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateDocumentRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest result = - new com.google.cloud.contentwarehouse.v1.CreateDocumentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest result = new com.google.cloud.contentwarehouse.v1.CreateDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -741,23 +652,29 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentRe 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.requestMetadata_ = - requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + result.requestMetadata_ = requestMetadataBuilder_ == null + ? requestMetadata_ + : requestMetadataBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null + ? policy_ + : policyBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.cloudAiDocumentOption_ = - cloudAiDocumentOptionBuilder_ == null - ? cloudAiDocumentOption_ - : cloudAiDocumentOptionBuilder_.build(); + result.cloudAiDocumentOption_ = cloudAiDocumentOptionBuilder_ == null + ? cloudAiDocumentOption_ + : cloudAiDocumentOptionBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.createMask_ = createMaskBuilder_ == null ? createMask_ : createMaskBuilder_.build(); + result.createMask_ = createMaskBuilder_ == null + ? createMask_ + : createMaskBuilder_.build(); } } @@ -765,39 +682,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.CreateDocumentRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -805,8 +721,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateDocumentRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -853,50 +768,52 @@ 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: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getCloudAiDocumentOptionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getCreateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - 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: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getCloudAiDocumentOptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateMaskFieldBuilder().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) { @@ -906,28 +823,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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; @@ -936,24 +848,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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 { @@ -961,41 +870,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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 name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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() { @@ -1005,24 +903,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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; @@ -1032,58 +924,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> - documentBuilder_; + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> documentBuilder_; /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.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 to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ public com.google.cloud.contentwarehouse.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) { if (documentBuilder_ == null) { @@ -1099,15 +972,11 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) return this; } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument( com.google.cloud.contentwarehouse.v1.Document.Builder builderForValue) { @@ -1121,21 +990,17 @@ public Builder setDocument( return this; } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && document_ != null - && document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + document_ != null && + document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; @@ -1148,15 +1013,11 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value return this; } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocument() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1169,15 +1030,11 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder() { bitField0_ |= 0x00000002; @@ -1185,48 +1042,36 @@ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder( return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() { if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? + com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( - getDocument(), getParentForChildren(), isClean()); + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); document_ = null; } return documentBuilder_; @@ -1234,49 +1079,36 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> - requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1298,8 +1130,6 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1319,8 +1149,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1328,13 +1156,11 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public Builder mergeRequestMetadata(
-        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && requestMetadata_ != null
-            && requestMetadata_
-                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          requestMetadata_ != null &&
+          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -1347,8 +1173,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1367,8 +1191,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1376,15 +1198,12 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
-        getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1392,19 +1211,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-        getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-            : requestMetadata_;
+        return requestMetadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1413,17 +1228,14 @@ public Builder clearRequestMetadata() {
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RequestMetadata,
-                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(), getParentForChildren(), isClean());
+        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(),
+                getParentForChildren(),
+                isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
@@ -1431,13 +1243,8 @@ public Builder clearRequestMetadata() {
 
     private com.google.iam.v1.Policy policy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy,
-            com.google.iam.v1.Policy.Builder,
-            com.google.iam.v1.PolicyOrBuilder>
-        policyBuilder_;
+        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_;
     /**
-     *
-     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1446,15 +1253,12 @@ public Builder clearRequestMetadata() {
      * 
* * .google.iam.v1.Policy policy = 4; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1463,7 +1267,6 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 4; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -1474,8 +1277,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1499,8 +1300,6 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1510,7 +1309,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
      *
      * .google.iam.v1.Policy policy = 4;
      */
-    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
+    public Builder setPolicy(
+        com.google.iam.v1.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
       } else {
@@ -1521,8 +1321,6 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1534,9 +1332,9 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
      */
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && policy_ != null
-            && policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          policy_ != null &&
+          policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
           getPolicyBuilder().mergeFrom(value);
         } else {
           policy_ = value;
@@ -1549,8 +1347,6 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1571,8 +1367,6 @@ public Builder clearPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1588,8 +1382,6 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1603,12 +1395,11 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ?
+            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
-     *
-     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1619,16 +1410,14 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v1.Policy policy = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy,
-            com.google.iam.v1.Policy.Builder,
-            com.google.iam.v1.PolicyOrBuilder>
+        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.iam.v1.Policy,
-                com.google.iam.v1.Policy.Builder,
-                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
+        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
+                getPolicy(),
+                getParentForChildren(),
+                isClean());
         policy_ = null;
       }
       return policyBuilder_;
@@ -1636,13 +1425,8 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
 
     private com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloudAiDocumentOption_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption,
-            com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder,
-            com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder>
-        cloudAiDocumentOptionBuilder_;
+        com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder> cloudAiDocumentOptionBuilder_;
     /**
-     *
-     *
      * 
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1650,17 +1434,13 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; * @return Whether the cloudAiDocumentOption field is set. */ public boolean hasCloudAiDocumentOption() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1668,23 +1448,17 @@ public boolean hasCloudAiDocumentOption() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; * @return The cloudAiDocumentOption. */ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocumentOption() { if (cloudAiDocumentOptionBuilder_ == null) { - return cloudAiDocumentOption_ == null - ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() - : cloudAiDocumentOption_; + return cloudAiDocumentOption_ == null ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; } else { return cloudAiDocumentOptionBuilder_.getMessage(); } } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1692,11 +1466,9 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocu
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ - public Builder setCloudAiDocumentOption( - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { + public Builder setCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { if (cloudAiDocumentOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1710,8 +1482,6 @@ public Builder setCloudAiDocumentOption( return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1719,8 +1489,7 @@ public Builder setCloudAiDocumentOption(
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ public Builder setCloudAiDocumentOption( com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder builderForValue) { @@ -1734,8 +1503,6 @@ public Builder setCloudAiDocumentOption( return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1743,17 +1510,13 @@ public Builder setCloudAiDocumentOption(
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ - public Builder mergeCloudAiDocumentOption( - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { + public Builder mergeCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { if (cloudAiDocumentOptionBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && cloudAiDocumentOption_ != null - && cloudAiDocumentOption_ - != com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + cloudAiDocumentOption_ != null && + cloudAiDocumentOption_ != com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance()) { getCloudAiDocumentOptionBuilder().mergeFrom(value); } else { cloudAiDocumentOption_ = value; @@ -1766,8 +1529,6 @@ public Builder mergeCloudAiDocumentOption( return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1775,8 +1536,7 @@ public Builder mergeCloudAiDocumentOption(
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ public Builder clearCloudAiDocumentOption() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1789,8 +1549,6 @@ public Builder clearCloudAiDocumentOption() { return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1798,18 +1556,14 @@ public Builder clearCloudAiDocumentOption() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ - public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder - getCloudAiDocumentOptionBuilder() { + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder getCloudAiDocumentOptionBuilder() { bitField0_ |= 0x00000010; onChanged(); return getCloudAiDocumentOptionFieldBuilder().getBuilder(); } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1817,22 +1571,17 @@ public Builder clearCloudAiDocumentOption() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ - public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder - getCloudAiDocumentOptionOrBuilder() { + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder() { if (cloudAiDocumentOptionBuilder_ != null) { return cloudAiDocumentOptionBuilder_.getMessageOrBuilder(); } else { - return cloudAiDocumentOption_ == null - ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() - : cloudAiDocumentOption_; + return cloudAiDocumentOption_ == null ? + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; } } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1840,21 +1589,17 @@ public Builder clearCloudAiDocumentOption() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder> + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder> getCloudAiDocumentOptionFieldBuilder() { if (cloudAiDocumentOptionBuilder_ == null) { - cloudAiDocumentOptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder>( - getCloudAiDocumentOption(), getParentForChildren(), isClean()); + cloudAiDocumentOptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder>( + getCloudAiDocumentOption(), + getParentForChildren(), + isClean()); cloudAiDocumentOption_ = null; } return cloudAiDocumentOptionBuilder_; @@ -1862,13 +1607,8 @@ public Builder clearCloudAiDocumentOption() { private com.google.protobuf.FieldMask createMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - createMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> createMaskBuilder_; /** - * - * *
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1878,15 +1618,12 @@ public Builder clearCloudAiDocumentOption() {
      * 
* * .google.protobuf.FieldMask create_mask = 6; - * * @return Whether the createMask field is set. */ public boolean hasCreateMask() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1896,21 +1633,16 @@ public boolean hasCreateMask() {
      * 
* * .google.protobuf.FieldMask create_mask = 6; - * * @return The createMask. */ public com.google.protobuf.FieldMask getCreateMask() { if (createMaskBuilder_ == null) { - return createMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : createMask_; + return createMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : createMask_; } else { return createMaskBuilder_.getMessage(); } } /** - * - * *
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1935,8 +1667,6 @@ public Builder setCreateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1947,7 +1677,8 @@ public Builder setCreateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask create_mask = 6;
      */
-    public Builder setCreateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setCreateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (createMaskBuilder_ == null) {
         createMask_ = builderForValue.build();
       } else {
@@ -1958,8 +1689,6 @@ public Builder setCreateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1972,9 +1701,9 @@ public Builder setCreateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeCreateMask(com.google.protobuf.FieldMask value) {
       if (createMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0)
-            && createMask_ != null
-            && createMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0) &&
+          createMask_ != null &&
+          createMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getCreateMaskBuilder().mergeFrom(value);
         } else {
           createMask_ = value;
@@ -1987,8 +1716,6 @@ public Builder mergeCreateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -2010,8 +1737,6 @@ public Builder clearCreateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -2028,8 +1753,6 @@ public com.google.protobuf.FieldMask.Builder getCreateMaskBuilder() {
       return getCreateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -2044,14 +1767,11 @@ public com.google.protobuf.FieldMaskOrBuilder getCreateMaskOrBuilder() {
       if (createMaskBuilder_ != null) {
         return createMaskBuilder_.getMessageOrBuilder();
       } else {
-        return createMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : createMask_;
+        return createMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : createMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -2063,24 +1783,21 @@ public com.google.protobuf.FieldMaskOrBuilder getCreateMaskOrBuilder() {
      * .google.protobuf.FieldMask create_mask = 6;
      */
     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> 
         getCreateMaskFieldBuilder() {
       if (createMaskBuilder_ == null) {
-        createMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getCreateMask(), getParentForChildren(), isClean());
+        createMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getCreateMask(),
+                getParentForChildren(),
+                isClean());
         createMask_ = null;
       }
       return createMaskBuilder_;
     }
-
     @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);
     }
 
@@ -2090,12 +1807,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateDocumentRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateDocumentRequest)
   private static final com.google.cloud.contentwarehouse.v1.CreateDocumentRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateDocumentRequest();
   }
@@ -2104,27 +1821,27 @@ public static com.google.cloud.contentwarehouse.v1.CreateDocumentRequest getDefa
     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;
@@ -2139,4 +1856,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.CreateDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java
similarity index 77%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java
index 1f8ad31010c6..e56a943c0db6 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java
@@ -1,129 +1,82 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_service_request.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface CreateDocumentRequestOrBuilder
-    extends
+public interface CreateDocumentRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 to create.
    * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
    * Required. The document to create.
    * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ com.google.cloud.contentwarehouse.v1.Document getDocument(); /** - * - * *
    * Required. The document to create.
    * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -134,8 +87,6 @@ public interface CreateDocumentRequestOrBuilder
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
-   *
-   *
    * 
    * Default document policy during creation.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -144,13 +95,10 @@ public interface CreateDocumentRequestOrBuilder
    * 
* * .google.iam.v1.Policy policy = 4; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * Default document policy during creation.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -159,13 +107,10 @@ public interface CreateDocumentRequestOrBuilder
    * 
* * .google.iam.v1.Policy policy = 4; - * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** - * - * *
    * Default document policy during creation.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -178,8 +123,6 @@ public interface CreateDocumentRequestOrBuilder
   com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -187,15 +130,11 @@ public interface CreateDocumentRequestOrBuilder
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; * @return Whether the cloudAiDocumentOption field is set. */ boolean hasCloudAiDocumentOption(); /** - * - * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -203,15 +142,11 @@ public interface CreateDocumentRequestOrBuilder
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; * @return The cloudAiDocumentOption. */ com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocumentOption(); /** - * - * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -219,15 +154,11 @@ public interface CreateDocumentRequestOrBuilder
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder - getCloudAiDocumentOptionOrBuilder(); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder(); /** - * - * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
@@ -237,13 +168,10 @@ public interface CreateDocumentRequestOrBuilder
    * 
* * .google.protobuf.FieldMask create_mask = 6; - * * @return Whether the createMask field is set. */ boolean hasCreateMask(); /** - * - * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
@@ -253,13 +181,10 @@ public interface CreateDocumentRequestOrBuilder
    * 
* * .google.protobuf.FieldMask create_mask = 6; - * * @return The createMask. */ com.google.protobuf.FieldMask getCreateMask(); /** - * - * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java
similarity index 73%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java
index 8790676d78f2..698c594498b9 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.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/contentwarehouse/v1/document_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Response message for DocumentService.CreateDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentResponse} */ -public final class CreateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDocumentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CreateDocumentResponse) CreateDocumentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDocumentResponse.newBuilder() to construct. private CreateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDocumentResponse() { longRunningOperations_ = 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 CreateDocumentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.class, - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.class, com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.Builder.class); } public static final int DOCUMENT_FIELD_NUMBER = 1; private com.google.cloud.contentwarehouse.v1.Document document_; /** - * - * *
    * Document created after executing create request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return Whether the document field is set. */ @java.lang.Override @@ -80,25 +58,18 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
    * Document created after executing create request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return The document. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.Document getDocument() { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } /** - * - * *
    * Document created after executing create request.
    * 
@@ -107,16 +78,12 @@ public com.google.cloud.contentwarehouse.v1.Document getDocument() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } public static final int RULE_ENGINE_OUTPUT_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RuleEngineOutput ruleEngineOutput_; /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -125,7 +92,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; - * * @return Whether the ruleEngineOutput field is set. */ @java.lang.Override @@ -133,8 +99,6 @@ public boolean hasRuleEngineOutput() { return ruleEngineOutput_ != null; } /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -143,18 +107,13 @@ public boolean hasRuleEngineOutput() {
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; - * * @return The ruleEngineOutput. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput() { - return ruleEngineOutput_ == null - ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() - : ruleEngineOutput_; + return ruleEngineOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_; } /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -165,25 +124,19 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput
    * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder
-      getRuleEngineOutputOrBuilder() {
-    return ruleEngineOutput_ == null
-        ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()
-        : ruleEngineOutput_;
+  public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder() {
+    return ruleEngineOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_;
   }
 
   public static final int METADATA_FIELD_NUMBER = 3;
   private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_;
   /**
-   *
-   *
    * 
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -191,26 +144,19 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; - * * @return The metadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -220,18 +166,13 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() {
    */
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder() {
-    return metadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
-        : metadata_;
+    return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
   }
 
   public static final int LONG_RUNNING_OPERATIONS_FIELD_NUMBER = 4;
-
   @SuppressWarnings("serial")
   private java.util.List longRunningOperations_;
   /**
-   *
-   *
    * 
    * post-processing LROs
    * 
@@ -243,8 +184,6 @@ public java.util.List getLongRunningOperations return longRunningOperations_; } /** - * - * *
    * post-processing LROs
    * 
@@ -252,13 +191,11 @@ public java.util.List getLongRunningOperations * repeated .google.longrunning.Operation long_running_operations = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLongRunningOperationsOrBuilderList() { return longRunningOperations_; } /** - * - * *
    * post-processing LROs
    * 
@@ -270,8 +207,6 @@ public int getLongRunningOperationsCount() { return longRunningOperations_.size(); } /** - * - * *
    * post-processing LROs
    * 
@@ -283,8 +218,6 @@ public com.google.longrunning.Operation getLongRunningOperations(int index) { return longRunningOperations_.get(index); } /** - * - * *
    * post-processing LROs
    * 
@@ -292,12 +225,12 @@ public com.google.longrunning.Operation getLongRunningOperations(int index) { * repeated .google.longrunning.Operation long_running_operations = 4; */ @java.lang.Override - public com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuilder(int index) { + public com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuilder( + int index) { return longRunningOperations_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +242,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()); } @@ -332,18 +266,20 @@ 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 (ruleEngineOutput_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuleEngineOutput()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRuleEngineOutput()); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); } for (int i = 0; i < longRunningOperations_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, longRunningOperations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, longRunningOperations_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -353,27 +289,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.contentwarehouse.v1.CreateDocumentResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse other = - (com.google.cloud.contentwarehouse.v1.CreateDocumentResponse) obj; + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse other = (com.google.cloud.contentwarehouse.v1.CreateDocumentResponse) obj; if (hasDocument() != other.hasDocument()) return false; if (hasDocument()) { - if (!getDocument().equals(other.getDocument())) return false; + if (!getDocument() + .equals(other.getDocument())) return false; } if (hasRuleEngineOutput() != other.hasRuleEngineOutput()) return false; if (hasRuleEngineOutput()) { - if (!getRuleEngineOutput().equals(other.getRuleEngineOutput())) return false; + if (!getRuleEngineOutput() + .equals(other.getRuleEngineOutput())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; + if (!getMetadata() + .equals(other.getMetadata())) return false; } - if (!getLongRunningOperationsList().equals(other.getLongRunningOperationsList())) return false; + if (!getLongRunningOperationsList() + .equals(other.getLongRunningOperationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -407,136 +346,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse 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.contentwarehouse.v1.CreateDocumentResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse 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.contentwarehouse.v1.CreateDocumentResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CreateDocumentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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.CreateDocument.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CreateDocumentResponse) com.google.cloud.contentwarehouse.v1.CreateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.class, - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.class, com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.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(); @@ -567,9 +501,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor; } @java.lang.Override @@ -588,18 +522,14 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse result = - new com.google.cloud.contentwarehouse.v1.CreateDocumentResponse(this); + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse result = new com.google.cloud.contentwarehouse.v1.CreateDocumentResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.CreateDocumentResponse result) { if (longRunningOperationsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { longRunningOperations_ = java.util.Collections.unmodifiableList(longRunningOperations_); @@ -614,14 +544,19 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentResponse 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.ruleEngineOutput_ = - ruleEngineOutputBuilder_ == null ? ruleEngineOutput_ : ruleEngineOutputBuilder_.build(); + result.ruleEngineOutput_ = ruleEngineOutputBuilder_ == null + ? ruleEngineOutput_ + : ruleEngineOutputBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); } } @@ -629,39 +564,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.CreateDocumentResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentResponse) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentResponse)other); } else { super.mergeFrom(other); return this; @@ -669,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateDocumentResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.getDefaultInstance()) return this; if (other.hasDocument()) { mergeDocument(other.getDocument()); } @@ -698,10 +631,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateDocumentResp longRunningOperationsBuilder_ = null; longRunningOperations_ = other.longRunningOperations_; bitField0_ = (bitField0_ & ~0x00000008); - longRunningOperationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLongRunningOperationsFieldBuilder() - : null; + longRunningOperationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLongRunningOperationsFieldBuilder() : null; } else { longRunningOperationsBuilder_.addAllMessages(other.longRunningOperations_); } @@ -733,44 +665,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getRuleEngineOutputFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.longrunning.Operation m = - input.readMessage(com.google.longrunning.Operation.parser(), extensionRegistry); - if (longRunningOperationsBuilder_ == null) { - ensureLongRunningOperationsIsMutable(); - longRunningOperations_.add(m); - } else { - longRunningOperationsBuilder_.addMessage(m); - } - break; - } // case 34 - 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 18: { + input.readMessage( + getRuleEngineOutputFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.longrunning.Operation m = + input.readMessage( + com.google.longrunning.Operation.parser(), + extensionRegistry); + if (longRunningOperationsBuilder_ == null) { + ensureLongRunningOperationsIsMutable(); + longRunningOperations_.add(m); + } else { + longRunningOperationsBuilder_.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) { @@ -780,52 +714,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.contentwarehouse.v1.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> - documentBuilder_; + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> documentBuilder_; /** - * - * *
      * Document created after executing create request.
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Document created after executing create request.
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return The document. */ public com.google.cloud.contentwarehouse.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
      * Document created after executing create request.
      * 
@@ -846,8 +766,6 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) return this; } /** - * - * *
      * Document created after executing create request.
      * 
@@ -866,8 +784,6 @@ public Builder setDocument( return this; } /** - * - * *
      * Document created after executing create request.
      * 
@@ -876,9 +792,9 @@ public Builder setDocument( */ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && document_ != null - && document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + document_ != null && + document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; @@ -891,8 +807,6 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value return this; } /** - * - * *
      * Document created after executing create request.
      * 
@@ -910,8 +824,6 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Document created after executing create request.
      * 
@@ -924,8 +836,6 @@ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder( return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Document created after executing create request.
      * 
@@ -936,14 +846,11 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? + com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } } /** - * - * *
      * Document created after executing create request.
      * 
@@ -951,17 +858,14 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild * .google.cloud.contentwarehouse.v1.Document document = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( - getDocument(), getParentForChildren(), isClean()); + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); document_ = null; } return documentBuilder_; @@ -969,13 +873,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild private com.google.cloud.contentwarehouse.v1.RuleEngineOutput ruleEngineOutput_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleEngineOutput, - com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, - com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder> - ruleEngineOutputBuilder_; + com.google.cloud.contentwarehouse.v1.RuleEngineOutput, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder> ruleEngineOutputBuilder_; /** - * - * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -984,15 +883,12 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
      * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; - * * @return Whether the ruleEngineOutput field is set. */ public boolean hasRuleEngineOutput() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -1001,21 +897,16 @@ public boolean hasRuleEngineOutput() {
      * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; - * * @return The ruleEngineOutput. */ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput() { if (ruleEngineOutputBuilder_ == null) { - return ruleEngineOutput_ == null - ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() - : ruleEngineOutput_; + return ruleEngineOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_; } else { return ruleEngineOutputBuilder_.getMessage(); } } /** - * - * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -1025,8 +916,7 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public Builder setRuleEngineOutput(
-        com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
+    public Builder setRuleEngineOutput(com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
       if (ruleEngineOutputBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1040,8 +930,6 @@ public Builder setRuleEngineOutput(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -1063,8 +951,6 @@ public Builder setRuleEngineOutput(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -1074,13 +960,11 @@ public Builder setRuleEngineOutput(
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public Builder mergeRuleEngineOutput(
-        com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
+    public Builder mergeRuleEngineOutput(com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
       if (ruleEngineOutputBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && ruleEngineOutput_ != null
-            && ruleEngineOutput_
-                != com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          ruleEngineOutput_ != null &&
+          ruleEngineOutput_ != com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()) {
           getRuleEngineOutputBuilder().mergeFrom(value);
         } else {
           ruleEngineOutput_ = value;
@@ -1093,8 +977,6 @@ public Builder mergeRuleEngineOutput(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -1115,8 +997,6 @@ public Builder clearRuleEngineOutput() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -1126,15 +1006,12 @@ public Builder clearRuleEngineOutput() {
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder
-        getRuleEngineOutputBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder getRuleEngineOutputBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRuleEngineOutputFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -1144,19 +1021,15 @@ public Builder clearRuleEngineOutput() {
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder
-        getRuleEngineOutputOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder() {
       if (ruleEngineOutputBuilder_ != null) {
         return ruleEngineOutputBuilder_.getMessageOrBuilder();
       } else {
-        return ruleEngineOutput_ == null
-            ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()
-            : ruleEngineOutput_;
+        return ruleEngineOutput_ == null ?
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_;
       }
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -1167,17 +1040,14 @@ public Builder clearRuleEngineOutput() {
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput,
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder,
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RuleEngineOutput, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder> 
         getRuleEngineOutputFieldBuilder() {
       if (ruleEngineOutputBuilder_ == null) {
-        ruleEngineOutputBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RuleEngineOutput,
-                com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder,
-                com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder>(
-                getRuleEngineOutput(), getParentForChildren(), isClean());
+        ruleEngineOutputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder>(
+                getRuleEngineOutput(),
+                getParentForChildren(),
+                isClean());
         ruleEngineOutput_ = null;
       }
       return ruleEngineOutputBuilder_;
@@ -1185,49 +1055,36 @@ public Builder clearRuleEngineOutput() {
 
     private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
-        metadataBuilder_;
+        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> metadataBuilder_;
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; - * * @return The metadata. */ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1249,8 +1106,6 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1270,8 +1125,6 @@ public Builder setMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1281,10 +1134,9 @@ public Builder setMetadata(
      */
     public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && metadata_ != null
-            && metadata_
-                != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          metadata_ != null &&
+          metadata_ != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -1297,8 +1149,6 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1317,8 +1167,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1332,8 +1180,6 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadata
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1345,14 +1191,11 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
-            : metadata_;
+        return metadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
       }
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1361,42 +1204,32 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> 
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.ResponseMetadata,
-                com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
-                getMetadata(), getParentForChildren(), isClean());
+        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
+                getMetadata(),
+                getParentForChildren(),
+                isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
 
     private java.util.List longRunningOperations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureLongRunningOperationsIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
-        longRunningOperations_ =
-            new java.util.ArrayList(longRunningOperations_);
+        longRunningOperations_ = new java.util.ArrayList(longRunningOperations_);
         bitField0_ |= 0x00000008;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.longrunning.Operation,
-            com.google.longrunning.Operation.Builder,
-            com.google.longrunning.OperationOrBuilder>
-        longRunningOperationsBuilder_;
+        com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> longRunningOperationsBuilder_;
 
     /**
-     *
-     *
      * 
      * post-processing LROs
      * 
@@ -1411,8 +1244,6 @@ public java.util.List getLongRunningOperations } } /** - * - * *
      * post-processing LROs
      * 
@@ -1427,8 +1258,6 @@ public int getLongRunningOperationsCount() { } } /** - * - * *
      * post-processing LROs
      * 
@@ -1443,15 +1272,14 @@ public com.google.longrunning.Operation getLongRunningOperations(int index) { } } /** - * - * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public Builder setLongRunningOperations(int index, com.google.longrunning.Operation value) { + public Builder setLongRunningOperations( + int index, com.google.longrunning.Operation value) { if (longRunningOperationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1465,8 +1293,6 @@ public Builder setLongRunningOperations(int index, com.google.longrunning.Operat return this; } /** - * - * *
      * post-processing LROs
      * 
@@ -1485,8 +1311,6 @@ public Builder setLongRunningOperations( return this; } /** - * - * *
      * post-processing LROs
      * 
@@ -1507,15 +1331,14 @@ public Builder addLongRunningOperations(com.google.longrunning.Operation value) return this; } /** - * - * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public Builder addLongRunningOperations(int index, com.google.longrunning.Operation value) { + public Builder addLongRunningOperations( + int index, com.google.longrunning.Operation value) { if (longRunningOperationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1529,8 +1352,6 @@ public Builder addLongRunningOperations(int index, com.google.longrunning.Operat return this; } /** - * - * *
      * post-processing LROs
      * 
@@ -1549,8 +1370,6 @@ public Builder addLongRunningOperations( return this; } /** - * - * *
      * post-processing LROs
      * 
@@ -1569,8 +1388,6 @@ public Builder addLongRunningOperations( return this; } /** - * - * *
      * post-processing LROs
      * 
@@ -1581,7 +1398,8 @@ public Builder addAllLongRunningOperations( java.lang.Iterable values) { if (longRunningOperationsBuilder_ == null) { ensureLongRunningOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, longRunningOperations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, longRunningOperations_); onChanged(); } else { longRunningOperationsBuilder_.addAllMessages(values); @@ -1589,8 +1407,6 @@ public Builder addAllLongRunningOperations( return this; } /** - * - * *
      * post-processing LROs
      * 
@@ -1608,8 +1424,6 @@ public Builder clearLongRunningOperations() { return this; } /** - * - * *
      * post-processing LROs
      * 
@@ -1627,44 +1441,39 @@ public Builder removeLongRunningOperations(int index) { return this; } /** - * - * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public com.google.longrunning.Operation.Builder getLongRunningOperationsBuilder(int index) { + public com.google.longrunning.Operation.Builder getLongRunningOperationsBuilder( + int index) { return getLongRunningOperationsFieldBuilder().getBuilder(index); } /** - * - * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuilder(int index) { + public com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuilder( + int index) { if (longRunningOperationsBuilder_ == null) { - return longRunningOperations_.get(index); - } else { + return longRunningOperations_.get(index); } else { return longRunningOperationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public java.util.List - getLongRunningOperationsOrBuilderList() { + public java.util.List + getLongRunningOperationsOrBuilderList() { if (longRunningOperationsBuilder_ != null) { return longRunningOperationsBuilder_.getMessageOrBuilderList(); } else { @@ -1672,8 +1481,6 @@ public com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuild } } /** - * - * *
      * post-processing LROs
      * 
@@ -1681,47 +1488,38 @@ public com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuild * repeated .google.longrunning.Operation long_running_operations = 4; */ public com.google.longrunning.Operation.Builder addLongRunningOperationsBuilder() { - return getLongRunningOperationsFieldBuilder() - .addBuilder(com.google.longrunning.Operation.getDefaultInstance()); + return getLongRunningOperationsFieldBuilder().addBuilder( + com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public com.google.longrunning.Operation.Builder addLongRunningOperationsBuilder(int index) { - return getLongRunningOperationsFieldBuilder() - .addBuilder(index, com.google.longrunning.Operation.getDefaultInstance()); + public com.google.longrunning.Operation.Builder addLongRunningOperationsBuilder( + int index) { + return getLongRunningOperationsFieldBuilder().addBuilder( + index, com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public java.util.List - getLongRunningOperationsBuilderList() { + public java.util.List + getLongRunningOperationsBuilderList() { return getLongRunningOperationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> getLongRunningOperationsFieldBuilder() { if (longRunningOperationsBuilder_ == null) { - longRunningOperationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder>( + longRunningOperationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder>( longRunningOperations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -1730,9 +1528,9 @@ public com.google.longrunning.Operation.Builder addLongRunningOperationsBuilder( } return longRunningOperationsBuilder_; } - @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); } @@ -1742,12 +1540,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateDocumentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateDocumentResponse) private static final com.google.cloud.contentwarehouse.v1.CreateDocumentResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateDocumentResponse(); } @@ -1756,27 +1554,27 @@ public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDocumentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateDocumentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1791,4 +1589,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java similarity index 81% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java index 5d1eed1e2029..2c849f8b05f1 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.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/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; -public interface CreateDocumentResponseOrBuilder - extends +public interface CreateDocumentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Document created after executing create request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
    * Document created after executing create request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return The document. */ com.google.cloud.contentwarehouse.v1.Document getDocument(); /** - * - * *
    * Document created after executing create request.
    * 
@@ -59,8 +35,6 @@ public interface CreateDocumentResponseOrBuilder com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder(); /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -69,13 +43,10 @@ public interface CreateDocumentResponseOrBuilder
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; - * * @return Whether the ruleEngineOutput field is set. */ boolean hasRuleEngineOutput(); /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -84,13 +55,10 @@ public interface CreateDocumentResponseOrBuilder
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; - * * @return The ruleEngineOutput. */ com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput(); /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -103,34 +71,26 @@ public interface CreateDocumentResponseOrBuilder
   com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder();
 
   /**
-   *
-   *
    * 
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; - * * @return The metadata. */ com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -141,18 +101,15 @@ public interface CreateDocumentResponseOrBuilder
   com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder();
 
   /**
-   *
-   *
    * 
    * post-processing LROs
    * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - java.util.List getLongRunningOperationsList(); + java.util.List + getLongRunningOperationsList(); /** - * - * *
    * post-processing LROs
    * 
@@ -161,8 +118,6 @@ public interface CreateDocumentResponseOrBuilder */ com.google.longrunning.Operation getLongRunningOperations(int index); /** - * - * *
    * post-processing LROs
    * 
@@ -171,24 +126,21 @@ public interface CreateDocumentResponseOrBuilder */ int getLongRunningOperationsCount(); /** - * - * *
    * post-processing LROs
    * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - java.util.List + java.util.List getLongRunningOperationsOrBuilderList(); /** - * - * *
    * post-processing LROs
    * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuilder(int index); + com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuilder( + int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java similarity index 59% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java index 7a8f541e450e..ef468e0732d4 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java @@ -1,82 +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/contentwarehouse/v1/document_schema_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentSchemaService.CreateDocumentSchema.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest} */ -public final class CreateDocumentSchemaRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDocumentSchemaRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) CreateDocumentSchemaRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDocumentSchemaRequest.newBuilder() to construct. private CreateDocumentSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDocumentSchemaRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDocumentSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.class, - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent name.
    * 
* - * - * string 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 @@ -85,31 +60,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent name.
    * 
* - * - * string 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 { @@ -120,16 +93,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DOCUMENT_SCHEMA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.DocumentSchema documentSchema_; /** - * - * *
    * Required. The document schema to create.
    * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentSchema field is set. */ @java.lang.Override @@ -137,44 +105,30 @@ public boolean hasDocumentSchema() { return documentSchema_ != null; } /** - * - * *
    * Required. The document schema to create.
    * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The documentSchema. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema() { - return documentSchema_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() - : documentSchema_; + return documentSchema_ == null ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; } /** - * - * *
    * Required. The document schema to create.
    * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder() { - return documentSchema_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() - : documentSchema_; + return documentSchema_ == null ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -206,7 +161,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (documentSchema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDocumentSchema()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,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.contentwarehouse.v1.CreateDocumentSchemaRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest other = - (com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) obj; + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest other = (com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasDocumentSchema() != other.hasDocumentSchema()) return false; if (hasDocumentSchema()) { - if (!getDocumentSchema().equals(other.getDocumentSchema())) return false; + if (!getDocumentSchema() + .equals(other.getDocumentSchema())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -252,136 +209,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest 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.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest 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.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 DocumentSchemaService.CreateDocumentSchema.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.class, - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.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(); @@ -396,14 +348,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.getDefaultInstance(); } @@ -418,24 +369,21 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest build() @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest result = - new com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest result = new com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.documentSchema_ = - documentSchemaBuilder_ == null ? documentSchema_ : documentSchemaBuilder_.build(); + result.documentSchema_ = documentSchemaBuilder_ == null + ? documentSchema_ + : documentSchemaBuilder_.build(); } } @@ -443,50 +391,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.contentwarehouse.v1.CreateDocumentSchemaRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest other) { - if (other - == com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest other) { + if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -521,25 +465,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getDocumentSchemaFieldBuilder().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( + getDocumentSchemaFieldBuilder().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) { @@ -549,27 +492,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -578,23 +516,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent name.
      * 
* - * - * string 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 { @@ -602,39 +537,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent name.
      * 
* - * - * 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 name.
      * 
* - * - * string 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() { @@ -644,23 +568,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent name.
      * 
* - * - * 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; @@ -670,58 +588,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.DocumentSchema documentSchema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, - com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> - documentSchemaBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> documentSchemaBuilder_; /** - * - * *
      * Required. The document schema to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentSchema field is set. */ public boolean hasDocumentSchema() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The document schema to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The documentSchema. */ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema() { if (documentSchemaBuilder_ == null) { - return documentSchema_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() - : documentSchema_; + return documentSchema_ == null ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; } else { return documentSchemaBuilder_.getMessage(); } } /** - * - * *
      * Required. The document schema to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentSchema(com.google.cloud.contentwarehouse.v1.DocumentSchema value) { if (documentSchemaBuilder_ == null) { @@ -737,15 +636,11 @@ public Builder setDocumentSchema(com.google.cloud.contentwarehouse.v1.DocumentSc return this; } /** - * - * *
      * Required. The document schema to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentSchema( com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder builderForValue) { @@ -759,22 +654,17 @@ public Builder setDocumentSchema( return this; } /** - * - * *
      * Required. The document schema to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDocumentSchema(com.google.cloud.contentwarehouse.v1.DocumentSchema value) { if (documentSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && documentSchema_ != null - && documentSchema_ - != com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + documentSchema_ != null && + documentSchema_ != com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()) { getDocumentSchemaBuilder().mergeFrom(value); } else { documentSchema_ = value; @@ -787,15 +677,11 @@ public Builder mergeDocumentSchema(com.google.cloud.contentwarehouse.v1.Document return this; } /** - * - * *
      * Required. The document schema to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocumentSchema() { bitField0_ = (bitField0_ & ~0x00000002); @@ -808,15 +694,11 @@ public Builder clearDocumentSchema() { return this; } /** - * - * *
      * Required. The document schema to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSchemaBuilder() { bitField0_ |= 0x00000002; @@ -824,56 +706,43 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSc return getDocumentSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The document schema to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder - getDocumentSchemaOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder() { if (documentSchemaBuilder_ != null) { return documentSchemaBuilder_.getMessageOrBuilder(); } else { - return documentSchema_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() - : documentSchema_; + return documentSchema_ == null ? + com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; } } /** - * - * *
      * Required. The document schema to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, - com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> getDocumentSchemaFieldBuilder() { if (documentSchemaBuilder_ == null) { - documentSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, - com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder>( - getDocumentSchema(), getParentForChildren(), isClean()); + documentSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder>( + getDocumentSchema(), + getParentForChildren(), + isClean()); documentSchema_ = null; } return documentSchemaBuilder_; } - @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); } @@ -883,43 +752,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) - private static final com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest(); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDocumentSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateDocumentSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -931,8 +798,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..46b60acd4cfb --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface CreateDocumentSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent name.
+   * 
+ * + * 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 schema to create.
+   * 
+ * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the documentSchema field is set. + */ + boolean hasDocumentSchema(); + /** + *
+   * Required. The document schema to create.
+   * 
+ * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The documentSchema. + */ + com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema(); + /** + *
+   * Required. The document schema to create.
+   * 
+ * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder(); +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java similarity index 61% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java index 38b1eb9ea1bb..1a8d99756c0f 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for RuleSetService.CreateRuleSet.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateRuleSetRequest} */ -public final class CreateRuleSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateRuleSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CreateRuleSetRequest) CreateRuleSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateRuleSetRequest.newBuilder() to construct. private CreateRuleSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateRuleSetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateRuleSetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.class, - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 RULE_SET_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RuleSet ruleSet_; /** - * - * *
    * Required. The rule set to create.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the ruleSet field is set. */ @java.lang.Override @@ -139,44 +107,30 @@ public boolean hasRuleSet() { return ruleSet_ != null; } /** - * - * *
    * Required. The rule set to create.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The ruleSet. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet() { - return ruleSet_ == null - ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() - : ruleSet_; + return ruleSet_ == null ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; } /** - * - * *
    * Required. The rule set to create.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder() { - return ruleSet_ == null - ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() - : ruleSet_; + return ruleSet_ == null ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; } 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 (ruleSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuleSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRuleSet()); } 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.contentwarehouse.v1.CreateRuleSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest other = - (com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest) obj; + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest other = (com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasRuleSet() != other.hasRuleSet()) return false; if (hasRuleSet()) { - if (!getRuleSet().equals(other.getRuleSet())) return false; + if (!getRuleSet() + .equals(other.getRuleSet())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,136 +211,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest 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.contentwarehouse.v1.CreateRuleSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest 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.contentwarehouse.v1.CreateRuleSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 RuleSetService.CreateRuleSet.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateRuleSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CreateRuleSetRequest) com.google.cloud.contentwarehouse.v1.CreateRuleSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.class, - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.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,9 +350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor; } @java.lang.Override @@ -419,11 +371,8 @@ public com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest result = - new com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest result = new com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -434,7 +383,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateRuleSetReq result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.ruleSet_ = ruleSetBuilder_ == null ? ruleSet_ : ruleSetBuilder_.build(); + result.ruleSet_ = ruleSetBuilder_ == null + ? ruleSet_ + : ruleSetBuilder_.build(); } } @@ -442,39 +393,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateRuleSetReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.CreateRuleSetRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest)other); } else { super.mergeFrom(other); return this; @@ -482,8 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -518,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(getRuleSetFieldBuilder().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( + getRuleSetFieldBuilder().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) { @@ -546,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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; @@ -576,24 +519,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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 { @@ -601,41 +541,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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 name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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() { @@ -645,24 +574,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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; @@ -672,58 +595,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.RuleSet ruleSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, - com.google.cloud.contentwarehouse.v1.RuleSet.Builder, - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> - ruleSetBuilder_; + com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> ruleSetBuilder_; /** - * - * *
      * Required. The rule set to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the ruleSet field is set. */ public boolean hasRuleSet() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The rule set to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The ruleSet. */ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet() { if (ruleSetBuilder_ == null) { - return ruleSet_ == null - ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() - : ruleSet_; + return ruleSet_ == null ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; } else { return ruleSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The rule set to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) { if (ruleSetBuilder_ == null) { @@ -739,15 +643,11 @@ public Builder setRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) { return this; } /** - * - * *
      * Required. The rule set to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRuleSet( com.google.cloud.contentwarehouse.v1.RuleSet.Builder builderForValue) { @@ -761,21 +661,17 @@ public Builder setRuleSet( return this; } /** - * - * *
      * Required. The rule set to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) { if (ruleSetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && ruleSet_ != null - && ruleSet_ != com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + ruleSet_ != null && + ruleSet_ != com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()) { getRuleSetBuilder().mergeFrom(value); } else { ruleSet_ = value; @@ -788,15 +684,11 @@ public Builder mergeRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) return this; } /** - * - * *
      * Required. The rule set to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRuleSet() { bitField0_ = (bitField0_ & ~0x00000002); @@ -809,15 +701,11 @@ public Builder clearRuleSet() { return this; } /** - * - * *
      * Required. The rule set to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.RuleSet.Builder getRuleSetBuilder() { bitField0_ |= 0x00000002; @@ -825,55 +713,43 @@ public com.google.cloud.contentwarehouse.v1.RuleSet.Builder getRuleSetBuilder() return getRuleSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The rule set to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder() { if (ruleSetBuilder_ != null) { return ruleSetBuilder_.getMessageOrBuilder(); } else { - return ruleSet_ == null - ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() - : ruleSet_; + return ruleSet_ == null ? + com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; } } /** - * - * *
      * Required. The rule set to create.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, - com.google.cloud.contentwarehouse.v1.RuleSet.Builder, - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> + com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> getRuleSetFieldBuilder() { if (ruleSetBuilder_ == null) { - ruleSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, - com.google.cloud.contentwarehouse.v1.RuleSet.Builder, - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>( - getRuleSet(), getParentForChildren(), isClean()); + ruleSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>( + getRuleSet(), + getParentForChildren(), + isClean()); ruleSet_ = null; } return ruleSetBuilder_; } - @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); } @@ -883,12 +759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateRuleSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateRuleSetRequest) private static final com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest(); } @@ -897,27 +773,27 @@ public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRuleSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateRuleSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -932,4 +808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java new file mode 100644 index 000000000000..3337da593af9 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface CreateRuleSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateRuleSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent name.
+   * Format: projects/{project_number}/locations/{location}.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent name.
+   * Format: projects/{project_number}/locations/{location}.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The rule set to create.
+   * 
+ * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the ruleSet field is set. + */ + boolean hasRuleSet(); + /** + *
+   * Required. The rule set to create.
+   * 
+ * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The ruleSet. + */ + com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet(); + /** + *
+   * Required. The rule set to create.
+   * 
+ * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder(); +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java similarity index 60% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java index 42928808e519..e9d320c2af14 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.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/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for SynonymSetService.CreateSynonymSet.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateSynonymSetRequest} */ -public final class CreateSynonymSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSynonymSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) CreateSynonymSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSynonymSetRequest.newBuilder() to construct. private CreateSynonymSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSynonymSetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSynonymSetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.class, - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 SYNONYM_SET_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.SynonymSet synonymSet_; /** - * - * *
    * Required. The synonymSet to be created for a context
    * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the synonymSet field is set. */ @java.lang.Override @@ -139,44 +107,30 @@ public boolean hasSynonymSet() { return synonymSet_ != null; } /** - * - * *
    * Required. The synonymSet to be created for a context
    * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The synonymSet. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet() { - return synonymSet_ == null - ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() - : synonymSet_; + return synonymSet_ == null ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; } /** - * - * *
    * Required. The synonymSet to be created for a context
    * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder() { - return synonymSet_ == null - ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() - : synonymSet_; + return synonymSet_ == null ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; } 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 (synonymSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSynonymSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSynonymSet()); } 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.contentwarehouse.v1.CreateSynonymSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest other = - (com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) obj; + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest other = (com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSynonymSet() != other.hasSynonymSet()) return false; if (hasSynonymSet()) { - if (!getSynonymSet().equals(other.getSynonymSet())) return false; + if (!getSynonymSet() + .equals(other.getSynonymSet())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,136 +211,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest 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.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest 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.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 SynonymSetService.CreateSynonymSet.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateSynonymSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.class, - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.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.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.getDefaultInstance(); } @@ -420,23 +371,21 @@ public com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest result = - new com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest result = new com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.synonymSet_ = synonymSetBuilder_ == null ? synonymSet_ : synonymSetBuilder_.build(); + result.synonymSet_ = synonymSetBuilder_ == null + ? synonymSet_ + : synonymSetBuilder_.build(); } } @@ -444,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.contentwarehouse.v1.CreateSynonymSetRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest)other); } else { super.mergeFrom(other); return this; @@ -484,9 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest other) { - if (other - == com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -521,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(getSynonymSetFieldBuilder().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( + getSynonymSetFieldBuilder().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) { @@ -549,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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; @@ -579,24 +519,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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 { @@ -604,41 +541,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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 name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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() { @@ -648,24 +574,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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; @@ -675,58 +595,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.SynonymSet synonymSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, - com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> - synonymSetBuilder_; + com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> synonymSetBuilder_; /** - * - * *
      * Required. The synonymSet to be created for a context
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the synonymSet field is set. */ public boolean hasSynonymSet() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The synonymSet to be created for a context
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The synonymSet. */ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet() { if (synonymSetBuilder_ == null) { - return synonymSet_ == null - ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() - : synonymSet_; + return synonymSet_ == null ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; } else { return synonymSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The synonymSet to be created for a context
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet value) { if (synonymSetBuilder_ == null) { @@ -742,15 +643,11 @@ public Builder setSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet val return this; } /** - * - * *
      * Required. The synonymSet to be created for a context
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSynonymSet( com.google.cloud.contentwarehouse.v1.SynonymSet.Builder builderForValue) { @@ -764,22 +661,17 @@ public Builder setSynonymSet( return this; } /** - * - * *
      * Required. The synonymSet to be created for a context
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet value) { if (synonymSetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && synonymSet_ != null - && synonymSet_ - != com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + synonymSet_ != null && + synonymSet_ != com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()) { getSynonymSetBuilder().mergeFrom(value); } else { synonymSet_ = value; @@ -792,15 +684,11 @@ public Builder mergeSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet v return this; } /** - * - * *
      * Required. The synonymSet to be created for a context
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSynonymSet() { bitField0_ = (bitField0_ & ~0x00000002); @@ -813,15 +701,11 @@ public Builder clearSynonymSet() { return this; } /** - * - * *
      * Required. The synonymSet to be created for a context
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetBuilder() { bitField0_ |= 0x00000002; @@ -829,55 +713,43 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetBuil return getSynonymSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The synonymSet to be created for a context
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder() { if (synonymSetBuilder_ != null) { return synonymSetBuilder_.getMessageOrBuilder(); } else { - return synonymSet_ == null - ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() - : synonymSet_; + return synonymSet_ == null ? + com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; } } /** - * - * *
      * Required. The synonymSet to be created for a context
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, - com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> + com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> getSynonymSetFieldBuilder() { if (synonymSetBuilder_ == null) { - synonymSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, - com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder>( - getSynonymSet(), getParentForChildren(), isClean()); + synonymSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder>( + getSynonymSet(), + getParentForChildren(), + isClean()); synonymSet_ = null; } return synonymSetBuilder_; } - @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); } @@ -887,13 +759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) - private static final com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest(); } @@ -902,27 +773,27 @@ public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSynonymSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateSynonymSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -937,4 +808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java new file mode 100644 index 000000000000..33c525937428 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface CreateSynonymSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent name.
+   * Format: projects/{project_number}/locations/{location}.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent name.
+   * Format: projects/{project_number}/locations/{location}.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The synonymSet to be created for a context
+   * 
+ * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the synonymSet field is set. + */ + boolean hasSynonymSet(); + /** + *
+   * Required. The synonymSet to be created for a context
+   * 
+ * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The synonymSet. + */ + com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet(); + /** + *
+   * Required. The synonymSet to be created for a context
+   * 
+ * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder(); +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java index 41cb711bf81b..9d3075a9bf91 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java @@ -1,160 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * To support the custom weighting across document schemas.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CustomWeightsMetadata} */ -public final class CustomWeightsMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CustomWeightsMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CustomWeightsMetadata) CustomWeightsMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CustomWeightsMetadata.newBuilder() to construct. private CustomWeightsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomWeightsMetadata() { weightedSchemaProperties_ = 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 CustomWeightsMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.class, - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.class, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder.class); } public static final int WEIGHTED_SCHEMA_PROPERTIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - weightedSchemaProperties_; + private java.util.List weightedSchemaProperties_; /** - * - * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ @java.lang.Override - public java.util.List - getWeightedSchemaPropertiesList() { + public java.util.List getWeightedSchemaPropertiesList() { return weightedSchemaProperties_; } /** - * - * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder> + public java.util.List getWeightedSchemaPropertiesOrBuilderList() { return weightedSchemaProperties_; } /** - * - * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ @java.lang.Override public int getWeightedSchemaPropertiesCount() { return weightedSchemaProperties_.size(); } /** - * - * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSchemaProperties( - int index) { + public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSchemaProperties(int index) { return weightedSchemaProperties_.get(index); } /** - * - * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder - getWeightedSchemaPropertiesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder getWeightedSchemaPropertiesOrBuilder( + int index) { return weightedSchemaProperties_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,7 +121,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 < weightedSchemaProperties_.size(); i++) { output.writeMessage(1, weightedSchemaProperties_.get(i)); } @@ -180,9 +136,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < weightedSchemaProperties_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, weightedSchemaProperties_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, weightedSchemaProperties_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,16 +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.contentwarehouse.v1.CustomWeightsMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata other = - (com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata) obj; + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata other = (com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata) obj; - if (!getWeightedSchemaPropertiesList().equals(other.getWeightedSchemaPropertiesList())) - return false; + if (!getWeightedSchemaPropertiesList() + .equals(other.getWeightedSchemaPropertiesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,136 +177,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata 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.contentwarehouse.v1.CustomWeightsMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata 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.contentwarehouse.v1.CustomWeightsMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * To support the custom weighting across document schemas.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CustomWeightsMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CustomWeightsMetadata) com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.class, - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.class, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.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(); @@ -368,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; } @java.lang.Override @@ -389,22 +338,17 @@ public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata result = - new com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata(this); + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata result = new com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata result) { if (weightedSchemaPropertiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - weightedSchemaProperties_ = - java.util.Collections.unmodifiableList(weightedSchemaProperties_); + weightedSchemaProperties_ = java.util.Collections.unmodifiableList(weightedSchemaProperties_); bitField0_ = (bitField0_ & ~0x00000001); } result.weightedSchemaProperties_ = weightedSchemaProperties_; @@ -421,39 +365,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CustomWeightsMet public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.CustomWeightsMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata)other); } else { super.mergeFrom(other); return this; @@ -461,8 +404,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance()) return this; if (weightedSchemaPropertiesBuilder_ == null) { if (!other.weightedSchemaProperties_.isEmpty()) { if (weightedSchemaProperties_.isEmpty()) { @@ -481,10 +423,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CustomWeightsMetad weightedSchemaPropertiesBuilder_ = null; weightedSchemaProperties_ = other.weightedSchemaProperties_; bitField0_ = (bitField0_ & ~0x00000001); - weightedSchemaPropertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWeightedSchemaPropertiesFieldBuilder() - : null; + weightedSchemaPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWeightedSchemaPropertiesFieldBuilder() : null; } else { weightedSchemaPropertiesBuilder_.addAllMessages(other.weightedSchemaProperties_); } @@ -516,27 +457,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.parser(), - extensionRegistry); - if (weightedSchemaPropertiesBuilder_ == null) { - ensureWeightedSchemaPropertiesIsMutable(); - weightedSchemaProperties_.add(m); - } else { - weightedSchemaPropertiesBuilder_.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.contentwarehouse.v1.WeightedSchemaProperty m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.parser(), + extensionRegistry); + if (weightedSchemaPropertiesBuilder_ == null) { + ensureWeightedSchemaPropertiesIsMutable(); + weightedSchemaProperties_.add(m); + } else { + weightedSchemaPropertiesBuilder_.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) { @@ -546,41 +485,29 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - weightedSchemaProperties_ = java.util.Collections.emptyList(); - + private java.util.List weightedSchemaProperties_ = + java.util.Collections.emptyList(); private void ensureWeightedSchemaPropertiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - weightedSchemaProperties_ = - new java.util.ArrayList( - weightedSchemaProperties_); + weightedSchemaProperties_ = new java.util.ArrayList(weightedSchemaProperties_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty, - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder, - com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder> - weightedSchemaPropertiesBuilder_; + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder, com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder> weightedSchemaPropertiesBuilder_; /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - public java.util.List - getWeightedSchemaPropertiesList() { + public java.util.List getWeightedSchemaPropertiesList() { if (weightedSchemaPropertiesBuilder_ == null) { return java.util.Collections.unmodifiableList(weightedSchemaProperties_); } else { @@ -588,16 +515,12 @@ private void ensureWeightedSchemaPropertiesIsMutable() { } } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ public int getWeightedSchemaPropertiesCount() { if (weightedSchemaPropertiesBuilder_ == null) { @@ -607,19 +530,14 @@ public int getWeightedSchemaPropertiesCount() { } } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSchemaProperties( - int index) { + public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSchemaProperties(int index) { if (weightedSchemaPropertiesBuilder_ == null) { return weightedSchemaProperties_.get(index); } else { @@ -627,16 +545,12 @@ public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSc } } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ public Builder setWeightedSchemaProperties( int index, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty value) { @@ -653,20 +567,15 @@ public Builder setWeightedSchemaProperties( return this; } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ public Builder setWeightedSchemaProperties( - int index, - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder builderForValue) { if (weightedSchemaPropertiesBuilder_ == null) { ensureWeightedSchemaPropertiesIsMutable(); weightedSchemaProperties_.set(index, builderForValue.build()); @@ -677,19 +586,14 @@ public Builder setWeightedSchemaProperties( return this; } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - public Builder addWeightedSchemaProperties( - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty value) { + public Builder addWeightedSchemaProperties(com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty value) { if (weightedSchemaPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -703,16 +607,12 @@ public Builder addWeightedSchemaProperties( return this; } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ public Builder addWeightedSchemaProperties( int index, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty value) { @@ -729,16 +629,12 @@ public Builder addWeightedSchemaProperties( return this; } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ public Builder addWeightedSchemaProperties( com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder builderForValue) { @@ -752,20 +648,15 @@ public Builder addWeightedSchemaProperties( return this; } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ public Builder addWeightedSchemaProperties( - int index, - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder builderForValue) { if (weightedSchemaPropertiesBuilder_ == null) { ensureWeightedSchemaPropertiesIsMutable(); weightedSchemaProperties_.add(index, builderForValue.build()); @@ -776,23 +667,19 @@ public Builder addWeightedSchemaProperties( return this; } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ public Builder addAllWeightedSchemaProperties( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (weightedSchemaPropertiesBuilder_ == null) { ensureWeightedSchemaPropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, weightedSchemaProperties_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, weightedSchemaProperties_); onChanged(); } else { weightedSchemaPropertiesBuilder_.addAllMessages(values); @@ -800,16 +687,12 @@ public Builder addAllWeightedSchemaProperties( return this; } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ public Builder clearWeightedSchemaProperties() { if (weightedSchemaPropertiesBuilder_ == null) { @@ -822,16 +705,12 @@ public Builder clearWeightedSchemaProperties() { return this; } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ public Builder removeWeightedSchemaProperties(int index) { if (weightedSchemaPropertiesBuilder_ == null) { @@ -844,56 +723,42 @@ public Builder removeWeightedSchemaProperties(int index) { return this; } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder - getWeightedSchemaPropertiesBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder getWeightedSchemaPropertiesBuilder( + int index) { return getWeightedSchemaPropertiesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - public com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder - getWeightedSchemaPropertiesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder getWeightedSchemaPropertiesOrBuilder( + int index) { if (weightedSchemaPropertiesBuilder_ == null) { - return weightedSchemaProperties_.get(index); - } else { + return weightedSchemaProperties_.get(index); } else { return weightedSchemaPropertiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - public java.util.List< - ? extends com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder> - getWeightedSchemaPropertiesOrBuilderList() { + public java.util.List + getWeightedSchemaPropertiesOrBuilderList() { if (weightedSchemaPropertiesBuilder_ != null) { return weightedSchemaPropertiesBuilder_.getMessageOrBuilderList(); } else { @@ -901,70 +766,48 @@ public Builder removeWeightedSchemaProperties(int index) { } } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder - addWeightedSchemaPropertiesBuilder() { - return getWeightedSchemaPropertiesFieldBuilder() - .addBuilder( - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder addWeightedSchemaPropertiesBuilder() { + return getWeightedSchemaPropertiesFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.getDefaultInstance()); } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder - addWeightedSchemaPropertiesBuilder(int index) { - return getWeightedSchemaPropertiesFieldBuilder() - .addBuilder( - index, - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder addWeightedSchemaPropertiesBuilder( + int index) { + return getWeightedSchemaPropertiesFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.getDefaultInstance()); } /** - * - * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - public java.util.List - getWeightedSchemaPropertiesBuilderList() { + public java.util.List + getWeightedSchemaPropertiesBuilderList() { return getWeightedSchemaPropertiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty, - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder, - com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder> + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder, com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder> getWeightedSchemaPropertiesFieldBuilder() { if (weightedSchemaPropertiesBuilder_ == null) { - weightedSchemaPropertiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty, - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder, - com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder>( + weightedSchemaPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder, com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder>( weightedSchemaProperties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -973,9 +816,9 @@ public Builder removeWeightedSchemaProperties(int index) { } return weightedSchemaPropertiesBuilder_; } - @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); } @@ -985,12 +828,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CustomWeightsMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CustomWeightsMetadata) private static final com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata(); } @@ -999,27 +842,27 @@ public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomWeightsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CustomWeightsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1034,4 +877,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java similarity index 50% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java index f2554788254b..6b376af60e49 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java @@ -1,95 +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/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -public interface CustomWeightsMetadataOrBuilder - extends +public interface CustomWeightsMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CustomWeightsMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - java.util.List + java.util.List getWeightedSchemaPropertiesList(); /** - * - * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSchemaProperties( - int index); + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSchemaProperties(int index); /** - * - * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ int getWeightedSchemaPropertiesCount(); /** - * - * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - java.util.List + java.util.List getWeightedSchemaPropertiesOrBuilderList(); /** - * - * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; - * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; */ - com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder - getWeightedSchemaPropertiesOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder getWeightedSchemaPropertiesOrBuilder( + int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java similarity index 62% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java index 723b291af0e1..9ab678a56eee 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java @@ -1,105 +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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents the action responsible for properties update operations.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DataUpdateAction} */ -public final class DataUpdateAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DataUpdateAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DataUpdateAction) DataUpdateActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DataUpdateAction.newBuilder() to construct. private DataUpdateAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DataUpdateAction() {} + private DataUpdateAction() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DataUpdateAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetEntries(); 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.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DataUpdateAction.class, - com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder.class); + com.google.cloud.contentwarehouse.v1.DataUpdateAction.class, com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder.class); } public static final int ENTRIES_FIELD_NUMBER = 1; - private static final class EntriesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_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.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField entries_; - - private com.google.protobuf.MapField internalGetEntries() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> entries_; + private com.google.protobuf.MapField + internalGetEntries() { if (entries_ == null) { - return com.google.protobuf.MapField.emptyMapField(EntriesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + EntriesDefaultEntryHolder.defaultEntry); } return entries_; } - public int getEntriesCount() { return internalGetEntries().getMap().size(); } /** - * - * *
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -111,21 +92,20 @@ public int getEntriesCount() {
    * map<string, string> entries = 1;
    */
   @java.lang.Override
-  public boolean containsEntries(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsEntries(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetEntries().getMap().containsKey(key);
   }
-  /** Use {@link #getEntriesMap()} instead. */
+  /**
+   * Use {@link #getEntriesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getEntries() {
     return getEntriesMap();
   }
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -141,8 +121,6 @@ public java.util.Map getEntriesMap() {
     return internalGetEntries().getMap();
   }
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -154,19 +132,17 @@ public java.util.Map getEntriesMap() {
    * map<string, string> entries = 1;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getEntriesOrDefault(
+  public /* nullable */
+java.lang.String getEntriesOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetEntries().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetEntries().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -178,11 +154,11 @@ public java.util.Map getEntriesMap() {
    * map<string, string> entries = 1;
    */
   @java.lang.Override
-  public java.lang.String getEntriesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetEntries().getMap();
+  public java.lang.String getEntriesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetEntries().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -190,7 +166,6 @@ public java.lang.String getEntriesOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -202,9 +177,14 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetEntries(), EntriesDefaultEntryHolder.defaultEntry, 1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetEntries(),
+        EntriesDefaultEntryHolder.defaultEntry,
+        1);
     getUnknownFields().writeTo(output);
   }
 
@@ -214,15 +194,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry :
-        internalGetEntries().getMap().entrySet()) {
-      com.google.protobuf.MapEntry entries__ =
-          EntriesDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries__);
+    for (java.util.Map.Entry entry
+         : internalGetEntries().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      entries__ = EntriesDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, entries__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -232,15 +212,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.contentwarehouse.v1.DataUpdateAction)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.DataUpdateAction other =
-        (com.google.cloud.contentwarehouse.v1.DataUpdateAction) obj;
+    com.google.cloud.contentwarehouse.v1.DataUpdateAction other = (com.google.cloud.contentwarehouse.v1.DataUpdateAction) obj;
 
-    if (!internalGetEntries().equals(other.internalGetEntries())) return false;
+    if (!internalGetEntries().equals(
+        other.internalGetEntries())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -262,156 +242,153 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction 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.contentwarehouse.v1.DataUpdateAction parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction 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.contentwarehouse.v1.DataUpdateAction parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.DataUpdateAction prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DataUpdateAction prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Represents the action responsible for properties update operations.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DataUpdateAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DataUpdateAction) com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetEntries(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 1: return internalGetMutableEntries(); 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.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DataUpdateAction.class, - com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder.class); + com.google.cloud.contentwarehouse.v1.DataUpdateAction.class, com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DataUpdateAction.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(); @@ -421,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; } @java.lang.Override @@ -442,11 +419,8 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DataUpdateAction buildPartial() { - com.google.cloud.contentwarehouse.v1.DataUpdateAction result = - new com.google.cloud.contentwarehouse.v1.DataUpdateAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.DataUpdateAction result = new com.google.cloud.contentwarehouse.v1.DataUpdateAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -463,39 +437,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DataUpdateAction public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.DataUpdateAction) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DataUpdateAction) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DataUpdateAction)other); } else { super.mergeFrom(other); return this; @@ -503,9 +476,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DataUpdateAction other) { - if (other == com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance()) - return this; - internalGetMutableEntries().mergeFrom(other.internalGetEntries()); + if (other == com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance()) return this; + internalGetMutableEntries().mergeFrom( + other.internalGetEntries()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -533,25 +506,21 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.MapEntry entries__ = - input.readMessage( - EntriesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableEntries() - .getMutableMap() - .put(entries__.getKey(), entries__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.MapEntry + entries__ = input.readMessage( + EntriesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEntries().getMutableMap().put( + entries__.getKey(), entries__.getValue()); + 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) { @@ -561,22 +530,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.MapField entries_; - - private com.google.protobuf.MapField internalGetEntries() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> entries_; + private com.google.protobuf.MapField + internalGetEntries() { if (entries_ == null) { - return com.google.protobuf.MapField.emptyMapField(EntriesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + EntriesDefaultEntryHolder.defaultEntry); } return entries_; } - private com.google.protobuf.MapField internalGetMutableEntries() { if (entries_ == null) { - entries_ = com.google.protobuf.MapField.newMapField(EntriesDefaultEntryHolder.defaultEntry); + entries_ = com.google.protobuf.MapField.newMapField( + EntriesDefaultEntryHolder.defaultEntry); } if (!entries_.isMutable()) { entries_ = entries_.copy(); @@ -585,13 +555,10 @@ private com.google.protobuf.MapField interna onChanged(); return entries_; } - public int getEntriesCount() { return internalGetEntries().getMap().size(); } /** - * - * *
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -603,21 +570,20 @@ public int getEntriesCount() {
      * map<string, string> entries = 1;
      */
     @java.lang.Override
-    public boolean containsEntries(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsEntries(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetEntries().getMap().containsKey(key);
     }
-    /** Use {@link #getEntriesMap()} instead. */
+    /**
+     * Use {@link #getEntriesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getEntries() {
       return getEntriesMap();
     }
     /**
-     *
-     *
      * 
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -633,8 +599,6 @@ public java.util.Map getEntriesMap() {
       return internalGetEntries().getMap();
     }
     /**
-     *
-     *
      * 
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -646,19 +610,17 @@ public java.util.Map getEntriesMap() {
      * map<string, string> entries = 1;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getEntriesOrDefault(
+    public /* nullable */
+java.lang.String getEntriesOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetEntries().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetEntries().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -670,25 +632,23 @@ public java.util.Map getEntriesMap() {
      * map<string, string> entries = 1;
      */
     @java.lang.Override
-    public java.lang.String getEntriesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetEntries().getMap();
+    public java.lang.String getEntriesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetEntries().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearEntries() {
       bitField0_ = (bitField0_ & ~0x00000001);
-      internalGetMutableEntries().getMutableMap().clear();
+      internalGetMutableEntries().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -699,22 +659,23 @@ public Builder clearEntries() {
      *
      * map<string, string> entries = 1;
      */
-    public Builder removeEntries(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableEntries().getMutableMap().remove(key);
+    public Builder removeEntries(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableEntries().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableEntries() {
+    public java.util.Map
+        getMutableEntries() {
       bitField0_ |= 0x00000001;
       return internalGetMutableEntries().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -725,20 +686,17 @@ public java.util.Map getMutableEntries() {
      *
      * map<string, string> entries = 1;
      */
-    public Builder putEntries(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableEntries().getMutableMap().put(key, value);
+    public Builder putEntries(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableEntries().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000001;
       return this;
     }
     /**
-     *
-     *
      * 
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -749,14 +707,16 @@ public Builder putEntries(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> entries = 1;
      */
-    public Builder putAllEntries(java.util.Map values) {
-      internalGetMutableEntries().getMutableMap().putAll(values);
+    public Builder putAllEntries(
+        java.util.Map values) {
+      internalGetMutableEntries().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000001;
       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);
     }
 
@@ -766,12 +726,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DataUpdateAction)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DataUpdateAction)
   private static final com.google.cloud.contentwarehouse.v1.DataUpdateAction DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DataUpdateAction();
   }
@@ -780,27 +740,27 @@ public static com.google.cloud.contentwarehouse.v1.DataUpdateAction getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DataUpdateAction parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 DataUpdateAction parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -815,4 +775,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.DataUpdateAction getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java
similarity index 69%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java
index 0ad91f7c21a4..6a195365e74b 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.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/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface DataUpdateActionOrBuilder
-    extends
+public interface DataUpdateActionOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DataUpdateAction)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -38,8 +20,6 @@ public interface DataUpdateActionOrBuilder
    */
   int getEntriesCount();
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -50,13 +30,15 @@ public interface DataUpdateActionOrBuilder
    *
    * map<string, string> entries = 1;
    */
-  boolean containsEntries(java.lang.String key);
-  /** Use {@link #getEntriesMap()} instead. */
+  boolean containsEntries(
+      java.lang.String key);
+  /**
+   * Use {@link #getEntriesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getEntries();
+  java.util.Map
+  getEntries();
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -67,10 +49,9 @@ public interface DataUpdateActionOrBuilder
    *
    * map<string, string> entries = 1;
    */
-  java.util.Map getEntriesMap();
+  java.util.Map
+  getEntriesMap();
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -82,13 +63,11 @@ public interface DataUpdateActionOrBuilder
    * map<string, string> entries = 1;
    */
   /* nullable */
-  java.lang.String getEntriesOrDefault(
+java.lang.String getEntriesOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -99,5 +78,6 @@ java.lang.String getEntriesOrDefault(
    *
    * map<string, string> entries = 1;
    */
-  java.lang.String getEntriesOrThrow(java.lang.String key);
+  java.lang.String getEntriesOrThrow(
+      java.lang.String key);
 }
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java
similarity index 62%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java
index 532b5cde444c..4d2bf0675bc2 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java
@@ -1,105 +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/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Represents the action responsible for data validation operations.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DataValidationAction} */ -public final class DataValidationAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DataValidationAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DataValidationAction) DataValidationActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DataValidationAction.newBuilder() to construct. private DataValidationAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DataValidationAction() {} + private DataValidationAction() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DataValidationAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetConditions(); 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.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DataValidationAction.class, - com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder.class); + com.google.cloud.contentwarehouse.v1.DataValidationAction.class, com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder.class); } public static final int CONDITIONS_FIELD_NUMBER = 1; - private static final class ConditionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_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.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField conditions_; - - private com.google.protobuf.MapField internalGetConditions() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> conditions_; + private com.google.protobuf.MapField + internalGetConditions() { if (conditions_ == null) { - return com.google.protobuf.MapField.emptyMapField(ConditionsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ConditionsDefaultEntryHolder.defaultEntry); } return conditions_; } - public int getConditionsCount() { return internalGetConditions().getMap().size(); } /** - * - * *
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -109,21 +90,20 @@ public int getConditionsCount() {
    * map<string, string> conditions = 1;
    */
   @java.lang.Override
-  public boolean containsConditions(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsConditions(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetConditions().getMap().containsKey(key);
   }
-  /** Use {@link #getConditionsMap()} instead. */
+  /**
+   * Use {@link #getConditionsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getConditions() {
     return getConditionsMap();
   }
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -137,8 +117,6 @@ public java.util.Map getConditionsMap() {
     return internalGetConditions().getMap();
   }
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -148,19 +126,17 @@ public java.util.Map getConditionsMap() {
    * map<string, string> conditions = 1;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getConditionsOrDefault(
+  public /* nullable */
+java.lang.String getConditionsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetConditions().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetConditions().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -170,11 +146,11 @@ public java.util.Map getConditionsMap() {
    * map<string, string> conditions = 1;
    */
   @java.lang.Override
-  public java.lang.String getConditionsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetConditions().getMap();
+  public java.lang.String getConditionsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetConditions().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -182,7 +158,6 @@ public java.lang.String getConditionsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -194,9 +169,14 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetConditions(), ConditionsDefaultEntryHolder.defaultEntry, 1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetConditions(),
+        ConditionsDefaultEntryHolder.defaultEntry,
+        1);
     getUnknownFields().writeTo(output);
   }
 
@@ -206,15 +186,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry :
-        internalGetConditions().getMap().entrySet()) {
-      com.google.protobuf.MapEntry conditions__ =
-          ConditionsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, conditions__);
+    for (java.util.Map.Entry entry
+         : internalGetConditions().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      conditions__ = ConditionsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, conditions__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -224,15 +204,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.contentwarehouse.v1.DataValidationAction)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.DataValidationAction other =
-        (com.google.cloud.contentwarehouse.v1.DataValidationAction) obj;
+    com.google.cloud.contentwarehouse.v1.DataValidationAction other = (com.google.cloud.contentwarehouse.v1.DataValidationAction) obj;
 
-    if (!internalGetConditions().equals(other.internalGetConditions())) return false;
+    if (!internalGetConditions().equals(
+        other.internalGetConditions())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -254,156 +234,153 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction 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.contentwarehouse.v1.DataValidationAction parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction 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.contentwarehouse.v1.DataValidationAction parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.DataValidationAction prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DataValidationAction prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Represents the action responsible for data validation operations.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DataValidationAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DataValidationAction) com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetConditions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 1: return internalGetMutableConditions(); 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.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DataValidationAction.class, - com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder.class); + com.google.cloud.contentwarehouse.v1.DataValidationAction.class, com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DataValidationAction.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(); @@ -413,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; } @java.lang.Override @@ -434,11 +411,8 @@ public com.google.cloud.contentwarehouse.v1.DataValidationAction build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DataValidationAction buildPartial() { - com.google.cloud.contentwarehouse.v1.DataValidationAction result = - new com.google.cloud.contentwarehouse.v1.DataValidationAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.DataValidationAction result = new com.google.cloud.contentwarehouse.v1.DataValidationAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -455,39 +429,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DataValidationAc public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.DataValidationAction) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DataValidationAction) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DataValidationAction)other); } else { super.mergeFrom(other); return this; @@ -495,9 +468,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DataValidationAction other) { - if (other == com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance()) - return this; - internalGetMutableConditions().mergeFrom(other.internalGetConditions()); + if (other == com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance()) return this; + internalGetMutableConditions().mergeFrom( + other.internalGetConditions()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -525,25 +498,21 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.MapEntry conditions__ = - input.readMessage( - ConditionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableConditions() - .getMutableMap() - .put(conditions__.getKey(), conditions__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.MapEntry + conditions__ = input.readMessage( + ConditionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableConditions().getMutableMap().put( + conditions__.getKey(), conditions__.getValue()); + 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) { @@ -553,11 +522,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.MapField conditions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> conditions_; private com.google.protobuf.MapField internalGetConditions() { if (conditions_ == null) { @@ -566,12 +534,11 @@ public Builder mergeFrom( } return conditions_; } - private com.google.protobuf.MapField internalGetMutableConditions() { if (conditions_ == null) { - conditions_ = - com.google.protobuf.MapField.newMapField(ConditionsDefaultEntryHolder.defaultEntry); + conditions_ = com.google.protobuf.MapField.newMapField( + ConditionsDefaultEntryHolder.defaultEntry); } if (!conditions_.isMutable()) { conditions_ = conditions_.copy(); @@ -580,13 +547,10 @@ public Builder mergeFrom( onChanged(); return conditions_; } - public int getConditionsCount() { return internalGetConditions().getMap().size(); } /** - * - * *
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -596,21 +560,20 @@ public int getConditionsCount() {
      * map<string, string> conditions = 1;
      */
     @java.lang.Override
-    public boolean containsConditions(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsConditions(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetConditions().getMap().containsKey(key);
     }
-    /** Use {@link #getConditionsMap()} instead. */
+    /**
+     * Use {@link #getConditionsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getConditions() {
       return getConditionsMap();
     }
     /**
-     *
-     *
      * 
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -624,8 +587,6 @@ public java.util.Map getConditionsMap() {
       return internalGetConditions().getMap();
     }
     /**
-     *
-     *
      * 
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -635,19 +596,17 @@ public java.util.Map getConditionsMap() {
      * map<string, string> conditions = 1;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getConditionsOrDefault(
+    public /* nullable */
+java.lang.String getConditionsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetConditions().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetConditions().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -657,25 +616,23 @@ public java.util.Map getConditionsMap() {
      * map<string, string> conditions = 1;
      */
     @java.lang.Override
-    public java.lang.String getConditionsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetConditions().getMap();
+    public java.lang.String getConditionsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetConditions().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearConditions() {
       bitField0_ = (bitField0_ & ~0x00000001);
-      internalGetMutableConditions().getMutableMap().clear();
+      internalGetMutableConditions().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -684,22 +641,23 @@ public Builder clearConditions() {
      *
      * map<string, string> conditions = 1;
      */
-    public Builder removeConditions(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableConditions().getMutableMap().remove(key);
+    public Builder removeConditions(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableConditions().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableConditions() {
+    public java.util.Map
+        getMutableConditions() {
       bitField0_ |= 0x00000001;
       return internalGetMutableConditions().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -708,20 +666,17 @@ public java.util.Map getMutableConditions()
      *
      * map<string, string> conditions = 1;
      */
-    public Builder putConditions(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableConditions().getMutableMap().put(key, value);
+    public Builder putConditions(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableConditions().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000001;
       return this;
     }
     /**
-     *
-     *
      * 
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -730,14 +685,16 @@ public Builder putConditions(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> conditions = 1;
      */
-    public Builder putAllConditions(java.util.Map values) {
-      internalGetMutableConditions().getMutableMap().putAll(values);
+    public Builder putAllConditions(
+        java.util.Map values) {
+      internalGetMutableConditions().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000001;
       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);
     }
 
@@ -747,12 +704,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DataValidationAction)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DataValidationAction)
   private static final com.google.cloud.contentwarehouse.v1.DataValidationAction DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DataValidationAction();
   }
@@ -761,27 +718,27 @@ public static com.google.cloud.contentwarehouse.v1.DataValidationAction getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DataValidationAction parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 DataValidationAction parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -796,4 +753,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.DataValidationAction getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java
similarity index 66%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java
index 0d1e836d889b..7d102d5b4375 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.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/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface DataValidationActionOrBuilder
-    extends
+public interface DataValidationActionOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DataValidationAction)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -36,8 +18,6 @@ public interface DataValidationActionOrBuilder
    */
   int getConditionsCount();
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -46,13 +26,15 @@ public interface DataValidationActionOrBuilder
    *
    * map<string, string> conditions = 1;
    */
-  boolean containsConditions(java.lang.String key);
-  /** Use {@link #getConditionsMap()} instead. */
+  boolean containsConditions(
+      java.lang.String key);
+  /**
+   * Use {@link #getConditionsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getConditions();
+  java.util.Map
+  getConditions();
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -61,10 +43,9 @@ public interface DataValidationActionOrBuilder
    *
    * map<string, string> conditions = 1;
    */
-  java.util.Map getConditionsMap();
+  java.util.Map
+  getConditionsMap();
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -74,13 +55,11 @@ public interface DataValidationActionOrBuilder
    * map<string, string> conditions = 1;
    */
   /* nullable */
-  java.lang.String getConditionsOrDefault(
+java.lang.String getConditionsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -89,5 +68,6 @@ java.lang.String getConditionsOrDefault(
    *
    * map<string, string> conditions = 1;
    */
-  java.lang.String getConditionsOrThrow(java.lang.String key);
+  java.lang.String getConditionsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
similarity index 67%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
index e650025b2a95..a8607019eeca 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
@@ -1,36 +1,18 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/common.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Type of database used by the customer
  * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.DatabaseType} */ -public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { +public enum DatabaseType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * This value is required by protobuf best practices
    * 
@@ -39,8 +21,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ DB_UNKNOWN(0), /** - * - * *
    * Internal Spanner
    * 
@@ -49,8 +29,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ DB_INFRA_SPANNER(1), /** - * - * *
    * Cloud Sql with a Postgres Sql instance
    * 
@@ -63,8 +41,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * This value is required by protobuf best practices
    * 
@@ -73,8 +49,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DB_UNKNOWN_VALUE = 0; /** - * - * *
    * Internal Spanner
    * 
@@ -83,8 +57,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DB_INFRA_SPANNER_VALUE = 1; /** - * - * *
    * Cloud Sql with a Postgres Sql instance
    * 
@@ -93,6 +65,7 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ @java.lang.Deprecated public static final int DB_CLOUD_SQL_POSTGRES_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -117,49 +90,49 @@ public static DatabaseType valueOf(int value) { */ public static DatabaseType forNumber(int value) { switch (value) { - case 0: - return DB_UNKNOWN; - case 1: - return DB_INFRA_SPANNER; - case 2: - return DB_CLOUD_SQL_POSTGRES; - default: - return null; + case 0: return DB_UNKNOWN; + case 1: return DB_INFRA_SPANNER; + case 2: return DB_CLOUD_SQL_POSTGRES; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DatabaseType findValueByNumber(int number) { - return DatabaseType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + DatabaseType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatabaseType findValueByNumber(int number) { + return DatabaseType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor().getEnumTypes().get(1); } private static final DatabaseType[] VALUES = values(); - public static DatabaseType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DatabaseType 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; @@ -175,3 +148,4 @@ private DatabaseType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.DatabaseType) } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java index 34b0382e1b6c..28170d8dc08c 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java @@ -1,74 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * DateTime values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DateTimeArray} */ -public final class DateTimeArray extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DateTimeArray extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DateTimeArray) DateTimeArrayOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DateTimeArray.newBuilder() to construct. private DateTimeArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DateTimeArray() { values_ = 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 DateTimeArray(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DateTimeArray.class, - com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder.class); + com.google.cloud.contentwarehouse.v1.DateTimeArray.class, com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List values_; /** - * - * *
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -81,8 +59,6 @@ public java.util.List getValuesList() {
     return values_;
   }
   /**
-   *
-   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -91,12 +67,11 @@ public java.util.List getValuesList() {
    * repeated .google.type.DateTime values = 1;
    */
   @java.lang.Override
-  public java.util.List getValuesOrBuilderList() {
+  public java.util.List 
+      getValuesOrBuilderList() {
     return values_;
   }
   /**
-   *
-   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -109,8 +84,6 @@ public int getValuesCount() {
     return values_.size();
   }
   /**
-   *
-   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -123,8 +96,6 @@ public com.google.type.DateTime getValues(int index) {
     return values_.get(index);
   }
   /**
-   *
-   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -133,12 +104,12 @@ public com.google.type.DateTime getValues(int index) {
    * repeated .google.type.DateTime values = 1;
    */
   @java.lang.Override
-  public com.google.type.DateTimeOrBuilder getValuesOrBuilder(int index) {
+  public com.google.type.DateTimeOrBuilder getValuesOrBuilder(
+      int index) {
     return values_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -150,7 +121,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 < values_.size(); i++) {
       output.writeMessage(1, values_.get(i));
     }
@@ -164,7 +136,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < values_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, values_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -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.contentwarehouse.v1.DateTimeArray)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.DateTimeArray other =
-        (com.google.cloud.contentwarehouse.v1.DateTimeArray) obj;
+    com.google.cloud.contentwarehouse.v1.DateTimeArray other = (com.google.cloud.contentwarehouse.v1.DateTimeArray) obj;
 
-    if (!getValuesList().equals(other.getValuesList())) return false;
+    if (!getValuesList()
+        .equals(other.getValuesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -204,135 +177,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray 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.contentwarehouse.v1.DateTimeArray parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray 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.contentwarehouse.v1.DateTimeArray parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DateTimeArray prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder 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;
   }
   /**
-   *
-   *
    * 
    * DateTime values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DateTimeArray} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DateTimeArray) com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DateTimeArray.class, - com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder.class); + com.google.cloud.contentwarehouse.v1.DateTimeArray.class, com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DateTimeArray.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(); @@ -348,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; } @java.lang.Override @@ -369,18 +338,14 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DateTimeArray buildPartial() { - com.google.cloud.contentwarehouse.v1.DateTimeArray result = - new com.google.cloud.contentwarehouse.v1.DateTimeArray(this); + com.google.cloud.contentwarehouse.v1.DateTimeArray result = new com.google.cloud.contentwarehouse.v1.DateTimeArray(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.DateTimeArray result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.DateTimeArray result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -400,39 +365,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DateTimeArray 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.contentwarehouse.v1.DateTimeArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DateTimeArray) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DateTimeArray)other); } else { super.mergeFrom(other); return this; @@ -440,8 +404,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DateTimeArray other) { - if (other == com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance()) return this; if (valuesBuilder_ == null) { if (!other.values_.isEmpty()) { if (values_.isEmpty()) { @@ -460,10 +423,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DateTimeArray othe valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getValuesFieldBuilder() - : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -495,25 +457,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.type.DateTime m = - input.readMessage(com.google.type.DateTime.parser(), extensionRegistry); - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(m); - } else { - valuesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.type.DateTime m = + input.readMessage( + com.google.type.DateTime.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.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) { @@ -523,27 +485,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List values_ = java.util.Collections.emptyList(); - + private java.util.List values_ = + java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.type.DateTime, - com.google.type.DateTime.Builder, - com.google.type.DateTimeOrBuilder> - valuesBuilder_; + com.google.type.DateTime, com.google.type.DateTime.Builder, com.google.type.DateTimeOrBuilder> valuesBuilder_; /** - * - * *
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -559,8 +515,6 @@ public java.util.List getValuesList() {
       }
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -576,8 +530,6 @@ public int getValuesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -593,8 +545,6 @@ public com.google.type.DateTime getValues(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -602,7 +552,8 @@ public com.google.type.DateTime getValues(int index) {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public Builder setValues(int index, com.google.type.DateTime value) {
+    public Builder setValues(
+        int index, com.google.type.DateTime value) {
       if (valuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -616,8 +567,6 @@ public Builder setValues(int index, com.google.type.DateTime value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -625,7 +574,8 @@ public Builder setValues(int index, com.google.type.DateTime value) {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public Builder setValues(int index, com.google.type.DateTime.Builder builderForValue) {
+    public Builder setValues(
+        int index, com.google.type.DateTime.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.set(index, builderForValue.build());
@@ -636,8 +586,6 @@ public Builder setValues(int index, com.google.type.DateTime.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -659,8 +607,6 @@ public Builder addValues(com.google.type.DateTime value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -668,7 +614,8 @@ public Builder addValues(com.google.type.DateTime value) {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public Builder addValues(int index, com.google.type.DateTime value) {
+    public Builder addValues(
+        int index, com.google.type.DateTime value) {
       if (valuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -682,8 +629,6 @@ public Builder addValues(int index, com.google.type.DateTime value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -691,7 +636,8 @@ public Builder addValues(int index, com.google.type.DateTime value) {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public Builder addValues(com.google.type.DateTime.Builder builderForValue) {
+    public Builder addValues(
+        com.google.type.DateTime.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.add(builderForValue.build());
@@ -702,8 +648,6 @@ public Builder addValues(com.google.type.DateTime.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -711,7 +655,8 @@ public Builder addValues(com.google.type.DateTime.Builder builderForValue) {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public Builder addValues(int index, com.google.type.DateTime.Builder builderForValue) {
+    public Builder addValues(
+        int index, com.google.type.DateTime.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.add(index, builderForValue.build());
@@ -722,8 +667,6 @@ public Builder addValues(int index, com.google.type.DateTime.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -731,10 +674,12 @@ public Builder addValues(int index, com.google.type.DateTime.Builder builderForV
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public Builder addAllValues(java.lang.Iterable values) {
+    public Builder addAllValues(
+        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);
@@ -742,8 +687,6 @@ public Builder addAllValues(java.lang.Iterable
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -762,8 +705,6 @@ public Builder clearValues() {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -782,8 +723,6 @@ public Builder removeValues(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -791,12 +730,11 @@ public Builder removeValues(int index) {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public com.google.type.DateTime.Builder getValuesBuilder(int index) {
+    public com.google.type.DateTime.Builder getValuesBuilder(
+        int index) {
       return getValuesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -804,16 +742,14 @@ public com.google.type.DateTime.Builder getValuesBuilder(int index) {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public com.google.type.DateTimeOrBuilder getValuesOrBuilder(int index) {
+    public com.google.type.DateTimeOrBuilder getValuesOrBuilder(
+        int index) {
       if (valuesBuilder_ == null) {
-        return values_.get(index);
-      } else {
+        return values_.get(index);  } else {
         return valuesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -821,7 +757,8 @@ public com.google.type.DateTimeOrBuilder getValuesOrBuilder(int index) {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public java.util.List getValuesOrBuilderList() {
+    public java.util.List 
+         getValuesOrBuilderList() {
       if (valuesBuilder_ != null) {
         return valuesBuilder_.getMessageOrBuilderList();
       } else {
@@ -829,8 +766,6 @@ public java.util.List getValuesOrBu
       }
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -839,11 +774,10 @@ public java.util.List getValuesOrBu
      * repeated .google.type.DateTime values = 1;
      */
     public com.google.type.DateTime.Builder addValuesBuilder() {
-      return getValuesFieldBuilder().addBuilder(com.google.type.DateTime.getDefaultInstance());
+      return getValuesFieldBuilder().addBuilder(
+          com.google.type.DateTime.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -851,13 +785,12 @@ public com.google.type.DateTime.Builder addValuesBuilder() {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public com.google.type.DateTime.Builder addValuesBuilder(int index) {
-      return getValuesFieldBuilder()
-          .addBuilder(index, com.google.type.DateTime.getDefaultInstance());
+    public com.google.type.DateTime.Builder addValuesBuilder(
+        int index) {
+      return getValuesFieldBuilder().addBuilder(
+          index, com.google.type.DateTime.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -865,29 +798,27 @@ public com.google.type.DateTime.Builder addValuesBuilder(int index) {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public java.util.List getValuesBuilderList() {
+    public java.util.List 
+         getValuesBuilderList() {
       return getValuesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.type.DateTime,
-            com.google.type.DateTime.Builder,
-            com.google.type.DateTimeOrBuilder>
+        com.google.type.DateTime, com.google.type.DateTime.Builder, com.google.type.DateTimeOrBuilder> 
         getValuesFieldBuilder() {
       if (valuesBuilder_ == null) {
-        valuesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.type.DateTime,
-                com.google.type.DateTime.Builder,
-                com.google.type.DateTimeOrBuilder>(
-                values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.type.DateTime, com.google.type.DateTime.Builder, com.google.type.DateTimeOrBuilder>(
+                values_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         values_ = null;
       }
       return valuesBuilder_;
     }
-
     @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);
     }
 
@@ -897,12 +828,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DateTimeArray)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DateTimeArray)
   private static final com.google.cloud.contentwarehouse.v1.DateTimeArray DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DateTimeArray();
   }
@@ -911,27 +842,27 @@ public static com.google.cloud.contentwarehouse.v1.DateTimeArray getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DateTimeArray parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 DateTimeArray parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -946,4 +877,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.DateTimeArray getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java
similarity index 59%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java
index 7513f64fa1e1..368dcf89b9a9 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.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/contentwarehouse/v1/document.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface DateTimeArrayOrBuilder
-    extends
+public interface DateTimeArrayOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DateTimeArray)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -33,10 +15,9 @@ public interface DateTimeArrayOrBuilder
    *
    * repeated .google.type.DateTime values = 1;
    */
-  java.util.List getValuesList();
+  java.util.List 
+      getValuesList();
   /**
-   *
-   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -46,8 +27,6 @@ public interface DateTimeArrayOrBuilder
    */
   com.google.type.DateTime getValues(int index);
   /**
-   *
-   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -57,8 +36,6 @@ public interface DateTimeArrayOrBuilder
    */
   int getValuesCount();
   /**
-   *
-   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -66,10 +43,9 @@ public interface DateTimeArrayOrBuilder
    *
    * repeated .google.type.DateTime values = 1;
    */
-  java.util.List getValuesOrBuilderList();
+  java.util.List 
+      getValuesOrBuilderList();
   /**
-   *
-   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -77,5 +53,6 @@ public interface DateTimeArrayOrBuilder
    *
    * repeated .google.type.DateTime values = 1;
    */
-  com.google.type.DateTimeOrBuilder getValuesOrBuilder(int index);
+  com.google.type.DateTimeOrBuilder getValuesOrBuilder(
+      int index);
 }
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java
similarity index 63%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java
index af1512467c88..203de57857e5 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java
@@ -1,67 +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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_schema.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Configurations for a date time property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DateTimeTypeOptions} */ -public final class DateTimeTypeOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DateTimeTypeOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DateTimeTypeOptions) DateTimeTypeOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DateTimeTypeOptions.newBuilder() to construct. private DateTimeTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DateTimeTypeOptions() {} + private DateTimeTypeOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DateTimeTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.class, - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.class, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -73,7 +54,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 { getUnknownFields().writeTo(output); } @@ -91,13 +73,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.contentwarehouse.v1.DateTimeTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions other = - (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions other = (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -116,136 +97,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions 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.contentwarehouse.v1.DateTimeTypeOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions 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.contentwarehouse.v1.DateTimeTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Configurations for a date time property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DateTimeTypeOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DateTimeTypeOptions) com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.class, - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.class, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.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(); @@ -253,9 +229,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; } @java.lang.Override @@ -274,8 +250,7 @@ public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions result = - new com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions(this); + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions result = new com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions(this); onBuilt(); return result; } @@ -284,39 +259,38 @@ public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions)other); } else { super.mergeFrom(other); return this; @@ -324,8 +298,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -352,13 +325,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -368,9 +340,9 @@ public Builder mergeFrom( } // finally 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); } @@ -380,12 +352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DateTimeTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DateTimeTypeOptions) private static final com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions(); } @@ -394,27 +366,27 @@ public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DateTimeTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DateTimeTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -429,4 +401,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..d463263065f8 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface DateTimeTypeOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DateTimeTypeOptions) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java similarity index 65% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java index d1bdc156f189..2b53e1c9ebe1 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java @@ -1,77 +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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents the action responsible for deleting the document.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteDocumentAction} */ -public final class DeleteDocumentAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteDocumentAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DeleteDocumentAction) DeleteDocumentActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteDocumentAction.newBuilder() to construct. private DeleteDocumentAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DeleteDocumentAction() {} + private DeleteDocumentAction() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteDocumentAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.class, - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder.class); } public static final int ENABLE_HARD_DELETE_FIELD_NUMBER = 1; private boolean enableHardDelete_ = false; /** - * - * *
    * Boolean field to select between hard vs soft delete options.
    * Set 'true' for 'hard delete' and 'false' for 'soft delete'.
    * 
* * bool enable_hard_delete = 1; - * * @return The enableHardDelete. */ @java.lang.Override @@ -80,7 +59,6 @@ public boolean getEnableHardDelete() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -92,7 +70,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 (enableHardDelete_ != false) { output.writeBool(1, enableHardDelete_); } @@ -106,7 +85,8 @@ public int getSerializedSize() { size = 0; if (enableHardDelete_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableHardDelete_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableHardDelete_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -116,15 +96,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.contentwarehouse.v1.DeleteDocumentAction)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction other = - (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) obj; + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction other = (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) obj; - if (getEnableHardDelete() != other.getEnableHardDelete()) return false; + if (getEnableHardDelete() + != other.getEnableHardDelete()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -137,143 +117,139 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_HARD_DELETE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHardDelete()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableHardDelete()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction 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.contentwarehouse.v1.DeleteDocumentAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction 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.contentwarehouse.v1.DeleteDocumentAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DeleteDocumentAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the action responsible for deleting the document.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteDocumentAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DeleteDocumentAction) com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.class, - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.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(); @@ -283,9 +259,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; } @java.lang.Override @@ -304,11 +280,8 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction buildPartial() { - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction result = - new com.google.cloud.contentwarehouse.v1.DeleteDocumentAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction result = new com.google.cloud.contentwarehouse.v1.DeleteDocumentAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -324,39 +297,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteDocumentAc public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.DeleteDocumentAction) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentAction)other); } else { super.mergeFrom(other); return this; @@ -364,8 +336,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DeleteDocumentAction other) { - if (other == com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance()) return this; if (other.getEnableHardDelete() != false) { setEnableHardDelete(other.getEnableHardDelete()); } @@ -395,19 +366,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableHardDelete_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableHardDelete_ = input.readBool(); + 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) { @@ -417,20 +386,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enableHardDelete_; + private boolean enableHardDelete_ ; /** - * - * *
      * Boolean field to select between hard vs soft delete options.
      * Set 'true' for 'hard delete' and 'false' for 'soft delete'.
      * 
* * bool enable_hard_delete = 1; - * * @return The enableHardDelete. */ @java.lang.Override @@ -438,15 +403,12 @@ public boolean getEnableHardDelete() { return enableHardDelete_; } /** - * - * *
      * Boolean field to select between hard vs soft delete options.
      * Set 'true' for 'hard delete' and 'false' for 'soft delete'.
      * 
* * bool enable_hard_delete = 1; - * * @param value The enableHardDelete to set. * @return This builder for chaining. */ @@ -458,15 +420,12 @@ public Builder setEnableHardDelete(boolean value) { return this; } /** - * - * *
      * Boolean field to select between hard vs soft delete options.
      * Set 'true' for 'hard delete' and 'false' for 'soft delete'.
      * 
* * bool enable_hard_delete = 1; - * * @return This builder for chaining. */ public Builder clearEnableHardDelete() { @@ -475,9 +434,9 @@ public Builder clearEnableHardDelete() { 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); } @@ -487,12 +446,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DeleteDocumentAction) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DeleteDocumentAction) private static final com.google.cloud.contentwarehouse.v1.DeleteDocumentAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DeleteDocumentAction(); } @@ -501,27 +460,27 @@ public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDocumentAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteDocumentAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -536,4 +495,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java new file mode 100644 index 000000000000..426723765f55 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/rule_engine.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface DeleteDocumentActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteDocumentAction) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Boolean field to select between hard vs soft delete options.
+   * Set 'true' for 'hard delete' and 'false' for 'soft delete'.
+   * 
+ * + * bool enable_hard_delete = 1; + * @return The enableHardDelete. + */ + boolean getEnableHardDelete(); +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java similarity index 66% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java index ea8a797cbee2..2832a9db46d2 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.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/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentLinkService.DeleteDocumentLink.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest} */ -public final class DeleteDocumentLinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteDocumentLinkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) DeleteDocumentLinkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteDocumentLinkRequest.newBuilder() to construct. private DeleteDocumentLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteDocumentLinkRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteDocumentLinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.class, - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the document-link to be deleted.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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 @@ -87,33 +62,31 @@ 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 name of the document-link to be deleted.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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 { @@ -124,15 +97,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -140,26 +110,19 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
@@ -168,15 +131,11 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-      getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-        : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -188,7 +147,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_);
     }
@@ -208,7 +168,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getRequestMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -218,18 +179,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.contentwarehouse.v1.DeleteDocumentLinkRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest other =
-        (com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) obj;
+    com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest other = (com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata()
+          .equals(other.getRequestMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -254,136 +216,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest 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.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest 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.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder 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 DocumentLinkService.DeleteDocumentLink.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.class, - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.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 +355,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.getDefaultInstance(); } @@ -420,24 +376,21 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest result = - new com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest result = new com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMetadata_ = - requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + result.requestMetadata_ = requestMetadataBuilder_ == null + ? requestMetadata_ + : requestMetadataBuilder_.build(); } } @@ -445,39 +398,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.contentwarehouse.v1.DeleteDocumentLinkRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest)other); } else { super.mergeFrom(other); return this; @@ -485,9 +437,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest other) { - if (other - == com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -522,25 +472,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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( + getRequestMetadataFieldBuilder().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,29 +499,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document-link to be deleted.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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; @@ -581,25 +525,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document-link to be deleted.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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 { @@ -607,43 +548,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document-link to be deleted.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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 name of the document-link to be deleted.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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() { @@ -653,25 +583,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the document-link to be deleted.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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; @@ -681,49 +605,36 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> - requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; /** - * - * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** - * - * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -745,8 +656,6 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -766,8 +675,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -775,13 +682,11 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public Builder mergeRequestMetadata(
-        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && requestMetadata_ != null
-            && requestMetadata_
-                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          requestMetadata_ != null &&
+          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -794,8 +699,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -814,8 +717,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -823,15 +724,12 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
-        getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -839,19 +737,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-        getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-            : requestMetadata_;
+        return requestMetadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -860,24 +754,21 @@ public Builder clearRequestMetadata() {
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RequestMetadata,
-                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(), getParentForChildren(), isClean());
+        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(),
+                getParentForChildren(),
+                isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
-
     @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);
     }
 
@@ -887,43 +778,41 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest)
-  private static final com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest();
   }
 
-  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
-      getDefaultInstance() {
+  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DeleteDocumentLinkRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 DeleteDocumentLinkRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -935,8 +824,9 @@ public com.google.protobuf.Parser getParserForType()
   }
 
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java
similarity index 64%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java
index e36af647f018..bff322048550 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java
@@ -1,90 +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/contentwarehouse/v1/document_link_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface DeleteDocumentLinkRequestOrBuilder
-    extends
+public interface DeleteDocumentLinkRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The name of the document-link to be deleted.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the document-link to be deleted.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java
similarity index 67%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java
index 219df528efdc..6586eeef2a0d 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java
@@ -1,74 +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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_service_request.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Request message for DocumentService.DeleteDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.class, - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the document to delete.
    * Format:
@@ -77,10 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 @@ -89,15 +64,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 name of the document to delete.
    * Format:
@@ -106,18 +80,17 @@ public java.lang.String getName() {
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 { @@ -128,15 +101,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -144,26 +114,19 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -172,15 +135,11 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-      getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-        : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -192,7 +151,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -212,7 +172,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getRequestMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -222,18 +183,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.contentwarehouse.v1.DeleteDocumentRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest other =
-        (com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest) obj;
+    com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest other = (com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata()
+          .equals(other.getRequestMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -258,136 +220,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.DeleteDocumentRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.DeleteDocumentRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.DeleteDocumentRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.DeleteDocumentRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.DeleteDocumentRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.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.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.v1.DeleteDocumentRequest) com.google.cloud.contentwarehouse.v1.DeleteDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.class, - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.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(); @@ -402,9 +359,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; } @java.lang.Override @@ -423,11 +380,8 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest result = - new com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest result = new com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -438,8 +392,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteDocumentRe result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMetadata_ = - requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + result.requestMetadata_ = requestMetadataBuilder_ == null + ? requestMetadata_ + : requestMetadataBuilder_.build(); } } @@ -447,39 +402,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteDocumentRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.DeleteDocumentRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -487,8 +441,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -523,25 +476,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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( + getRequestMetadataFieldBuilder().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) { @@ -551,13 +503,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document to delete.
      * Format:
@@ -566,16 +515,14 @@ public Builder mergeFrom(
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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; @@ -584,8 +531,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document to delete.
      * Format:
@@ -594,17 +539,16 @@ public java.lang.String getName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 { @@ -612,8 +556,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document to delete.
      * Format:
@@ -622,25 +564,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 name of the document to delete.
      * Format:
@@ -649,10 +585,7 @@ public Builder setName(java.lang.String value) {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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() { @@ -662,8 +595,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the document to delete.
      * Format:
@@ -672,17 +603,13 @@ public Builder clearName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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; @@ -692,49 +619,36 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> - requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -756,8 +670,6 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -777,8 +689,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -786,13 +696,11 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public Builder mergeRequestMetadata(
-        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && requestMetadata_ != null
-            && requestMetadata_
-                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          requestMetadata_ != null &&
+          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -805,8 +713,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -825,8 +731,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -834,15 +738,12 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
-        getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -850,19 +751,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-        getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-            : requestMetadata_;
+        return requestMetadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -871,24 +768,21 @@ public Builder clearRequestMetadata() {
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RequestMetadata,
-                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(), getParentForChildren(), isClean());
+        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(),
+                getParentForChildren(),
+                isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
-
     @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);
     }
 
@@ -898,12 +792,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DeleteDocumentRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DeleteDocumentRequest)
   private static final com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest();
   }
@@ -912,27 +806,27 @@ public static com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest getDefa
     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;
@@ -947,4 +841,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java
similarity index 65%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java
index 9cef55d8a48e..7f8147233052 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/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/contentwarehouse/v1/document_service_request.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface DeleteDocumentRequestOrBuilder
-    extends
+public interface DeleteDocumentRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteDocumentRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The name of the document to delete.
    * Format:
@@ -34,16 +16,11 @@ public interface DeleteDocumentRequestOrBuilder
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the document to delete.
    * Format:
@@ -52,43 +29,33 @@ public interface DeleteDocumentRequestOrBuilder
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java
similarity index 60%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java
index 30792221aa33..a574e63d1ccd 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java
@@ -1,82 +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/contentwarehouse/v1/document_schema_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Request message for DocumentSchemaService.DeleteDocumentSchema.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest} */ -public final class DeleteDocumentSchemaRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteDocumentSchemaRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) DeleteDocumentSchemaRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteDocumentSchemaRequest.newBuilder() to construct. private DeleteDocumentSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteDocumentSchemaRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteDocumentSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.class, - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the document schema to delete.
    * 
* - * - * 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 @@ -85,31 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the document schema to delete.
    * 
* - * - * 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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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.contentwarehouse.v1.DeleteDocumentSchemaRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest other = - (com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) obj; + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest other = (com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +155,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest 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.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest 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.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 DocumentSchemaService.DeleteDocumentSchema.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.class, - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.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(); @@ -321,14 +289,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.getDefaultInstance(); } @@ -343,17 +310,13 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest build() @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest result = - new com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest result = new com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -364,50 +327,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.contentwarehouse.v1.DeleteDocumentSchemaRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest other) { - if (other - == com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest other) { + if (other == com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +398,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) { @@ -461,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document schema to delete.
      * 
* - * - * 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; @@ -490,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document schema to delete.
      * 
* - * - * 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,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document schema to delete.
      * 
* - * - * 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 name of the document schema to delete.
      * 
* - * - * 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() { @@ -556,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the document schema to delete.
      * 
* - * - * 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); } @@ -591,43 +523,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) - private static final com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest(); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDocumentSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteDocumentSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -639,8 +569,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..727824f933d6 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface DeleteDocumentSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the document schema to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the document schema to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java similarity index 64% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java index 24a28c73009b..1271e4b1f73a 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for RuleSetService.DeleteRuleSet.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteRuleSetRequest} */ -public final class DeleteRuleSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteRuleSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) DeleteRuleSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteRuleSetRequest.newBuilder() to construct. private DeleteRuleSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteRuleSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteRuleSetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.class, - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the rule set to delete.
    * Format:
    * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 @@ -87,33 +62,31 @@ 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 name of the rule set to delete.
    * Format:
    * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 { @@ -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.contentwarehouse.v1.DeleteRuleSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest other = - (com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) obj; + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest other = (com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) 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,136 +159,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest 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.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest 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.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 RuleSetService.DeleteRuleSet.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteRuleSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.class, - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.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(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; } @java.lang.Override @@ -346,11 +314,8 @@ public com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest result = - new com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest result = new com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +331,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteRuleSetReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.DeleteRuleSetRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest)other); } else { super.mergeFrom(other); return this; @@ -406,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +402,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) { @@ -461,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the rule set to delete.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the rule set to delete.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 { @@ -518,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the rule set to delete.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 name of the rule set to delete.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the rule set to delete.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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); } @@ -601,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) private static final com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest(); } @@ -615,27 +551,27 @@ public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRuleSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteRuleSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java new file mode 100644 index 000000000000..8dc2fd77be89 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface DeleteRuleSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the rule set to delete.
+   * Format:
+   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the rule set to delete.
+   * Format:
+   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java similarity index 62% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java index 4b3f94e0142d..a0dd27317f59 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.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/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for SynonymSetService.DeleteSynonymSet.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest} */ -public final class DeleteSynonymSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSynonymSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) DeleteSynonymSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSynonymSetRequest.newBuilder() to construct. private DeleteSynonymSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSynonymSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSynonymSetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.class, - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the synonymSet to delete
    * Format:
    * projects/{project_number}/locations/{location}/synonymSets/{context}.
    * 
* - * - * 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 @@ -87,33 +62,31 @@ 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 name of the synonymSet to delete
    * Format:
    * projects/{project_number}/locations/{location}/synonymSets/{context}.
    * 
* - * - * 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.contentwarehouse.v1.DeleteSynonymSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest other = - (com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) obj; + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest other = (com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) 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,136 +159,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest 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.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest 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.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 SynonymSetService.DeleteSynonymSet.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.class, - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.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(); @@ -325,14 +293,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.getDefaultInstance(); } @@ -347,17 +314,13 @@ public com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest result = - new com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest result = new com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -368,39 +331,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.contentwarehouse.v1.DeleteSynonymSetRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest)other); } else { super.mergeFrom(other); return this; @@ -408,9 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest other) { - if (other - == com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -442,19 +402,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) { @@ -464,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the synonymSet to delete
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the synonymSet to delete
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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 { @@ -521,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the synonymSet to delete
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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 name of the synonymSet to delete
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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() { @@ -567,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the synonymSet to delete
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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); } @@ -604,13 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) - private static final com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest(); } @@ -619,27 +551,27 @@ public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSynonymSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteSynonymSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java new file mode 100644 index 000000000000..7152009b100b --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface DeleteSynonymSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the synonymSet to delete
+   * Format:
+   * projects/{project_number}/locations/{location}/synonymSets/{context}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the synonymSet to delete
+   * Format:
+   * projects/{project_number}/locations/{location}/synonymSets/{context}.
+   * 
+ * + * 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-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java similarity index 72% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java index 4020d3846778..d19a43f2c9eb 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Defines the structure for content warehouse document proto.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.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_ = ""; referenceId_ = ""; @@ -54,39 +36,34 @@ 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.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_Document_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Document_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Document.class, - com.google.cloud.contentwarehouse.v1.Document.Builder.class); + com.google.cloud.contentwarehouse.v1.Document.class, com.google.cloud.contentwarehouse.v1.Document.Builder.class); } private int structuredContentCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object structuredContent_; - public enum StructuredContentCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PLAIN_TEXT(15), CLOUD_AI_DOCUMENT(4), STRUCTUREDCONTENT_NOT_SET(0); private final int value; - private StructuredContentCase(int value) { this.value = value; } @@ -102,40 +79,33 @@ public static StructuredContentCase valueOf(int value) { public static StructuredContentCase forNumber(int value) { switch (value) { - case 15: - return PLAIN_TEXT; - case 4: - return CLOUD_AI_DOCUMENT; - case 0: - return STRUCTUREDCONTENT_NOT_SET; - default: - return null; + case 15: return PLAIN_TEXT; + case 4: return CLOUD_AI_DOCUMENT; + case 0: return STRUCTUREDCONTENT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public StructuredContentCase getStructuredContentCase() { - return StructuredContentCase.forNumber(structuredContentCase_); + public StructuredContentCase + getStructuredContentCase() { + return StructuredContentCase.forNumber( + structuredContentCase_); } private int rawDocumentCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object rawDocument_; - public enum RawDocumentCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RAW_DOCUMENT_PATH(5), INLINE_RAW_DOCUMENT(6), RAWDOCUMENT_NOT_SET(0); private final int value; - private RawDocumentCase(int value) { this.value = value; } @@ -151,33 +121,27 @@ public static RawDocumentCase valueOf(int value) { public static RawDocumentCase forNumber(int value) { switch (value) { - case 5: - return RAW_DOCUMENT_PATH; - case 6: - return INLINE_RAW_DOCUMENT; - case 0: - return RAWDOCUMENT_NOT_SET; - default: - return null; + case 5: return RAW_DOCUMENT_PATH; + case 6: return INLINE_RAW_DOCUMENT; + case 0: return RAWDOCUMENT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RawDocumentCase getRawDocumentCase() { - return RawDocumentCase.forNumber(rawDocumentCase_); + public RawDocumentCase + getRawDocumentCase() { + return RawDocumentCase.forNumber( + rawDocumentCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the document.
    * Format:
@@ -187,7 +151,6 @@ public RawDocumentCase getRawDocumentCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -196,15 +159,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the document.
    * Format:
@@ -214,15 +176,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -231,18 +194,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REFERENCE_ID_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object referenceId_ = ""; /** - * - * *
    * The reference ID set by customers. Must be unique per project and location.
    * 
* * string reference_id = 11; - * * @return The referenceId. */ @java.lang.Override @@ -251,29 +210,29 @@ public java.lang.String getReferenceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceId_ = s; return s; } } /** - * - * *
    * The reference ID set by customers. Must be unique per project and location.
    * 
* * string reference_id = 11; - * * @return The bytes for referenceId. */ @java.lang.Override - public com.google.protobuf.ByteString getReferenceIdBytes() { + public com.google.protobuf.ByteString + getReferenceIdBytes() { java.lang.Object ref = referenceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); referenceId_ = b; return b; } else { @@ -282,12 +241,9 @@ public com.google.protobuf.ByteString getReferenceIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. Display name of the document given by the user. This name will be
    * displayed in the UI. Customer can populate this field with the name of the
@@ -296,7 +252,6 @@ public com.google.protobuf.ByteString getReferenceIdBytes() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -305,15 +260,14 @@ 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; } } /** - * - * *
    * Required. Display name of the document given by the user. This name will be
    * displayed in the UI. Customer can populate this field with the name of the
@@ -322,15 +276,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -339,19 +294,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int TITLE_FIELD_NUMBER = 18; - @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** - * - * *
    * Title that describes the document.
    * This can be the top heading or text that describes the document.
    * 
* * string title = 18; - * * @return The title. */ @java.lang.Override @@ -360,30 +311,30 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** - * - * *
    * Title that describes the document.
    * This can be the top heading or text that describes the document.
    * 
* * string title = 18; - * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { + public com.google.protobuf.ByteString + getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -392,18 +343,14 @@ public com.google.protobuf.ByteString getTitleBytes() { } public static final int DISPLAY_URI_FIELD_NUMBER = 17; - @SuppressWarnings("serial") private volatile java.lang.Object displayUri_ = ""; /** - * - * *
    * Uri to display the document, for example, in the UI.
    * 
* * string display_uri = 17; - * * @return The displayUri. */ @java.lang.Override @@ -412,29 +359,29 @@ public java.lang.String getDisplayUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayUri_ = s; return s; } } /** - * - * *
    * Uri to display the document, for example, in the UI.
    * 
* * string display_uri = 17; - * * @return The bytes for displayUri. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayUriBytes() { + public com.google.protobuf.ByteString + getDisplayUriBytes() { java.lang.Object ref = displayUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayUri_ = b; return b; } else { @@ -443,12 +390,9 @@ public com.google.protobuf.ByteString getDisplayUriBytes() { } public static final int DOCUMENT_SCHEMA_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object documentSchemaName_ = ""; /** - * - * *
    * The Document schema name.
    * Format:
@@ -456,7 +400,6 @@ public com.google.protobuf.ByteString getDisplayUriBytes() {
    * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } - * * @return The documentSchemaName. */ @java.lang.Override @@ -465,15 +408,14 @@ public java.lang.String getDocumentSchemaName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentSchemaName_ = s; return s; } } /** - * - * *
    * The Document schema name.
    * Format:
@@ -481,15 +423,16 @@ public java.lang.String getDocumentSchemaName() {
    * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for documentSchemaName. */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { + public com.google.protobuf.ByteString + getDocumentSchemaNameBytes() { java.lang.Object ref = documentSchemaName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentSchemaName_ = b; return b; } else { @@ -499,28 +442,22 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { public static final int PLAIN_TEXT_FIELD_NUMBER = 15; /** - * - * *
    * Other document format, such as PPTX, XLXS
    * 
* * string plain_text = 15; - * * @return Whether the plainText field is set. */ public boolean hasPlainText() { return structuredContentCase_ == 15; } /** - * - * *
    * Other document format, such as PPTX, XLXS
    * 
* * string plain_text = 15; - * * @return The plainText. */ public java.lang.String getPlainText() { @@ -531,7 +468,8 @@ public java.lang.String getPlainText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (structuredContentCase_ == 15) { structuredContent_ = s; @@ -540,24 +478,23 @@ public java.lang.String getPlainText() { } } /** - * - * *
    * Other document format, such as PPTX, XLXS
    * 
* * string plain_text = 15; - * * @return The bytes for plainText. */ - public com.google.protobuf.ByteString getPlainTextBytes() { + public com.google.protobuf.ByteString + getPlainTextBytes() { java.lang.Object ref = ""; if (structuredContentCase_ == 15) { ref = structuredContent_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (structuredContentCase_ == 15) { structuredContent_ = b; } @@ -569,14 +506,11 @@ public com.google.protobuf.ByteString getPlainTextBytes() { public static final int CLOUD_AI_DOCUMENT_FIELD_NUMBER = 4; /** - * - * *
    * Document AI format to save the structured content, including OCR.
    * 
* * .google.cloud.documentai.v1.Document cloud_ai_document = 4; - * * @return Whether the cloudAiDocument field is set. */ @java.lang.Override @@ -584,26 +518,21 @@ public boolean hasCloudAiDocument() { return structuredContentCase_ == 4; } /** - * - * *
    * Document AI format to save the structured content, including OCR.
    * 
* * .google.cloud.documentai.v1.Document cloud_ai_document = 4; - * * @return The cloudAiDocument. */ @java.lang.Override public com.google.cloud.documentai.v1.Document getCloudAiDocument() { if (structuredContentCase_ == 4) { - return (com.google.cloud.documentai.v1.Document) structuredContent_; + return (com.google.cloud.documentai.v1.Document) structuredContent_; } return com.google.cloud.documentai.v1.Document.getDefaultInstance(); } /** - * - * *
    * Document AI format to save the structured content, including OCR.
    * 
@@ -613,61 +542,55 @@ public com.google.cloud.documentai.v1.Document getCloudAiDocument() { @java.lang.Override public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuilder() { if (structuredContentCase_ == 4) { - return (com.google.cloud.documentai.v1.Document) structuredContent_; + return (com.google.cloud.documentai.v1.Document) structuredContent_; } return com.google.cloud.documentai.v1.Document.getDefaultInstance(); } public static final int STRUCTURED_CONTENT_URI_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private volatile java.lang.Object structuredContentUri_ = ""; /** - * - * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. See - * google/cloud/contentwarehouse/v1/document.proto;l=79 + * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. + * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @return The structuredContentUri. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getStructuredContentUri() { + @java.lang.Deprecated public java.lang.String getStructuredContentUri() { java.lang.Object ref = structuredContentUri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); structuredContentUri_ = s; return s; } } /** - * - * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. See - * google/cloud/contentwarehouse/v1/document.proto;l=79 + * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. + * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @return The bytes for structuredContentUri. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getStructuredContentUriBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getStructuredContentUriBytes() { java.lang.Object ref = structuredContentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); structuredContentUri_ = b; return b; } else { @@ -677,28 +600,22 @@ public com.google.protobuf.ByteString getStructuredContentUriBytes() { public static final int RAW_DOCUMENT_PATH_FIELD_NUMBER = 5; /** - * - * *
    * Raw document file in Cloud Storage path.
    * 
* * string raw_document_path = 5; - * * @return Whether the rawDocumentPath field is set. */ public boolean hasRawDocumentPath() { return rawDocumentCase_ == 5; } /** - * - * *
    * Raw document file in Cloud Storage path.
    * 
* * string raw_document_path = 5; - * * @return The rawDocumentPath. */ public java.lang.String getRawDocumentPath() { @@ -709,7 +626,8 @@ public java.lang.String getRawDocumentPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (rawDocumentCase_ == 5) { rawDocument_ = s; @@ -718,24 +636,23 @@ public java.lang.String getRawDocumentPath() { } } /** - * - * *
    * Raw document file in Cloud Storage path.
    * 
* * string raw_document_path = 5; - * * @return The bytes for rawDocumentPath. */ - public com.google.protobuf.ByteString getRawDocumentPathBytes() { + public com.google.protobuf.ByteString + getRawDocumentPathBytes() { java.lang.Object ref = ""; if (rawDocumentCase_ == 5) { ref = rawDocument_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (rawDocumentCase_ == 5) { rawDocument_ = b; } @@ -747,14 +664,11 @@ public com.google.protobuf.ByteString getRawDocumentPathBytes() { public static final int INLINE_RAW_DOCUMENT_FIELD_NUMBER = 6; /** - * - * *
    * Raw document content.
    * 
* * bytes inline_raw_document = 6; - * * @return Whether the inlineRawDocument field is set. */ @java.lang.Override @@ -762,14 +676,11 @@ public boolean hasInlineRawDocument() { return rawDocumentCase_ == 6; } /** - * - * *
    * Raw document content.
    * 
* * bytes inline_raw_document = 6; - * * @return The inlineRawDocument. */ @java.lang.Override @@ -781,12 +692,9 @@ public com.google.protobuf.ByteString getInlineRawDocument() { } public static final int PROPERTIES_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private java.util.List properties_; /** - * - * *
    * List of values that are user supplied metadata.
    * 
@@ -798,8 +706,6 @@ public java.util.List getProperti return properties_; } /** - * - * *
    * List of values that are user supplied metadata.
    * 
@@ -807,13 +713,11 @@ public java.util.List getProperti * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ @java.lang.Override - public java.util.List + public java.util.List getPropertiesOrBuilderList() { return properties_; } /** - * - * *
    * List of values that are user supplied metadata.
    * 
@@ -825,8 +729,6 @@ public int getPropertiesCount() { return properties_.size(); } /** - * - * *
    * List of values that are user supplied metadata.
    * 
@@ -838,8 +740,6 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { return properties_.get(index); } /** - * - * *
    * List of values that are user supplied metadata.
    * 
@@ -847,22 +747,19 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder( + int index) { return properties_.get(index); } public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -870,15 +767,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -886,14 +779,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -903,15 +793,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -919,15 +805,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -935,14 +817,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -952,8 +831,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int RAW_DOCUMENT_FILE_TYPE_FIELD_NUMBER = 10; private int rawDocumentFileType_ = 0; /** - * - * *
    * This is used when DocAI was not used to load the document and parsing/
    * extracting is needed for the inline_raw_document.  For example, if
@@ -962,16 +839,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; - * * @return The enum numeric value on the wire for rawDocumentFileType. */ - @java.lang.Override - public int getRawDocumentFileTypeValue() { + @java.lang.Override public int getRawDocumentFileTypeValue() { return rawDocumentFileType_; } /** - * - * *
    * This is used when DocAI was not used to load the document and parsing/
    * extracting is needed for the inline_raw_document.  For example, if
@@ -980,108 +853,81 @@ public int getRawDocumentFileTypeValue() {
    * 
* * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; - * * @return The rawDocumentFileType. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RawDocumentFileType getRawDocumentFileType() { - com.google.cloud.contentwarehouse.v1.RawDocumentFileType result = - com.google.cloud.contentwarehouse.v1.RawDocumentFileType.forNumber(rawDocumentFileType_); - return result == null - ? com.google.cloud.contentwarehouse.v1.RawDocumentFileType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.contentwarehouse.v1.RawDocumentFileType getRawDocumentFileType() { + com.google.cloud.contentwarehouse.v1.RawDocumentFileType result = com.google.cloud.contentwarehouse.v1.RawDocumentFileType.forNumber(rawDocumentFileType_); + return result == null ? com.google.cloud.contentwarehouse.v1.RawDocumentFileType.UNRECOGNIZED : result; } public static final int ASYNC_ENABLED_FIELD_NUMBER = 12; private boolean asyncEnabled_ = false; /** - * - * *
    * If true, makes the document visible to asynchronous policies and rules.
    * 
* * bool async_enabled = 12 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. See - * google/cloud/contentwarehouse/v1/document.proto;l=108 + * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. + * See google/cloud/contentwarehouse/v1/document.proto;l=108 * @return The asyncEnabled. */ @java.lang.Override - @java.lang.Deprecated - public boolean getAsyncEnabled() { + @java.lang.Deprecated public boolean getAsyncEnabled() { return asyncEnabled_; } public static final int CONTENT_CATEGORY_FIELD_NUMBER = 20; private int contentCategory_ = 0; /** - * - * *
    * Indicates the category (image, audio, video etc.) of the original content.
    * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; - * * @return The enum numeric value on the wire for contentCategory. */ - @java.lang.Override - public int getContentCategoryValue() { + @java.lang.Override public int getContentCategoryValue() { return contentCategory_; } /** - * - * *
    * Indicates the category (image, audio, video etc.) of the original content.
    * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; - * * @return The contentCategory. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ContentCategory getContentCategory() { - com.google.cloud.contentwarehouse.v1.ContentCategory result = - com.google.cloud.contentwarehouse.v1.ContentCategory.forNumber(contentCategory_); - return result == null - ? com.google.cloud.contentwarehouse.v1.ContentCategory.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.contentwarehouse.v1.ContentCategory getContentCategory() { + com.google.cloud.contentwarehouse.v1.ContentCategory result = com.google.cloud.contentwarehouse.v1.ContentCategory.forNumber(contentCategory_); + return result == null ? com.google.cloud.contentwarehouse.v1.ContentCategory.UNRECOGNIZED : result; } public static final int TEXT_EXTRACTION_DISABLED_FIELD_NUMBER = 19; private boolean textExtractionDisabled_ = false; /** - * - * *
    * If true, text extraction will not be performed.
    * 
* * bool text_extraction_disabled = 19 [deprecated = true]; - * * @deprecated google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=114 * @return The textExtractionDisabled. */ @java.lang.Override - @java.lang.Deprecated - public boolean getTextExtractionDisabled() { + @java.lang.Deprecated public boolean getTextExtractionDisabled() { return textExtractionDisabled_; } public static final int TEXT_EXTRACTION_ENABLED_FIELD_NUMBER = 21; private boolean textExtractionEnabled_ = false; /** - * - * *
    * If true, text extraction will be performed.
    * 
* * bool text_extraction_enabled = 21; - * * @return The textExtractionEnabled. */ @java.lang.Override @@ -1090,18 +936,14 @@ public boolean getTextExtractionEnabled() { } public static final int CREATOR_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private volatile java.lang.Object creator_ = ""; /** - * - * *
    * The user who creates the document.
    * 
* * string creator = 13; - * * @return The creator. */ @java.lang.Override @@ -1110,29 +952,29 @@ public java.lang.String getCreator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; } } /** - * - * *
    * The user who creates the document.
    * 
* * string creator = 13; - * * @return The bytes for creator. */ @java.lang.Override - public com.google.protobuf.ByteString getCreatorBytes() { + public com.google.protobuf.ByteString + getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); creator_ = b; return b; } else { @@ -1141,18 +983,14 @@ public com.google.protobuf.ByteString getCreatorBytes() { } public static final int UPDATER_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private volatile java.lang.Object updater_ = ""; /** - * - * *
    * The user who lastly updates the document.
    * 
* * string updater = 14; - * * @return The updater. */ @java.lang.Override @@ -1161,29 +999,29 @@ public java.lang.String getUpdater() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); updater_ = s; return s; } } /** - * - * *
    * The user who lastly updates the document.
    * 
* * string updater = 14; - * * @return The bytes for updater. */ @java.lang.Override - public com.google.protobuf.ByteString getUpdaterBytes() { + public com.google.protobuf.ByteString + getUpdaterBytes() { java.lang.Object ref = updater_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); updater_ = b; return b; } else { @@ -1194,17 +1032,12 @@ public com.google.protobuf.ByteString getUpdaterBytes() { public static final int DISPOSITION_TIME_FIELD_NUMBER = 22; private com.google.protobuf.Timestamp dispositionTime_; /** - * - * *
    * Output only. If linked to a Collection with RetentionPolicy, the date when
    * the document becomes mutable.
    * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dispositionTime field is set. */ @java.lang.Override @@ -1212,55 +1045,39 @@ public boolean hasDispositionTime() { return dispositionTime_ != null; } /** - * - * *
    * Output only. If linked to a Collection with RetentionPolicy, the date when
    * the document becomes mutable.
    * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dispositionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDispositionTime() { - return dispositionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispositionTime_; + return dispositionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dispositionTime_; } /** - * - * *
    * Output only. If linked to a Collection with RetentionPolicy, the date when
    * the document becomes mutable.
    * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDispositionTimeOrBuilder() { - return dispositionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispositionTime_; + return dispositionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dispositionTime_; } public static final int LEGAL_HOLD_FIELD_NUMBER = 23; private boolean legalHold_ = false; /** - * - * *
    * Output only. Indicates if the document has a legal hold on it.
    * 
* * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The legalHold. */ @java.lang.Override @@ -1269,7 +1086,6 @@ public boolean getLegalHold() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1281,7 +1097,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_); } @@ -1298,7 +1115,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 5, rawDocument_); } if (rawDocumentCase_ == 6) { - output.writeBytes(6, (com.google.protobuf.ByteString) rawDocument_); + output.writeBytes( + 6, (com.google.protobuf.ByteString) rawDocument_); } for (int i = 0; i < properties_.size(); i++) { output.writeMessage(7, properties_.get(i)); @@ -1309,10 +1127,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(9, getCreateTime()); } - if (rawDocumentFileType_ - != com.google.cloud.contentwarehouse.v1.RawDocumentFileType - .RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED - .getNumber()) { + if (rawDocumentFileType_ != com.google.cloud.contentwarehouse.v1.RawDocumentFileType.RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(10, rawDocumentFileType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceId_)) { @@ -1342,9 +1157,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (textExtractionDisabled_ != false) { output.writeBool(19, textExtractionDisabled_); } - if (contentCategory_ - != com.google.cloud.contentwarehouse.v1.ContentCategory.CONTENT_CATEGORY_UNSPECIFIED - .getNumber()) { + if (contentCategory_ != com.google.cloud.contentwarehouse.v1.ContentCategory.CONTENT_CATEGORY_UNSPECIFIED.getNumber()) { output.writeEnum(20, contentCategory_); } if (textExtractionEnabled_ != false) { @@ -1375,38 +1188,39 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, documentSchemaName_); } if (structuredContentCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.documentai.v1.Document) structuredContent_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.documentai.v1.Document) structuredContent_); } if (rawDocumentCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, rawDocument_); } if (rawDocumentCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 6, (com.google.protobuf.ByteString) rawDocument_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 6, (com.google.protobuf.ByteString) rawDocument_); } for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, properties_.get(i)); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdateTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCreateTime()); } - if (rawDocumentFileType_ - != com.google.cloud.contentwarehouse.v1.RawDocumentFileType - .RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, rawDocumentFileType_); + if (rawDocumentFileType_ != com.google.cloud.contentwarehouse.v1.RawDocumentFileType.RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, rawDocumentFileType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, referenceId_); } if (asyncEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, asyncEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, asyncEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, creator_); @@ -1427,21 +1241,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, title_); } if (textExtractionDisabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, textExtractionDisabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(19, textExtractionDisabled_); } - if (contentCategory_ - != com.google.cloud.contentwarehouse.v1.ContentCategory.CONTENT_CATEGORY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, contentCategory_); + if (contentCategory_ != com.google.cloud.contentwarehouse.v1.ContentCategory.CONTENT_CATEGORY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(20, contentCategory_); } if (textExtractionEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, textExtractionEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(21, textExtractionEnabled_); } if (dispositionTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getDispositionTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getDispositionTime()); } if (legalHold_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, legalHold_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(23, legalHold_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1451,49 +1268,67 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.Document)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.Document other = - (com.google.cloud.contentwarehouse.v1.Document) obj; - - if (!getName().equals(other.getName())) return false; - if (!getReferenceId().equals(other.getReferenceId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (!getDisplayUri().equals(other.getDisplayUri())) return false; - if (!getDocumentSchemaName().equals(other.getDocumentSchemaName())) return false; - if (!getStructuredContentUri().equals(other.getStructuredContentUri())) return false; - if (!getPropertiesList().equals(other.getPropertiesList())) return false; + com.google.cloud.contentwarehouse.v1.Document other = (com.google.cloud.contentwarehouse.v1.Document) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getReferenceId() + .equals(other.getReferenceId())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getTitle() + .equals(other.getTitle())) return false; + if (!getDisplayUri() + .equals(other.getDisplayUri())) return false; + if (!getDocumentSchemaName() + .equals(other.getDocumentSchemaName())) return false; + if (!getStructuredContentUri() + .equals(other.getStructuredContentUri())) return false; + if (!getPropertiesList() + .equals(other.getPropertiesList())) 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 (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (rawDocumentFileType_ != other.rawDocumentFileType_) return false; - if (getAsyncEnabled() != other.getAsyncEnabled()) return false; + if (getAsyncEnabled() + != other.getAsyncEnabled()) return false; if (contentCategory_ != other.contentCategory_) return false; - if (getTextExtractionDisabled() != other.getTextExtractionDisabled()) return false; - if (getTextExtractionEnabled() != other.getTextExtractionEnabled()) return false; - if (!getCreator().equals(other.getCreator())) return false; - if (!getUpdater().equals(other.getUpdater())) return false; + if (getTextExtractionDisabled() + != other.getTextExtractionDisabled()) return false; + if (getTextExtractionEnabled() + != other.getTextExtractionEnabled()) return false; + if (!getCreator() + .equals(other.getCreator())) return false; + if (!getUpdater() + .equals(other.getUpdater())) return false; if (hasDispositionTime() != other.hasDispositionTime()) return false; if (hasDispositionTime()) { - if (!getDispositionTime().equals(other.getDispositionTime())) return false; + if (!getDispositionTime() + .equals(other.getDispositionTime())) return false; } - if (getLegalHold() != other.getLegalHold()) return false; + if (getLegalHold() + != other.getLegalHold()) return false; if (!getStructuredContentCase().equals(other.getStructuredContentCase())) return false; switch (structuredContentCase_) { case 15: - if (!getPlainText().equals(other.getPlainText())) return false; + if (!getPlainText() + .equals(other.getPlainText())) return false; break; case 4: - if (!getCloudAiDocument().equals(other.getCloudAiDocument())) return false; + if (!getCloudAiDocument() + .equals(other.getCloudAiDocument())) return false; break; case 0: default: @@ -1501,10 +1336,12 @@ public boolean equals(final java.lang.Object obj) { if (!getRawDocumentCase().equals(other.getRawDocumentCase())) return false; switch (rawDocumentCase_) { case 5: - if (!getRawDocumentPath().equals(other.getRawDocumentPath())) return false; + if (!getRawDocumentPath() + .equals(other.getRawDocumentPath())) return false; break; case 6: - if (!getInlineRawDocument().equals(other.getInlineRawDocument())) return false; + if (!getInlineRawDocument() + .equals(other.getInlineRawDocument())) return false; break; case 0: default: @@ -1549,13 +1386,16 @@ public int hashCode() { hash = (37 * hash) + RAW_DOCUMENT_FILE_TYPE_FIELD_NUMBER; hash = (53 * hash) + rawDocumentFileType_; hash = (37 * hash) + ASYNC_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAsyncEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAsyncEnabled()); hash = (37 * hash) + CONTENT_CATEGORY_FIELD_NUMBER; hash = (53 * hash) + contentCategory_; hash = (37 * hash) + TEXT_EXTRACTION_DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTextExtractionDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTextExtractionDisabled()); hash = (37 * hash) + TEXT_EXTRACTION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTextExtractionEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTextExtractionEnabled()); hash = (37 * hash) + CREATOR_FIELD_NUMBER; hash = (53 * hash) + getCreator().hashCode(); hash = (37 * hash) + UPDATER_FIELD_NUMBER; @@ -1565,7 +1405,8 @@ public int hashCode() { hash = (53 * hash) + getDispositionTime().hashCode(); } hash = (37 * hash) + LEGAL_HOLD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLegalHold()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLegalHold()); switch (structuredContentCase_) { case 15: hash = (37 * hash) + PLAIN_TEXT_FIELD_NUMBER; @@ -1595,136 +1436,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.Document parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.Document parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.Document parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.Document parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.Document parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.Document parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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; } /** - * - * *
    * Defines the structure for content warehouse document proto.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.v1.Document) com.google.cloud.contentwarehouse.v1.DocumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_Document_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Document_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Document.class, - com.google.cloud.contentwarehouse.v1.Document.Builder.class); + com.google.cloud.contentwarehouse.v1.Document.class, com.google.cloud.contentwarehouse.v1.Document.Builder.class); } // Construct using com.google.cloud.contentwarehouse.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(); @@ -1777,9 +1614,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_Document_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Document_descriptor; } @java.lang.Override @@ -1798,12 +1635,9 @@ public com.google.cloud.contentwarehouse.v1.Document build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.Document buildPartial() { - com.google.cloud.contentwarehouse.v1.Document result = - new com.google.cloud.contentwarehouse.v1.Document(this); + com.google.cloud.contentwarehouse.v1.Document result = new com.google.cloud.contentwarehouse.v1.Document(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1845,10 +1679,14 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Document result) result.structuredContentUri_ = structuredContentUri_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00002000) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00004000) != 0)) { result.rawDocumentFileType_ = rawDocumentFileType_; @@ -1872,8 +1710,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Document result) result.updater_ = updater_; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.dispositionTime_ = - dispositionTimeBuilder_ == null ? dispositionTime_ : dispositionTimeBuilder_.build(); + result.dispositionTime_ = dispositionTimeBuilder_ == null + ? dispositionTime_ + : dispositionTimeBuilder_.build(); } if (((from_bitField0_ & 0x00400000) != 0)) { result.legalHold_ = legalHold_; @@ -1883,7 +1722,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Document result) private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Document result) { result.structuredContentCase_ = structuredContentCase_; result.structuredContent_ = this.structuredContent_; - if (structuredContentCase_ == 4 && cloudAiDocumentBuilder_ != null) { + if (structuredContentCase_ == 4 && + cloudAiDocumentBuilder_ != null) { result.structuredContent_ = cloudAiDocumentBuilder_.build(); } result.rawDocumentCase_ = rawDocumentCase_; @@ -1894,39 +1734,38 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Document 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.contentwarehouse.v1.Document) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.Document) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.Document)other); } else { super.mergeFrom(other); return this; @@ -1988,10 +1827,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Document other) { propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000800); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPropertiesFieldBuilder() - : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertiesFieldBuilder() : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -2035,40 +1873,34 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Document other) { setLegalHold(other.getLegalHold()); } switch (other.getStructuredContentCase()) { - case PLAIN_TEXT: - { - structuredContentCase_ = 15; - structuredContent_ = other.structuredContent_; - onChanged(); - break; - } - case CLOUD_AI_DOCUMENT: - { - mergeCloudAiDocument(other.getCloudAiDocument()); - break; - } - case STRUCTUREDCONTENT_NOT_SET: - { - break; - } + case PLAIN_TEXT: { + structuredContentCase_ = 15; + structuredContent_ = other.structuredContent_; + onChanged(); + break; + } + case CLOUD_AI_DOCUMENT: { + mergeCloudAiDocument(other.getCloudAiDocument()); + break; + } + case STRUCTUREDCONTENT_NOT_SET: { + break; + } } switch (other.getRawDocumentCase()) { - case RAW_DOCUMENT_PATH: - { - rawDocumentCase_ = 5; - rawDocument_ = other.rawDocument_; - onChanged(); - break; - } - case INLINE_RAW_DOCUMENT: - { - setInlineRawDocument(other.getInlineRawDocument()); - break; - } - case RAWDOCUMENT_NOT_SET: - { - break; - } + case RAW_DOCUMENT_PATH: { + rawDocumentCase_ = 5; + rawDocument_ = other.rawDocument_; + onChanged(); + break; + } + case INLINE_RAW_DOCUMENT: { + setInlineRawDocument(other.getInlineRawDocument()); + break; + } + case RAWDOCUMENT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2096,160 +1928,145 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - documentSchemaName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 26 - case 34: - { - input.readMessage(getCloudAiDocumentFieldBuilder().getBuilder(), extensionRegistry); - structuredContentCase_ = 4; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - rawDocumentCase_ = 5; - rawDocument_ = s; - break; - } // case 42 - case 50: - { - rawDocument_ = input.readBytes(); - rawDocumentCase_ = 6; - break; - } // case 50 - case 58: - { - com.google.cloud.contentwarehouse.v1.Property m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.Property.parser(), extensionRegistry); - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(m); - } else { - propertiesBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 66 - case 74: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 74 - case 80: - { - rawDocumentFileType_ = input.readEnum(); - bitField0_ |= 0x00004000; - break; - } // case 80 - case 90: - { - referenceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 90 - case 96: - { - asyncEnabled_ = input.readBool(); - bitField0_ |= 0x00008000; - break; - } // case 96 - case 106: - { - creator_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; - break; - } // case 106 - case 114: - { - updater_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; - break; - } // case 114 - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - structuredContentCase_ = 15; - structuredContent_ = s; - break; - } // case 122 - case 130: - { - structuredContentUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 130 - case 138: - { - displayUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 138 - case 146: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 146 - case 152: - { - textExtractionDisabled_ = input.readBool(); - bitField0_ |= 0x00020000; - break; - } // case 152 - case 160: - { - contentCategory_ = input.readEnum(); - bitField0_ |= 0x00010000; - break; - } // case 160 - case 168: - { - textExtractionEnabled_ = input.readBool(); - bitField0_ |= 0x00040000; - break; - } // case 168 - case 178: - { - input.readMessage(getDispositionTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 178 - case 184: - { - legalHold_ = input.readBool(); - bitField0_ |= 0x00400000; - break; - } // case 184 - 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: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + documentSchemaName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 34: { + input.readMessage( + getCloudAiDocumentFieldBuilder().getBuilder(), + extensionRegistry); + structuredContentCase_ = 4; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + rawDocumentCase_ = 5; + rawDocument_ = s; + break; + } // case 42 + case 50: { + rawDocument_ = input.readBytes(); + rawDocumentCase_ = 6; + break; + } // case 50 + case 58: { + com.google.cloud.contentwarehouse.v1.Property m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.Property.parser(), + extensionRegistry); + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(m); + } else { + propertiesBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 66 + case 74: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 74 + case 80: { + rawDocumentFileType_ = input.readEnum(); + bitField0_ |= 0x00004000; + break; + } // case 80 + case 90: { + referenceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 90 + case 96: { + asyncEnabled_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 96 + case 106: { + creator_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 106 + case 114: { + updater_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 114 + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + structuredContentCase_ = 15; + structuredContent_ = s; + break; + } // case 122 + case 130: { + structuredContentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 130 + case 138: { + displayUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 138 + case 146: { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 146 + case 152: { + textExtractionDisabled_ = input.readBool(); + bitField0_ |= 0x00020000; + break; + } // case 152 + case 160: { + contentCategory_ = input.readEnum(); + bitField0_ |= 0x00010000; + break; + } // case 160 + case 168: { + textExtractionEnabled_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 168 + case 178: { + input.readMessage( + getDispositionTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 178 + case 184: { + legalHold_ = input.readBool(); + bitField0_ |= 0x00400000; + break; + } // case 184 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2259,12 +2076,12 @@ public Builder mergeFrom( } // finally return this; } - private int structuredContentCase_ = 0; private java.lang.Object structuredContent_; - - public StructuredContentCase getStructuredContentCase() { - return StructuredContentCase.forNumber(structuredContentCase_); + public StructuredContentCase + getStructuredContentCase() { + return StructuredContentCase.forNumber( + structuredContentCase_); } public Builder clearStructuredContent() { @@ -2276,9 +2093,10 @@ public Builder clearStructuredContent() { private int rawDocumentCase_ = 0; private java.lang.Object rawDocument_; - - public RawDocumentCase getRawDocumentCase() { - return RawDocumentCase.forNumber(rawDocumentCase_); + public RawDocumentCase + getRawDocumentCase() { + return RawDocumentCase.forNumber( + rawDocumentCase_); } public Builder clearRawDocument() { @@ -2292,8 +2110,6 @@ public Builder clearRawDocument() { private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the document.
      * Format:
@@ -2303,13 +2119,13 @@ public Builder clearRawDocument() {
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2318,8 +2134,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the document.
      * Format:
@@ -2329,14 +2143,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2344,8 +2159,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the document.
      * Format:
@@ -2355,22 +2168,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the document.
      * Format:
@@ -2380,7 +2189,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2390,8 +2198,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the document.
      * Format:
@@ -2401,14 +2207,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2418,20 +2222,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object referenceId_ = ""; /** - * - * *
      * The reference ID set by customers. Must be unique per project and location.
      * 
* * string reference_id = 11; - * * @return The referenceId. */ public java.lang.String getReferenceId() { java.lang.Object ref = referenceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceId_ = s; return s; @@ -2440,21 +2242,20 @@ public java.lang.String getReferenceId() { } } /** - * - * *
      * The reference ID set by customers. Must be unique per project and location.
      * 
* * string reference_id = 11; - * * @return The bytes for referenceId. */ - public com.google.protobuf.ByteString getReferenceIdBytes() { + public com.google.protobuf.ByteString + getReferenceIdBytes() { java.lang.Object ref = referenceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); referenceId_ = b; return b; } else { @@ -2462,35 +2263,28 @@ public com.google.protobuf.ByteString getReferenceIdBytes() { } } /** - * - * *
      * The reference ID set by customers. Must be unique per project and location.
      * 
* * string reference_id = 11; - * * @param value The referenceId to set. * @return This builder for chaining. */ - public Builder setReferenceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReferenceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } referenceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The reference ID set by customers. Must be unique per project and location.
      * 
* * string reference_id = 11; - * * @return This builder for chaining. */ public Builder clearReferenceId() { @@ -2500,21 +2294,17 @@ public Builder clearReferenceId() { return this; } /** - * - * *
      * The reference ID set by customers. Must be unique per project and location.
      * 
* * string reference_id = 11; - * * @param value The bytes for referenceId to set. * @return This builder for chaining. */ - public Builder setReferenceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReferenceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); referenceId_ = value; bitField0_ |= 0x00000002; @@ -2524,8 +2314,6 @@ public Builder setReferenceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Display name of the document given by the user. This name will be
      * displayed in the UI. Customer can populate this field with the name of the
@@ -2534,13 +2322,13 @@ public Builder setReferenceIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2549,8 +2337,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name of the document given by the user. This name will be
      * displayed in the UI. Customer can populate this field with the name of the
@@ -2559,14 +2345,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -2574,8 +2361,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name of the document given by the user. This name will be
      * displayed in the UI. Customer can populate this field with the name of the
@@ -2584,22 +2369,18 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Display name of the document given by the user. This name will be
      * displayed in the UI. Customer can populate this field with the name of the
@@ -2608,7 +2389,6 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2618,8 +2398,6 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. Display name of the document given by the user. This name will be
      * displayed in the UI. Customer can populate this field with the name of the
@@ -2628,14 +2406,12 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -2645,21 +2421,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object title_ = ""; /** - * - * *
      * Title that describes the document.
      * This can be the top heading or text that describes the document.
      * 
* * string title = 18; - * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -2668,22 +2442,21 @@ public java.lang.String getTitle() { } } /** - * - * *
      * Title that describes the document.
      * This can be the top heading or text that describes the document.
      * 
* * string title = 18; - * * @return The bytes for title. */ - public com.google.protobuf.ByteString getTitleBytes() { + public com.google.protobuf.ByteString + getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -2691,37 +2464,30 @@ public com.google.protobuf.ByteString getTitleBytes() { } } /** - * - * *
      * Title that describes the document.
      * This can be the top heading or text that describes the document.
      * 
* * string title = 18; - * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTitle( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } title_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Title that describes the document.
      * This can be the top heading or text that describes the document.
      * 
* * string title = 18; - * * @return This builder for chaining. */ public Builder clearTitle() { @@ -2731,22 +2497,18 @@ public Builder clearTitle() { return this; } /** - * - * *
      * Title that describes the document.
      * This can be the top heading or text that describes the document.
      * 
* * string title = 18; - * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTitleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000008; @@ -2756,20 +2518,18 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayUri_ = ""; /** - * - * *
      * Uri to display the document, for example, in the UI.
      * 
* * string display_uri = 17; - * * @return The displayUri. */ public java.lang.String getDisplayUri() { java.lang.Object ref = displayUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayUri_ = s; return s; @@ -2778,21 +2538,20 @@ public java.lang.String getDisplayUri() { } } /** - * - * *
      * Uri to display the document, for example, in the UI.
      * 
* * string display_uri = 17; - * * @return The bytes for displayUri. */ - public com.google.protobuf.ByteString getDisplayUriBytes() { + public com.google.protobuf.ByteString + getDisplayUriBytes() { java.lang.Object ref = displayUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayUri_ = b; return b; } else { @@ -2800,35 +2559,28 @@ public com.google.protobuf.ByteString getDisplayUriBytes() { } } /** - * - * *
      * Uri to display the document, for example, in the UI.
      * 
* * string display_uri = 17; - * * @param value The displayUri to set. * @return This builder for chaining. */ - public Builder setDisplayUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayUri_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Uri to display the document, for example, in the UI.
      * 
* * string display_uri = 17; - * * @return This builder for chaining. */ public Builder clearDisplayUri() { @@ -2838,21 +2590,17 @@ public Builder clearDisplayUri() { return this; } /** - * - * *
      * Uri to display the document, for example, in the UI.
      * 
* * string display_uri = 17; - * * @param value The bytes for displayUri to set. * @return This builder for chaining. */ - public Builder setDisplayUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayUri_ = value; bitField0_ |= 0x00000010; @@ -2862,8 +2610,6 @@ public Builder setDisplayUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object documentSchemaName_ = ""; /** - * - * *
      * The Document schema name.
      * Format:
@@ -2871,13 +2617,13 @@ public Builder setDisplayUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } - * * @return The documentSchemaName. */ public java.lang.String getDocumentSchemaName() { java.lang.Object ref = documentSchemaName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentSchemaName_ = s; return s; @@ -2886,8 +2632,6 @@ public java.lang.String getDocumentSchemaName() { } } /** - * - * *
      * The Document schema name.
      * Format:
@@ -2895,14 +2639,15 @@ public java.lang.String getDocumentSchemaName() {
      * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for documentSchemaName. */ - public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { + public com.google.protobuf.ByteString + getDocumentSchemaNameBytes() { java.lang.Object ref = documentSchemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentSchemaName_ = b; return b; } else { @@ -2910,8 +2655,6 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { } } /** - * - * *
      * The Document schema name.
      * Format:
@@ -2919,22 +2662,18 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() {
      * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } - * * @param value The documentSchemaName to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentSchemaName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentSchemaName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The Document schema name.
      * Format:
@@ -2942,7 +2681,6 @@ public Builder setDocumentSchemaName(java.lang.String value) {
      * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDocumentSchemaName() { @@ -2952,8 +2690,6 @@ public Builder clearDocumentSchemaName() { return this; } /** - * - * *
      * The Document schema name.
      * Format:
@@ -2961,14 +2697,12 @@ public Builder clearDocumentSchemaName() {
      * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for documentSchemaName to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentSchemaNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentSchemaName_ = value; bitField0_ |= 0x00000020; @@ -2977,14 +2711,11 @@ public Builder setDocumentSchemaNameBytes(com.google.protobuf.ByteString value) } /** - * - * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; - * * @return Whether the plainText field is set. */ @java.lang.Override @@ -2992,14 +2723,11 @@ public boolean hasPlainText() { return structuredContentCase_ == 15; } /** - * - * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; - * * @return The plainText. */ @java.lang.Override @@ -3009,7 +2737,8 @@ public java.lang.String getPlainText() { ref = structuredContent_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (structuredContentCase_ == 15) { structuredContent_ = s; @@ -3020,25 +2749,24 @@ public java.lang.String getPlainText() { } } /** - * - * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; - * * @return The bytes for plainText. */ @java.lang.Override - public com.google.protobuf.ByteString getPlainTextBytes() { + public com.google.protobuf.ByteString + getPlainTextBytes() { java.lang.Object ref = ""; if (structuredContentCase_ == 15) { ref = structuredContent_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (structuredContentCase_ == 15) { structuredContent_ = b; } @@ -3048,35 +2776,28 @@ public com.google.protobuf.ByteString getPlainTextBytes() { } } /** - * - * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; - * * @param value The plainText to set. * @return This builder for chaining. */ - public Builder setPlainText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPlainText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } structuredContentCase_ = 15; structuredContent_ = value; onChanged(); return this; } /** - * - * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; - * * @return This builder for chaining. */ public Builder clearPlainText() { @@ -3088,21 +2809,17 @@ public Builder clearPlainText() { return this; } /** - * - * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; - * * @param value The bytes for plainText to set. * @return This builder for chaining. */ - public Builder setPlainTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPlainTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); structuredContentCase_ = 15; structuredContent_ = value; @@ -3111,19 +2828,13 @@ public Builder setPlainTextBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.Document, - com.google.cloud.documentai.v1.Document.Builder, - com.google.cloud.documentai.v1.DocumentOrBuilder> - cloudAiDocumentBuilder_; + com.google.cloud.documentai.v1.Document, com.google.cloud.documentai.v1.Document.Builder, com.google.cloud.documentai.v1.DocumentOrBuilder> cloudAiDocumentBuilder_; /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
* * .google.cloud.documentai.v1.Document cloud_ai_document = 4; - * * @return Whether the cloudAiDocument field is set. */ @java.lang.Override @@ -3131,14 +2842,11 @@ public boolean hasCloudAiDocument() { return structuredContentCase_ == 4; } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
* * .google.cloud.documentai.v1.Document cloud_ai_document = 4; - * * @return The cloudAiDocument. */ @java.lang.Override @@ -3156,8 +2864,6 @@ public com.google.cloud.documentai.v1.Document getCloudAiDocument() { } } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -3178,8 +2884,6 @@ public Builder setCloudAiDocument(com.google.cloud.documentai.v1.Document value) return this; } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -3198,8 +2902,6 @@ public Builder setCloudAiDocument( return this; } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -3208,13 +2910,10 @@ public Builder setCloudAiDocument( */ public Builder mergeCloudAiDocument(com.google.cloud.documentai.v1.Document value) { if (cloudAiDocumentBuilder_ == null) { - if (structuredContentCase_ == 4 - && structuredContent_ != com.google.cloud.documentai.v1.Document.getDefaultInstance()) { - structuredContent_ = - com.google.cloud.documentai.v1.Document.newBuilder( - (com.google.cloud.documentai.v1.Document) structuredContent_) - .mergeFrom(value) - .buildPartial(); + if (structuredContentCase_ == 4 && + structuredContent_ != com.google.cloud.documentai.v1.Document.getDefaultInstance()) { + structuredContent_ = com.google.cloud.documentai.v1.Document.newBuilder((com.google.cloud.documentai.v1.Document) structuredContent_) + .mergeFrom(value).buildPartial(); } else { structuredContent_ = value; } @@ -3230,8 +2929,6 @@ public Builder mergeCloudAiDocument(com.google.cloud.documentai.v1.Document valu return this; } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -3255,8 +2952,6 @@ public Builder clearCloudAiDocument() { return this; } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -3267,8 +2962,6 @@ public com.google.cloud.documentai.v1.Document.Builder getCloudAiDocumentBuilder return getCloudAiDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -3287,8 +2980,6 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil } } /** - * - * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -3296,19 +2987,14 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil * .google.cloud.documentai.v1.Document cloud_ai_document = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.Document, - com.google.cloud.documentai.v1.Document.Builder, - com.google.cloud.documentai.v1.DocumentOrBuilder> + com.google.cloud.documentai.v1.Document, com.google.cloud.documentai.v1.Document.Builder, com.google.cloud.documentai.v1.DocumentOrBuilder> getCloudAiDocumentFieldBuilder() { if (cloudAiDocumentBuilder_ == null) { if (!(structuredContentCase_ == 4)) { structuredContent_ = com.google.cloud.documentai.v1.Document.getDefaultInstance(); } - cloudAiDocumentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.Document, - com.google.cloud.documentai.v1.Document.Builder, - com.google.cloud.documentai.v1.DocumentOrBuilder>( + cloudAiDocumentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1.Document, com.google.cloud.documentai.v1.Document.Builder, com.google.cloud.documentai.v1.DocumentOrBuilder>( (com.google.cloud.documentai.v1.Document) structuredContent_, getParentForChildren(), isClean()); @@ -3321,23 +3007,20 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil private java.lang.Object structuredContentUri_ = ""; /** - * - * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16 [deprecated = true]; - * * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @return The structuredContentUri. */ - @java.lang.Deprecated - public java.lang.String getStructuredContentUri() { + @java.lang.Deprecated public java.lang.String getStructuredContentUri() { java.lang.Object ref = structuredContentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); structuredContentUri_ = s; return s; @@ -3346,24 +3029,22 @@ public java.lang.String getStructuredContentUri() { } } /** - * - * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16 [deprecated = true]; - * * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @return The bytes for structuredContentUri. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getStructuredContentUriBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getStructuredContentUriBytes() { java.lang.Object ref = structuredContentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); structuredContentUri_ = b; return b; } else { @@ -3371,68 +3052,54 @@ public com.google.protobuf.ByteString getStructuredContentUriBytes() { } } /** - * - * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16 [deprecated = true]; - * * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @param value The structuredContentUri to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setStructuredContentUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setStructuredContentUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } structuredContentUri_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16 [deprecated = true]; - * * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearStructuredContentUri() { + @java.lang.Deprecated public Builder clearStructuredContentUri() { structuredContentUri_ = getDefaultInstance().getStructuredContentUri(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** - * - * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16 [deprecated = true]; - * * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @param value The bytes for structuredContentUri to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setStructuredContentUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setStructuredContentUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); structuredContentUri_ = value; bitField0_ |= 0x00000100; @@ -3441,14 +3108,11 @@ public Builder setStructuredContentUriBytes(com.google.protobuf.ByteString value } /** - * - * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; - * * @return Whether the rawDocumentPath field is set. */ @java.lang.Override @@ -3456,14 +3120,11 @@ public boolean hasRawDocumentPath() { return rawDocumentCase_ == 5; } /** - * - * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; - * * @return The rawDocumentPath. */ @java.lang.Override @@ -3473,7 +3134,8 @@ public java.lang.String getRawDocumentPath() { ref = rawDocument_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (rawDocumentCase_ == 5) { rawDocument_ = s; @@ -3484,25 +3146,24 @@ public java.lang.String getRawDocumentPath() { } } /** - * - * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; - * * @return The bytes for rawDocumentPath. */ @java.lang.Override - public com.google.protobuf.ByteString getRawDocumentPathBytes() { + public com.google.protobuf.ByteString + getRawDocumentPathBytes() { java.lang.Object ref = ""; if (rawDocumentCase_ == 5) { ref = rawDocument_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (rawDocumentCase_ == 5) { rawDocument_ = b; } @@ -3512,35 +3173,28 @@ public com.google.protobuf.ByteString getRawDocumentPathBytes() { } } /** - * - * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; - * * @param value The rawDocumentPath to set. * @return This builder for chaining. */ - public Builder setRawDocumentPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRawDocumentPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rawDocumentCase_ = 5; rawDocument_ = value; onChanged(); return this; } /** - * - * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; - * * @return This builder for chaining. */ public Builder clearRawDocumentPath() { @@ -3552,21 +3206,17 @@ public Builder clearRawDocumentPath() { return this; } /** - * - * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; - * * @param value The bytes for rawDocumentPath to set. * @return This builder for chaining. */ - public Builder setRawDocumentPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRawDocumentPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rawDocumentCase_ = 5; rawDocument_ = value; @@ -3575,28 +3225,22 @@ public Builder setRawDocumentPathBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Raw document content.
      * 
* * bytes inline_raw_document = 6; - * * @return Whether the inlineRawDocument field is set. */ public boolean hasInlineRawDocument() { return rawDocumentCase_ == 6; } /** - * - * *
      * Raw document content.
      * 
* * bytes inline_raw_document = 6; - * * @return The inlineRawDocument. */ public com.google.protobuf.ByteString getInlineRawDocument() { @@ -3606,35 +3250,27 @@ public com.google.protobuf.ByteString getInlineRawDocument() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Raw document content.
      * 
* * bytes inline_raw_document = 6; - * * @param value The inlineRawDocument to set. * @return This builder for chaining. */ public Builder setInlineRawDocument(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } rawDocumentCase_ = 6; rawDocument_ = value; onChanged(); return this; } /** - * - * *
      * Raw document content.
      * 
* * bytes inline_raw_document = 6; - * * @return This builder for chaining. */ public Builder clearInlineRawDocument() { @@ -3647,25 +3283,18 @@ public Builder clearInlineRawDocument() { } private java.util.List properties_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePropertiesIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - properties_ = - new java.util.ArrayList(properties_); + properties_ = new java.util.ArrayList(properties_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Property, - com.google.cloud.contentwarehouse.v1.Property.Builder, - com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> - propertiesBuilder_; + com.google.cloud.contentwarehouse.v1.Property, com.google.cloud.contentwarehouse.v1.Property.Builder, com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> propertiesBuilder_; /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3680,8 +3309,6 @@ public java.util.List getProperti } } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3696,8 +3323,6 @@ public int getPropertiesCount() { } } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3712,15 +3337,14 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { } } /** - * - * *
      * List of values that are user supplied metadata.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - public Builder setProperties(int index, com.google.cloud.contentwarehouse.v1.Property value) { + public Builder setProperties( + int index, com.google.cloud.contentwarehouse.v1.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3734,8 +3358,6 @@ public Builder setProperties(int index, com.google.cloud.contentwarehouse.v1.Pro return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3754,8 +3376,6 @@ public Builder setProperties( return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3776,15 +3396,14 @@ public Builder addProperties(com.google.cloud.contentwarehouse.v1.Property value return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - public Builder addProperties(int index, com.google.cloud.contentwarehouse.v1.Property value) { + public Builder addProperties( + int index, com.google.cloud.contentwarehouse.v1.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3798,8 +3417,6 @@ public Builder addProperties(int index, com.google.cloud.contentwarehouse.v1.Pro return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3818,8 +3435,6 @@ public Builder addProperties( return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3838,8 +3453,6 @@ public Builder addProperties( return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3850,7 +3463,8 @@ public Builder addAllProperties( java.lang.Iterable values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); @@ -3858,8 +3472,6 @@ public Builder addAllProperties( return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3877,8 +3489,6 @@ public Builder clearProperties() { return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3896,20 +3506,17 @@ public Builder removeProperties(int index) { return this; } /** - * - * *
      * List of values that are user supplied metadata.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - public com.google.cloud.contentwarehouse.v1.Property.Builder getPropertiesBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.Property.Builder getPropertiesBuilder( + int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3919,22 +3526,19 @@ public com.google.cloud.contentwarehouse.v1.Property.Builder getPropertiesBuilde public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder( int index) { if (propertiesBuilder_ == null) { - return properties_.get(index); - } else { + return properties_.get(index); } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of values that are user supplied metadata.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - public java.util.List - getPropertiesOrBuilderList() { + public java.util.List + getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { @@ -3942,8 +3546,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBui } } /** - * - * *
      * List of values that are user supplied metadata.
      * 
@@ -3951,48 +3553,42 @@ public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBui * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilder() { - return getPropertiesFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); + return getPropertiesFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); } /** - * - * *
      * List of values that are user supplied metadata.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilder(int index) { - return getPropertiesFieldBuilder() - .addBuilder(index, com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilder( + int index) { + return getPropertiesFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); } /** - * - * *
      * List of values that are user supplied metadata.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - public java.util.List - getPropertiesBuilderList() { + public java.util.List + getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Property, - com.google.cloud.contentwarehouse.v1.Property.Builder, - com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> + com.google.cloud.contentwarehouse.v1.Property, com.google.cloud.contentwarehouse.v1.Property.Builder, com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { - propertiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Property, - com.google.cloud.contentwarehouse.v1.Property.Builder, - com.google.cloud.contentwarehouse.v1.PropertyOrBuilder>( - properties_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); + propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Property, com.google.cloud.contentwarehouse.v1.Property.Builder, com.google.cloud.contentwarehouse.v1.PropertyOrBuilder>( + properties_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); properties_ = null; } return propertiesBuilder_; @@ -4000,58 +3596,39 @@ public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilde 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_; /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4067,17 +3644,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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 { @@ -4088,21 +3662,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -4115,15 +3685,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00001000); @@ -4136,15 +3702,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00001000; @@ -4152,48 +3714,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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_; @@ -4201,58 +3751,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * Output only. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.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. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4268,17 +3799,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.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 { @@ -4289,21 +3817,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -4316,15 +3840,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00002000); @@ -4337,15 +3857,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00002000; @@ -4353,48 +3869,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.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. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.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_; @@ -4402,8 +3906,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int rawDocumentFileType_ = 0; /** - * - * *
      * This is used when DocAI was not used to load the document and parsing/
      * extracting is needed for the inline_raw_document.  For example, if
@@ -4411,18 +3913,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
      * 
* - * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; - * - * + * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; * @return The enum numeric value on the wire for rawDocumentFileType. */ - @java.lang.Override - public int getRawDocumentFileTypeValue() { + @java.lang.Override public int getRawDocumentFileTypeValue() { return rawDocumentFileType_; } /** - * - * *
      * This is used when DocAI was not used to load the document and parsing/
      * extracting is needed for the inline_raw_document.  For example, if
@@ -4430,9 +3927,7 @@ public int getRawDocumentFileTypeValue() {
      * this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
      * 
* - * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; - * - * + * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; * @param value The enum numeric value on the wire for rawDocumentFileType to set. * @return This builder for chaining. */ @@ -4443,8 +3938,6 @@ public Builder setRawDocumentFileTypeValue(int value) { return this; } /** - * - * *
      * This is used when DocAI was not used to load the document and parsing/
      * extracting is needed for the inline_raw_document.  For example, if
@@ -4452,22 +3945,15 @@ public Builder setRawDocumentFileTypeValue(int value) {
      * this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
      * 
* - * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; - * - * + * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; * @return The rawDocumentFileType. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RawDocumentFileType getRawDocumentFileType() { - com.google.cloud.contentwarehouse.v1.RawDocumentFileType result = - com.google.cloud.contentwarehouse.v1.RawDocumentFileType.forNumber(rawDocumentFileType_); - return result == null - ? com.google.cloud.contentwarehouse.v1.RawDocumentFileType.UNRECOGNIZED - : result; + com.google.cloud.contentwarehouse.v1.RawDocumentFileType result = com.google.cloud.contentwarehouse.v1.RawDocumentFileType.forNumber(rawDocumentFileType_); + return result == null ? com.google.cloud.contentwarehouse.v1.RawDocumentFileType.UNRECOGNIZED : result; } /** - * - * *
      * This is used when DocAI was not used to load the document and parsing/
      * extracting is needed for the inline_raw_document.  For example, if
@@ -4475,14 +3961,11 @@ public com.google.cloud.contentwarehouse.v1.RawDocumentFileType getRawDocumentFi
      * this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
      * 
* - * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; - * - * + * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; * @param value The rawDocumentFileType to set. * @return This builder for chaining. */ - public Builder setRawDocumentFileType( - com.google.cloud.contentwarehouse.v1.RawDocumentFileType value) { + public Builder setRawDocumentFileType(com.google.cloud.contentwarehouse.v1.RawDocumentFileType value) { if (value == null) { throw new NullPointerException(); } @@ -4492,8 +3975,6 @@ public Builder setRawDocumentFileType( return this; } /** - * - * *
      * This is used when DocAI was not used to load the document and parsing/
      * extracting is needed for the inline_raw_document.  For example, if
@@ -4501,9 +3982,7 @@ public Builder setRawDocumentFileType(
      * this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
      * 
* - * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; - * - * + * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; * @return This builder for chaining. */ public Builder clearRawDocumentFileType() { @@ -4513,41 +3992,33 @@ public Builder clearRawDocumentFileType() { return this; } - private boolean asyncEnabled_; + private boolean asyncEnabled_ ; /** - * - * *
      * If true, makes the document visible to asynchronous policies and rules.
      * 
* * bool async_enabled = 12 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. See - * google/cloud/contentwarehouse/v1/document.proto;l=108 + * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. + * See google/cloud/contentwarehouse/v1/document.proto;l=108 * @return The asyncEnabled. */ @java.lang.Override - @java.lang.Deprecated - public boolean getAsyncEnabled() { + @java.lang.Deprecated public boolean getAsyncEnabled() { return asyncEnabled_; } /** - * - * *
      * If true, makes the document visible to asynchronous policies and rules.
      * 
* * bool async_enabled = 12 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. See - * google/cloud/contentwarehouse/v1/document.proto;l=108 + * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. + * See google/cloud/contentwarehouse/v1/document.proto;l=108 * @param value The asyncEnabled to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setAsyncEnabled(boolean value) { + @java.lang.Deprecated public Builder setAsyncEnabled(boolean value) { asyncEnabled_ = value; bitField0_ |= 0x00008000; @@ -4555,20 +4026,16 @@ public Builder setAsyncEnabled(boolean value) { return this; } /** - * - * *
      * If true, makes the document visible to asynchronous policies and rules.
      * 
* * bool async_enabled = 12 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. See - * google/cloud/contentwarehouse/v1/document.proto;l=108 + * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. + * See google/cloud/contentwarehouse/v1/document.proto;l=108 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearAsyncEnabled() { + @java.lang.Deprecated public Builder clearAsyncEnabled() { bitField0_ = (bitField0_ & ~0x00008000); asyncEnabled_ = false; onChanged(); @@ -4577,29 +4044,22 @@ public Builder clearAsyncEnabled() { private int contentCategory_ = 0; /** - * - * *
      * Indicates the category (image, audio, video etc.) of the original content.
      * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; - * * @return The enum numeric value on the wire for contentCategory. */ - @java.lang.Override - public int getContentCategoryValue() { + @java.lang.Override public int getContentCategoryValue() { return contentCategory_; } /** - * - * *
      * Indicates the category (image, audio, video etc.) of the original content.
      * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; - * * @param value The enum numeric value on the wire for contentCategory to set. * @return This builder for chaining. */ @@ -4610,33 +4070,24 @@ public Builder setContentCategoryValue(int value) { return this; } /** - * - * *
      * Indicates the category (image, audio, video etc.) of the original content.
      * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; - * * @return The contentCategory. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ContentCategory getContentCategory() { - com.google.cloud.contentwarehouse.v1.ContentCategory result = - com.google.cloud.contentwarehouse.v1.ContentCategory.forNumber(contentCategory_); - return result == null - ? com.google.cloud.contentwarehouse.v1.ContentCategory.UNRECOGNIZED - : result; + com.google.cloud.contentwarehouse.v1.ContentCategory result = com.google.cloud.contentwarehouse.v1.ContentCategory.forNumber(contentCategory_); + return result == null ? com.google.cloud.contentwarehouse.v1.ContentCategory.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the category (image, audio, video etc.) of the original content.
      * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; - * * @param value The contentCategory to set. * @return This builder for chaining. */ @@ -4650,14 +4101,11 @@ public Builder setContentCategory(com.google.cloud.contentwarehouse.v1.ContentCa return this; } /** - * - * *
      * Indicates the category (image, audio, video etc.) of the original content.
      * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; - * * @return This builder for chaining. */ public Builder clearContentCategory() { @@ -4667,41 +4115,33 @@ public Builder clearContentCategory() { return this; } - private boolean textExtractionDisabled_; + private boolean textExtractionDisabled_ ; /** - * - * *
      * If true, text extraction will not be performed.
      * 
* * bool text_extraction_disabled = 19 [deprecated = true]; - * * @deprecated google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=114 * @return The textExtractionDisabled. */ @java.lang.Override - @java.lang.Deprecated - public boolean getTextExtractionDisabled() { + @java.lang.Deprecated public boolean getTextExtractionDisabled() { return textExtractionDisabled_; } /** - * - * *
      * If true, text extraction will not be performed.
      * 
* * bool text_extraction_disabled = 19 [deprecated = true]; - * * @deprecated google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=114 * @param value The textExtractionDisabled to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setTextExtractionDisabled(boolean value) { + @java.lang.Deprecated public Builder setTextExtractionDisabled(boolean value) { textExtractionDisabled_ = value; bitField0_ |= 0x00020000; @@ -4709,36 +4149,29 @@ public Builder setTextExtractionDisabled(boolean value) { return this; } /** - * - * *
      * If true, text extraction will not be performed.
      * 
* * bool text_extraction_disabled = 19 [deprecated = true]; - * * @deprecated google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=114 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearTextExtractionDisabled() { + @java.lang.Deprecated public Builder clearTextExtractionDisabled() { bitField0_ = (bitField0_ & ~0x00020000); textExtractionDisabled_ = false; onChanged(); return this; } - private boolean textExtractionEnabled_; + private boolean textExtractionEnabled_ ; /** - * - * *
      * If true, text extraction will be performed.
      * 
* * bool text_extraction_enabled = 21; - * * @return The textExtractionEnabled. */ @java.lang.Override @@ -4746,14 +4179,11 @@ public boolean getTextExtractionEnabled() { return textExtractionEnabled_; } /** - * - * *
      * If true, text extraction will be performed.
      * 
* * bool text_extraction_enabled = 21; - * * @param value The textExtractionEnabled to set. * @return This builder for chaining. */ @@ -4765,14 +4195,11 @@ public Builder setTextExtractionEnabled(boolean value) { return this; } /** - * - * *
      * If true, text extraction will be performed.
      * 
* * bool text_extraction_enabled = 21; - * * @return This builder for chaining. */ public Builder clearTextExtractionEnabled() { @@ -4784,20 +4211,18 @@ public Builder clearTextExtractionEnabled() { private java.lang.Object creator_ = ""; /** - * - * *
      * The user who creates the document.
      * 
* * string creator = 13; - * * @return The creator. */ public java.lang.String getCreator() { java.lang.Object ref = creator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; @@ -4806,21 +4231,20 @@ public java.lang.String getCreator() { } } /** - * - * *
      * The user who creates the document.
      * 
* * string creator = 13; - * * @return The bytes for creator. */ - public com.google.protobuf.ByteString getCreatorBytes() { + public com.google.protobuf.ByteString + getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); creator_ = b; return b; } else { @@ -4828,35 +4252,28 @@ public com.google.protobuf.ByteString getCreatorBytes() { } } /** - * - * *
      * The user who creates the document.
      * 
* * string creator = 13; - * * @param value The creator to set. * @return This builder for chaining. */ - public Builder setCreator(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCreator( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } creator_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** - * - * *
      * The user who creates the document.
      * 
* * string creator = 13; - * * @return This builder for chaining. */ public Builder clearCreator() { @@ -4866,21 +4283,17 @@ public Builder clearCreator() { return this; } /** - * - * *
      * The user who creates the document.
      * 
* * string creator = 13; - * * @param value The bytes for creator to set. * @return This builder for chaining. */ - public Builder setCreatorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCreatorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); creator_ = value; bitField0_ |= 0x00080000; @@ -4890,20 +4303,18 @@ public Builder setCreatorBytes(com.google.protobuf.ByteString value) { private java.lang.Object updater_ = ""; /** - * - * *
      * The user who lastly updates the document.
      * 
* * string updater = 14; - * * @return The updater. */ public java.lang.String getUpdater() { java.lang.Object ref = updater_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); updater_ = s; return s; @@ -4912,21 +4323,20 @@ public java.lang.String getUpdater() { } } /** - * - * *
      * The user who lastly updates the document.
      * 
* * string updater = 14; - * * @return The bytes for updater. */ - public com.google.protobuf.ByteString getUpdaterBytes() { + public com.google.protobuf.ByteString + getUpdaterBytes() { java.lang.Object ref = updater_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); updater_ = b; return b; } else { @@ -4934,35 +4344,28 @@ public com.google.protobuf.ByteString getUpdaterBytes() { } } /** - * - * *
      * The user who lastly updates the document.
      * 
* * string updater = 14; - * * @param value The updater to set. * @return This builder for chaining. */ - public Builder setUpdater(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUpdater( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } updater_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** - * - * *
      * The user who lastly updates the document.
      * 
* * string updater = 14; - * * @return This builder for chaining. */ public Builder clearUpdater() { @@ -4972,21 +4375,17 @@ public Builder clearUpdater() { return this; } /** - * - * *
      * The user who lastly updates the document.
      * 
* * string updater = 14; - * * @param value The bytes for updater to set. * @return This builder for chaining. */ - public Builder setUpdaterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUpdaterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); updater_ = value; bitField0_ |= 0x00100000; @@ -4996,61 +4395,42 @@ public Builder setUpdaterBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp dispositionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - dispositionTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dispositionTimeBuilder_; /** - * - * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dispositionTime field is set. */ public boolean hasDispositionTime() { return ((bitField0_ & 0x00200000) != 0); } /** - * - * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dispositionTime. */ public com.google.protobuf.Timestamp getDispositionTime() { if (dispositionTimeBuilder_ == null) { - return dispositionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispositionTime_; + return dispositionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dispositionTime_; } else { return dispositionTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDispositionTime(com.google.protobuf.Timestamp value) { if (dispositionTimeBuilder_ == null) { @@ -5066,18 +4446,15 @@ public Builder setDispositionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDispositionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDispositionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (dispositionTimeBuilder_ == null) { dispositionTime_ = builderForValue.build(); } else { @@ -5088,22 +4465,18 @@ public Builder setDispositionTime(com.google.protobuf.Timestamp.Builder builderF return this; } /** - * - * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDispositionTime(com.google.protobuf.Timestamp value) { if (dispositionTimeBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) - && dispositionTime_ != null - && dispositionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00200000) != 0) && + dispositionTime_ != null && + dispositionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDispositionTimeBuilder().mergeFrom(value); } else { dispositionTime_ = value; @@ -5116,16 +4489,12 @@ public Builder mergeDispositionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDispositionTime() { bitField0_ = (bitField0_ & ~0x00200000); @@ -5138,16 +4507,12 @@ public Builder clearDispositionTime() { return this; } /** - * - * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDispositionTimeBuilder() { bitField0_ |= 0x00200000; @@ -5155,65 +4520,50 @@ public com.google.protobuf.Timestamp.Builder getDispositionTimeBuilder() { return getDispositionTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDispositionTimeOrBuilder() { if (dispositionTimeBuilder_ != null) { return dispositionTimeBuilder_.getMessageOrBuilder(); } else { - return dispositionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispositionTime_; + return dispositionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : dispositionTime_; } } /** - * - * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp disposition_time = 22 [(.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> getDispositionTimeFieldBuilder() { if (dispositionTimeBuilder_ == null) { - dispositionTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDispositionTime(), getParentForChildren(), isClean()); + dispositionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDispositionTime(), + getParentForChildren(), + isClean()); dispositionTime_ = null; } return dispositionTimeBuilder_; } - private boolean legalHold_; + private boolean legalHold_ ; /** - * - * *
      * Output only. Indicates if the document has a legal hold on it.
      * 
* * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The legalHold. */ @java.lang.Override @@ -5221,14 +4571,11 @@ public boolean getLegalHold() { return legalHold_; } /** - * - * *
      * Output only. Indicates if the document has a legal hold on it.
      * 
* * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The legalHold to set. * @return This builder for chaining. */ @@ -5240,14 +4587,11 @@ public Builder setLegalHold(boolean value) { return this; } /** - * - * *
      * Output only. Indicates if the document has a legal hold on it.
      * 
* * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLegalHold() { @@ -5256,9 +4600,9 @@ public Builder clearLegalHold() { 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); } @@ -5268,12 +4612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.Document) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.Document) private static final com.google.cloud.contentwarehouse.v1.Document DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.Document(); } @@ -5282,27 +4626,27 @@ public static com.google.cloud.contentwarehouse.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; @@ -5317,4 +4661,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.Document getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java similarity index 71% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java index e2b9bc96a1d3..d9535284e8e3 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java @@ -1,36 +1,18 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * The default role of the document creator.
  * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.DocumentCreatorDefaultRole} */ -public enum DocumentCreatorDefaultRole implements com.google.protobuf.ProtocolMessageEnum { +public enum DocumentCreatorDefaultRole + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified, will be default to document admin role.
    * 
@@ -39,8 +21,6 @@ public enum DocumentCreatorDefaultRole implements com.google.protobuf.ProtocolMe */ DOCUMENT_CREATOR_DEFAULT_ROLE_UNSPECIFIED(0), /** - * - * *
    * Document Admin, same as contentwarehouse.googleapis.com/documentAdmin.
    * 
@@ -49,8 +29,6 @@ public enum DocumentCreatorDefaultRole implements com.google.protobuf.ProtocolMe */ DOCUMENT_ADMIN(1), /** - * - * *
    * Document Editor, same as contentwarehouse.googleapis.com/documentEditor.
    * 
@@ -59,8 +37,6 @@ public enum DocumentCreatorDefaultRole implements com.google.protobuf.ProtocolMe */ DOCUMENT_EDITOR(2), /** - * - * *
    * Document Viewer, same as contentwarehouse.googleapis.com/documentViewer.
    * 
@@ -72,8 +48,6 @@ public enum DocumentCreatorDefaultRole implements com.google.protobuf.ProtocolMe ; /** - * - * *
    * Unspecified, will be default to document admin role.
    * 
@@ -82,8 +56,6 @@ public enum DocumentCreatorDefaultRole implements com.google.protobuf.ProtocolMe */ public static final int DOCUMENT_CREATOR_DEFAULT_ROLE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Document Admin, same as contentwarehouse.googleapis.com/documentAdmin.
    * 
@@ -92,8 +64,6 @@ public enum DocumentCreatorDefaultRole implements com.google.protobuf.ProtocolMe */ public static final int DOCUMENT_ADMIN_VALUE = 1; /** - * - * *
    * Document Editor, same as contentwarehouse.googleapis.com/documentEditor.
    * 
@@ -102,8 +72,6 @@ public enum DocumentCreatorDefaultRole implements com.google.protobuf.ProtocolMe */ public static final int DOCUMENT_EDITOR_VALUE = 2; /** - * - * *
    * Document Viewer, same as contentwarehouse.googleapis.com/documentViewer.
    * 
@@ -112,6 +80,7 @@ public enum DocumentCreatorDefaultRole implements com.google.protobuf.ProtocolMe */ public static final int DOCUMENT_VIEWER_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,16 +105,11 @@ public static DocumentCreatorDefaultRole valueOf(int value) { */ public static DocumentCreatorDefaultRole forNumber(int value) { switch (value) { - case 0: - return DOCUMENT_CREATOR_DEFAULT_ROLE_UNSPECIFIED; - case 1: - return DOCUMENT_ADMIN; - case 2: - return DOCUMENT_EDITOR; - case 3: - return DOCUMENT_VIEWER; - default: - return null; + case 0: return DOCUMENT_CREATOR_DEFAULT_ROLE_UNSPECIFIED; + case 1: return DOCUMENT_ADMIN; + case 2: return DOCUMENT_EDITOR; + case 3: return DOCUMENT_VIEWER; + default: return null; } } @@ -153,28 +117,28 @@ public static DocumentCreatorDefaultRole forNumber(int value) { internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DocumentCreatorDefaultRole findValueByNumber(int number) { - return DocumentCreatorDefaultRole.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + DocumentCreatorDefaultRole> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DocumentCreatorDefaultRole findValueByNumber(int number) { + return DocumentCreatorDefaultRole.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor().getEnumTypes().get(3); } @@ -183,7 +147,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static DocumentCreatorDefaultRole 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; @@ -199,3 +164,4 @@ private DocumentCreatorDefaultRole(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.DocumentCreatorDefaultRole) } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java similarity index 68% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java index a08b5cc6aa33..c42ee22ea5d8 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.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/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * A document-link between source and target document.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentLink} */ -public final class DocumentLink extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentLink extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DocumentLink) DocumentLinkOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentLink.newBuilder() to construct. private DocumentLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentLink() { name_ = ""; description_ = ""; @@ -45,38 +27,34 @@ private DocumentLink() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentLink(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentLink_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DocumentLink_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentLink.class, - com.google.cloud.contentwarehouse.v1.DocumentLink.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentLink.class, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder.class); } /** - * - * *
    * The state of a document-link.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.DocumentLink.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown state of documentlink.
      * 
@@ -85,8 +63,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The documentlink has both source and target documents detected.
      * 
@@ -95,8 +71,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * Target document is deleted, and mark the documentlink as soft-deleted.
      * 
@@ -108,8 +82,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown state of documentlink.
      * 
@@ -118,8 +90,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The documentlink has both source and target documents detected.
      * 
@@ -128,8 +98,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * Target document is deleted, and mark the documentlink as soft-deleted.
      * 
@@ -138,6 +106,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SOFT_DELETED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -162,51 +131,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ACTIVE; - case 2: - return SOFT_DELETED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return ACTIVE; + case 2: return SOFT_DELETED; + 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.contentwarehouse.v1.DocumentLink.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLink.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; @@ -224,12 +191,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Name of this document-link.
    * It is required that the parent derived form the name to be consistent with
@@ -239,7 +203,6 @@ private State(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -248,15 +211,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; } } /** - * - * *
    * Name of this document-link.
    * It is required that the parent derived form the name to be consistent with
@@ -266,15 +228,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -285,14 +248,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SOURCE_DOCUMENT_REFERENCE_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.DocumentReference sourceDocumentReference_; /** - * - * *
    * Document references of the source document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * * @return Whether the sourceDocumentReference field is set. */ @java.lang.Override @@ -300,25 +260,18 @@ public boolean hasSourceDocumentReference() { return sourceDocumentReference_ != null; } /** - * - * *
    * Document references of the source document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * * @return The sourceDocumentReference. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentReference getSourceDocumentReference() { - return sourceDocumentReference_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() - : sourceDocumentReference_; + return sourceDocumentReference_ == null ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : sourceDocumentReference_; } /** - * - * *
    * Document references of the source document.
    * 
@@ -326,24 +279,18 @@ public com.google.cloud.contentwarehouse.v1.DocumentReference getSourceDocumentR * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder - getSourceDocumentReferenceOrBuilder() { - return sourceDocumentReference_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() - : sourceDocumentReference_; + public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getSourceDocumentReferenceOrBuilder() { + return sourceDocumentReference_ == null ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : sourceDocumentReference_; } public static final int TARGET_DOCUMENT_REFERENCE_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.DocumentReference targetDocumentReference_; /** - * - * *
    * Document references of the target document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * * @return Whether the targetDocumentReference field is set. */ @java.lang.Override @@ -351,25 +298,18 @@ public boolean hasTargetDocumentReference() { return targetDocumentReference_ != null; } /** - * - * *
    * Document references of the target document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * * @return The targetDocumentReference. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentReference getTargetDocumentReference() { - return targetDocumentReference_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() - : targetDocumentReference_; + return targetDocumentReference_ == null ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : targetDocumentReference_; } /** - * - * *
    * Document references of the target document.
    * 
@@ -377,26 +317,19 @@ public com.google.cloud.contentwarehouse.v1.DocumentReference getTargetDocumentR * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder - getTargetDocumentReferenceOrBuilder() { - return targetDocumentReference_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() - : targetDocumentReference_; + public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getTargetDocumentReferenceOrBuilder() { + return targetDocumentReference_ == null ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : targetDocumentReference_; } public static final int DESCRIPTION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Description of this document-link.
    * 
* * string description = 4; - * * @return The description. */ @java.lang.Override @@ -405,29 +338,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Description of this document-link.
    * 
* * string description = 4; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -438,15 +371,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time when the documentLink is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -454,15 +383,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time when the documentLink is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -470,14 +395,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time when the documentLink is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -487,15 +409,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the documentLink is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -503,15 +421,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the documentLink is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -519,14 +433,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the documentLink is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -536,8 +447,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 7; private int state_ = 0; /** - * - * *
    * The state of the documentlink. If target node has been deleted, the
    * link is marked as invalid. Removing a source node will result in removal
@@ -545,16 +454,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; - * * @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 documentlink. If target node has been deleted, the
    * link is marked as invalid. Removing a source node will result in removal
@@ -562,20 +467,14 @@ public int getStateValue() {
    * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DocumentLink.State getState() { - com.google.cloud.contentwarehouse.v1.DocumentLink.State result = - com.google.cloud.contentwarehouse.v1.DocumentLink.State.forNumber(state_); - return result == null - ? com.google.cloud.contentwarehouse.v1.DocumentLink.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentLink.State getState() { + com.google.cloud.contentwarehouse.v1.DocumentLink.State result = com.google.cloud.contentwarehouse.v1.DocumentLink.State.forNumber(state_); + return result == null ? com.google.cloud.contentwarehouse.v1.DocumentLink.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -587,7 +486,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_); } @@ -606,8 +506,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } - if (state_ - != com.google.cloud.contentwarehouse.v1.DocumentLink.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.contentwarehouse.v1.DocumentLink.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(7, state_); } getUnknownFields().writeTo(output); @@ -623,25 +522,27 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (sourceDocumentReference_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSourceDocumentReference()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSourceDocumentReference()); } if (targetDocumentReference_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTargetDocumentReference()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTargetDocumentReference()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } - if (state_ - != com.google.cloud.contentwarehouse.v1.DocumentLink.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + if (state_ != com.google.cloud.contentwarehouse.v1.DocumentLink.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -651,31 +552,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.contentwarehouse.v1.DocumentLink)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DocumentLink other = - (com.google.cloud.contentwarehouse.v1.DocumentLink) obj; + com.google.cloud.contentwarehouse.v1.DocumentLink other = (com.google.cloud.contentwarehouse.v1.DocumentLink) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasSourceDocumentReference() != other.hasSourceDocumentReference()) return false; if (hasSourceDocumentReference()) { - if (!getSourceDocumentReference().equals(other.getSourceDocumentReference())) return false; + if (!getSourceDocumentReference() + .equals(other.getSourceDocumentReference())) return false; } if (hasTargetDocumentReference() != other.hasTargetDocumentReference()) return false; if (hasTargetDocumentReference()) { - if (!getTargetDocumentReference().equals(other.getTargetDocumentReference())) return false; + if (!getTargetDocumentReference() + .equals(other.getTargetDocumentReference())) return false; } - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) 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 (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -717,135 +623,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DocumentLink 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.contentwarehouse.v1.DocumentLink parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentLink parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DocumentLink parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DocumentLink 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.contentwarehouse.v1.DocumentLink parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DocumentLink prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 document-link between source and target document.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentLink} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DocumentLink) com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentLink_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DocumentLink_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentLink.class, - com.google.cloud.contentwarehouse.v1.DocumentLink.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentLink.class, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DocumentLink.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(); @@ -877,9 +779,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; } @java.lang.Override @@ -898,11 +800,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentLink buildPartial() { - com.google.cloud.contentwarehouse.v1.DocumentLink result = - new com.google.cloud.contentwarehouse.v1.DocumentLink(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.DocumentLink result = new com.google.cloud.contentwarehouse.v1.DocumentLink(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -913,25 +812,27 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentLink res result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.sourceDocumentReference_ = - sourceDocumentReferenceBuilder_ == null - ? sourceDocumentReference_ - : sourceDocumentReferenceBuilder_.build(); + result.sourceDocumentReference_ = sourceDocumentReferenceBuilder_ == null + ? sourceDocumentReference_ + : sourceDocumentReferenceBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.targetDocumentReference_ = - targetDocumentReferenceBuilder_ == null - ? targetDocumentReference_ - : targetDocumentReferenceBuilder_.build(); + result.targetDocumentReference_ = targetDocumentReferenceBuilder_ == null + ? targetDocumentReference_ + : targetDocumentReferenceBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.state_ = state_; @@ -942,39 +843,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentLink 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.contentwarehouse.v1.DocumentLink) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentLink) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentLink)other); } else { super.mergeFrom(other); return this; @@ -982,8 +882,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentLink other) { - if (other == com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1035,57 +934,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getSourceDocumentReferenceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getTargetDocumentReferenceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 56 - 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( + getSourceDocumentReferenceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getTargetDocumentReferenceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + state_ = input.readEnum(); + 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) { @@ -1095,13 +992,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1111,13 +1005,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1126,8 +1020,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1137,14 +1029,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1152,8 +1045,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1163,22 +1054,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1188,7 +1075,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1198,8 +1084,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1209,14 +1093,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1226,58 +1108,41 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.DocumentReference sourceDocumentReference_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentReference, - com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, - com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> - sourceDocumentReferenceBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentReference, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> sourceDocumentReferenceBuilder_; /** - * - * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * - * + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; * @return Whether the sourceDocumentReference field is set. */ public boolean hasSourceDocumentReference() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * - * + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; * @return The sourceDocumentReference. */ public com.google.cloud.contentwarehouse.v1.DocumentReference getSourceDocumentReference() { if (sourceDocumentReferenceBuilder_ == null) { - return sourceDocumentReference_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() - : sourceDocumentReference_; + return sourceDocumentReference_ == null ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : sourceDocumentReference_; } else { return sourceDocumentReferenceBuilder_.getMessage(); } } /** - * - * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; */ - public Builder setSourceDocumentReference( - com.google.cloud.contentwarehouse.v1.DocumentReference value) { + public Builder setSourceDocumentReference(com.google.cloud.contentwarehouse.v1.DocumentReference value) { if (sourceDocumentReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1291,14 +1156,11 @@ public Builder setSourceDocumentReference( return this; } /** - * - * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; */ public Builder setSourceDocumentReference( com.google.cloud.contentwarehouse.v1.DocumentReference.Builder builderForValue) { @@ -1312,22 +1174,17 @@ public Builder setSourceDocumentReference( return this; } /** - * - * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; */ - public Builder mergeSourceDocumentReference( - com.google.cloud.contentwarehouse.v1.DocumentReference value) { + public Builder mergeSourceDocumentReference(com.google.cloud.contentwarehouse.v1.DocumentReference value) { if (sourceDocumentReferenceBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && sourceDocumentReference_ != null - && sourceDocumentReference_ - != com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + sourceDocumentReference_ != null && + sourceDocumentReference_ != com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance()) { getSourceDocumentReferenceBuilder().mergeFrom(value); } else { sourceDocumentReference_ = value; @@ -1340,14 +1197,11 @@ public Builder mergeSourceDocumentReference( return this; } /** - * - * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; */ public Builder clearSourceDocumentReference() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1360,63 +1214,48 @@ public Builder clearSourceDocumentReference() { return this; } /** - * - * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; */ - public com.google.cloud.contentwarehouse.v1.DocumentReference.Builder - getSourceDocumentReferenceBuilder() { + public com.google.cloud.contentwarehouse.v1.DocumentReference.Builder getSourceDocumentReferenceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSourceDocumentReferenceFieldBuilder().getBuilder(); } /** - * - * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; */ - public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder - getSourceDocumentReferenceOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getSourceDocumentReferenceOrBuilder() { if (sourceDocumentReferenceBuilder_ != null) { return sourceDocumentReferenceBuilder_.getMessageOrBuilder(); } else { - return sourceDocumentReference_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() - : sourceDocumentReference_; + return sourceDocumentReference_ == null ? + com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : sourceDocumentReference_; } } /** - * - * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentReference, - com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, - com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentReference, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> getSourceDocumentReferenceFieldBuilder() { if (sourceDocumentReferenceBuilder_ == null) { - sourceDocumentReferenceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentReference, - com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, - com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder>( - getSourceDocumentReference(), getParentForChildren(), isClean()); + sourceDocumentReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentReference, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder>( + getSourceDocumentReference(), + getParentForChildren(), + isClean()); sourceDocumentReference_ = null; } return sourceDocumentReferenceBuilder_; @@ -1424,58 +1263,41 @@ public Builder clearSourceDocumentReference() { private com.google.cloud.contentwarehouse.v1.DocumentReference targetDocumentReference_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentReference, - com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, - com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> - targetDocumentReferenceBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentReference, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> targetDocumentReferenceBuilder_; /** - * - * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * - * + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; * @return Whether the targetDocumentReference field is set. */ public boolean hasTargetDocumentReference() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * - * + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; * @return The targetDocumentReference. */ public com.google.cloud.contentwarehouse.v1.DocumentReference getTargetDocumentReference() { if (targetDocumentReferenceBuilder_ == null) { - return targetDocumentReference_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() - : targetDocumentReference_; + return targetDocumentReference_ == null ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : targetDocumentReference_; } else { return targetDocumentReferenceBuilder_.getMessage(); } } /** - * - * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; */ - public Builder setTargetDocumentReference( - com.google.cloud.contentwarehouse.v1.DocumentReference value) { + public Builder setTargetDocumentReference(com.google.cloud.contentwarehouse.v1.DocumentReference value) { if (targetDocumentReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1489,14 +1311,11 @@ public Builder setTargetDocumentReference( return this; } /** - * - * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; */ public Builder setTargetDocumentReference( com.google.cloud.contentwarehouse.v1.DocumentReference.Builder builderForValue) { @@ -1510,22 +1329,17 @@ public Builder setTargetDocumentReference( return this; } /** - * - * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; */ - public Builder mergeTargetDocumentReference( - com.google.cloud.contentwarehouse.v1.DocumentReference value) { + public Builder mergeTargetDocumentReference(com.google.cloud.contentwarehouse.v1.DocumentReference value) { if (targetDocumentReferenceBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && targetDocumentReference_ != null - && targetDocumentReference_ - != com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + targetDocumentReference_ != null && + targetDocumentReference_ != com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance()) { getTargetDocumentReferenceBuilder().mergeFrom(value); } else { targetDocumentReference_ = value; @@ -1538,14 +1352,11 @@ public Builder mergeTargetDocumentReference( return this; } /** - * - * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; */ public Builder clearTargetDocumentReference() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1558,63 +1369,48 @@ public Builder clearTargetDocumentReference() { return this; } /** - * - * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; */ - public com.google.cloud.contentwarehouse.v1.DocumentReference.Builder - getTargetDocumentReferenceBuilder() { + public com.google.cloud.contentwarehouse.v1.DocumentReference.Builder getTargetDocumentReferenceBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTargetDocumentReferenceFieldBuilder().getBuilder(); } /** - * - * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; */ - public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder - getTargetDocumentReferenceOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getTargetDocumentReferenceOrBuilder() { if (targetDocumentReferenceBuilder_ != null) { return targetDocumentReferenceBuilder_.getMessageOrBuilder(); } else { - return targetDocumentReference_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() - : targetDocumentReference_; + return targetDocumentReference_ == null ? + com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : targetDocumentReference_; } } /** - * - * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentReference, - com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, - com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentReference, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> getTargetDocumentReferenceFieldBuilder() { if (targetDocumentReferenceBuilder_ == null) { - targetDocumentReferenceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentReference, - com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, - com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder>( - getTargetDocumentReference(), getParentForChildren(), isClean()); + targetDocumentReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentReference, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder>( + getTargetDocumentReference(), + getParentForChildren(), + isClean()); targetDocumentReference_ = null; } return targetDocumentReferenceBuilder_; @@ -1622,20 +1418,18 @@ public Builder clearTargetDocumentReference() { private java.lang.Object description_ = ""; /** - * - * *
      * Description of this document-link.
      * 
* * string description = 4; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1644,21 +1438,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Description of this document-link.
      * 
* * string description = 4; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1666,35 +1459,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Description of this document-link.
      * 
* * string description = 4; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Description of this document-link.
      * 
* * string description = 4; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1704,21 +1490,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Description of this document-link.
      * 
* * string description = 4; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000008; @@ -1728,58 +1510,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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_; /** - * - * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1795,17 +1558,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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 { @@ -1816,21 +1576,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1843,15 +1599,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1864,15 +1616,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1880,48 +1628,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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_; @@ -1929,58 +1665,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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. The time when the documentLink is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. The time when the documentLink is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the documentLink is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1996,17 +1713,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the documentLink is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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 { @@ -2017,21 +1731,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the documentLink is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2044,15 +1754,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the documentLink is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2065,15 +1771,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the documentLink is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000020; @@ -2081,48 +1783,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the documentLink is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the documentLink is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> 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_; @@ -2130,8 +1820,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * The state of the documentlink. If target node has been deleted, the
      * link is marked as invalid. Removing a source node will result in removal
@@ -2139,16 +1827,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; - * * @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 documentlink. If target node has been deleted, the
      * link is marked as invalid. Removing a source node will result in removal
@@ -2156,7 +1840,6 @@ public int getStateValue() {
      * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2167,8 +1850,6 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the documentlink. If target node has been deleted, the
      * link is marked as invalid. Removing a source node will result in removal
@@ -2176,20 +1857,14 @@ public Builder setStateValue(int value) {
      * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; - * * @return The state. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentLink.State getState() { - com.google.cloud.contentwarehouse.v1.DocumentLink.State result = - com.google.cloud.contentwarehouse.v1.DocumentLink.State.forNumber(state_); - return result == null - ? com.google.cloud.contentwarehouse.v1.DocumentLink.State.UNRECOGNIZED - : result; + com.google.cloud.contentwarehouse.v1.DocumentLink.State result = com.google.cloud.contentwarehouse.v1.DocumentLink.State.forNumber(state_); + return result == null ? com.google.cloud.contentwarehouse.v1.DocumentLink.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the documentlink. If target node has been deleted, the
      * link is marked as invalid. Removing a source node will result in removal
@@ -2197,7 +1872,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.State getState() {
      * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2211,8 +1885,6 @@ public Builder setState(com.google.cloud.contentwarehouse.v1.DocumentLink.State return this; } /** - * - * *
      * The state of the documentlink. If target node has been deleted, the
      * link is marked as invalid. Removing a source node will result in removal
@@ -2220,7 +1892,6 @@ public Builder setState(com.google.cloud.contentwarehouse.v1.DocumentLink.State
      * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; - * * @return This builder for chaining. */ public Builder clearState() { @@ -2229,9 +1900,9 @@ public Builder clearState() { 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); } @@ -2241,12 +1912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DocumentLink) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DocumentLink) private static final com.google.cloud.contentwarehouse.v1.DocumentLink DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DocumentLink(); } @@ -2255,27 +1926,27 @@ public static com.google.cloud.contentwarehouse.v1.DocumentLink getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DocumentLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2290,4 +1961,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DocumentLink getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java similarity index 79% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java index bf1e03857bbe..7ba1835d2839 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.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/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; -public interface DocumentLinkOrBuilder - extends +public interface DocumentLinkOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DocumentLink) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of this document-link.
    * It is required that the parent derived form the name to be consistent with
@@ -35,13 +17,10 @@ public interface DocumentLinkOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of this document-link.
    * It is required that the parent derived form the name to be consistent with
@@ -51,187 +30,140 @@ public interface DocumentLinkOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Document references of the source document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * * @return Whether the sourceDocumentReference field is set. */ boolean hasSourceDocumentReference(); /** - * - * *
    * Document references of the source document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; - * * @return The sourceDocumentReference. */ com.google.cloud.contentwarehouse.v1.DocumentReference getSourceDocumentReference(); /** - * - * *
    * Document references of the source document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; */ - com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder - getSourceDocumentReferenceOrBuilder(); + com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getSourceDocumentReferenceOrBuilder(); /** - * - * *
    * Document references of the target document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * * @return Whether the targetDocumentReference field is set. */ boolean hasTargetDocumentReference(); /** - * - * *
    * Document references of the target document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; - * * @return The targetDocumentReference. */ com.google.cloud.contentwarehouse.v1.DocumentReference getTargetDocumentReference(); /** - * - * *
    * Document references of the target document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; */ - com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder - getTargetDocumentReferenceOrBuilder(); + com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getTargetDocumentReferenceOrBuilder(); /** - * - * *
    * Description of this document-link.
    * 
* * string description = 4; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Description of this document-link.
    * 
* * string description = 4; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The time when the documentLink is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time when the documentLink is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time when the documentLink is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time when the documentLink is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the documentLink is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the documentLink is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The state of the documentlink. If target node has been deleted, the
    * link is marked as invalid. Removing a source node will result in removal
@@ -239,13 +171,10 @@ public interface DocumentLinkOrBuilder
    * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the documentlink. If target node has been deleted, the
    * link is marked as invalid. Removing a source node will result in removal
@@ -253,7 +182,6 @@ public interface DocumentLinkOrBuilder
    * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; - * * @return The state. */ com.google.cloud.contentwarehouse.v1.DocumentLink.State getState(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java new file mode 100644 index 000000000000..4eddb4bca449 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java @@ -0,0 +1,221 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_link_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class DocumentLinkServiceProto { + private DocumentLinkServiceProto() {} + 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_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DocumentLink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_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 * The resource name of the document. * Format: @@ -35,13 +17,10 @@ public interface DocumentOrBuilder *
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the document.
    * Format:
@@ -51,39 +30,32 @@ public interface DocumentOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The reference ID set by customers. Must be unique per project and location.
    * 
* * string reference_id = 11; - * * @return The referenceId. */ java.lang.String getReferenceId(); /** - * - * *
    * The reference ID set by customers. Must be unique per project and location.
    * 
* * string reference_id = 11; - * * @return The bytes for referenceId. */ - com.google.protobuf.ByteString getReferenceIdBytes(); + com.google.protobuf.ByteString + getReferenceIdBytes(); /** - * - * *
    * Required. Display name of the document given by the user. This name will be
    * displayed in the UI. Customer can populate this field with the name of the
@@ -92,13 +64,10 @@ public interface DocumentOrBuilder
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Display name of the document given by the user. This name will be
    * displayed in the UI. Customer can populate this field with the name of the
@@ -107,66 +76,54 @@ public interface DocumentOrBuilder
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Title that describes the document.
    * This can be the top heading or text that describes the document.
    * 
* * string title = 18; - * * @return The title. */ java.lang.String getTitle(); /** - * - * *
    * Title that describes the document.
    * This can be the top heading or text that describes the document.
    * 
* * string title = 18; - * * @return The bytes for title. */ - com.google.protobuf.ByteString getTitleBytes(); + com.google.protobuf.ByteString + getTitleBytes(); /** - * - * *
    * Uri to display the document, for example, in the UI.
    * 
* * string display_uri = 17; - * * @return The displayUri. */ java.lang.String getDisplayUri(); /** - * - * *
    * Uri to display the document, for example, in the UI.
    * 
* * string display_uri = 17; - * * @return The bytes for displayUri. */ - com.google.protobuf.ByteString getDisplayUriBytes(); + com.google.protobuf.ByteString + getDisplayUriBytes(); /** - * - * *
    * The Document schema name.
    * Format:
@@ -174,13 +131,10 @@ public interface DocumentOrBuilder
    * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } - * * @return The documentSchemaName. */ java.lang.String getDocumentSchemaName(); /** - * - * *
    * The Document schema name.
    * Format:
@@ -188,75 +142,59 @@ public interface DocumentOrBuilder
    * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for documentSchemaName. */ - com.google.protobuf.ByteString getDocumentSchemaNameBytes(); + com.google.protobuf.ByteString + getDocumentSchemaNameBytes(); /** - * - * *
    * Other document format, such as PPTX, XLXS
    * 
* * string plain_text = 15; - * * @return Whether the plainText field is set. */ boolean hasPlainText(); /** - * - * *
    * Other document format, such as PPTX, XLXS
    * 
* * string plain_text = 15; - * * @return The plainText. */ java.lang.String getPlainText(); /** - * - * *
    * Other document format, such as PPTX, XLXS
    * 
* * string plain_text = 15; - * * @return The bytes for plainText. */ - com.google.protobuf.ByteString getPlainTextBytes(); + com.google.protobuf.ByteString + getPlainTextBytes(); /** - * - * *
    * Document AI format to save the structured content, including OCR.
    * 
* * .google.cloud.documentai.v1.Document cloud_ai_document = 4; - * * @return Whether the cloudAiDocument field is set. */ boolean hasCloudAiDocument(); /** - * - * *
    * Document AI format to save the structured content, including OCR.
    * 
* * .google.cloud.documentai.v1.Document cloud_ai_document = 4; - * * @return The cloudAiDocument. */ com.google.cloud.documentai.v1.Document getCloudAiDocument(); /** - * - * *
    * Document AI format to save the structured content, including OCR.
    * 
@@ -266,111 +204,87 @@ public interface DocumentOrBuilder com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuilder(); /** - * - * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. See - * google/cloud/contentwarehouse/v1/document.proto;l=79 + * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. + * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @return The structuredContentUri. */ - @java.lang.Deprecated - java.lang.String getStructuredContentUri(); + @java.lang.Deprecated java.lang.String getStructuredContentUri(); /** - * - * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. See - * google/cloud/contentwarehouse/v1/document.proto;l=79 + * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. + * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @return The bytes for structuredContentUri. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getStructuredContentUriBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getStructuredContentUriBytes(); /** - * - * *
    * Raw document file in Cloud Storage path.
    * 
* * string raw_document_path = 5; - * * @return Whether the rawDocumentPath field is set. */ boolean hasRawDocumentPath(); /** - * - * *
    * Raw document file in Cloud Storage path.
    * 
* * string raw_document_path = 5; - * * @return The rawDocumentPath. */ java.lang.String getRawDocumentPath(); /** - * - * *
    * Raw document file in Cloud Storage path.
    * 
* * string raw_document_path = 5; - * * @return The bytes for rawDocumentPath. */ - com.google.protobuf.ByteString getRawDocumentPathBytes(); + com.google.protobuf.ByteString + getRawDocumentPathBytes(); /** - * - * *
    * Raw document content.
    * 
* * bytes inline_raw_document = 6; - * * @return Whether the inlineRawDocument field is set. */ boolean hasInlineRawDocument(); /** - * - * *
    * Raw document content.
    * 
* * bytes inline_raw_document = 6; - * * @return The inlineRawDocument. */ com.google.protobuf.ByteString getInlineRawDocument(); /** - * - * *
    * List of values that are user supplied metadata.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - java.util.List getPropertiesList(); + java.util.List + getPropertiesList(); /** - * - * *
    * List of values that are user supplied metadata.
    * 
@@ -379,8 +293,6 @@ public interface DocumentOrBuilder */ com.google.cloud.contentwarehouse.v1.Property getProperties(int index); /** - * - * *
    * List of values that are user supplied metadata.
    * 
@@ -389,106 +301,79 @@ public interface DocumentOrBuilder */ int getPropertiesCount(); /** - * - * *
    * List of values that are user supplied metadata.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - java.util.List + java.util.List getPropertiesOrBuilderList(); /** - * - * *
    * List of values that are user supplied metadata.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder( + int index); /** - * - * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * This is used when DocAI was not used to load the document and parsing/
    * extracting is needed for the inline_raw_document.  For example, if
@@ -497,13 +382,10 @@ public interface DocumentOrBuilder
    * 
* * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; - * * @return The enum numeric value on the wire for rawDocumentFileType. */ int getRawDocumentFileTypeValue(); /** - * - * *
    * This is used when DocAI was not used to load the document and parsing/
    * extracting is needed for the inline_raw_document.  For example, if
@@ -512,184 +394,139 @@ public interface DocumentOrBuilder
    * 
* * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; - * * @return The rawDocumentFileType. */ com.google.cloud.contentwarehouse.v1.RawDocumentFileType getRawDocumentFileType(); /** - * - * *
    * If true, makes the document visible to asynchronous policies and rules.
    * 
* * bool async_enabled = 12 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. See - * google/cloud/contentwarehouse/v1/document.proto;l=108 + * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. + * See google/cloud/contentwarehouse/v1/document.proto;l=108 * @return The asyncEnabled. */ - @java.lang.Deprecated - boolean getAsyncEnabled(); + @java.lang.Deprecated boolean getAsyncEnabled(); /** - * - * *
    * Indicates the category (image, audio, video etc.) of the original content.
    * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; - * * @return The enum numeric value on the wire for contentCategory. */ int getContentCategoryValue(); /** - * - * *
    * Indicates the category (image, audio, video etc.) of the original content.
    * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; - * * @return The contentCategory. */ com.google.cloud.contentwarehouse.v1.ContentCategory getContentCategory(); /** - * - * *
    * If true, text extraction will not be performed.
    * 
* * bool text_extraction_disabled = 19 [deprecated = true]; - * * @deprecated google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=114 * @return The textExtractionDisabled. */ - @java.lang.Deprecated - boolean getTextExtractionDisabled(); + @java.lang.Deprecated boolean getTextExtractionDisabled(); /** - * - * *
    * If true, text extraction will be performed.
    * 
* * bool text_extraction_enabled = 21; - * * @return The textExtractionEnabled. */ boolean getTextExtractionEnabled(); /** - * - * *
    * The user who creates the document.
    * 
* * string creator = 13; - * * @return The creator. */ java.lang.String getCreator(); /** - * - * *
    * The user who creates the document.
    * 
* * string creator = 13; - * * @return The bytes for creator. */ - com.google.protobuf.ByteString getCreatorBytes(); + com.google.protobuf.ByteString + getCreatorBytes(); /** - * - * *
    * The user who lastly updates the document.
    * 
* * string updater = 14; - * * @return The updater. */ java.lang.String getUpdater(); /** - * - * *
    * The user who lastly updates the document.
    * 
* * string updater = 14; - * * @return The bytes for updater. */ - com.google.protobuf.ByteString getUpdaterBytes(); + com.google.protobuf.ByteString + getUpdaterBytes(); /** - * - * *
    * Output only. If linked to a Collection with RetentionPolicy, the date when
    * the document becomes mutable.
    * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dispositionTime field is set. */ boolean hasDispositionTime(); /** - * - * *
    * Output only. If linked to a Collection with RetentionPolicy, the date when
    * the document becomes mutable.
    * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dispositionTime. */ com.google.protobuf.Timestamp getDispositionTime(); /** - * - * *
    * Output only. If linked to a Collection with RetentionPolicy, the date when
    * the document becomes mutable.
    * 
* - * - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDispositionTimeOrBuilder(); /** - * - * *
    * Output only. Indicates if the document has a legal hold on it.
    * 
* * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The legalHold. */ boolean getLegalHold(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java new file mode 100644 index 000000000000..c1a447fbbe10 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java @@ -0,0 +1,318 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document.proto + +package com.google.cloud.contentwarehouse.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_contentwarehouse_v1_Document_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_Value_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_EnumValue_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/contentwarehouse/v1/docum" + + "ent.proto\022 google.cloud.contentwarehouse" + + ".v1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032)google/cloud/do" + + "cumentai/v1/document.proto\032\037google/proto" + + "buf/timestamp.proto\032\032google/type/datetim" + + "e.proto\"\211\t\n\010Document\022\014\n\004name\030\001 \001(\t\022\024\n\014re" + + "ference_id\030\013 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004" + + "\342A\001\002\022\r\n\005title\030\022 \001(\t\022\023\n\013display_uri\030\021 \001(\t" + + "\022Q\n\024document_schema_name\030\003 \001(\tB3\372A0\n.con" + + "tentwarehouse.googleapis.com/DocumentSch" + + "ema\022\024\n\nplain_text\030\017 \001(\tH\000\022A\n\021cloud_ai_do" + + "cument\030\004 \001(\0132$.google.cloud.documentai.v" + + "1.DocumentH\000\022\"\n\026structured_content_uri\030\020" + + " \001(\tB\002\030\001\022\033\n\021raw_document_path\030\005 \001(\tH\001\022\035\n" + + "\023inline_raw_document\030\006 \001(\014H\001\022>\n\nproperti" + + "es\030\007 \003(\0132*.google.cloud.contentwarehouse" + + ".v1.Property\0225\n\013update_time\030\010 \001(\0132\032.goog" + + "le.protobuf.TimestampB\004\342A\001\003\0225\n\013create_ti" + + "me\030\t \001(\0132\032.google.protobuf.TimestampB\004\342A" + + "\001\003\022U\n\026raw_document_file_type\030\n \001(\01625.goo" + + "gle.cloud.contentwarehouse.v1.RawDocumen" + + "tFileType\022\031\n\rasync_enabled\030\014 \001(\010B\002\030\001\022K\n\020" + + "content_category\030\024 \001(\01621.google.cloud.co" + + "ntentwarehouse.v1.ContentCategory\022$\n\030tex" + + "t_extraction_disabled\030\023 \001(\010B\002\030\001\022\037\n\027text_" + + "extraction_enabled\030\025 \001(\010\022\017\n\007creator\030\r \001(" + + "\t\022\017\n\007updater\030\016 \001(\t\022:\n\020disposition_time\030\026" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\030" + + "\n\nlegal_hold\030\027 \001(\010B\004\342A\001\003:\272\001\352A\266\001\n(content" + + "warehouse.googleapis.com/Document\022\n\nproperties\030\001 \003" + + "(\0132*.google.cloud.contentwarehouse.v1.Pr" + + "operty\"\260\001\n\013MapProperty\022I\n\006fields\030\001 \003(\01329" + + ".google.cloud.contentwarehouse.v1.MapPro" + + "perty.FieldsEntry\032V\n\013FieldsEntry\022\013\n\003key\030" + + "\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google.cloud.cont" + + "entwarehouse.v1.Value:\0028\001\"\255\002\n\005Value\022\025\n\013f" + + "loat_value\030\001 \001(\002H\000\022\023\n\tint_value\030\002 \001(\005H\000\022" + + "\026\n\014string_value\030\003 \001(\tH\000\022A\n\nenum_value\030\004 " + + "\001(\0132+.google.cloud.contentwarehouse.v1.E" + + "numValueH\000\022/\n\016datetime_value\030\005 \001(\0132\025.goo" + + "gle.type.DateTimeH\000\022K\n\017timestamp_value\030\006" + + " \001(\01320.google.cloud.contentwarehouse.v1." + + "TimestampValueH\000\022\027\n\rboolean_value\030\007 \001(\010H" + + "\000B\006\n\004kind\"\032\n\tEnumValue\022\r\n\005value\030\001 \001(\t*\202\002" + + "\n\023RawDocumentFileType\022&\n\"RAW_DOCUMENT_FI" + + "LE_TYPE_UNSPECIFIED\020\000\022\036\n\032RAW_DOCUMENT_FI" + + "LE_TYPE_PDF\020\001\022\037\n\033RAW_DOCUMENT_FILE_TYPE_" + + "DOCX\020\002\022\037\n\033RAW_DOCUMENT_FILE_TYPE_XLSX\020\003\022" + + "\037\n\033RAW_DOCUMENT_FILE_TYPE_PPTX\020\004\022\037\n\033RAW_" + + "DOCUMENT_FILE_TYPE_TEXT\020\005\022\037\n\033RAW_DOCUMEN" + + "T_FILE_TYPE_TIFF\020\006*\207\001\n\017ContentCategory\022 " + + "\n\034CONTENT_CATEGORY_UNSPECIFIED\020\000\022\032\n\026CONT" + + "ENT_CATEGORY_IMAGE\020\001\022\032\n\026CONTENT_CATEGORY" + + "_AUDIO\020\002\022\032\n\026CONTENT_CATEGORY_VIDEO\020\003B\365\001\n" + + "$com.google.cloud.contentwarehouse.v1B\rD" + + "ocumentProtoP\001ZPcloud.google.com/go/cont" + + "entwarehouse/apiv1/contentwarehousepb;co" + + "ntentwarehousepb\252\002 Google.Cloud.ContentW" + + "arehouse.V1\312\002 Google\\Cloud\\ContentWareho" + + "use\\V1\352\002#Google::Cloud::ContentWarehouse" + + "::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.documentai.v1.DocumentProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateTimeProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_Document_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_Document_descriptor, + new java.lang.String[] { "Name", "ReferenceId", "DisplayName", "Title", "DisplayUri", "DocumentSchemaName", "PlainText", "CloudAiDocument", "StructuredContentUri", "RawDocumentPath", "InlineRawDocument", "Properties", "UpdateTime", "CreateTime", "RawDocumentFileType", "AsyncEnabled", "ContentCategory", "TextExtractionDisabled", "TextExtractionEnabled", "Creator", "Updater", "DispositionTime", "LegalHold", "StructuredContent", "RawDocument", }); + internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor, + new java.lang.String[] { "DocumentName", "DisplayName", "Snippet", "DocumentIsFolder", "UpdateTime", "CreateTime", "DeleteTime", "DocumentIsRetentionFolder", "DocumentIsLegalHoldFolder", }); + internal_static_google_cloud_contentwarehouse_v1_Property_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_Property_descriptor, + new java.lang.String[] { "Name", "IntegerValues", "FloatValues", "TextValues", "EnumValues", "PropertyValues", "DateTimeValues", "MapProperty", "TimestampValues", "Values", }); + internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor, + new java.lang.String[] { "Values", }); + internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor, + new java.lang.String[] { "Values", }); + internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor, + new java.lang.String[] { "Values", }); + internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor, + new java.lang.String[] { "Values", }); + internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor, + new java.lang.String[] { "Values", }); + internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor, + new java.lang.String[] { "Values", }); + internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor, + new java.lang.String[] { "TimestampValue", "TextValue", "Value", }); + internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor, + new java.lang.String[] { "Properties", }); + internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor, + new java.lang.String[] { "Fields", }); + internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor = + internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_contentwarehouse_v1_Value_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_Value_descriptor, + new java.lang.String[] { "FloatValue", "IntValue", "StringValue", "EnumValue", "DatetimeValue", "TimestampValue", "BooleanValue", "Kind", }); + internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_contentwarehouse_v1_EnumValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor, + new java.lang.String[] { "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.documentai.v1.DocumentProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateTimeProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java similarity index 82% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java index c8baf8b88c56..3e20ec687b24 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java @@ -1,74 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -/** Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentQuery} */ -public final class DocumentQuery extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentQuery} + */ +public final class DocumentQuery extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DocumentQuery) DocumentQueryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentQuery.newBuilder() to construct. private DocumentQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentQuery() { query_ = ""; customPropertyFilter_ = ""; timeFilters_ = java.util.Collections.emptyList(); - documentSchemaNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documentSchemaNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); propertyFilter_ = java.util.Collections.emptyList(); folderNameFilter_ = ""; - documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); - queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList(); - documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documentNameFilter_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + queryContext_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + documentCreatorFilter_ = + 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 DocumentQuery(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentQuery.class, - com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentQuery.class, com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder.class); } public static final int QUERY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** - * - * *
    * The query string that matches against the full text of the document and
    * the searchable properties.
@@ -117,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string query = 1; - * * @return The query. */ @java.lang.Override @@ -126,15 +111,14 @@ 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; } } /** - * - * *
    * The query string that matches against the full text of the document and
    * the searchable properties.
@@ -183,15 +167,16 @@ public java.lang.String getQuery() {
    * 
* * string query = 1; - * * @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 { @@ -202,8 +187,6 @@ public com.google.protobuf.ByteString getQueryBytes() { public static final int IS_NL_QUERY_FIELD_NUMBER = 12; private boolean isNlQuery_ = false; /** - * - * *
    * Experimental, do not use.
    * If the query is a natural language question. False by default. If true,
@@ -215,7 +198,6 @@ public com.google.protobuf.ByteString getQueryBytes() {
    * 
* * bool is_nl_query = 12; - * * @return The isNlQuery. */ @java.lang.Override @@ -224,12 +206,9 @@ public boolean getIsNlQuery() { } public static final int CUSTOM_PROPERTY_FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object customPropertyFilter_ = ""; /** - * - * *
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -253,27 +232,24 @@ public boolean getIsNlQuery() {
    * 
* * string custom_property_filter = 4 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is - * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return The customPropertyFilter. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getCustomPropertyFilter() { + @java.lang.Deprecated public java.lang.String getCustomPropertyFilter() { java.lang.Object ref = customPropertyFilter_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customPropertyFilter_ = s; return s; } } /** - * - * *
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -297,18 +273,18 @@ public java.lang.String getCustomPropertyFilter() {
    * 
* * string custom_property_filter = 4 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is - * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return The bytes for customPropertyFilter. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getCustomPropertyFilterBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getCustomPropertyFilterBytes() { java.lang.Object ref = customPropertyFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customPropertyFilter_ = b; return b; } else { @@ -317,12 +293,9 @@ public com.google.protobuf.ByteString getCustomPropertyFilterBytes() { } public static final int TIME_FILTERS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List timeFilters_; /** - * - * *
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -335,8 +308,6 @@ public java.util.List getTimeFi
     return timeFilters_;
   }
   /**
-   *
-   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -345,13 +316,11 @@ public java.util.List getTimeFi
    * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTimeFiltersOrBuilderList() {
     return timeFilters_;
   }
   /**
-   *
-   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -364,8 +333,6 @@ public int getTimeFiltersCount() {
     return timeFilters_.size();
   }
   /**
-   *
-   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -378,8 +345,6 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter getTimeFilters(int index)
     return timeFilters_.get(index);
   }
   /**
-   *
-   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -394,13 +359,10 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
   }
 
   public static final int DOCUMENT_SCHEMA_NAMES_FIELD_NUMBER = 6;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList documentSchemaNames_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -415,15 +377,13 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
    * 
* * repeated string document_schema_names = 6; - * * @return A list containing the documentSchemaNames. */ - public com.google.protobuf.ProtocolStringList getDocumentSchemaNamesList() { + public com.google.protobuf.ProtocolStringList + getDocumentSchemaNamesList() { return documentSchemaNames_; } /** - * - * *
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -438,15 +398,12 @@ public com.google.protobuf.ProtocolStringList getDocumentSchemaNamesList() {
    * 
* * repeated string document_schema_names = 6; - * * @return The count of documentSchemaNames. */ public int getDocumentSchemaNamesCount() { return documentSchemaNames_.size(); } /** - * - * *
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -461,7 +418,6 @@ public int getDocumentSchemaNamesCount() {
    * 
* * repeated string document_schema_names = 6; - * * @param index The index of the element to return. * @return The documentSchemaNames at the given index. */ @@ -469,8 +425,6 @@ public java.lang.String getDocumentSchemaNames(int index) { return documentSchemaNames_.get(index); } /** - * - * *
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -485,21 +439,18 @@ public java.lang.String getDocumentSchemaNames(int index) {
    * 
* * repeated string document_schema_names = 6; - * * @param index The index of the value to return. * @return The bytes of the documentSchemaNames at the given index. */ - public com.google.protobuf.ByteString getDocumentSchemaNamesBytes(int index) { + public com.google.protobuf.ByteString + getDocumentSchemaNamesBytes(int index) { return documentSchemaNames_.getByteString(index); } public static final int PROPERTY_FILTER_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private java.util.List propertyFilter_; /** - * - * *
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -509,13 +460,10 @@ public com.google.protobuf.ByteString getDocumentSchemaNamesBytes(int index) {
    * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
    */
   @java.lang.Override
-  public java.util.List
-      getPropertyFilterList() {
+  public java.util.List getPropertyFilterList() {
     return propertyFilter_;
   }
   /**
-   *
-   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -525,13 +473,11 @@ public com.google.protobuf.ByteString getDocumentSchemaNamesBytes(int index) {
    * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPropertyFilterOrBuilderList() {
     return propertyFilter_;
   }
   /**
-   *
-   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -545,8 +491,6 @@ public int getPropertyFilterCount() {
     return propertyFilter_.size();
   }
   /**
-   *
-   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -560,8 +504,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter getPropertyFilter(int
     return propertyFilter_.get(index);
   }
   /**
-   *
-   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -579,8 +521,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyF
   public static final int FILE_TYPE_FILTER_FIELD_NUMBER = 8;
   private com.google.cloud.contentwarehouse.v1.FileTypeFilter fileTypeFilter_;
   /**
-   *
-   *
    * 
    * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
    * If FOLDER or FILE is specified, then only either folders or files will be
@@ -591,7 +531,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyF
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8; - * * @return Whether the fileTypeFilter field is set. */ @java.lang.Override @@ -599,8 +538,6 @@ public boolean hasFileTypeFilter() { return fileTypeFilter_ != null; } /** - * - * *
    * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
    * If FOLDER or FILE is specified, then only either folders or files will be
@@ -611,18 +548,13 @@ public boolean hasFileTypeFilter() {
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8; - * * @return The fileTypeFilter. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.FileTypeFilter getFileTypeFilter() { - return fileTypeFilter_ == null - ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance() - : fileTypeFilter_; + return fileTypeFilter_ == null ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance() : fileTypeFilter_; } /** - * - * *
    * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
    * If FOLDER or FILE is specified, then only either folders or files will be
@@ -636,18 +568,13 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter getFileTypeFilter() {
    */
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeFilterOrBuilder() {
-    return fileTypeFilter_ == null
-        ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance()
-        : fileTypeFilter_;
+    return fileTypeFilter_ == null ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance() : fileTypeFilter_;
   }
 
   public static final int FOLDER_NAME_FILTER_FIELD_NUMBER = 9;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object folderNameFilter_ = "";
   /**
-   *
-   *
    * 
    * Search all the documents under this specified folder.
    * Format:
@@ -655,7 +582,6 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeF
    * 
* * string folder_name_filter = 9; - * * @return The folderNameFilter. */ @java.lang.Override @@ -664,15 +590,14 @@ public java.lang.String getFolderNameFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderNameFilter_ = s; return s; } } /** - * - * *
    * Search all the documents under this specified folder.
    * Format:
@@ -680,15 +605,16 @@ public java.lang.String getFolderNameFilter() {
    * 
* * string folder_name_filter = 9; - * * @return The bytes for folderNameFilter. */ @java.lang.Override - public com.google.protobuf.ByteString getFolderNameFilterBytes() { + public com.google.protobuf.ByteString + getFolderNameFilterBytes() { java.lang.Object ref = folderNameFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); folderNameFilter_ = b; return b; } else { @@ -697,13 +623,10 @@ public com.google.protobuf.ByteString getFolderNameFilterBytes() { } public static final int DOCUMENT_NAME_FILTER_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Search the documents in the list.
    * Format:
@@ -711,15 +634,13 @@ public com.google.protobuf.ByteString getFolderNameFilterBytes() {
    * 
* * repeated string document_name_filter = 14; - * * @return A list containing the documentNameFilter. */ - public com.google.protobuf.ProtocolStringList getDocumentNameFilterList() { + public com.google.protobuf.ProtocolStringList + getDocumentNameFilterList() { return documentNameFilter_; } /** - * - * *
    * Search the documents in the list.
    * Format:
@@ -727,15 +648,12 @@ public com.google.protobuf.ProtocolStringList getDocumentNameFilterList() {
    * 
* * repeated string document_name_filter = 14; - * * @return The count of documentNameFilter. */ public int getDocumentNameFilterCount() { return documentNameFilter_.size(); } /** - * - * *
    * Search the documents in the list.
    * Format:
@@ -743,7 +661,6 @@ public int getDocumentNameFilterCount() {
    * 
* * repeated string document_name_filter = 14; - * * @param index The index of the element to return. * @return The documentNameFilter at the given index. */ @@ -751,8 +668,6 @@ public java.lang.String getDocumentNameFilter(int index) { return documentNameFilter_.get(index); } /** - * - * *
    * Search the documents in the list.
    * Format:
@@ -760,22 +675,19 @@ public java.lang.String getDocumentNameFilter(int index) {
    * 
* * repeated string document_name_filter = 14; - * * @param index The index of the value to return. * @return The bytes of the documentNameFilter at the given index. */ - public com.google.protobuf.ByteString getDocumentNameFilterBytes(int index) { + public com.google.protobuf.ByteString + getDocumentNameFilterBytes(int index) { return documentNameFilter_.getByteString(index); } public static final int QUERY_CONTEXT_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -787,15 +699,13 @@ public com.google.protobuf.ByteString getDocumentNameFilterBytes(int index) {
    * 
* * repeated string query_context = 10; - * * @return A list containing the queryContext. */ - public com.google.protobuf.ProtocolStringList getQueryContextList() { + public com.google.protobuf.ProtocolStringList + getQueryContextList() { return queryContext_; } /** - * - * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -807,15 +717,12 @@ public com.google.protobuf.ProtocolStringList getQueryContextList() {
    * 
* * repeated string query_context = 10; - * * @return The count of queryContext. */ public int getQueryContextCount() { return queryContext_.size(); } /** - * - * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -827,7 +734,6 @@ public int getQueryContextCount() {
    * 
* * repeated string query_context = 10; - * * @param index The index of the element to return. * @return The queryContext at the given index. */ @@ -835,8 +741,6 @@ public java.lang.String getQueryContext(int index) { return queryContext_.get(index); } /** - * - * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -848,22 +752,19 @@ public java.lang.String getQueryContext(int index) {
    * 
* * repeated string query_context = 10; - * * @param index The index of the value to return. * @return The bytes of the queryContext at the given index. */ - public com.google.protobuf.ByteString getQueryContextBytes(int index) { + public com.google.protobuf.ByteString + getQueryContextBytes(int index) { return queryContext_.getByteString(index); } public static final int DOCUMENT_CREATOR_FILTER_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The exact creator(s) of the documents to search against.
    *
@@ -874,15 +775,13 @@ public com.google.protobuf.ByteString getQueryContextBytes(int index) {
    * 
* * repeated string document_creator_filter = 11; - * * @return A list containing the documentCreatorFilter. */ - public com.google.protobuf.ProtocolStringList getDocumentCreatorFilterList() { + public com.google.protobuf.ProtocolStringList + getDocumentCreatorFilterList() { return documentCreatorFilter_; } /** - * - * *
    * The exact creator(s) of the documents to search against.
    *
@@ -893,15 +792,12 @@ public com.google.protobuf.ProtocolStringList getDocumentCreatorFilterList() {
    * 
* * repeated string document_creator_filter = 11; - * * @return The count of documentCreatorFilter. */ public int getDocumentCreatorFilterCount() { return documentCreatorFilter_.size(); } /** - * - * *
    * The exact creator(s) of the documents to search against.
    *
@@ -912,7 +808,6 @@ public int getDocumentCreatorFilterCount() {
    * 
* * repeated string document_creator_filter = 11; - * * @param index The index of the element to return. * @return The documentCreatorFilter at the given index. */ @@ -920,8 +815,6 @@ public java.lang.String getDocumentCreatorFilter(int index) { return documentCreatorFilter_.get(index); } /** - * - * *
    * The exact creator(s) of the documents to search against.
    *
@@ -932,19 +825,17 @@ public java.lang.String getDocumentCreatorFilter(int index) {
    * 
* * repeated string document_creator_filter = 11; - * * @param index The index of the value to return. * @return The bytes of the documentCreatorFilter at the given index. */ - public com.google.protobuf.ByteString getDocumentCreatorFilterBytes(int index) { + public com.google.protobuf.ByteString + getDocumentCreatorFilterBytes(int index) { return documentCreatorFilter_.getByteString(index); } public static final int CUSTOM_WEIGHTS_METADATA_FIELD_NUMBER = 13; private com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata customWeightsMetadata_; /** - * - * *
    * To support the custom weighting across document schemas, customers need to
    * provide the properties to be used to boost the ranking in the search
@@ -953,9 +844,7 @@ public com.google.protobuf.ByteString getDocumentCreatorFilterBytes(int index) {
    * be honored.
    * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; * @return Whether the customWeightsMetadata field is set. */ @java.lang.Override @@ -963,8 +852,6 @@ public boolean hasCustomWeightsMetadata() { return customWeightsMetadata_ != null; } /** - * - * *
    * To support the custom weighting across document schemas, customers need to
    * provide the properties to be used to boost the ranking in the search
@@ -973,20 +860,14 @@ public boolean hasCustomWeightsMetadata() {
    * be honored.
    * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; * @return The customWeightsMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getCustomWeightsMetadata() { - return customWeightsMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() - : customWeightsMetadata_; + return customWeightsMetadata_ == null ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() : customWeightsMetadata_; } /** - * - * *
    * To support the custom weighting across document schemas, customers need to
    * provide the properties to be used to boost the ranking in the search
@@ -995,19 +876,14 @@ public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getCustomWeigh
    * be honored.
    * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder - getCustomWeightsMetadataOrBuilder() { - return customWeightsMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() - : customWeightsMetadata_; + public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder getCustomWeightsMetadataOrBuilder() { + return customWeightsMetadata_ == null ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() : customWeightsMetadata_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1019,7 +895,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(query_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } @@ -1045,8 +922,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 10, queryContext_.getRaw(i)); } for (int i = 0; i < documentCreatorFilter_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 11, documentCreatorFilter_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, documentCreatorFilter_.getRaw(i)); } if (isNlQuery_ != false) { output.writeBool(12, isNlQuery_); @@ -1073,7 +949,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, customPropertyFilter_); } for (int i = 0; i < timeFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, timeFilters_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, timeFilters_.get(i)); } { int dataSize = 0; @@ -1084,10 +961,12 @@ public int getSerializedSize() { size += 1 * getDocumentSchemaNamesList().size(); } for (int i = 0; i < propertyFilter_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, propertyFilter_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, propertyFilter_.get(i)); } if (fileTypeFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFileTypeFilter()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getFileTypeFilter()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderNameFilter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, folderNameFilter_); @@ -1109,11 +988,12 @@ public int getSerializedSize() { size += 1 * getDocumentCreatorFilterList().size(); } if (isNlQuery_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, isNlQuery_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, isNlQuery_); } if (customWeightsMetadata_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCustomWeightsMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getCustomWeightsMetadata()); } { int dataSize = 0; @@ -1131,31 +1011,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.DocumentQuery)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DocumentQuery other = - (com.google.cloud.contentwarehouse.v1.DocumentQuery) obj; + com.google.cloud.contentwarehouse.v1.DocumentQuery other = (com.google.cloud.contentwarehouse.v1.DocumentQuery) obj; - if (!getQuery().equals(other.getQuery())) return false; - if (getIsNlQuery() != other.getIsNlQuery()) return false; - if (!getCustomPropertyFilter().equals(other.getCustomPropertyFilter())) return false; - if (!getTimeFiltersList().equals(other.getTimeFiltersList())) return false; - if (!getDocumentSchemaNamesList().equals(other.getDocumentSchemaNamesList())) return false; - if (!getPropertyFilterList().equals(other.getPropertyFilterList())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (getIsNlQuery() + != other.getIsNlQuery()) return false; + if (!getCustomPropertyFilter() + .equals(other.getCustomPropertyFilter())) return false; + if (!getTimeFiltersList() + .equals(other.getTimeFiltersList())) return false; + if (!getDocumentSchemaNamesList() + .equals(other.getDocumentSchemaNamesList())) return false; + if (!getPropertyFilterList() + .equals(other.getPropertyFilterList())) return false; if (hasFileTypeFilter() != other.hasFileTypeFilter()) return false; if (hasFileTypeFilter()) { - if (!getFileTypeFilter().equals(other.getFileTypeFilter())) return false; - } - if (!getFolderNameFilter().equals(other.getFolderNameFilter())) return false; - if (!getDocumentNameFilterList().equals(other.getDocumentNameFilterList())) return false; - if (!getQueryContextList().equals(other.getQueryContextList())) return false; - if (!getDocumentCreatorFilterList().equals(other.getDocumentCreatorFilterList())) return false; + if (!getFileTypeFilter() + .equals(other.getFileTypeFilter())) return false; + } + if (!getFolderNameFilter() + .equals(other.getFolderNameFilter())) return false; + if (!getDocumentNameFilterList() + .equals(other.getDocumentNameFilterList())) return false; + if (!getQueryContextList() + .equals(other.getQueryContextList())) return false; + if (!getDocumentCreatorFilterList() + .equals(other.getDocumentCreatorFilterList())) return false; if (hasCustomWeightsMetadata() != other.hasCustomWeightsMetadata()) return false; if (hasCustomWeightsMetadata()) { - if (!getCustomWeightsMetadata().equals(other.getCustomWeightsMetadata())) return false; + if (!getCustomWeightsMetadata() + .equals(other.getCustomWeightsMetadata())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1171,7 +1062,8 @@ public int hashCode() { hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); hash = (37 * hash) + IS_NL_QUERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsNlQuery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsNlQuery()); hash = (37 * hash) + CUSTOM_PROPERTY_FILTER_FIELD_NUMBER; hash = (53 * hash) + getCustomPropertyFilter().hashCode(); if (getTimeFiltersCount() > 0) { @@ -1214,127 +1106,127 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DocumentQuery 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.contentwarehouse.v1.DocumentQuery parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DocumentQuery 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.contentwarehouse.v1.DocumentQuery parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DocumentQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentQuery} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentQuery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DocumentQuery) com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentQuery.class, - com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentQuery.class, com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DocumentQuery.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(); @@ -1349,7 +1241,8 @@ public Builder clear() { timeFiltersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); - documentSchemaNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documentSchemaNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (propertyFilterBuilder_ == null) { propertyFilter_ = java.util.Collections.emptyList(); } else { @@ -1363,9 +1256,12 @@ public Builder clear() { fileTypeFilterBuilder_ = null; } folderNameFilter_ = ""; - documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); - queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList(); - documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documentNameFilter_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + queryContext_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + documentCreatorFilter_ = + com.google.protobuf.LazyStringArrayList.emptyList(); customWeightsMetadata_ = null; if (customWeightsMetadataBuilder_ != null) { customWeightsMetadataBuilder_.dispose(); @@ -1375,9 +1271,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor; } @java.lang.Override @@ -1396,18 +1292,14 @@ public com.google.cloud.contentwarehouse.v1.DocumentQuery build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentQuery buildPartial() { - com.google.cloud.contentwarehouse.v1.DocumentQuery result = - new com.google.cloud.contentwarehouse.v1.DocumentQuery(this); + com.google.cloud.contentwarehouse.v1.DocumentQuery result = new com.google.cloud.contentwarehouse.v1.DocumentQuery(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.DocumentQuery result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.DocumentQuery result) { if (timeFiltersBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { timeFilters_ = java.util.Collections.unmodifiableList(timeFilters_); @@ -1444,8 +1336,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentQuery re result.documentSchemaNames_ = documentSchemaNames_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.fileTypeFilter_ = - fileTypeFilterBuilder_ == null ? fileTypeFilter_ : fileTypeFilterBuilder_.build(); + result.fileTypeFilter_ = fileTypeFilterBuilder_ == null + ? fileTypeFilter_ + : fileTypeFilterBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.folderNameFilter_ = folderNameFilter_; @@ -1463,10 +1356,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentQuery re result.documentCreatorFilter_ = documentCreatorFilter_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.customWeightsMetadata_ = - customWeightsMetadataBuilder_ == null - ? customWeightsMetadata_ - : customWeightsMetadataBuilder_.build(); + result.customWeightsMetadata_ = customWeightsMetadataBuilder_ == null + ? customWeightsMetadata_ + : customWeightsMetadataBuilder_.build(); } } @@ -1474,39 +1366,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentQuery 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.contentwarehouse.v1.DocumentQuery) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentQuery) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentQuery)other); } else { super.mergeFrom(other); return this; @@ -1514,8 +1405,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentQuery other) { - if (other == com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance()) return this; if (!other.getQuery().isEmpty()) { query_ = other.query_; bitField0_ |= 0x00000001; @@ -1547,10 +1437,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentQuery othe timeFiltersBuilder_ = null; timeFilters_ = other.timeFilters_; bitField0_ = (bitField0_ & ~0x00000008); - timeFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTimeFiltersFieldBuilder() - : null; + timeFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTimeFiltersFieldBuilder() : null; } else { timeFiltersBuilder_.addAllMessages(other.timeFilters_); } @@ -1584,10 +1473,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentQuery othe propertyFilterBuilder_ = null; propertyFilter_ = other.propertyFilter_; bitField0_ = (bitField0_ & ~0x00000020); - propertyFilterBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPropertyFilterFieldBuilder() - : null; + propertyFilterBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertyFilterFieldBuilder() : null; } else { propertyFilterBuilder_.addAllMessages(other.propertyFilter_); } @@ -1660,106 +1548,96 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 34: - { - customPropertyFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - com.google.cloud.contentwarehouse.v1.TimeFilter m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.TimeFilter.parser(), - extensionRegistry); - if (timeFiltersBuilder_ == null) { - ensureTimeFiltersIsMutable(); - timeFilters_.add(m); - } else { - timeFiltersBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDocumentSchemaNamesIsMutable(); - documentSchemaNames_.add(s); - break; - } // case 50 - case 58: - { - com.google.cloud.contentwarehouse.v1.PropertyFilter m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.PropertyFilter.parser(), - extensionRegistry); - if (propertyFilterBuilder_ == null) { - ensurePropertyFilterIsMutable(); - propertyFilter_.add(m); - } else { - propertyFilterBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: - { - input.readMessage(getFileTypeFilterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 74: - { - folderNameFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 74 - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureQueryContextIsMutable(); - queryContext_.add(s); - break; - } // case 82 - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDocumentCreatorFilterIsMutable(); - documentCreatorFilter_.add(s); - break; - } // case 90 - case 96: - { - isNlQuery_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 96 - case 106: - { - input.readMessage( - getCustomWeightsMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 106 - case 114: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDocumentNameFilterIsMutable(); - documentNameFilter_.add(s); - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: { + customPropertyFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + com.google.cloud.contentwarehouse.v1.TimeFilter m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.TimeFilter.parser(), + extensionRegistry); + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.add(m); + } else { + timeFiltersBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDocumentSchemaNamesIsMutable(); + documentSchemaNames_.add(s); + break; + } // case 50 + case 58: { + com.google.cloud.contentwarehouse.v1.PropertyFilter m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.PropertyFilter.parser(), + extensionRegistry); + if (propertyFilterBuilder_ == null) { + ensurePropertyFilterIsMutable(); + propertyFilter_.add(m); + } else { + propertyFilterBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + input.readMessage( + getFileTypeFilterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: { + folderNameFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + ensureQueryContextIsMutable(); + queryContext_.add(s); + break; + } // case 82 + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDocumentCreatorFilterIsMutable(); + documentCreatorFilter_.add(s); + break; + } // case 90 + case 96: { + isNlQuery_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 96 + case 106: { + input.readMessage( + getCustomWeightsMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 114: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDocumentNameFilterIsMutable(); + documentNameFilter_.add(s); + 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) { @@ -1769,13 +1647,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object query_ = ""; /** - * - * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1824,13 +1699,13 @@ public Builder mergeFrom(
      * 
* * string query = 1; - * * @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; @@ -1839,8 +1714,6 @@ public java.lang.String getQuery() { } } /** - * - * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1889,14 +1762,15 @@ public java.lang.String getQuery() {
      * 
* * string query = 1; - * * @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 { @@ -1904,8 +1778,6 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1954,22 +1826,18 @@ public com.google.protobuf.ByteString getQueryBytes() {
      * 
* * string query = 1; - * * @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_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -2018,7 +1886,6 @@ public Builder setQuery(java.lang.String value) {
      * 
* * string query = 1; - * * @return This builder for chaining. */ public Builder clearQuery() { @@ -2028,8 +1895,6 @@ public Builder clearQuery() { return this; } /** - * - * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -2078,14 +1943,12 @@ public Builder clearQuery() {
      * 
* * string query = 1; - * * @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_ |= 0x00000001; @@ -2093,10 +1956,8 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { return this; } - private boolean isNlQuery_; + private boolean isNlQuery_ ; /** - * - * *
      * Experimental, do not use.
      * If the query is a natural language question. False by default. If true,
@@ -2108,7 +1969,6 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) {
      * 
* * bool is_nl_query = 12; - * * @return The isNlQuery. */ @java.lang.Override @@ -2116,8 +1976,6 @@ public boolean getIsNlQuery() { return isNlQuery_; } /** - * - * *
      * Experimental, do not use.
      * If the query is a natural language question. False by default. If true,
@@ -2129,7 +1987,6 @@ public boolean getIsNlQuery() {
      * 
* * bool is_nl_query = 12; - * * @param value The isNlQuery to set. * @return This builder for chaining. */ @@ -2141,8 +1998,6 @@ public Builder setIsNlQuery(boolean value) { return this; } /** - * - * *
      * Experimental, do not use.
      * If the query is a natural language question. False by default. If true,
@@ -2154,7 +2009,6 @@ public Builder setIsNlQuery(boolean value) {
      * 
* * bool is_nl_query = 12; - * * @return This builder for chaining. */ public Builder clearIsNlQuery() { @@ -2166,8 +2020,6 @@ public Builder clearIsNlQuery() { private java.lang.Object customPropertyFilter_ = ""; /** - * - * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -2191,16 +2043,15 @@ public Builder clearIsNlQuery() {
      * 
* * string custom_property_filter = 4 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is - * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return The customPropertyFilter. */ - @java.lang.Deprecated - public java.lang.String getCustomPropertyFilter() { + @java.lang.Deprecated public java.lang.String getCustomPropertyFilter() { java.lang.Object ref = customPropertyFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customPropertyFilter_ = s; return s; @@ -2209,8 +2060,6 @@ public java.lang.String getCustomPropertyFilter() { } } /** - * - * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -2234,17 +2083,17 @@ public java.lang.String getCustomPropertyFilter() {
      * 
* * string custom_property_filter = 4 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is - * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return The bytes for customPropertyFilter. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getCustomPropertyFilterBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getCustomPropertyFilterBytes() { java.lang.Object ref = customPropertyFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customPropertyFilter_ = b; return b; } else { @@ -2252,8 +2101,6 @@ public com.google.protobuf.ByteString getCustomPropertyFilterBytes() { } } /** - * - * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -2277,25 +2124,20 @@ public com.google.protobuf.ByteString getCustomPropertyFilterBytes() {
      * 
* * string custom_property_filter = 4 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is - * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @param value The customPropertyFilter to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setCustomPropertyFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setCustomPropertyFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customPropertyFilter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -2319,21 +2161,17 @@ public Builder setCustomPropertyFilter(java.lang.String value) {
      * 
* * string custom_property_filter = 4 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is - * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearCustomPropertyFilter() { + @java.lang.Deprecated public Builder clearCustomPropertyFilter() { customPropertyFilter_ = getDefaultInstance().getCustomPropertyFilter(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * - * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -2357,17 +2195,14 @@ public Builder clearCustomPropertyFilter() {
      * 
* * string custom_property_filter = 4 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is - * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @param value The bytes for customPropertyFilter to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setCustomPropertyFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setCustomPropertyFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customPropertyFilter_ = value; bitField0_ |= 0x00000004; @@ -2376,25 +2211,18 @@ public Builder setCustomPropertyFilterBytes(com.google.protobuf.ByteString value } private java.util.List timeFilters_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTimeFiltersIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - timeFilters_ = - new java.util.ArrayList(timeFilters_); + timeFilters_ = new java.util.ArrayList(timeFilters_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimeFilter, - com.google.cloud.contentwarehouse.v1.TimeFilter.Builder, - com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder> - timeFiltersBuilder_; + com.google.cloud.contentwarehouse.v1.TimeFilter, com.google.cloud.contentwarehouse.v1.TimeFilter.Builder, com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder> timeFiltersBuilder_; /** - * - * *
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2410,8 +2238,6 @@ public java.util.List getTimeFi
       }
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2427,8 +2253,6 @@ public int getTimeFiltersCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2444,8 +2268,6 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter getTimeFilters(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2468,8 +2290,6 @@ public Builder setTimeFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2489,8 +2309,6 @@ public Builder setTimeFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2512,8 +2330,6 @@ public Builder addTimeFilters(com.google.cloud.contentwarehouse.v1.TimeFilter va
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2536,8 +2352,6 @@ public Builder addTimeFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2557,8 +2371,6 @@ public Builder addTimeFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2578,8 +2390,6 @@ public Builder addTimeFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2591,7 +2401,8 @@ public Builder addAllTimeFilters(
         java.lang.Iterable values) {
       if (timeFiltersBuilder_ == null) {
         ensureTimeFiltersIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeFilters_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, timeFilters_);
         onChanged();
       } else {
         timeFiltersBuilder_.addAllMessages(values);
@@ -2599,8 +2410,6 @@ public Builder addAllTimeFilters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2619,8 +2428,6 @@ public Builder clearTimeFilters() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2639,8 +2446,6 @@ public Builder removeTimeFilters(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2653,8 +2458,6 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder getTimeFiltersBui
       return getTimeFiltersFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2665,14 +2468,11 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder getTimeFiltersBui
     public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder(
         int index) {
       if (timeFiltersBuilder_ == null) {
-        return timeFilters_.get(index);
-      } else {
+        return timeFilters_.get(index);  } else {
         return timeFiltersBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2680,8 +2480,8 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
      *
      * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
      */
-    public java.util.List
-        getTimeFiltersOrBuilderList() {
+    public java.util.List 
+         getTimeFiltersOrBuilderList() {
       if (timeFiltersBuilder_ != null) {
         return timeFiltersBuilder_.getMessageOrBuilderList();
       } else {
@@ -2689,8 +2489,6 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
       }
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2699,12 +2497,10 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
      * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
      */
     public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder addTimeFiltersBuilder() {
-      return getTimeFiltersFieldBuilder()
-          .addBuilder(com.google.cloud.contentwarehouse.v1.TimeFilter.getDefaultInstance());
+      return getTimeFiltersFieldBuilder().addBuilder(
+          com.google.cloud.contentwarehouse.v1.TimeFilter.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2714,12 +2510,10 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder addTimeFiltersBui
      */
     public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder addTimeFiltersBuilder(
         int index) {
-      return getTimeFiltersFieldBuilder()
-          .addBuilder(index, com.google.cloud.contentwarehouse.v1.TimeFilter.getDefaultInstance());
+      return getTimeFiltersFieldBuilder().addBuilder(
+          index, com.google.cloud.contentwarehouse.v1.TimeFilter.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2727,23 +2521,20 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder addTimeFiltersBui
      *
      * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
      */
-    public java.util.List
-        getTimeFiltersBuilderList() {
+    public java.util.List 
+         getTimeFiltersBuilderList() {
       return getTimeFiltersFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.TimeFilter,
-            com.google.cloud.contentwarehouse.v1.TimeFilter.Builder,
-            com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder>
+        com.google.cloud.contentwarehouse.v1.TimeFilter, com.google.cloud.contentwarehouse.v1.TimeFilter.Builder, com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder> 
         getTimeFiltersFieldBuilder() {
       if (timeFiltersBuilder_ == null) {
-        timeFiltersBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.TimeFilter,
-                com.google.cloud.contentwarehouse.v1.TimeFilter.Builder,
-                com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder>(
-                timeFilters_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
+        timeFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.TimeFilter, com.google.cloud.contentwarehouse.v1.TimeFilter.Builder, com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder>(
+                timeFilters_,
+                ((bitField0_ & 0x00000008) != 0),
+                getParentForChildren(),
+                isClean());
         timeFilters_ = null;
       }
       return timeFiltersBuilder_;
@@ -2751,7 +2542,6 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder addTimeFiltersBui
 
     private com.google.protobuf.LazyStringArrayList documentSchemaNames_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-
     private void ensureDocumentSchemaNamesIsMutable() {
       if (!documentSchemaNames_.isModifiable()) {
         documentSchemaNames_ = new com.google.protobuf.LazyStringArrayList(documentSchemaNames_);
@@ -2759,8 +2549,6 @@ private void ensureDocumentSchemaNamesIsMutable() {
       bitField0_ |= 0x00000010;
     }
     /**
-     *
-     *
      * 
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2775,16 +2563,14 @@ private void ensureDocumentSchemaNamesIsMutable() {
      * 
* * repeated string document_schema_names = 6; - * * @return A list containing the documentSchemaNames. */ - public com.google.protobuf.ProtocolStringList getDocumentSchemaNamesList() { + public com.google.protobuf.ProtocolStringList + getDocumentSchemaNamesList() { documentSchemaNames_.makeImmutable(); return documentSchemaNames_; } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2799,15 +2585,12 @@ public com.google.protobuf.ProtocolStringList getDocumentSchemaNamesList() {
      * 
* * repeated string document_schema_names = 6; - * * @return The count of documentSchemaNames. */ public int getDocumentSchemaNamesCount() { return documentSchemaNames_.size(); } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2822,7 +2605,6 @@ public int getDocumentSchemaNamesCount() {
      * 
* * repeated string document_schema_names = 6; - * * @param index The index of the element to return. * @return The documentSchemaNames at the given index. */ @@ -2830,8 +2612,6 @@ public java.lang.String getDocumentSchemaNames(int index) { return documentSchemaNames_.get(index); } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2846,16 +2626,14 @@ public java.lang.String getDocumentSchemaNames(int index) {
      * 
* * repeated string document_schema_names = 6; - * * @param index The index of the value to return. * @return The bytes of the documentSchemaNames at the given index. */ - public com.google.protobuf.ByteString getDocumentSchemaNamesBytes(int index) { + public com.google.protobuf.ByteString + getDocumentSchemaNamesBytes(int index) { return documentSchemaNames_.getByteString(index); } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2870,15 +2648,13 @@ public com.google.protobuf.ByteString getDocumentSchemaNamesBytes(int index) {
      * 
* * repeated string document_schema_names = 6; - * * @param index The index to set the value at. * @param value The documentSchemaNames to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentSchemaNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentSchemaNamesIsMutable(); documentSchemaNames_.set(index, value); bitField0_ |= 0x00000010; @@ -2886,8 +2662,6 @@ public Builder setDocumentSchemaNames(int index, java.lang.String value) { return this; } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2902,14 +2676,12 @@ public Builder setDocumentSchemaNames(int index, java.lang.String value) {
      * 
* * repeated string document_schema_names = 6; - * * @param value The documentSchemaNames to add. * @return This builder for chaining. */ - public Builder addDocumentSchemaNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocumentSchemaNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentSchemaNamesIsMutable(); documentSchemaNames_.add(value); bitField0_ |= 0x00000010; @@ -2917,8 +2689,6 @@ public Builder addDocumentSchemaNames(java.lang.String value) { return this; } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2933,20 +2703,19 @@ public Builder addDocumentSchemaNames(java.lang.String value) {
      * 
* * repeated string document_schema_names = 6; - * * @param values The documentSchemaNames to add. * @return This builder for chaining. */ - public Builder addAllDocumentSchemaNames(java.lang.Iterable values) { + public Builder addAllDocumentSchemaNames( + java.lang.Iterable values) { ensureDocumentSchemaNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentSchemaNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documentSchemaNames_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2961,19 +2730,16 @@ public Builder addAllDocumentSchemaNames(java.lang.Iterable va
      * 
* * repeated string document_schema_names = 6; - * * @return This builder for chaining. */ public Builder clearDocumentSchemaNames() { - documentSchemaNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + documentSchemaNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2988,14 +2754,12 @@ public Builder clearDocumentSchemaNames() {
      * 
* * repeated string document_schema_names = 6; - * * @param value The bytes of the documentSchemaNames to add. * @return This builder for chaining. */ - public Builder addDocumentSchemaNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocumentSchemaNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDocumentSchemaNamesIsMutable(); documentSchemaNames_.add(value); @@ -3005,26 +2769,18 @@ public Builder addDocumentSchemaNamesBytes(com.google.protobuf.ByteString value) } private java.util.List propertyFilter_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePropertyFilterIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - propertyFilter_ = - new java.util.ArrayList( - propertyFilter_); + propertyFilter_ = new java.util.ArrayList(propertyFilter_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyFilter, - com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder, - com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder> - propertyFilterBuilder_; + com.google.cloud.contentwarehouse.v1.PropertyFilter, com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder, com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder> propertyFilterBuilder_; /** - * - * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3033,8 +2789,7 @@ private void ensurePropertyFilterIsMutable() {
      *
      * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
      */
-    public java.util.List
-        getPropertyFilterList() {
+    public java.util.List getPropertyFilterList() {
       if (propertyFilterBuilder_ == null) {
         return java.util.Collections.unmodifiableList(propertyFilter_);
       } else {
@@ -3042,8 +2797,6 @@ private void ensurePropertyFilterIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3060,8 +2813,6 @@ public int getPropertyFilterCount() {
       }
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3078,8 +2829,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter getPropertyFilter(int
       }
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3103,8 +2852,6 @@ public Builder setPropertyFilter(
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3125,8 +2872,6 @@ public Builder setPropertyFilter(
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3149,8 +2894,6 @@ public Builder addPropertyFilter(com.google.cloud.contentwarehouse.v1.PropertyFi
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3174,8 +2917,6 @@ public Builder addPropertyFilter(
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3196,8 +2937,6 @@ public Builder addPropertyFilter(
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3218,8 +2957,6 @@ public Builder addPropertyFilter(
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3232,7 +2969,8 @@ public Builder addAllPropertyFilter(
         java.lang.Iterable values) {
       if (propertyFilterBuilder_ == null) {
         ensurePropertyFilterIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyFilter_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, propertyFilter_);
         onChanged();
       } else {
         propertyFilterBuilder_.addAllMessages(values);
@@ -3240,8 +2978,6 @@ public Builder addAllPropertyFilter(
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3261,8 +2997,6 @@ public Builder clearPropertyFilter() {
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3282,8 +3016,6 @@ public Builder removePropertyFilter(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3297,8 +3029,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder getPropertyFi
       return getPropertyFilterFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3310,14 +3040,11 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder getPropertyFi
     public com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOrBuilder(
         int index) {
       if (propertyFilterBuilder_ == null) {
-        return propertyFilter_.get(index);
-      } else {
+        return propertyFilter_.get(index);  } else {
         return propertyFilterBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3326,8 +3053,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyF
      *
      * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
      */
-    public java.util.List
-        getPropertyFilterOrBuilderList() {
+    public java.util.List 
+         getPropertyFilterOrBuilderList() {
       if (propertyFilterBuilder_ != null) {
         return propertyFilterBuilder_.getMessageOrBuilderList();
       } else {
@@ -3335,8 +3062,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyF
       }
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3346,12 +3071,10 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyF
      * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
      */
     public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder addPropertyFilterBuilder() {
-      return getPropertyFilterFieldBuilder()
-          .addBuilder(com.google.cloud.contentwarehouse.v1.PropertyFilter.getDefaultInstance());
+      return getPropertyFilterFieldBuilder().addBuilder(
+          com.google.cloud.contentwarehouse.v1.PropertyFilter.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3362,13 +3085,10 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder addPropertyFi
      */
     public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder addPropertyFilterBuilder(
         int index) {
-      return getPropertyFilterFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.contentwarehouse.v1.PropertyFilter.getDefaultInstance());
+      return getPropertyFilterFieldBuilder().addBuilder(
+          index, com.google.cloud.contentwarehouse.v1.PropertyFilter.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3377,22 +3097,16 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder addPropertyFi
      *
      * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
      */
-    public java.util.List
-        getPropertyFilterBuilderList() {
+    public java.util.List 
+         getPropertyFilterBuilderList() {
       return getPropertyFilterFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.PropertyFilter,
-            com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder,
-            com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder>
+        com.google.cloud.contentwarehouse.v1.PropertyFilter, com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder, com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder> 
         getPropertyFilterFieldBuilder() {
       if (propertyFilterBuilder_ == null) {
-        propertyFilterBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.PropertyFilter,
-                com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder,
-                com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder>(
+        propertyFilterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.PropertyFilter, com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder, com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder>(
                 propertyFilter_,
                 ((bitField0_ & 0x00000020) != 0),
                 getParentForChildren(),
@@ -3404,13 +3118,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder addPropertyFi
 
     private com.google.cloud.contentwarehouse.v1.FileTypeFilter fileTypeFilter_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.FileTypeFilter,
-            com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder,
-            com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder>
-        fileTypeFilterBuilder_;
+        com.google.cloud.contentwarehouse.v1.FileTypeFilter, com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder, com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder> fileTypeFilterBuilder_;
     /**
-     *
-     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3421,15 +3130,12 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder addPropertyFi
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8; - * * @return Whether the fileTypeFilter field is set. */ public boolean hasFileTypeFilter() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3440,21 +3146,16 @@ public boolean hasFileTypeFilter() {
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8; - * * @return The fileTypeFilter. */ public com.google.cloud.contentwarehouse.v1.FileTypeFilter getFileTypeFilter() { if (fileTypeFilterBuilder_ == null) { - return fileTypeFilter_ == null - ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance() - : fileTypeFilter_; + return fileTypeFilter_ == null ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance() : fileTypeFilter_; } else { return fileTypeFilterBuilder_.getMessage(); } } /** - * - * *
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3480,8 +3181,6 @@ public Builder setFileTypeFilter(com.google.cloud.contentwarehouse.v1.FileTypeFi
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3505,8 +3204,6 @@ public Builder setFileTypeFilter(
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3520,10 +3217,9 @@ public Builder setFileTypeFilter(
      */
     public Builder mergeFileTypeFilter(com.google.cloud.contentwarehouse.v1.FileTypeFilter value) {
       if (fileTypeFilterBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0)
-            && fileTypeFilter_ != null
-            && fileTypeFilter_
-                != com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0) &&
+          fileTypeFilter_ != null &&
+          fileTypeFilter_ != com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance()) {
           getFileTypeFilterBuilder().mergeFrom(value);
         } else {
           fileTypeFilter_ = value;
@@ -3536,8 +3232,6 @@ public Builder mergeFileTypeFilter(com.google.cloud.contentwarehouse.v1.FileType
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3560,8 +3254,6 @@ public Builder clearFileTypeFilter() {
       return this;
     }
     /**
-     *
-     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3579,8 +3271,6 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder getFileTypeFi
       return getFileTypeFilterFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3592,19 +3282,15 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder getFileTypeFi
      *
      * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8;
      */
-    public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder
-        getFileTypeFilterOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeFilterOrBuilder() {
       if (fileTypeFilterBuilder_ != null) {
         return fileTypeFilterBuilder_.getMessageOrBuilder();
       } else {
-        return fileTypeFilter_ == null
-            ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance()
-            : fileTypeFilter_;
+        return fileTypeFilter_ == null ?
+            com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance() : fileTypeFilter_;
       }
     }
     /**
-     *
-     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3617,17 +3303,14 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder getFileTypeFi
      * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.FileTypeFilter,
-            com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder,
-            com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder>
+        com.google.cloud.contentwarehouse.v1.FileTypeFilter, com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder, com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder> 
         getFileTypeFilterFieldBuilder() {
       if (fileTypeFilterBuilder_ == null) {
-        fileTypeFilterBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.FileTypeFilter,
-                com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder,
-                com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder>(
-                getFileTypeFilter(), getParentForChildren(), isClean());
+        fileTypeFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.FileTypeFilter, com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder, com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder>(
+                getFileTypeFilter(),
+                getParentForChildren(),
+                isClean());
         fileTypeFilter_ = null;
       }
       return fileTypeFilterBuilder_;
@@ -3635,8 +3318,6 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder getFileTypeFi
 
     private java.lang.Object folderNameFilter_ = "";
     /**
-     *
-     *
      * 
      * Search all the documents under this specified folder.
      * Format:
@@ -3644,13 +3325,13 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder getFileTypeFi
      * 
* * string folder_name_filter = 9; - * * @return The folderNameFilter. */ public java.lang.String getFolderNameFilter() { java.lang.Object ref = folderNameFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderNameFilter_ = s; return s; @@ -3659,8 +3340,6 @@ public java.lang.String getFolderNameFilter() { } } /** - * - * *
      * Search all the documents under this specified folder.
      * Format:
@@ -3668,14 +3347,15 @@ public java.lang.String getFolderNameFilter() {
      * 
* * string folder_name_filter = 9; - * * @return The bytes for folderNameFilter. */ - public com.google.protobuf.ByteString getFolderNameFilterBytes() { + public com.google.protobuf.ByteString + getFolderNameFilterBytes() { java.lang.Object ref = folderNameFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); folderNameFilter_ = b; return b; } else { @@ -3683,8 +3363,6 @@ public com.google.protobuf.ByteString getFolderNameFilterBytes() { } } /** - * - * *
      * Search all the documents under this specified folder.
      * Format:
@@ -3692,22 +3370,18 @@ public com.google.protobuf.ByteString getFolderNameFilterBytes() {
      * 
* * string folder_name_filter = 9; - * * @param value The folderNameFilter to set. * @return This builder for chaining. */ - public Builder setFolderNameFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFolderNameFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } folderNameFilter_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Search all the documents under this specified folder.
      * Format:
@@ -3715,7 +3389,6 @@ public Builder setFolderNameFilter(java.lang.String value) {
      * 
* * string folder_name_filter = 9; - * * @return This builder for chaining. */ public Builder clearFolderNameFilter() { @@ -3725,8 +3398,6 @@ public Builder clearFolderNameFilter() { return this; } /** - * - * *
      * Search all the documents under this specified folder.
      * Format:
@@ -3734,14 +3405,12 @@ public Builder clearFolderNameFilter() {
      * 
* * string folder_name_filter = 9; - * * @param value The bytes for folderNameFilter to set. * @return This builder for chaining. */ - public Builder setFolderNameFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFolderNameFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderNameFilter_ = value; bitField0_ |= 0x00000080; @@ -3751,7 +3420,6 @@ public Builder setFolderNameFilterBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureDocumentNameFilterIsMutable() { if (!documentNameFilter_.isModifiable()) { documentNameFilter_ = new com.google.protobuf.LazyStringArrayList(documentNameFilter_); @@ -3759,8 +3427,6 @@ private void ensureDocumentNameFilterIsMutable() { bitField0_ |= 0x00000100; } /** - * - * *
      * Search the documents in the list.
      * Format:
@@ -3768,16 +3434,14 @@ private void ensureDocumentNameFilterIsMutable() {
      * 
* * repeated string document_name_filter = 14; - * * @return A list containing the documentNameFilter. */ - public com.google.protobuf.ProtocolStringList getDocumentNameFilterList() { + public com.google.protobuf.ProtocolStringList + getDocumentNameFilterList() { documentNameFilter_.makeImmutable(); return documentNameFilter_; } /** - * - * *
      * Search the documents in the list.
      * Format:
@@ -3785,15 +3449,12 @@ public com.google.protobuf.ProtocolStringList getDocumentNameFilterList() {
      * 
* * repeated string document_name_filter = 14; - * * @return The count of documentNameFilter. */ public int getDocumentNameFilterCount() { return documentNameFilter_.size(); } /** - * - * *
      * Search the documents in the list.
      * Format:
@@ -3801,7 +3462,6 @@ public int getDocumentNameFilterCount() {
      * 
* * repeated string document_name_filter = 14; - * * @param index The index of the element to return. * @return The documentNameFilter at the given index. */ @@ -3809,8 +3469,6 @@ public java.lang.String getDocumentNameFilter(int index) { return documentNameFilter_.get(index); } /** - * - * *
      * Search the documents in the list.
      * Format:
@@ -3818,16 +3476,14 @@ public java.lang.String getDocumentNameFilter(int index) {
      * 
* * repeated string document_name_filter = 14; - * * @param index The index of the value to return. * @return The bytes of the documentNameFilter at the given index. */ - public com.google.protobuf.ByteString getDocumentNameFilterBytes(int index) { + public com.google.protobuf.ByteString + getDocumentNameFilterBytes(int index) { return documentNameFilter_.getByteString(index); } /** - * - * *
      * Search the documents in the list.
      * Format:
@@ -3835,15 +3491,13 @@ public com.google.protobuf.ByteString getDocumentNameFilterBytes(int index) {
      * 
* * repeated string document_name_filter = 14; - * * @param index The index to set the value at. * @param value The documentNameFilter to set. * @return This builder for chaining. */ - public Builder setDocumentNameFilter(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentNameFilter( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentNameFilterIsMutable(); documentNameFilter_.set(index, value); bitField0_ |= 0x00000100; @@ -3851,8 +3505,6 @@ public Builder setDocumentNameFilter(int index, java.lang.String value) { return this; } /** - * - * *
      * Search the documents in the list.
      * Format:
@@ -3860,14 +3512,12 @@ public Builder setDocumentNameFilter(int index, java.lang.String value) {
      * 
* * repeated string document_name_filter = 14; - * * @param value The documentNameFilter to add. * @return This builder for chaining. */ - public Builder addDocumentNameFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocumentNameFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentNameFilterIsMutable(); documentNameFilter_.add(value); bitField0_ |= 0x00000100; @@ -3875,8 +3525,6 @@ public Builder addDocumentNameFilter(java.lang.String value) { return this; } /** - * - * *
      * Search the documents in the list.
      * Format:
@@ -3884,20 +3532,19 @@ public Builder addDocumentNameFilter(java.lang.String value) {
      * 
* * repeated string document_name_filter = 14; - * * @param values The documentNameFilter to add. * @return This builder for chaining. */ - public Builder addAllDocumentNameFilter(java.lang.Iterable values) { + public Builder addAllDocumentNameFilter( + java.lang.Iterable values) { ensureDocumentNameFilterIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentNameFilter_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documentNameFilter_); bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Search the documents in the list.
      * Format:
@@ -3905,19 +3552,16 @@ public Builder addAllDocumentNameFilter(java.lang.Iterable val
      * 
* * repeated string document_name_filter = 14; - * * @return This builder for chaining. */ public Builder clearDocumentNameFilter() { - documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - ; + documentNameFilter_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** - * - * *
      * Search the documents in the list.
      * Format:
@@ -3925,14 +3569,12 @@ public Builder clearDocumentNameFilter() {
      * 
* * repeated string document_name_filter = 14; - * * @param value The bytes of the documentNameFilter to add. * @return This builder for chaining. */ - public Builder addDocumentNameFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocumentNameFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDocumentNameFilterIsMutable(); documentNameFilter_.add(value); @@ -3943,7 +3585,6 @@ public Builder addDocumentNameFilterBytes(com.google.protobuf.ByteString value) private com.google.protobuf.LazyStringArrayList queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureQueryContextIsMutable() { if (!queryContext_.isModifiable()) { queryContext_ = new com.google.protobuf.LazyStringArrayList(queryContext_); @@ -3951,8 +3592,6 @@ private void ensureQueryContextIsMutable() { bitField0_ |= 0x00000200; } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3964,16 +3603,14 @@ private void ensureQueryContextIsMutable() {
      * 
* * repeated string query_context = 10; - * * @return A list containing the queryContext. */ - public com.google.protobuf.ProtocolStringList getQueryContextList() { + public com.google.protobuf.ProtocolStringList + getQueryContextList() { queryContext_.makeImmutable(); return queryContext_; } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3985,15 +3622,12 @@ public com.google.protobuf.ProtocolStringList getQueryContextList() {
      * 
* * repeated string query_context = 10; - * * @return The count of queryContext. */ public int getQueryContextCount() { return queryContext_.size(); } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -4005,7 +3639,6 @@ public int getQueryContextCount() {
      * 
* * repeated string query_context = 10; - * * @param index The index of the element to return. * @return The queryContext at the given index. */ @@ -4013,8 +3646,6 @@ public java.lang.String getQueryContext(int index) { return queryContext_.get(index); } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -4026,16 +3657,14 @@ public java.lang.String getQueryContext(int index) {
      * 
* * repeated string query_context = 10; - * * @param index The index of the value to return. * @return The bytes of the queryContext at the given index. */ - public com.google.protobuf.ByteString getQueryContextBytes(int index) { + public com.google.protobuf.ByteString + getQueryContextBytes(int index) { return queryContext_.getByteString(index); } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -4047,15 +3676,13 @@ public com.google.protobuf.ByteString getQueryContextBytes(int index) {
      * 
* * repeated string query_context = 10; - * * @param index The index to set the value at. * @param value The queryContext to set. * @return This builder for chaining. */ - public Builder setQueryContext(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQueryContext( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureQueryContextIsMutable(); queryContext_.set(index, value); bitField0_ |= 0x00000200; @@ -4063,8 +3690,6 @@ public Builder setQueryContext(int index, java.lang.String value) { return this; } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -4076,14 +3701,12 @@ public Builder setQueryContext(int index, java.lang.String value) {
      * 
* * repeated string query_context = 10; - * * @param value The queryContext to add. * @return This builder for chaining. */ - public Builder addQueryContext(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addQueryContext( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureQueryContextIsMutable(); queryContext_.add(value); bitField0_ |= 0x00000200; @@ -4091,8 +3714,6 @@ public Builder addQueryContext(java.lang.String value) { return this; } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -4104,20 +3725,19 @@ public Builder addQueryContext(java.lang.String value) {
      * 
* * repeated string query_context = 10; - * * @param values The queryContext to add. * @return This builder for chaining. */ - public Builder addAllQueryContext(java.lang.Iterable values) { + public Builder addAllQueryContext( + java.lang.Iterable values) { ensureQueryContextIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queryContext_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, queryContext_); bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -4129,19 +3749,16 @@ public Builder addAllQueryContext(java.lang.Iterable values) {
      * 
* * repeated string query_context = 10; - * * @return This builder for chaining. */ public Builder clearQueryContext() { - queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - ; + queryContext_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200);; onChanged(); return this; } /** - * - * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -4153,14 +3770,12 @@ public Builder clearQueryContext() {
      * 
* * repeated string query_context = 10; - * * @param value The bytes of the queryContext to add. * @return This builder for chaining. */ - public Builder addQueryContextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addQueryContextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureQueryContextIsMutable(); queryContext_.add(value); @@ -4171,17 +3786,13 @@ public Builder addQueryContextBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureDocumentCreatorFilterIsMutable() { if (!documentCreatorFilter_.isModifiable()) { - documentCreatorFilter_ = - new com.google.protobuf.LazyStringArrayList(documentCreatorFilter_); + documentCreatorFilter_ = new com.google.protobuf.LazyStringArrayList(documentCreatorFilter_); } bitField0_ |= 0x00000400; } /** - * - * *
      * The exact creator(s) of the documents to search against.
      *
@@ -4192,16 +3803,14 @@ private void ensureDocumentCreatorFilterIsMutable() {
      * 
* * repeated string document_creator_filter = 11; - * * @return A list containing the documentCreatorFilter. */ - public com.google.protobuf.ProtocolStringList getDocumentCreatorFilterList() { + public com.google.protobuf.ProtocolStringList + getDocumentCreatorFilterList() { documentCreatorFilter_.makeImmutable(); return documentCreatorFilter_; } /** - * - * *
      * The exact creator(s) of the documents to search against.
      *
@@ -4212,15 +3821,12 @@ public com.google.protobuf.ProtocolStringList getDocumentCreatorFilterList() {
      * 
* * repeated string document_creator_filter = 11; - * * @return The count of documentCreatorFilter. */ public int getDocumentCreatorFilterCount() { return documentCreatorFilter_.size(); } /** - * - * *
      * The exact creator(s) of the documents to search against.
      *
@@ -4231,7 +3837,6 @@ public int getDocumentCreatorFilterCount() {
      * 
* * repeated string document_creator_filter = 11; - * * @param index The index of the element to return. * @return The documentCreatorFilter at the given index. */ @@ -4239,8 +3844,6 @@ public java.lang.String getDocumentCreatorFilter(int index) { return documentCreatorFilter_.get(index); } /** - * - * *
      * The exact creator(s) of the documents to search against.
      *
@@ -4251,16 +3854,14 @@ public java.lang.String getDocumentCreatorFilter(int index) {
      * 
* * repeated string document_creator_filter = 11; - * * @param index The index of the value to return. * @return The bytes of the documentCreatorFilter at the given index. */ - public com.google.protobuf.ByteString getDocumentCreatorFilterBytes(int index) { + public com.google.protobuf.ByteString + getDocumentCreatorFilterBytes(int index) { return documentCreatorFilter_.getByteString(index); } /** - * - * *
      * The exact creator(s) of the documents to search against.
      *
@@ -4271,15 +3872,13 @@ public com.google.protobuf.ByteString getDocumentCreatorFilterBytes(int index) {
      * 
* * repeated string document_creator_filter = 11; - * * @param index The index to set the value at. * @param value The documentCreatorFilter to set. * @return This builder for chaining. */ - public Builder setDocumentCreatorFilter(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentCreatorFilter( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentCreatorFilterIsMutable(); documentCreatorFilter_.set(index, value); bitField0_ |= 0x00000400; @@ -4287,8 +3886,6 @@ public Builder setDocumentCreatorFilter(int index, java.lang.String value) { return this; } /** - * - * *
      * The exact creator(s) of the documents to search against.
      *
@@ -4299,14 +3896,12 @@ public Builder setDocumentCreatorFilter(int index, java.lang.String value) {
      * 
* * repeated string document_creator_filter = 11; - * * @param value The documentCreatorFilter to add. * @return This builder for chaining. */ - public Builder addDocumentCreatorFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocumentCreatorFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentCreatorFilterIsMutable(); documentCreatorFilter_.add(value); bitField0_ |= 0x00000400; @@ -4314,8 +3909,6 @@ public Builder addDocumentCreatorFilter(java.lang.String value) { return this; } /** - * - * *
      * The exact creator(s) of the documents to search against.
      *
@@ -4326,20 +3919,19 @@ public Builder addDocumentCreatorFilter(java.lang.String value) {
      * 
* * repeated string document_creator_filter = 11; - * * @param values The documentCreatorFilter to add. * @return This builder for chaining. */ - public Builder addAllDocumentCreatorFilter(java.lang.Iterable values) { + public Builder addAllDocumentCreatorFilter( + java.lang.Iterable values) { ensureDocumentCreatorFilterIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentCreatorFilter_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documentCreatorFilter_); bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * The exact creator(s) of the documents to search against.
      *
@@ -4350,19 +3942,16 @@ public Builder addAllDocumentCreatorFilter(java.lang.Iterable
      * 
* * repeated string document_creator_filter = 11; - * * @return This builder for chaining. */ public Builder clearDocumentCreatorFilter() { - documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - ; + documentCreatorFilter_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400);; onChanged(); return this; } /** - * - * *
      * The exact creator(s) of the documents to search against.
      *
@@ -4373,14 +3962,12 @@ public Builder clearDocumentCreatorFilter() {
      * 
* * repeated string document_creator_filter = 11; - * * @param value The bytes of the documentCreatorFilter to add. * @return This builder for chaining. */ - public Builder addDocumentCreatorFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocumentCreatorFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDocumentCreatorFilterIsMutable(); documentCreatorFilter_.add(value); @@ -4391,13 +3978,8 @@ public Builder addDocumentCreatorFilterBytes(com.google.protobuf.ByteString valu private com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata customWeightsMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata, - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder, - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder> - customWeightsMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder> customWeightsMetadataBuilder_; /** - * - * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4406,17 +3988,13 @@ public Builder addDocumentCreatorFilterBytes(com.google.protobuf.ByteString valu
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; * @return Whether the customWeightsMetadata field is set. */ public boolean hasCustomWeightsMetadata() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4425,23 +4003,17 @@ public boolean hasCustomWeightsMetadata() {
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; * @return The customWeightsMetadata. */ public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getCustomWeightsMetadata() { if (customWeightsMetadataBuilder_ == null) { - return customWeightsMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() - : customWeightsMetadata_; + return customWeightsMetadata_ == null ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() : customWeightsMetadata_; } else { return customWeightsMetadataBuilder_.getMessage(); } } /** - * - * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4450,11 +4022,9 @@ public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getCustomWeigh
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; */ - public Builder setCustomWeightsMetadata( - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata value) { + public Builder setCustomWeightsMetadata(com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata value) { if (customWeightsMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4468,8 +4038,6 @@ public Builder setCustomWeightsMetadata( return this; } /** - * - * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4478,8 +4046,7 @@ public Builder setCustomWeightsMetadata(
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; */ public Builder setCustomWeightsMetadata( com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder builderForValue) { @@ -4493,8 +4060,6 @@ public Builder setCustomWeightsMetadata( return this; } /** - * - * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4503,17 +4068,13 @@ public Builder setCustomWeightsMetadata(
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; */ - public Builder mergeCustomWeightsMetadata( - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata value) { + public Builder mergeCustomWeightsMetadata(com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata value) { if (customWeightsMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && customWeightsMetadata_ != null - && customWeightsMetadata_ - != com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata - .getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + customWeightsMetadata_ != null && + customWeightsMetadata_ != com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance()) { getCustomWeightsMetadataBuilder().mergeFrom(value); } else { customWeightsMetadata_ = value; @@ -4526,8 +4087,6 @@ public Builder mergeCustomWeightsMetadata( return this; } /** - * - * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4536,8 +4095,7 @@ public Builder mergeCustomWeightsMetadata(
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; */ public Builder clearCustomWeightsMetadata() { bitField0_ = (bitField0_ & ~0x00000800); @@ -4550,8 +4108,6 @@ public Builder clearCustomWeightsMetadata() { return this; } /** - * - * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4560,18 +4116,14 @@ public Builder clearCustomWeightsMetadata() {
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; */ - public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder - getCustomWeightsMetadataBuilder() { + public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder getCustomWeightsMetadataBuilder() { bitField0_ |= 0x00000800; onChanged(); return getCustomWeightsMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4580,22 +4132,17 @@ public Builder clearCustomWeightsMetadata() {
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; */ - public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder - getCustomWeightsMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder getCustomWeightsMetadataOrBuilder() { if (customWeightsMetadataBuilder_ != null) { return customWeightsMetadataBuilder_.getMessageOrBuilder(); } else { - return customWeightsMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() - : customWeightsMetadata_; + return customWeightsMetadata_ == null ? + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() : customWeightsMetadata_; } } /** - * - * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4604,28 +4151,24 @@ public Builder clearCustomWeightsMetadata() {
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata, - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder, - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder> + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder> getCustomWeightsMetadataFieldBuilder() { if (customWeightsMetadataBuilder_ == null) { - customWeightsMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata, - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder, - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder>( - getCustomWeightsMetadata(), getParentForChildren(), isClean()); + customWeightsMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder>( + getCustomWeightsMetadata(), + getParentForChildren(), + isClean()); customWeightsMetadata_ = null; } return customWeightsMetadataBuilder_; } - @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); } @@ -4635,12 +4178,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DocumentQuery) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DocumentQuery) private static final com.google.cloud.contentwarehouse.v1.DocumentQuery DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DocumentQuery(); } @@ -4649,27 +4192,27 @@ public static com.google.cloud.contentwarehouse.v1.DocumentQuery getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DocumentQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4684,4 +4227,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DocumentQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java similarity index 90% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java index d17479994c71..3a128c4e45fd 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.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/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -public interface DocumentQueryOrBuilder - extends +public interface DocumentQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DocumentQuery) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The query string that matches against the full text of the document and
    * the searchable properties.
@@ -74,13 +56,10 @@ public interface DocumentQueryOrBuilder
    * 
* * string query = 1; - * * @return The query. */ java.lang.String getQuery(); /** - * - * *
    * The query string that matches against the full text of the document and
    * the searchable properties.
@@ -129,14 +108,12 @@ public interface DocumentQueryOrBuilder
    * 
* * string query = 1; - * * @return The bytes for query. */ - com.google.protobuf.ByteString getQueryBytes(); + com.google.protobuf.ByteString + getQueryBytes(); /** - * - * *
    * Experimental, do not use.
    * If the query is a natural language question. False by default. If true,
@@ -148,14 +125,11 @@ public interface DocumentQueryOrBuilder
    * 
* * bool is_nl_query = 12; - * * @return The isNlQuery. */ boolean getIsNlQuery(); /** - * - * *
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -179,16 +153,12 @@ public interface DocumentQueryOrBuilder
    * 
* * string custom_property_filter = 4 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is - * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return The customPropertyFilter. */ - @java.lang.Deprecated - java.lang.String getCustomPropertyFilter(); + @java.lang.Deprecated java.lang.String getCustomPropertyFilter(); /** - * - * *
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -212,17 +182,14 @@ public interface DocumentQueryOrBuilder
    * 
* * string custom_property_filter = 4 [deprecated = true]; - * - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is - * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. + * See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return The bytes for customPropertyFilter. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getCustomPropertyFilterBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getCustomPropertyFilterBytes(); /** - * - * *
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -230,10 +197,9 @@ public interface DocumentQueryOrBuilder
    *
    * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
    */
-  java.util.List getTimeFiltersList();
+  java.util.List 
+      getTimeFiltersList();
   /**
-   *
-   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -243,8 +209,6 @@ public interface DocumentQueryOrBuilder
    */
   com.google.cloud.contentwarehouse.v1.TimeFilter getTimeFilters(int index);
   /**
-   *
-   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -254,8 +218,6 @@ public interface DocumentQueryOrBuilder
    */
   int getTimeFiltersCount();
   /**
-   *
-   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -263,11 +225,9 @@ public interface DocumentQueryOrBuilder
    *
    * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
    */
-  java.util.List
+  java.util.List 
       getTimeFiltersOrBuilderList();
   /**
-   *
-   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -275,11 +235,10 @@ public interface DocumentQueryOrBuilder
    *
    * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
    */
-  com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index);
+  com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -294,13 +253,11 @@ public interface DocumentQueryOrBuilder
    * 
* * repeated string document_schema_names = 6; - * * @return A list containing the documentSchemaNames. */ - java.util.List getDocumentSchemaNamesList(); + java.util.List + getDocumentSchemaNamesList(); /** - * - * *
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -315,13 +272,10 @@ public interface DocumentQueryOrBuilder
    * 
* * repeated string document_schema_names = 6; - * * @return The count of documentSchemaNames. */ int getDocumentSchemaNamesCount(); /** - * - * *
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -336,14 +290,11 @@ public interface DocumentQueryOrBuilder
    * 
* * repeated string document_schema_names = 6; - * * @param index The index of the element to return. * @return The documentSchemaNames at the given index. */ java.lang.String getDocumentSchemaNames(int index); /** - * - * *
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -358,15 +309,13 @@ public interface DocumentQueryOrBuilder
    * 
* * repeated string document_schema_names = 6; - * * @param index The index of the value to return. * @return The bytes of the documentSchemaNames at the given index. */ - com.google.protobuf.ByteString getDocumentSchemaNamesBytes(int index); + com.google.protobuf.ByteString + getDocumentSchemaNamesBytes(int index); /** - * - * *
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -375,10 +324,9 @@ public interface DocumentQueryOrBuilder
    *
    * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
    */
-  java.util.List getPropertyFilterList();
+  java.util.List 
+      getPropertyFilterList();
   /**
-   *
-   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -389,8 +337,6 @@ public interface DocumentQueryOrBuilder
    */
   com.google.cloud.contentwarehouse.v1.PropertyFilter getPropertyFilter(int index);
   /**
-   *
-   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -401,8 +347,6 @@ public interface DocumentQueryOrBuilder
    */
   int getPropertyFilterCount();
   /**
-   *
-   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -411,11 +355,9 @@ public interface DocumentQueryOrBuilder
    *
    * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
    */
-  java.util.List
+  java.util.List 
       getPropertyFilterOrBuilderList();
   /**
-   *
-   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -428,8 +370,6 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
       int index);
 
   /**
-   *
-   *
    * 
    * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
    * If FOLDER or FILE is specified, then only either folders or files will be
@@ -440,13 +380,10 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8; - * * @return Whether the fileTypeFilter field is set. */ boolean hasFileTypeFilter(); /** - * - * *
    * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
    * If FOLDER or FILE is specified, then only either folders or files will be
@@ -457,13 +394,10 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8; - * * @return The fileTypeFilter. */ com.google.cloud.contentwarehouse.v1.FileTypeFilter getFileTypeFilter(); /** - * - * *
    * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
    * If FOLDER or FILE is specified, then only either folders or files will be
@@ -478,8 +412,6 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
   com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeFilterOrBuilder();
 
   /**
-   *
-   *
    * 
    * Search all the documents under this specified folder.
    * Format:
@@ -487,13 +419,10 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * string folder_name_filter = 9; - * * @return The folderNameFilter. */ java.lang.String getFolderNameFilter(); /** - * - * *
    * Search all the documents under this specified folder.
    * Format:
@@ -501,14 +430,12 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * string folder_name_filter = 9; - * * @return The bytes for folderNameFilter. */ - com.google.protobuf.ByteString getFolderNameFilterBytes(); + com.google.protobuf.ByteString + getFolderNameFilterBytes(); /** - * - * *
    * Search the documents in the list.
    * Format:
@@ -516,13 +443,11 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_name_filter = 14; - * * @return A list containing the documentNameFilter. */ - java.util.List getDocumentNameFilterList(); + java.util.List + getDocumentNameFilterList(); /** - * - * *
    * Search the documents in the list.
    * Format:
@@ -530,13 +455,10 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_name_filter = 14; - * * @return The count of documentNameFilter. */ int getDocumentNameFilterCount(); /** - * - * *
    * Search the documents in the list.
    * Format:
@@ -544,14 +466,11 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_name_filter = 14; - * * @param index The index of the element to return. * @return The documentNameFilter at the given index. */ java.lang.String getDocumentNameFilter(int index); /** - * - * *
    * Search the documents in the list.
    * Format:
@@ -559,15 +478,13 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_name_filter = 14; - * * @param index The index of the value to return. * @return The bytes of the documentNameFilter at the given index. */ - com.google.protobuf.ByteString getDocumentNameFilterBytes(int index); + com.google.protobuf.ByteString + getDocumentNameFilterBytes(int index); /** - * - * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -579,13 +496,11 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string query_context = 10; - * * @return A list containing the queryContext. */ - java.util.List getQueryContextList(); + java.util.List + getQueryContextList(); /** - * - * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -597,13 +512,10 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string query_context = 10; - * * @return The count of queryContext. */ int getQueryContextCount(); /** - * - * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -615,14 +527,11 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string query_context = 10; - * * @param index The index of the element to return. * @return The queryContext at the given index. */ java.lang.String getQueryContext(int index); /** - * - * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -634,15 +543,13 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string query_context = 10; - * * @param index The index of the value to return. * @return The bytes of the queryContext at the given index. */ - com.google.protobuf.ByteString getQueryContextBytes(int index); + com.google.protobuf.ByteString + getQueryContextBytes(int index); /** - * - * *
    * The exact creator(s) of the documents to search against.
    *
@@ -653,13 +560,11 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_creator_filter = 11; - * * @return A list containing the documentCreatorFilter. */ - java.util.List getDocumentCreatorFilterList(); + java.util.List + getDocumentCreatorFilterList(); /** - * - * *
    * The exact creator(s) of the documents to search against.
    *
@@ -670,13 +575,10 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_creator_filter = 11; - * * @return The count of documentCreatorFilter. */ int getDocumentCreatorFilterCount(); /** - * - * *
    * The exact creator(s) of the documents to search against.
    *
@@ -687,14 +589,11 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_creator_filter = 11; - * * @param index The index of the element to return. * @return The documentCreatorFilter at the given index. */ java.lang.String getDocumentCreatorFilter(int index); /** - * - * *
    * The exact creator(s) of the documents to search against.
    *
@@ -705,15 +604,13 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_creator_filter = 11; - * * @param index The index of the value to return. * @return The bytes of the documentCreatorFilter at the given index. */ - com.google.protobuf.ByteString getDocumentCreatorFilterBytes(int index); + com.google.protobuf.ByteString + getDocumentCreatorFilterBytes(int index); /** - * - * *
    * To support the custom weighting across document schemas, customers need to
    * provide the properties to be used to boost the ranking in the search
@@ -722,15 +619,11 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * be honored.
    * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; * @return Whether the customWeightsMetadata field is set. */ boolean hasCustomWeightsMetadata(); /** - * - * *
    * To support the custom weighting across document schemas, customers need to
    * provide the properties to be used to boost the ranking in the search
@@ -739,15 +632,11 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * be honored.
    * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; * @return The customWeightsMetadata. */ com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getCustomWeightsMetadata(); /** - * - * *
    * To support the custom weighting across document schemas, customers need to
    * provide the properties to be used to boost the ranking in the search
@@ -756,9 +645,7 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * be honored.
    * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; - * + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; */ - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder - getCustomWeightsMetadataOrBuilder(); + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder getCustomWeightsMetadataOrBuilder(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java similarity index 67% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java index 8a61da56b7e3..f9c2a492d25f 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * References to the documents.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentReference} */ -public final class DocumentReference extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentReference extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DocumentReference) DocumentReferenceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentReference.newBuilder() to construct. private DocumentReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentReference() { documentName_ = ""; displayName_ = ""; @@ -45,40 +27,33 @@ private DocumentReference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentReference(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentReference.class, - com.google.cloud.contentwarehouse.v1.DocumentReference.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentReference.class, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder.class); } public static final int DOCUMENT_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object documentName_ = ""; /** - * - * *
    * Required. Name of the referenced document.
    * 
* - * - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The documentName. */ @java.lang.Override @@ -87,31 +62,29 @@ public java.lang.String getDocumentName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentName_ = s; return s; } } /** - * - * *
    * Required. Name of the referenced document.
    * 
* - * - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for documentName. */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentNameBytes() { + public com.google.protobuf.ByteString + getDocumentNameBytes() { java.lang.Object ref = documentName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentName_ = b; return b; } else { @@ -120,12 +93,9 @@ public com.google.protobuf.ByteString getDocumentNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * display_name of the referenced document; this name does not need to be
    * consistent to the display_name in the Document proto, depending on the ACL
@@ -133,7 +103,6 @@ public com.google.protobuf.ByteString getDocumentNameBytes() {
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -142,15 +111,14 @@ 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; } } /** - * - * *
    * display_name of the referenced document; this name does not need to be
    * consistent to the display_name in the Document proto, depending on the ACL
@@ -158,15 +126,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; - * * @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 { @@ -175,12 +144,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int SNIPPET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object snippet_ = ""; /** - * - * *
    * Stores the subset of the referenced document's content.
    * This is useful to allow user peek the information of the referenced
@@ -188,7 +154,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string snippet = 3; - * * @return The snippet. */ @java.lang.Override @@ -197,15 +162,14 @@ public java.lang.String getSnippet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snippet_ = s; return s; } } /** - * - * *
    * Stores the subset of the referenced document's content.
    * This is useful to allow user peek the information of the referenced
@@ -213,15 +177,16 @@ public java.lang.String getSnippet() {
    * 
* * string snippet = 3; - * * @return The bytes for snippet. */ @java.lang.Override - public com.google.protobuf.ByteString getSnippetBytes() { + public com.google.protobuf.ByteString + getSnippetBytes() { java.lang.Object ref = snippet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); snippet_ = b; return b; } else { @@ -232,14 +197,11 @@ public com.google.protobuf.ByteString getSnippetBytes() { public static final int DOCUMENT_IS_FOLDER_FIELD_NUMBER = 4; private boolean documentIsFolder_ = false; /** - * - * *
    * The document type of the document being referenced.
    * 
* * bool document_is_folder = 4; - * * @return The documentIsFolder. */ @java.lang.Override @@ -250,15 +212,11 @@ public boolean getDocumentIsFolder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -266,15 +224,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -282,14 +236,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -299,15 +250,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -315,15 +262,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -331,14 +274,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -348,15 +288,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The time when the document is deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -364,15 +300,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The time when the document is deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -380,14 +312,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The time when the document is deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -397,14 +326,11 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int DOCUMENT_IS_RETENTION_FOLDER_FIELD_NUMBER = 8; private boolean documentIsRetentionFolder_ = false; /** - * - * *
    * Document is a folder with retention policy.
    * 
* * bool document_is_retention_folder = 8; - * * @return The documentIsRetentionFolder. */ @java.lang.Override @@ -415,14 +341,11 @@ public boolean getDocumentIsRetentionFolder() { public static final int DOCUMENT_IS_LEGAL_HOLD_FOLDER_FIELD_NUMBER = 9; private boolean documentIsLegalHoldFolder_ = false; /** - * - * *
    * Document is a folder with legal hold.
    * 
* * bool document_is_legal_hold_folder = 9; - * * @return The documentIsLegalHoldFolder. */ @java.lang.Override @@ -431,7 +354,6 @@ public boolean getDocumentIsLegalHoldFolder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -443,7 +365,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(documentName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentName_); } @@ -490,22 +413,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, snippet_); } if (documentIsFolder_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, documentIsFolder_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, documentIsFolder_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getDeleteTime()); } if (documentIsRetentionFolder_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, documentIsRetentionFolder_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, documentIsRetentionFolder_); } if (documentIsLegalHoldFolder_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, documentIsLegalHoldFolder_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, documentIsLegalHoldFolder_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -515,32 +444,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.contentwarehouse.v1.DocumentReference)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DocumentReference other = - (com.google.cloud.contentwarehouse.v1.DocumentReference) obj; + com.google.cloud.contentwarehouse.v1.DocumentReference other = (com.google.cloud.contentwarehouse.v1.DocumentReference) obj; - if (!getDocumentName().equals(other.getDocumentName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getSnippet().equals(other.getSnippet())) return false; - if (getDocumentIsFolder() != other.getDocumentIsFolder()) return false; + if (!getDocumentName() + .equals(other.getDocumentName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getSnippet() + .equals(other.getSnippet())) return false; + if (getDocumentIsFolder() + != other.getDocumentIsFolder()) 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 (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } - if (getDocumentIsRetentionFolder() != other.getDocumentIsRetentionFolder()) return false; - if (getDocumentIsLegalHoldFolder() != other.getDocumentIsLegalHoldFolder()) return false; + if (getDocumentIsRetentionFolder() + != other.getDocumentIsRetentionFolder()) return false; + if (getDocumentIsLegalHoldFolder() + != other.getDocumentIsLegalHoldFolder()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -559,7 +496,8 @@ public int hashCode() { hash = (37 * hash) + SNIPPET_FIELD_NUMBER; hash = (53 * hash) + getSnippet().hashCode(); hash = (37 * hash) + DOCUMENT_IS_FOLDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDocumentIsFolder()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDocumentIsFolder()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); @@ -573,145 +511,142 @@ public int hashCode() { hash = (53 * hash) + getDeleteTime().hashCode(); } hash = (37 * hash) + DOCUMENT_IS_RETENTION_FOLDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDocumentIsRetentionFolder()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDocumentIsRetentionFolder()); hash = (37 * hash) + DOCUMENT_IS_LEGAL_HOLD_FOLDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDocumentIsLegalHoldFolder()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDocumentIsLegalHoldFolder()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.DocumentReference 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.contentwarehouse.v1.DocumentReference parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentReference parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DocumentReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DocumentReference 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.contentwarehouse.v1.DocumentReference parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.DocumentReference prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DocumentReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * References to the documents.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentReference} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DocumentReference) com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentReference.class, - com.google.cloud.contentwarehouse.v1.DocumentReference.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentReference.class, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DocumentReference.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(); @@ -741,9 +676,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; } @java.lang.Override @@ -762,11 +697,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentReference build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentReference buildPartial() { - com.google.cloud.contentwarehouse.v1.DocumentReference result = - new com.google.cloud.contentwarehouse.v1.DocumentReference(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.DocumentReference result = new com.google.cloud.contentwarehouse.v1.DocumentReference(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -786,13 +718,19 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentReferenc result.documentIsFolder_ = documentIsFolder_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.documentIsRetentionFolder_ = documentIsRetentionFolder_; @@ -806,39 +744,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentReferenc public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.DocumentReference) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentReference) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentReference)other); } else { super.mergeFrom(other); return this; @@ -846,8 +783,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentReference other) { - if (other == com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance()) return this; if (!other.getDocumentName().isEmpty()) { documentName_ = other.documentName_; bitField0_ |= 0x00000001; @@ -907,67 +843,63 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - documentName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - snippet_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - documentIsFolder_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: - { - documentIsRetentionFolder_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: - { - documentIsLegalHoldFolder_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 72 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + documentName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + snippet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + documentIsFolder_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: { + documentIsRetentionFolder_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + documentIsLegalHoldFolder_ = input.readBool(); + bitField0_ |= 0x00000100; + 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) { @@ -977,27 +909,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object documentName_ = ""; /** - * - * *
      * Required. Name of the referenced document.
      * 
* - * - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The documentName. */ public java.lang.String getDocumentName() { java.lang.Object ref = documentName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentName_ = s; return s; @@ -1006,23 +933,20 @@ public java.lang.String getDocumentName() { } } /** - * - * *
      * Required. Name of the referenced document.
      * 
* - * - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for documentName. */ - public com.google.protobuf.ByteString getDocumentNameBytes() { + public com.google.protobuf.ByteString + getDocumentNameBytes() { java.lang.Object ref = documentName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentName_ = b; return b; } else { @@ -1030,39 +954,28 @@ public com.google.protobuf.ByteString getDocumentNameBytes() { } } /** - * - * *
      * Required. Name of the referenced document.
      * 
* - * - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The documentName to set. * @return This builder for chaining. */ - public Builder setDocumentName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the referenced document.
      * 
* - * - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDocumentName() { @@ -1072,23 +985,17 @@ public Builder clearDocumentName() { return this; } /** - * - * *
      * Required. Name of the referenced document.
      * 
* - * - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for documentName to set. * @return This builder for chaining. */ - public Builder setDocumentNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentName_ = value; bitField0_ |= 0x00000001; @@ -1098,8 +1005,6 @@ public Builder setDocumentNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * display_name of the referenced document; this name does not need to be
      * consistent to the display_name in the Document proto, depending on the ACL
@@ -1107,13 +1012,13 @@ public Builder setDocumentNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2; - * * @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; @@ -1122,8 +1027,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * display_name of the referenced document; this name does not need to be
      * consistent to the display_name in the Document proto, depending on the ACL
@@ -1131,14 +1034,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; - * * @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 { @@ -1146,8 +1050,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * display_name of the referenced document; this name does not need to be
      * consistent to the display_name in the Document proto, depending on the ACL
@@ -1155,22 +1057,18 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2; - * * @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; } /** - * - * *
      * display_name of the referenced document; this name does not need to be
      * consistent to the display_name in the Document proto, depending on the ACL
@@ -1178,7 +1076,6 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1188,8 +1085,6 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * display_name of the referenced document; this name does not need to be
      * consistent to the display_name in the Document proto, depending on the ACL
@@ -1197,14 +1092,12 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; - * * @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; @@ -1214,8 +1107,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object snippet_ = ""; /** - * - * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1223,13 +1114,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string snippet = 3; - * * @return The snippet. */ public java.lang.String getSnippet() { java.lang.Object ref = snippet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snippet_ = s; return s; @@ -1238,8 +1129,6 @@ public java.lang.String getSnippet() { } } /** - * - * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1247,14 +1136,15 @@ public java.lang.String getSnippet() {
      * 
* * string snippet = 3; - * * @return The bytes for snippet. */ - public com.google.protobuf.ByteString getSnippetBytes() { + public com.google.protobuf.ByteString + getSnippetBytes() { java.lang.Object ref = snippet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); snippet_ = b; return b; } else { @@ -1262,8 +1152,6 @@ public com.google.protobuf.ByteString getSnippetBytes() { } } /** - * - * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1271,22 +1159,18 @@ public com.google.protobuf.ByteString getSnippetBytes() {
      * 
* * string snippet = 3; - * * @param value The snippet to set. * @return This builder for chaining. */ - public Builder setSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSnippet( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } snippet_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1294,7 +1178,6 @@ public Builder setSnippet(java.lang.String value) {
      * 
* * string snippet = 3; - * * @return This builder for chaining. */ public Builder clearSnippet() { @@ -1304,8 +1187,6 @@ public Builder clearSnippet() { return this; } /** - * - * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1313,14 +1194,12 @@ public Builder clearSnippet() {
      * 
* * string snippet = 3; - * * @param value The bytes for snippet to set. * @return This builder for chaining. */ - public Builder setSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSnippetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snippet_ = value; bitField0_ |= 0x00000004; @@ -1328,16 +1207,13 @@ public Builder setSnippetBytes(com.google.protobuf.ByteString value) { return this; } - private boolean documentIsFolder_; + private boolean documentIsFolder_ ; /** - * - * *
      * The document type of the document being referenced.
      * 
* * bool document_is_folder = 4; - * * @return The documentIsFolder. */ @java.lang.Override @@ -1345,14 +1221,11 @@ public boolean getDocumentIsFolder() { return documentIsFolder_; } /** - * - * *
      * The document type of the document being referenced.
      * 
* * bool document_is_folder = 4; - * * @param value The documentIsFolder to set. * @return This builder for chaining. */ @@ -1364,14 +1237,11 @@ public Builder setDocumentIsFolder(boolean value) { return this; } /** - * - * *
      * The document type of the document being referenced.
      * 
* * bool document_is_folder = 4; - * * @return This builder for chaining. */ public Builder clearDocumentIsFolder() { @@ -1383,58 +1253,39 @@ public Builder clearDocumentIsFolder() { 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_; /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1450,17 +1301,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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 { @@ -1471,21 +1319,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1498,15 +1342,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1519,15 +1359,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1535,48 +1371,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time when the document is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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_; @@ -1584,58 +1408,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1651,17 +1456,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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 { @@ -1672,21 +1474,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1699,15 +1497,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1720,15 +1514,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000020; @@ -1736,48 +1526,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the document is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> 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_; @@ -1785,58 +1563,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. The time when the document is deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. The time when the document is deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the document is deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -1852,17 +1611,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document is deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -1873,21 +1629,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the document is deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -1900,15 +1652,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document is deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1921,15 +1669,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. The time when the document is deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000040; @@ -1937,63 +1681,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the document is deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. The time when the document is deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } - private boolean documentIsRetentionFolder_; + private boolean documentIsRetentionFolder_ ; /** - * - * *
      * Document is a folder with retention policy.
      * 
* * bool document_is_retention_folder = 8; - * * @return The documentIsRetentionFolder. */ @java.lang.Override @@ -2001,14 +1730,11 @@ public boolean getDocumentIsRetentionFolder() { return documentIsRetentionFolder_; } /** - * - * *
      * Document is a folder with retention policy.
      * 
* * bool document_is_retention_folder = 8; - * * @param value The documentIsRetentionFolder to set. * @return This builder for chaining. */ @@ -2020,14 +1746,11 @@ public Builder setDocumentIsRetentionFolder(boolean value) { return this; } /** - * - * *
      * Document is a folder with retention policy.
      * 
* * bool document_is_retention_folder = 8; - * * @return This builder for chaining. */ public Builder clearDocumentIsRetentionFolder() { @@ -2037,16 +1760,13 @@ public Builder clearDocumentIsRetentionFolder() { return this; } - private boolean documentIsLegalHoldFolder_; + private boolean documentIsLegalHoldFolder_ ; /** - * - * *
      * Document is a folder with legal hold.
      * 
* * bool document_is_legal_hold_folder = 9; - * * @return The documentIsLegalHoldFolder. */ @java.lang.Override @@ -2054,14 +1774,11 @@ public boolean getDocumentIsLegalHoldFolder() { return documentIsLegalHoldFolder_; } /** - * - * *
      * Document is a folder with legal hold.
      * 
* * bool document_is_legal_hold_folder = 9; - * * @param value The documentIsLegalHoldFolder to set. * @return This builder for chaining. */ @@ -2073,14 +1790,11 @@ public Builder setDocumentIsLegalHoldFolder(boolean value) { return this; } /** - * - * *
      * Document is a folder with legal hold.
      * 
* * bool document_is_legal_hold_folder = 9; - * * @return This builder for chaining. */ public Builder clearDocumentIsLegalHoldFolder() { @@ -2089,9 +1803,9 @@ public Builder clearDocumentIsLegalHoldFolder() { 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); } @@ -2101,12 +1815,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DocumentReference) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DocumentReference) private static final com.google.cloud.contentwarehouse.v1.DocumentReference DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DocumentReference(); } @@ -2115,27 +1829,27 @@ public static com.google.cloud.contentwarehouse.v1.DocumentReference getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DocumentReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2150,4 +1864,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DocumentReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java similarity index 71% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java index 5ea193c67f36..23e1c3eab2c9 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface DocumentReferenceOrBuilder - extends +public interface DocumentReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DocumentReference) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the referenced document.
    * 
* - * - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The documentName. */ java.lang.String getDocumentName(); /** - * - * *
    * Required. Name of the referenced document.
    * 
* - * - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for documentName. */ - com.google.protobuf.ByteString getDocumentNameBytes(); + com.google.protobuf.ByteString + getDocumentNameBytes(); /** - * - * *
    * display_name of the referenced document; this name does not need to be
    * consistent to the display_name in the Document proto, depending on the ACL
@@ -62,13 +35,10 @@ public interface DocumentReferenceOrBuilder
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * display_name of the referenced document; this name does not need to be
    * consistent to the display_name in the Document proto, depending on the ACL
@@ -76,14 +46,12 @@ public interface DocumentReferenceOrBuilder
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Stores the subset of the referenced document's content.
    * This is useful to allow user peek the information of the referenced
@@ -91,13 +59,10 @@ public interface DocumentReferenceOrBuilder
    * 
* * string snippet = 3; - * * @return The snippet. */ java.lang.String getSnippet(); /** - * - * *
    * Stores the subset of the referenced document's content.
    * This is useful to allow user peek the information of the referenced
@@ -105,160 +70,118 @@ public interface DocumentReferenceOrBuilder
    * 
* * string snippet = 3; - * * @return The bytes for snippet. */ - com.google.protobuf.ByteString getSnippetBytes(); + com.google.protobuf.ByteString + getSnippetBytes(); /** - * - * *
    * The document type of the document being referenced.
    * 
* * bool document_is_folder = 4; - * * @return The documentIsFolder. */ boolean getDocumentIsFolder(); /** - * - * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time when the document is deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The time when the document is deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The time when the document is deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Document is a folder with retention policy.
    * 
* * bool document_is_retention_folder = 8; - * * @return The documentIsRetentionFolder. */ boolean getDocumentIsRetentionFolder(); /** - * - * *
    * Document is a folder with legal hold.
    * 
* * bool document_is_legal_hold_folder = 9; - * * @return The documentIsLegalHoldFolder. */ boolean getDocumentIsLegalHoldFolder(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java similarity index 68% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java index d6a157e25f40..9ea4121b55d1 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.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/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * A document schema used to define document structure.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentSchema} */ -public final class DocumentSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DocumentSchema) DocumentSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentSchema.newBuilder() to construct. private DocumentSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentSchema() { name_ = ""; displayName_ = ""; @@ -46,32 +28,28 @@ private DocumentSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentSchema(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentSchema.class, - com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentSchema.class, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the document schema.
    * Format:
@@ -81,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -90,15 +67,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the document schema.
    * Format:
@@ -108,15 +84,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,18 +102,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. Name of the schema given by the user. Must be unique per project.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -145,29 +118,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; } } /** - * - * *
    * Required. Name of the schema given by the user. Must be unique per project.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -176,96 +149,75 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int PROPERTY_DEFINITIONS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List - propertyDefinitions_; + private java.util.List propertyDefinitions_; /** - * - * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ @java.lang.Override - public java.util.List - getPropertyDefinitionsList() { + public java.util.List getPropertyDefinitionsList() { return propertyDefinitions_; } /** - * - * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ @java.lang.Override - public java.util.List + public java.util.List getPropertyDefinitionsOrBuilderList() { return propertyDefinitions_; } /** - * - * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ @java.lang.Override public int getPropertyDefinitionsCount() { return propertyDefinitions_.size(); } /** - * - * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index) { return propertyDefinitions_.get(index); } /** - * - * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder - getPropertyDefinitionsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( + int index) { return propertyDefinitions_.get(index); } public static final int DOCUMENT_IS_FOLDER_FIELD_NUMBER = 4; private boolean documentIsFolder_ = false; /** - * - * *
    * Document Type, true refers the document is a folder, otherwise it is
    * a typical document.
    * 
* * bool document_is_folder = 4; - * * @return The documentIsFolder. */ @java.lang.Override @@ -276,15 +228,11 @@ public boolean getDocumentIsFolder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time when the document schema is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -292,15 +240,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time when the document schema is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -308,14 +252,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time when the document schema is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -325,15 +266,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the document schema is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -341,15 +278,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the document schema is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -357,14 +290,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the document schema is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -372,18 +302,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int DESCRIPTION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Schema description.
    * 
* * string description = 7; - * * @return The description. */ @java.lang.Override @@ -392,29 +318,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Schema description.
    * 
* * string description = 7; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -423,7 +349,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,7 +360,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_); } @@ -473,17 +399,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < propertyDefinitions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, propertyDefinitions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, propertyDefinitions_.get(i)); } if (documentIsFolder_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, documentIsFolder_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, documentIsFolder_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); @@ -496,27 +425,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.contentwarehouse.v1.DocumentSchema)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DocumentSchema other = - (com.google.cloud.contentwarehouse.v1.DocumentSchema) obj; + com.google.cloud.contentwarehouse.v1.DocumentSchema other = (com.google.cloud.contentwarehouse.v1.DocumentSchema) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getPropertyDefinitionsList().equals(other.getPropertyDefinitionsList())) return false; - if (getDocumentIsFolder() != other.getDocumentIsFolder()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getPropertyDefinitionsList() + .equals(other.getPropertyDefinitionsList())) return false; + if (getDocumentIsFolder() + != other.getDocumentIsFolder()) 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 (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -537,7 +472,8 @@ public int hashCode() { hash = (53 * hash) + getPropertyDefinitionsList().hashCode(); } hash = (37 * hash) + DOCUMENT_IS_FOLDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDocumentIsFolder()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDocumentIsFolder()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); @@ -554,135 +490,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DocumentSchema 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.contentwarehouse.v1.DocumentSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DocumentSchema 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.contentwarehouse.v1.DocumentSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DocumentSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 document schema used to define document structure.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DocumentSchema) com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentSchema.class, - com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentSchema.class, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DocumentSchema.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(); @@ -712,9 +644,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor; } @java.lang.Override @@ -733,18 +665,14 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentSchema buildPartial() { - com.google.cloud.contentwarehouse.v1.DocumentSchema result = - new com.google.cloud.contentwarehouse.v1.DocumentSchema(this); + com.google.cloud.contentwarehouse.v1.DocumentSchema result = new com.google.cloud.contentwarehouse.v1.DocumentSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.DocumentSchema result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.DocumentSchema result) { if (propertyDefinitionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { propertyDefinitions_ = java.util.Collections.unmodifiableList(propertyDefinitions_); @@ -768,10 +696,14 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentSchema r result.documentIsFolder_ = documentIsFolder_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.description_ = description_; @@ -782,39 +714,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentSchema 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.contentwarehouse.v1.DocumentSchema) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentSchema) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentSchema)other); } else { super.mergeFrom(other); return this; @@ -822,8 +753,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentSchema other) { - if (other == com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -852,10 +782,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentSchema oth propertyDefinitionsBuilder_ = null; propertyDefinitions_ = other.propertyDefinitions_; bitField0_ = (bitField0_ & ~0x00000004); - propertyDefinitionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPropertyDefinitionsFieldBuilder() - : null; + propertyDefinitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertyDefinitionsFieldBuilder() : null; } else { propertyDefinitionsBuilder_.addAllMessages(other.propertyDefinitions_); } @@ -901,63 +830,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.cloud.contentwarehouse.v1.PropertyDefinition m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.parser(), - extensionRegistry); - if (propertyDefinitionsBuilder_ == null) { - ensurePropertyDefinitionsIsMutable(); - propertyDefinitions_.add(m); - } else { - propertyDefinitionsBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: - { - documentIsFolder_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - 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: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.cloud.contentwarehouse.v1.PropertyDefinition m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.parser(), + extensionRegistry); + if (propertyDefinitionsBuilder_ == null) { + ensurePropertyDefinitionsIsMutable(); + propertyDefinitions_.add(m); + } else { + propertyDefinitionsBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: { + documentIsFolder_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + description_ = 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) { @@ -967,13 +892,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the document schema.
      * Format:
@@ -983,13 +905,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -998,8 +920,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the document schema.
      * Format:
@@ -1009,14 +929,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1024,8 +945,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the document schema.
      * Format:
@@ -1035,22 +954,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the document schema.
      * Format:
@@ -1060,7 +975,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1070,8 +984,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the document schema.
      * Format:
@@ -1081,14 +993,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1098,20 +1008,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Name of the schema given by the user. Must be unique per project.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1120,21 +1028,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Name of the schema given by the user. Must be unique per project.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1142,35 +1049,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Name of the schema given by the user. Must be unique per project.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Name of the schema given by the user. Must be unique per project.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1180,21 +1080,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. Name of the schema given by the user. Must be unique per project.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1202,36 +1098,26 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List - propertyDefinitions_ = java.util.Collections.emptyList(); - + private java.util.List propertyDefinitions_ = + java.util.Collections.emptyList(); private void ensurePropertyDefinitionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - propertyDefinitions_ = - new java.util.ArrayList( - propertyDefinitions_); + propertyDefinitions_ = new java.util.ArrayList(propertyDefinitions_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, - com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> - propertyDefinitionsBuilder_; + com.google.cloud.contentwarehouse.v1.PropertyDefinition, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> propertyDefinitionsBuilder_; /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ - public java.util.List - getPropertyDefinitionsList() { + public java.util.List getPropertyDefinitionsList() { if (propertyDefinitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(propertyDefinitions_); } else { @@ -1239,14 +1125,11 @@ private void ensurePropertyDefinitionsIsMutable() { } } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ public int getPropertyDefinitionsCount() { if (propertyDefinitionsBuilder_ == null) { @@ -1256,17 +1139,13 @@ public int getPropertyDefinitionsCount() { } } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index) { if (propertyDefinitionsBuilder_ == null) { return propertyDefinitions_.get(index); } else { @@ -1274,14 +1153,11 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefini } } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ public Builder setPropertyDefinitions( int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { @@ -1298,18 +1174,14 @@ public Builder setPropertyDefinitions( return this; } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ public Builder setPropertyDefinitions( - int index, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { if (propertyDefinitionsBuilder_ == null) { ensurePropertyDefinitionsIsMutable(); propertyDefinitions_.set(index, builderForValue.build()); @@ -1320,17 +1192,13 @@ public Builder setPropertyDefinitions( return this; } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ - public Builder addPropertyDefinitions( - com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { + public Builder addPropertyDefinitions(com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { if (propertyDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1344,14 +1212,11 @@ public Builder addPropertyDefinitions( return this; } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ public Builder addPropertyDefinitions( int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { @@ -1368,14 +1233,11 @@ public Builder addPropertyDefinitions( return this; } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ public Builder addPropertyDefinitions( com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { @@ -1389,18 +1251,14 @@ public Builder addPropertyDefinitions( return this; } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ public Builder addPropertyDefinitions( - int index, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { if (propertyDefinitionsBuilder_ == null) { ensurePropertyDefinitionsIsMutable(); propertyDefinitions_.add(index, builderForValue.build()); @@ -1411,21 +1269,18 @@ public Builder addPropertyDefinitions( return this; } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ public Builder addAllPropertyDefinitions( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (propertyDefinitionsBuilder_ == null) { ensurePropertyDefinitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyDefinitions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, propertyDefinitions_); onChanged(); } else { propertyDefinitionsBuilder_.addAllMessages(values); @@ -1433,14 +1288,11 @@ public Builder addAllPropertyDefinitions( return this; } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ public Builder clearPropertyDefinitions() { if (propertyDefinitionsBuilder_ == null) { @@ -1453,14 +1305,11 @@ public Builder clearPropertyDefinitions() { return this; } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ public Builder removePropertyDefinitions(int index) { if (propertyDefinitionsBuilder_ == null) { @@ -1473,50 +1322,39 @@ public Builder removePropertyDefinitions(int index) { return this; } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder - getPropertyDefinitionsBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder getPropertyDefinitionsBuilder( + int index) { return getPropertyDefinitionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder - getPropertyDefinitionsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( + int index) { if (propertyDefinitionsBuilder_ == null) { - return propertyDefinitions_.get(index); - } else { + return propertyDefinitions_.get(index); } else { return propertyDefinitionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ - public java.util.List< - ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> - getPropertyDefinitionsOrBuilderList() { + public java.util.List + getPropertyDefinitionsOrBuilderList() { if (propertyDefinitionsBuilder_ != null) { return propertyDefinitionsBuilder_.getMessageOrBuilderList(); } else { @@ -1524,62 +1362,45 @@ public Builder removePropertyDefinitions(int index) { } } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder - addPropertyDefinitionsBuilder() { - return getPropertyDefinitionsFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder addPropertyDefinitionsBuilder() { + return getPropertyDefinitionsFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder - addPropertyDefinitionsBuilder(int index) { - return getPropertyDefinitionsFieldBuilder() - .addBuilder( - index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder addPropertyDefinitionsBuilder( + int index) { + return getPropertyDefinitionsFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); } /** - * - * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ - public java.util.List - getPropertyDefinitionsBuilderList() { + public java.util.List + getPropertyDefinitionsBuilderList() { return getPropertyDefinitionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, - com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> + com.google.cloud.contentwarehouse.v1.PropertyDefinition, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> getPropertyDefinitionsFieldBuilder() { if (propertyDefinitionsBuilder_ == null) { - propertyDefinitionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, - com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder>( + propertyDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.PropertyDefinition, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder>( propertyDefinitions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -1589,17 +1410,14 @@ public Builder removePropertyDefinitions(int index) { return propertyDefinitionsBuilder_; } - private boolean documentIsFolder_; + private boolean documentIsFolder_ ; /** - * - * *
      * Document Type, true refers the document is a folder, otherwise it is
      * a typical document.
      * 
* * bool document_is_folder = 4; - * * @return The documentIsFolder. */ @java.lang.Override @@ -1607,15 +1425,12 @@ public boolean getDocumentIsFolder() { return documentIsFolder_; } /** - * - * *
      * Document Type, true refers the document is a folder, otherwise it is
      * a typical document.
      * 
* * bool document_is_folder = 4; - * * @param value The documentIsFolder to set. * @return This builder for chaining. */ @@ -1627,15 +1442,12 @@ public Builder setDocumentIsFolder(boolean value) { return this; } /** - * - * *
      * Document Type, true refers the document is a folder, otherwise it is
      * a typical document.
      * 
* * bool document_is_folder = 4; - * * @return This builder for chaining. */ public Builder clearDocumentIsFolder() { @@ -1647,58 +1459,39 @@ public Builder clearDocumentIsFolder() { 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_; /** - * - * *
      * Output only. The time when the document schema is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Output only. The time when the document schema is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the document schema is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1714,17 +1507,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document schema is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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 { @@ -1735,21 +1525,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the document schema is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1762,15 +1548,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document schema is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1783,15 +1565,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time when the document schema is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1799,48 +1577,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the document schema is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time when the document schema is last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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_; @@ -1848,58 +1614,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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. The time when the document schema is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. The time when the document schema is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the document schema is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1915,17 +1662,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document schema is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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 { @@ -1936,21 +1680,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the document schema is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1963,15 +1703,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the document schema is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1984,15 +1720,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the document schema is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000020; @@ -2000,48 +1732,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the document schema is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the document schema is created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> 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_; @@ -2049,20 +1769,18 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object description_ = ""; /** - * - * *
      * Schema description.
      * 
* * string description = 7; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2071,21 +1789,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Schema description.
      * 
* * string description = 7; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2093,35 +1810,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Schema description.
      * 
* * string description = 7; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Schema description.
      * 
* * string description = 7; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2131,30 +1841,26 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Schema description.
      * 
* * string description = 7; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000040; 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); } @@ -2164,12 +1870,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DocumentSchema) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DocumentSchema) private static final com.google.cloud.contentwarehouse.v1.DocumentSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DocumentSchema(); } @@ -2178,27 +1884,27 @@ public static com.google.cloud.contentwarehouse.v1.DocumentSchema getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DocumentSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2213,4 +1919,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DocumentSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java similarity index 74% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java index 9152fdce193c..1a5b450de0d9 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.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/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; -public interface DocumentSchemaOrBuilder - extends +public interface DocumentSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DocumentSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the document schema.
    * Format:
@@ -35,13 +17,10 @@ public interface DocumentSchemaOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the document schema.
    * Format:
@@ -51,207 +30,157 @@ public interface DocumentSchemaOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Name of the schema given by the user. Must be unique per project.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Name of the schema given by the user. Must be unique per project.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ - java.util.List + java.util.List getPropertyDefinitionsList(); /** - * - * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index); /** - * - * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ int getPropertyDefinitionsCount(); /** - * - * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ - java.util.List + java.util.List getPropertyDefinitionsOrBuilderList(); /** - * - * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; */ com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( int index); /** - * - * *
    * Document Type, true refers the document is a folder, otherwise it is
    * a typical document.
    * 
* * bool document_is_folder = 4; - * * @return The documentIsFolder. */ boolean getDocumentIsFolder(); /** - * - * *
    * Output only. The time when the document schema is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time when the document schema is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time when the document schema is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time when the document schema is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the document schema is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the document schema is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Schema description.
    * 
* * string description = 7; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Schema description.
    * 
* * string description = 7; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java new file mode 100644 index 000000000000..b23e9d445617 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java @@ -0,0 +1,229 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class DocumentSchemaProto { + private DocumentSchemaProto() {} + 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_contentwarehouse_v1_DocumentSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_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/contentwarehouse/v1/docum" + + "ent_schema.proto\022 google.cloud.contentwa" + + "rehouse.v1\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\255\003\n\016DocumentSche" + + "ma\022\014\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004" + + "\342A\001\002\022R\n\024property_definitions\030\003 \003(\01324.goo" + + "gle.cloud.contentwarehouse.v1.PropertyDe" + + "finition\022\032\n\022document_is_folder\030\004 \001(\010\0225\n\013" + + "update_time\030\005 \001(\0132\032.google.protobuf.Time" + + "stampB\004\342A\001\003\0225\n\013create_time\030\006 \001(\0132\032.googl" + + "e.protobuf.TimestampB\004\342A\001\003\022\023\n\013descriptio" + + "n\030\007 \001(\t:~\352A{\n.contentwarehouse.googleapi" + + "s.com/DocumentSchema\022Iprojects/{project}" + + "/locations/{location}/documentSchemas/{d" + + "ocument_schema}\"\336\t\n\022PropertyDefinition\022\022" + + "\n\004name\030\001 \001(\tB\004\342A\001\002\022\024\n\014display_name\030\014 \001(\t" + + "\022\025\n\ris_repeatable\030\002 \001(\010\022\025\n\ris_filterable" + + "\030\003 \001(\010\022\025\n\ris_searchable\030\004 \001(\010\022\023\n\013is_meta" + + "data\030\005 \001(\010\022\023\n\013is_required\030\016 \001(\010\022f\n\024retri" + + "eval_importance\030\022 \001(\0162H.google.cloud.con" + + "tentwarehouse.v1.PropertyDefinition.Retr" + + "ievalImportance\022T\n\024integer_type_options\030" + + "\007 \001(\01324.google.cloud.contentwarehouse.v1" + + ".IntegerTypeOptionsH\000\022P\n\022float_type_opti" + + "ons\030\010 \001(\01322.google.cloud.contentwarehous" + + "e.v1.FloatTypeOptionsH\000\022N\n\021text_type_opt" + + "ions\030\t \001(\01321.google.cloud.contentwarehou" + + "se.v1.TextTypeOptionsH\000\022V\n\025property_type" + + "_options\030\n \001(\01325.google.cloud.contentwar" + + "ehouse.v1.PropertyTypeOptionsH\000\022N\n\021enum_" + + "type_options\030\013 \001(\01321.google.cloud.conten" + + "twarehouse.v1.EnumTypeOptionsH\000\022W\n\026date_" + + "time_type_options\030\r \001(\01325.google.cloud.c" + + "ontentwarehouse.v1.DateTimeTypeOptionsH\000" + + "\022L\n\020map_type_options\030\017 \001(\01320.google.clou" + + "d.contentwarehouse.v1.MapTypeOptionsH\000\022X" + + "\n\026timestamp_type_options\030\020 \001(\01326.google." + + "cloud.contentwarehouse.v1.TimestampTypeO" + + "ptionsH\000\022Y\n\016schema_sources\030\023 \003(\0132A.googl" + + "e.cloud.contentwarehouse.v1.PropertyDefi" + + "nition.SchemaSource\0324\n\014SchemaSource\022\014\n\004n" + + "ame\030\001 \001(\t\022\026\n\016processor_type\030\002 \001(\t\"\177\n\023Ret" + + "rievalImportance\022$\n RETRIEVAL_IMPORTANCE" + + "_UNSPECIFIED\020\000\022\013\n\007HIGHEST\020\001\022\n\n\006HIGHER\020\002\022" + + "\010\n\004HIGH\020\003\022\n\n\006MEDIUM\020\004\022\007\n\003LOW\020\005\022\n\n\006LOWEST" + + "\020\006B\024\n\022value_type_options\"\024\n\022IntegerTypeO" + + "ptions\"\022\n\020FloatTypeOptions\"\021\n\017TextTypeOp" + + "tions\"\025\n\023DateTimeTypeOptions\"\020\n\016MapTypeO" + + "ptions\"\026\n\024TimestampTypeOptions\"o\n\023Proper" + + "tyTypeOptions\022X\n\024property_definitions\030\001 " + + "\003(\01324.google.cloud.contentwarehouse.v1.P" + + "ropertyDefinitionB\004\342A\001\002\"S\n\017EnumTypeOptio" + + "ns\022\035\n\017possible_values\030\001 \003(\tB\004\342A\001\002\022!\n\031val" + + "idation_check_disabled\030\002 \001(\010B\373\001\n$com.goo" + + "gle.cloud.contentwarehouse.v1B\023DocumentS" + + "chemaProtoP\001ZPcloud.google.com/go/conten" + + "twarehouse/apiv1/contentwarehousepb;cont" + + "entwarehousepb\252\002 Google.Cloud.ContentWar" + + "ehouse.V1\312\002 Google\\Cloud\\ContentWarehous" + + "e\\V1\352\002#Google::Cloud::ContentWarehouse::" + + "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_contentwarehouse_v1_DocumentSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor, + new java.lang.String[] { "Name", "DisplayName", "PropertyDefinitions", "DocumentIsFolder", "UpdateTime", "CreateTime", "Description", }); + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor, + new java.lang.String[] { "Name", "DisplayName", "IsRepeatable", "IsFilterable", "IsSearchable", "IsMetadata", "IsRequired", "RetrievalImportance", "IntegerTypeOptions", "FloatTypeOptions", "TextTypeOptions", "PropertyTypeOptions", "EnumTypeOptions", "DateTimeTypeOptions", "MapTypeOptions", "TimestampTypeOptions", "SchemaSources", "ValueTypeOptions", }); + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor = + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor, + new java.lang.String[] { "Name", "ProcessorType", }); + internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor, + new java.lang.String[] { "PropertyDefinitions", }); + internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor, + new java.lang.String[] { "PossibleValues", "ValidationCheckDisabled", }); + 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.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java new file mode 100644 index 000000000000..42583ed6dc0f --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java @@ -0,0 +1,187 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class DocumentSchemaServiceProto { + private DocumentSchemaServiceProto() {} + 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_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_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/contentwarehouse/v1/docum" + + "ent_schema_service.proto\022 google.cloud.c" + + "ontentwarehouse.v1\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/r" + + "esource.proto\0326google/cloud/contentwareh" + + "ouse/v1/document_schema.proto\032\033google/pr" + + "otobuf/empty.proto\"\261\001\n\033CreateDocumentSch" + + "emaRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(con" + + "tentwarehouse.googleapis.com/Location\022O\n" + + "\017document_schema\030\002 \001(\01320.google.cloud.co" + + "ntentwarehouse.v1.DocumentSchemaB\004\342A\001\002\"a" + + "\n\030GetDocumentSchemaRequest\022E\n\004name\030\001 \001(\t" + + "B7\342A\001\002\372A0\n.contentwarehouse.googleapis.c" + + "om/DocumentSchema\"\265\001\n\033UpdateDocumentSche" + + "maRequest\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.conten" + + "twarehouse.googleapis.com/DocumentSchema" + + "\022O\n\017document_schema\030\002 \001(\01320.google.cloud" + + ".contentwarehouse.v1.DocumentSchemaB\004\342A\001" + + "\002\"d\n\033DeleteDocumentSchemaRequest\022E\n\004name" + + "\030\001 \001(\tB7\342A\001\002\372A0\n.contentwarehouse.google" + + "apis.com/DocumentSchema\"\206\001\n\032ListDocument" + + "SchemasRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n" + + "(contentwarehouse.googleapis.com/Locatio" + + "n\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\"\202\001\n\033ListDocumentSchemasResponse\022J\n\020docu" + + "ment_schemas\030\001 \003(\01320.google.cloud.conten" + + "twarehouse.v1.DocumentSchema\022\027\n\017next_pag" + + "e_token\030\002 \001(\t2\225\t\n\025DocumentSchemaService\022" + + "\356\001\n\024CreateDocumentSchema\022=.google.cloud." + + "contentwarehouse.v1.CreateDocumentSchema" + + "Request\0320.google.cloud.contentwarehouse." + + "v1.DocumentSchema\"e\332A\026parent,document_sc" + + "hema\202\323\344\223\002F\"3/v1/{parent=projects/*/locat" + + "ions/*}/documentSchemas:\017document_schema" + + "\022\336\001\n\024UpdateDocumentSchema\022=.google.cloud" + + ".contentwarehouse.v1.UpdateDocumentSchem" + + "aRequest\0320.google.cloud.contentwarehouse" + + ".v1.DocumentSchema\"U\332A\024name,document_sch" + + "ema\202\323\344\223\002823/v1/{name=projects/*/location" + + "s/*/documentSchemas/*}:\001*\022\305\001\n\021GetDocumen" + + "tSchema\022:.google.cloud.contentwarehouse." + + "v1.GetDocumentSchemaRequest\0320.google.clo" + + "ud.contentwarehouse.v1.DocumentSchema\"B\332" + + "A\004name\202\323\344\223\0025\0223/v1/{name=projects/*/locat" + + "ions/*/documentSchemas/*}\022\261\001\n\024DeleteDocu" + + "mentSchema\022=.google.cloud.contentwarehou" + + "se.v1.DeleteDocumentSchemaRequest\032\026.goog" + + "le.protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3/v1/{n" + + "ame=projects/*/locations/*/documentSchem" + + "as/*}\022\330\001\n\023ListDocumentSchemas\022<.google.c" + + "loud.contentwarehouse.v1.ListDocumentSch" + + "emasRequest\032=.google.cloud.contentwareho" + + "use.v1.ListDocumentSchemasResponse\"D\332A\006p" + + "arent\202\323\344\223\0025\0223/v1/{parent=projects/*/loca" + + "tions/*}/documentSchemas\032S\312A\037contentware" + + "house.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\202\002\n$com.go" + + "ogle.cloud.contentwarehouse.v1B\032Document" + + "SchemaServiceProtoP\001ZPcloud.google.com/g" + + "o/contentwarehouse/apiv1/contentwarehous" + + "epb;contentwarehousepb\252\002 Google.Cloud.Co" + + "ntentWarehouse.V1\312\002 Google\\Cloud\\Content" + + "Warehouse\\V1\352\002#Google::Cloud::ContentWar" + + "ehouse::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.contentwarehouse.v1.DocumentSchemaProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor, + new java.lang.String[] { "Parent", "DocumentSchema", }); + internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor, + new java.lang.String[] { "Name", "DocumentSchema", }); + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor, + new java.lang.String[] { "DocumentSchemas", "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.contentwarehouse.v1.DocumentSchemaProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java new file mode 100644 index 000000000000..db393ed419ec --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java @@ -0,0 +1,259 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_service.proto + +package com.google.cloud.contentwarehouse.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_contentwarehouse_v1_CreateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_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/contentwarehouse/v1/docum" + + "ent_service.proto\022 google.cloud.contentw" + + "arehouse.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\031google/api/r" + + "esource.proto\032-google/cloud/contentwareh" + + "ouse/v1/common.proto\032/google/cloud/conte" + + "ntwarehouse/v1/document.proto\032?google/cl" + + "oud/contentwarehouse/v1/document_service" + + "_request.proto\0320google/cloud/contentware" + + "house/v1/histogram.proto\0322google/cloud/c" + + "ontentwarehouse/v1/rule_engine.proto\032\032go" + + "ogle/iam/v1/policy.proto\032#google/longrun" + + "ning/operations.proto\032\033google/protobuf/e" + + "mpty.proto\"\254\002\n\026CreateDocumentResponse\022<\n" + + "\010document\030\001 \001(\0132*.google.cloud.contentwa" + + "rehouse.v1.Document\022N\n\022rule_engine_outpu" + + "t\030\002 \001(\01322.google.cloud.contentwarehouse." + + "v1.RuleEngineOutput\022D\n\010metadata\030\003 \001(\01322." + + "google.cloud.contentwarehouse.v1.Respons" + + "eMetadata\022>\n\027long_running_operations\030\004 \003" + + "(\0132\035.google.longrunning.Operation\"\354\001\n\026Up" + + "dateDocumentResponse\022<\n\010document\030\001 \001(\0132*" + + ".google.cloud.contentwarehouse.v1.Docume" + + "nt\022N\n\022rule_engine_output\030\002 \001(\01322.google." + + "cloud.contentwarehouse.v1.RuleEngineOutp" + + "ut\022D\n\010metadata\030\003 \001(\01322.google.cloud.cont" + + "entwarehouse.v1.ResponseMetadata\"\243\001\n\010QAR" + + "esult\022H\n\nhighlights\030\001 \003(\01324.google.cloud" + + ".contentwarehouse.v1.QAResult.Highlight\022" + + "\030\n\020confidence_score\030\002 \001(\002\0323\n\tHighlight\022\023" + + "\n\013start_index\030\001 \001(\005\022\021\n\tend_index\030\002 \001(\005\"\225" + + "\004\n\027SearchDocumentsResponse\022f\n\022matching_d" + + "ocuments\030\001 \003(\0132J.google.cloud.contentwar" + + "ehouse.v1.SearchDocumentsResponse.Matchi" + + "ngDocument\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\nt" + + "otal_size\030\003 \001(\005\022D\n\010metadata\030\004 \001(\01322.goog" + + "le.cloud.contentwarehouse.v1.ResponseMet" + + "adata\022W\n\027histogram_query_results\030\006 \003(\01326" + + ".google.cloud.contentwarehouse.v1.Histog" + + "ramQueryResult\022\027\n\017question_answer\030\007 \001(\t\032" + + "\254\001\n\020MatchingDocument\022<\n\010document\030\001 \001(\0132*" + + ".google.cloud.contentwarehouse.v1.Docume" + + "nt\022\033\n\023search_text_snippet\030\002 \001(\t\022=\n\tqa_re" + + "sult\030\003 \001(\0132*.google.cloud.contentwarehou" + + "se.v1.QAResult\"\177\n\020FetchAclResponse\022%\n\006po" + + "licy\030\001 \001(\0132\025.google.iam.v1.Policy\022D\n\010met" + + "adata\030\002 \001(\01322.google.cloud.contentwareho" + + "use.v1.ResponseMetadata\"}\n\016SetAclRespons" + + "e\022%\n\006policy\030\001 \001(\0132\025.google.iam.v1.Policy" + + "\022D\n\010metadata\030\002 \001(\01322.google.cloud.conten" + + "twarehouse.v1.ResponseMetadata2\242\017\n\017Docum" + + "entService\022\317\001\n\016CreateDocument\0227.google.c" + + "loud.contentwarehouse.v1.CreateDocumentR" + + "equest\0328.google.cloud.contentwarehouse.v" + + "1.CreateDocumentResponse\"J\332A\017parent,docu" + + "ment\202\323\344\223\0022\"-/v1/{parent=projects/*/locat" + + "ions/*}/documents:\001*\022\371\001\n\013GetDocument\0224.g" + + "oogle.cloud.contentwarehouse.v1.GetDocum" + + "entRequest\032*.google.cloud.contentwarehou" + + "se.v1.Document\"\207\001\332A\004name\202\323\344\223\002z\"1/v1/{nam" + + "e=projects/*/locations/*/documents/*}:ge" + + "t:\001*ZB\"=/v1/{name=projects/*/locations/*" + + "/documents/referenceId/*}:get:\001*\022\216\002\n\016Upd" + + "ateDocument\0227.google.cloud.contentwareho" + + "use.v1.UpdateDocumentRequest\0328.google.cl" + + "oud.contentwarehouse.v1.UpdateDocumentRe" + + "sponse\"\210\001\332A\rname,document\202\323\344\223\002r2-/v1/{na" + + "me=projects/*/locations/*/documents/*}:\001" + + "*Z>29/v1/{name=projects/*/locations/*/do" + + "cuments/referenceId/*}:\001*\022\362\001\n\016DeleteDocu" + + "ment\0227.google.cloud.contentwarehouse.v1." + + "DeleteDocumentRequest\032\026.google.protobuf." + + "Empty\"\216\001\332A\004name\202\323\344\223\002\200\001\"4/v1/{name=projec" + + "ts/*/locations/*/documents/*}:delete:\001*Z" + + "E\"@/v1/{name=projects/*/locations/*/docu" + + "ments/referenceId/*}:delete:\001*\022\320\001\n\017Searc" + + "hDocuments\0228.google.cloud.contentwarehou" + + "se.v1.SearchDocumentsRequest\0329.google.cl" + + "oud.contentwarehouse.v1.SearchDocumentsR" + + "esponse\"H\332A\006parent\202\323\344\223\0029\"4/v1/{parent=pr" + + "ojects/*/locations/*}/documents:search:\001" + + "*\022\267\001\n\014LockDocument\0225.google.cloud.conten" + + "twarehouse.v1.LockDocumentRequest\032*.goog" + + "le.cloud.contentwarehouse.v1.Document\"D\332" + + "A\004name\202\323\344\223\0027\"2/v1/{name=projects/*/locat" + + "ions/*/documents/*}:lock:\001*\022\354\001\n\010FetchAcl" + + "\0221.google.cloud.contentwarehouse.v1.Fetc" + + "hAclRequest\0322.google.cloud.contentwareho" + + "use.v1.FetchAclResponse\"y\332A\010resource\202\323\344\223" + + "\002h\":/v1/{resource=projects/*/locations/*" + + "/documents/*}:fetchAcl:\001*Z\'\"\"/v1/{resour" + + "ce=projects/*}:fetchAcl:\001*\022\351\001\n\006SetAcl\022/." + + "google.cloud.contentwarehouse.v1.SetAclR" + + "equest\0320.google.cloud.contentwarehouse.v" + + "1.SetAclResponse\"|\332A\017resource,policy\202\323\344\223" + + "\002d\"8/v1/{resource=projects/*/locations/*" + + "/documents/*}:setAcl:\001*Z%\" /v1/{resource" + + "=projects/*}:setAcl:\001*\032S\312A\037contentwareho" + + "use.googleapis.com\322A.https://www.googlea" + + "pis.com/auth/cloud-platformB\374\001\n$com.goog" + + "le.cloud.contentwarehouse.v1B\024DocumentSe" + + "rviceProtoP\001ZPcloud.google.com/go/conten" + + "twarehouse/apiv1/contentwarehousepb;cont" + + "entwarehousepb\252\002 Google.Cloud.ContentWar" + + "ehouse.V1\312\002 Google\\Cloud\\ContentWarehous" + + "e\\V1\352\002#Google::Cloud::ContentWarehouse::" + + "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.ResourceProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor, + new java.lang.String[] { "Document", "RuleEngineOutput", "Metadata", "LongRunningOperations", }); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor, + new java.lang.String[] { "Document", "RuleEngineOutput", "Metadata", }); + internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor, + new java.lang.String[] { "Highlights", "ConfidenceScore", }); + internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor = + internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor, + new java.lang.String[] { "StartIndex", "EndIndex", }); + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor, + new java.lang.String[] { "MatchingDocuments", "NextPageToken", "TotalSize", "Metadata", "HistogramQueryResults", "QuestionAnswer", }); + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor = + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor, + new java.lang.String[] { "Document", "SearchTextSnippet", "QaResult", }); + internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor, + new java.lang.String[] { "Policy", "Metadata", }); + internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor, + new java.lang.String[] { "Policy", "Metadata", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java new file mode 100644 index 000000000000..f354854811d5 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java @@ -0,0 +1,248 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class DocumentServiceRequestProto { + private DocumentServiceRequestProto() {} + 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_contentwarehouse_v1_CloudAIDocumentOption_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_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/contentwarehouse/v1/docum" + + "ent_service_request.proto\022 google.cloud." + + "contentwarehouse.v1\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + "-google/cloud/contentwarehouse/v1/common" + + ".proto\032/google/cloud/contentwarehouse/v1" + + "/document.proto\032.google/cloud/contentwar" + + "ehouse/v1/filters.proto\0320google/cloud/co" + + "ntentwarehouse/v1/histogram.proto\032\032googl" + + "e/iam/v1/policy.proto\032 google/protobuf/f" + + "ield_mask.proto\"\247\002\n\025CloudAIDocumentOptio" + + "n\022#\n\033enable_entities_conversions\030\001 \001(\010\022\230" + + "\001\n*customized_entities_properties_conver" + + "sions\030\002 \003(\0132d.google.cloud.contentwareho" + + "use.v1.CloudAIDocumentOption.CustomizedE" + + "ntitiesPropertiesConversionsEntry\032N\n,Cus" + + "tomizedEntitiesPropertiesConversionsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\236\003\n\025Cr" + + "eateDocumentRequest\022A\n\006parent\030\001 \001(\tB1\342A\001" + + "\002\372A*\n(contentwarehouse.googleapis.com/Lo" + + "cation\022B\n\010document\030\002 \001(\0132*.google.cloud." + + "contentwarehouse.v1.DocumentB\004\342A\001\002\022K\n\020re" + + "quest_metadata\030\003 \001(\01321.google.cloud.cont" + + "entwarehouse.v1.RequestMetadata\022%\n\006polic" + + "y\030\004 \001(\0132\025.google.iam.v1.Policy\022Y\n\030cloud_" + + "ai_document_option\030\005 \001(\01327.google.cloud." + + "contentwarehouse.v1.CloudAIDocumentOptio" + + "n\022/\n\013create_mask\030\006 \001(\0132\032.google.protobuf" + + ".FieldMask\"\242\001\n\022GetDocumentRequest\022?\n\004nam" + + "e\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehouse.googl" + + "eapis.com/Document\022K\n\020request_metadata\030\002" + + " \001(\01321.google.cloud.contentwarehouse.v1." + + "RequestMetadata\"\215\003\n\025UpdateDocumentReques" + + "t\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehou" + + "se.googleapis.com/Document\022B\n\010document\030\002" + + " \001(\0132*.google.cloud.contentwarehouse.v1." + + "DocumentB\004\342A\001\002\022K\n\020request_metadata\030\003 \001(\013" + + "21.google.cloud.contentwarehouse.v1.Requ" + + "estMetadata\022Y\n\030cloud_ai_document_option\030" + + "\005 \001(\01327.google.cloud.contentwarehouse.v1" + + ".CloudAIDocumentOption\022G\n\016update_options" + + "\030\006 \001(\0132/.google.cloud.contentwarehouse.v" + + "1.UpdateOptions\"\245\001\n\025DeleteDocumentReques" + + "t\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehou" + + "se.googleapis.com/Document\022K\n\020request_me" + + "tadata\030\002 \001(\01321.google.cloud.contentwareh" + + "ouse.v1.RequestMetadata\"\372\004\n\026SearchDocume" + + "ntsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(con" + + "tentwarehouse.googleapis.com/Location\022K\n" + + "\020request_metadata\030\003 \001(\01321.google.cloud.c" + + "ontentwarehouse.v1.RequestMetadata\022G\n\016do" + + "cument_query\030\004 \001(\0132/.google.cloud.conten" + + "twarehouse.v1.DocumentQuery\022\016\n\006offset\030\005 " + + "\001(\005\022\021\n\tpage_size\030\006 \001(\005\022\022\n\npage_token\030\007 \001" + + "(\t\022\020\n\010order_by\030\010 \001(\t\022K\n\021histogram_querie" + + "s\030\t \003(\01320.google.cloud.contentwarehouse." + + "v1.HistogramQuery\022\032\n\022require_total_size\030" + + "\n \001(\010\022c\n\021total_result_size\030\014 \001(\0162H.googl" + + "e.cloud.contentwarehouse.v1.SearchDocume" + + "ntsRequest.TotalResultSize\022\025\n\rqa_size_li" + + "mit\030\013 \001(\005\"Y\n\017TotalResultSize\022!\n\035TOTAL_RE" + + "SULT_SIZE_UNSPECIFIED\020\000\022\022\n\016ESTIMATED_SIZ" + + "E\020\001\022\017\n\013ACTUAL_SIZE\020\002\"\257\001\n\023LockDocumentReq" + + "uest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentware" + + "house.googleapis.com/Document\022\025\n\rcollect" + + "ion_id\030\002 \001(\t\022@\n\014locking_user\030\003 \001(\0132*.goo" + + "gle.cloud.contentwarehouse.v1.UserInfo\"\215" + + "\001\n\017FetchAclRequest\022\026\n\010resource\030\001 \001(\tB\004\342A" + + "\001\002\022K\n\020request_metadata\030\002 \001(\01321.google.cl" + + "oud.contentwarehouse.v1.RequestMetadata\022" + + "\025\n\rproject_owner\030\003 \001(\010\"\270\001\n\rSetAclRequest" + + "\022\026\n\010resource\030\001 \001(\tB\004\342A\001\002\022+\n\006policy\030\002 \001(\013" + + "2\025.google.iam.v1.PolicyB\004\342A\001\002\022K\n\020request" + + "_metadata\030\003 \001(\01321.google.cloud.contentwa" + + "rehouse.v1.RequestMetadata\022\025\n\rproject_ow" + + "ner\030\004 \001(\010B\203\002\n$com.google.cloud.contentwa" + + "rehouse.v1B\033DocumentServiceRequestProtoP" + + "\001ZPcloud.google.com/go/contentwarehouse/" + + "apiv1/contentwarehousepb;contentwarehous" + + "epb\252\002 Google.Cloud.ContentWarehouse.V1\312\002" + + " Google\\Cloud\\ContentWarehouse\\V1\352\002#Goog" + + "le::Cloud::ContentWarehouse::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.contentwarehouse.v1.CommonProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.FiltersProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor, + new java.lang.String[] { "EnableEntitiesConversions", "CustomizedEntitiesPropertiesConversions", }); + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor = + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "Document", "RequestMetadata", "Policy", "CloudAiDocumentOption", "CreateMask", }); + internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor, + new java.lang.String[] { "Name", "RequestMetadata", }); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor, + new java.lang.String[] { "Name", "Document", "RequestMetadata", "CloudAiDocumentOption", "UpdateOptions", }); + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor, + new java.lang.String[] { "Name", "RequestMetadata", }); + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor, + new java.lang.String[] { "Parent", "RequestMetadata", "DocumentQuery", "Offset", "PageSize", "PageToken", "OrderBy", "HistogramQueries", "RequireTotalSize", "TotalResultSize", "QaSizeLimit", }); + internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor, + new java.lang.String[] { "Name", "CollectionId", "LockingUser", }); + internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor, + new java.lang.String[] { "Resource", "RequestMetadata", "ProjectOwner", }); + internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor, + new java.lang.String[] { "Resource", "Policy", "RequestMetadata", "ProjectOwner", }); + 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.contentwarehouse.v1.CommonProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.FiltersProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java similarity index 66% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java index f7fe58a22dc8..efab673248ba 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java @@ -1,109 +1,82 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Enum values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.EnumArray} */ -public final class EnumArray extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EnumArray extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.EnumArray) EnumArrayOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EnumArray.newBuilder() to construct. private EnumArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EnumArray() { - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + values_ = + 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 EnumArray(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.EnumArray.class, - com.google.cloud.contentwarehouse.v1.EnumArray.Builder.class); + com.google.cloud.contentwarehouse.v1.EnumArray.class, com.google.cloud.contentwarehouse.v1.EnumArray.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * List of enum values.
    * 
* * repeated string values = 1; - * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList getValuesList() { + public com.google.protobuf.ProtocolStringList + getValuesList() { return values_; } /** - * - * *
    * List of enum values.
    * 
* * repeated string values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
    * List of enum values.
    * 
* * repeated string values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -111,23 +84,20 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** - * - * *
    * List of enum values.
    * 
* * repeated string values = 1; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString getValuesBytes(int index) { + public com.google.protobuf.ByteString + getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,7 +109,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 < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } @@ -168,15 +139,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.contentwarehouse.v1.EnumArray)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.EnumArray other = - (com.google.cloud.contentwarehouse.v1.EnumArray) obj; + com.google.cloud.contentwarehouse.v1.EnumArray other = (com.google.cloud.contentwarehouse.v1.EnumArray) obj; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -197,148 +168,145 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumArray 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.contentwarehouse.v1.EnumArray parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumArray parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.EnumArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.EnumArray 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.contentwarehouse.v1.EnumArray parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.EnumArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Enum values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.EnumArray} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.EnumArray) com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.EnumArray.class, - com.google.cloud.contentwarehouse.v1.EnumArray.Builder.class); + com.google.cloud.contentwarehouse.v1.EnumArray.class, com.google.cloud.contentwarehouse.v1.EnumArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.EnumArray.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; - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; } @java.lang.Override @@ -357,11 +325,8 @@ public com.google.cloud.contentwarehouse.v1.EnumArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumArray buildPartial() { - com.google.cloud.contentwarehouse.v1.EnumArray result = - new com.google.cloud.contentwarehouse.v1.EnumArray(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.EnumArray result = new com.google.cloud.contentwarehouse.v1.EnumArray(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -378,39 +343,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.EnumArray 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.contentwarehouse.v1.EnumArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.EnumArray) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.EnumArray)other); } else { super.mergeFrom(other); return this; @@ -455,20 +419,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(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(); + ensureValuesIsMutable(); + values_.add(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) { @@ -478,12 +440,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValuesIsMutable() { if (!values_.isModifiable()) { values_ = new com.google.protobuf.LazyStringArrayList(values_); @@ -491,43 +451,35 @@ private void ensureValuesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * List of enum values.
      * 
* * repeated string values = 1; - * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList getValuesList() { + public com.google.protobuf.ProtocolStringList + getValuesList() { values_.makeImmutable(); return values_; } /** - * - * *
      * List of enum values.
      * 
* * repeated string values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
      * List of enum values.
      * 
* * repeated string values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -535,37 +487,31 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** - * - * *
      * List of enum values.
      * 
* * repeated string values = 1; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString getValuesBytes(int index) { + public com.google.protobuf.ByteString + getValuesBytes(int index) { return values_.getByteString(index); } /** - * - * *
      * List of enum values.
      * 
* * repeated string 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, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValues( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); bitField0_ |= 0x00000001; @@ -573,21 +519,17 @@ public Builder setValues(int index, java.lang.String value) { return this; } /** - * - * *
      * List of enum values.
      * 
* * repeated string values = 1; - * * @param value The values to add. * @return This builder for chaining. */ - public Builder addValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addValues( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); bitField0_ |= 0x00000001; @@ -595,58 +537,50 @@ public Builder addValues(java.lang.String value) { return this; } /** - * - * *
      * List of enum values.
      * 
* * repeated string 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * List of enum values.
      * 
* * repeated string values = 1; - * * @return This builder for chaining. */ public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * List of enum values.
      * 
* * repeated string values = 1; - * * @param value The bytes of the values to add. * @return This builder for chaining. */ - public Builder addValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); @@ -654,9 +588,9 @@ public Builder addValuesBytes(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); } @@ -666,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.EnumArray) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.EnumArray) private static final com.google.cloud.contentwarehouse.v1.EnumArray DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.EnumArray(); } @@ -680,27 +614,27 @@ public static com.google.cloud.contentwarehouse.v1.EnumArray getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 EnumArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -715,4 +649,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.EnumArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java similarity index 57% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java index 394669a36448..607e56cb3db9 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java @@ -1,76 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface EnumArrayOrBuilder - extends +public interface EnumArrayOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.EnumArray) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of enum values.
    * 
* * repeated string values = 1; - * * @return A list containing the values. */ - java.util.List getValuesList(); + java.util.List + getValuesList(); /** - * - * *
    * List of enum values.
    * 
* * repeated string values = 1; - * * @return The count of values. */ int getValuesCount(); /** - * - * *
    * List of enum values.
    * 
* * repeated string values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** - * - * *
    * List of enum values.
    * 
* * repeated string values = 1; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - com.google.protobuf.ByteString getValuesBytes(int index); + com.google.protobuf.ByteString + getValuesBytes(int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java similarity index 70% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java index 4f0930def192..01e41977cb5d 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java @@ -1,109 +1,82 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Configurations for an enum/categorical property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.EnumTypeOptions} */ -public final class EnumTypeOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EnumTypeOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.EnumTypeOptions) EnumTypeOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EnumTypeOptions.newBuilder() to construct. private EnumTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EnumTypeOptions() { - possibleValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + possibleValues_ = + 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 EnumTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.EnumTypeOptions.class, - com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.EnumTypeOptions.class, com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder.class); } public static final int POSSIBLE_VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList possibleValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the possibleValues. */ - public com.google.protobuf.ProtocolStringList getPossibleValuesList() { + public com.google.protobuf.ProtocolStringList + getPossibleValuesList() { return possibleValues_; } /** - * - * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of possibleValues. */ public int getPossibleValuesCount() { return possibleValues_.size(); } /** - * - * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The possibleValues at the given index. */ @@ -111,26 +84,22 @@ public java.lang.String getPossibleValues(int index) { return possibleValues_.get(index); } /** - * - * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the possibleValues at the given index. */ - public com.google.protobuf.ByteString getPossibleValuesBytes(int index) { + public com.google.protobuf.ByteString + getPossibleValuesBytes(int index) { return possibleValues_.getByteString(index); } public static final int VALIDATION_CHECK_DISABLED_FIELD_NUMBER = 2; private boolean validationCheckDisabled_ = false; /** - * - * *
    * Make sure the Enum property value provided in the document is in the
    * possile value list during document creation. The validation check runs by
@@ -138,7 +107,6 @@ public com.google.protobuf.ByteString getPossibleValuesBytes(int index) {
    * 
* * bool validation_check_disabled = 2; - * * @return The validationCheckDisabled. */ @java.lang.Override @@ -147,7 +115,6 @@ public boolean getValidationCheckDisabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,7 +126,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 < possibleValues_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, possibleValues_.getRaw(i)); } @@ -184,7 +152,8 @@ public int getSerializedSize() { size += 1 * getPossibleValuesList().size(); } if (validationCheckDisabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validationCheckDisabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validationCheckDisabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -194,16 +163,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.contentwarehouse.v1.EnumTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.EnumTypeOptions other = - (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.EnumTypeOptions other = (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) obj; - if (!getPossibleValuesList().equals(other.getPossibleValuesList())) return false; - if (getValidationCheckDisabled() != other.getValidationCheckDisabled()) return false; + if (!getPossibleValuesList() + .equals(other.getPossibleValuesList())) return false; + if (getValidationCheckDisabled() + != other.getValidationCheckDisabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -220,155 +190,153 @@ public int hashCode() { hash = (53 * hash) + getPossibleValuesList().hashCode(); } hash = (37 * hash) + VALIDATION_CHECK_DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidationCheckDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidationCheckDisabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions 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.contentwarehouse.v1.EnumTypeOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions 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.contentwarehouse.v1.EnumTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.EnumTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Configurations for an enum/categorical property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.EnumTypeOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.EnumTypeOptions) com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.EnumTypeOptions.class, - com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.EnumTypeOptions.class, com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.EnumTypeOptions.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; - possibleValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + possibleValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); validationCheckDisabled_ = false; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; } @java.lang.Override @@ -387,11 +355,8 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.EnumTypeOptions result = - new com.google.cloud.contentwarehouse.v1.EnumTypeOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.EnumTypeOptions result = new com.google.cloud.contentwarehouse.v1.EnumTypeOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -411,39 +376,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.EnumTypeOptions public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.EnumTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.EnumTypeOptions) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.EnumTypeOptions)other); } else { super.mergeFrom(other); return this; @@ -451,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.EnumTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance()) return this; if (!other.possibleValues_.isEmpty()) { if (possibleValues_.isEmpty()) { possibleValues_ = other.possibleValues_; @@ -492,26 +455,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePossibleValuesIsMutable(); - possibleValues_.add(s); - break; - } // case 10 - case 16: - { - validationCheckDisabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePossibleValuesIsMutable(); + possibleValues_.add(s); + break; + } // case 10 + case 16: { + validationCheckDisabled_ = 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) { @@ -521,12 +481,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList possibleValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePossibleValuesIsMutable() { if (!possibleValues_.isModifiable()) { possibleValues_ = new com.google.protobuf.LazyStringArrayList(possibleValues_); @@ -534,43 +492,35 @@ private void ensurePossibleValuesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the possibleValues. */ - public com.google.protobuf.ProtocolStringList getPossibleValuesList() { + public com.google.protobuf.ProtocolStringList + getPossibleValuesList() { possibleValues_.makeImmutable(); return possibleValues_; } /** - * - * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of possibleValues. */ public int getPossibleValuesCount() { return possibleValues_.size(); } /** - * - * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The possibleValues at the given index. */ @@ -578,37 +528,31 @@ public java.lang.String getPossibleValues(int index) { return possibleValues_.get(index); } /** - * - * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the possibleValues at the given index. */ - public com.google.protobuf.ByteString getPossibleValuesBytes(int index) { + public com.google.protobuf.ByteString + getPossibleValuesBytes(int index) { return possibleValues_.getByteString(index); } /** - * - * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The possibleValues to set. * @return This builder for chaining. */ - public Builder setPossibleValues(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPossibleValues( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePossibleValuesIsMutable(); possibleValues_.set(index, value); bitField0_ |= 0x00000001; @@ -616,21 +560,17 @@ public Builder setPossibleValues(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The possibleValues to add. * @return This builder for chaining. */ - public Builder addPossibleValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPossibleValues( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePossibleValuesIsMutable(); possibleValues_.add(value); bitField0_ |= 0x00000001; @@ -638,58 +578,50 @@ public Builder addPossibleValues(java.lang.String value) { return this; } /** - * - * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The possibleValues to add. * @return This builder for chaining. */ - public Builder addAllPossibleValues(java.lang.Iterable values) { + public Builder addAllPossibleValues( + java.lang.Iterable values) { ensurePossibleValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, possibleValues_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, possibleValues_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPossibleValues() { - possibleValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + possibleValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the possibleValues to add. * @return This builder for chaining. */ - public Builder addPossibleValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPossibleValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePossibleValuesIsMutable(); possibleValues_.add(value); @@ -698,10 +630,8 @@ public Builder addPossibleValuesBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validationCheckDisabled_; + private boolean validationCheckDisabled_ ; /** - * - * *
      * Make sure the Enum property value provided in the document is in the
      * possile value list during document creation. The validation check runs by
@@ -709,7 +639,6 @@ public Builder addPossibleValuesBytes(com.google.protobuf.ByteString value) {
      * 
* * bool validation_check_disabled = 2; - * * @return The validationCheckDisabled. */ @java.lang.Override @@ -717,8 +646,6 @@ public boolean getValidationCheckDisabled() { return validationCheckDisabled_; } /** - * - * *
      * Make sure the Enum property value provided in the document is in the
      * possile value list during document creation. The validation check runs by
@@ -726,7 +653,6 @@ public boolean getValidationCheckDisabled() {
      * 
* * bool validation_check_disabled = 2; - * * @param value The validationCheckDisabled to set. * @return This builder for chaining. */ @@ -738,8 +664,6 @@ public Builder setValidationCheckDisabled(boolean value) { return this; } /** - * - * *
      * Make sure the Enum property value provided in the document is in the
      * possile value list during document creation. The validation check runs by
@@ -747,7 +671,6 @@ public Builder setValidationCheckDisabled(boolean value) {
      * 
* * bool validation_check_disabled = 2; - * * @return This builder for chaining. */ public Builder clearValidationCheckDisabled() { @@ -756,9 +679,9 @@ public Builder clearValidationCheckDisabled() { 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); } @@ -768,12 +691,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.EnumTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.EnumTypeOptions) private static final com.google.cloud.contentwarehouse.v1.EnumTypeOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.EnumTypeOptions(); } @@ -782,27 +705,27 @@ public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 EnumTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -817,4 +740,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.EnumTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java similarity index 67% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java index ffce4774a970..006fd8223ece 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java @@ -1,82 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; -public interface EnumTypeOptionsOrBuilder - extends +public interface EnumTypeOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.EnumTypeOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the possibleValues. */ - java.util.List getPossibleValuesList(); + java.util.List + getPossibleValuesList(); /** - * - * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of possibleValues. */ int getPossibleValuesCount(); /** - * - * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The possibleValues at the given index. */ java.lang.String getPossibleValues(int index); /** - * - * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the possibleValues at the given index. */ - com.google.protobuf.ByteString getPossibleValuesBytes(int index); + com.google.protobuf.ByteString + getPossibleValuesBytes(int index); /** - * - * *
    * Make sure the Enum property value provided in the document is in the
    * possile value list during document creation. The validation check runs by
@@ -84,7 +56,6 @@ public interface EnumTypeOptionsOrBuilder
    * 
* * bool validation_check_disabled = 2; - * * @return The validationCheckDisabled. */ boolean getValidationCheckDisabled(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java similarity index 66% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java index b5ca7a3a05ed..8e364855fc50 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents the string value of the enum field.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.EnumValue} */ -public final class EnumValue extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EnumValue extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.EnumValue) EnumValueOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EnumValue.newBuilder() to construct. private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EnumValue() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EnumValue(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_EnumValue_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.EnumValue.class, - com.google.cloud.contentwarehouse.v1.EnumValue.Builder.class); + com.google.cloud.contentwarehouse.v1.EnumValue.class, com.google.cloud.contentwarehouse.v1.EnumValue.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
    * String value of the enum field. This must match defined set of enums
    * in document schema using EnumTypeOptions.
    * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -84,30 +61,30 @@ 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(); value_ = s; return s; } } /** - * - * *
    * String value of the enum field. This must match defined set of enums
    * in document schema using EnumTypeOptions.
    * 
* * 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 = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -116,7 +93,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,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(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -152,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.contentwarehouse.v1.EnumValue)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.EnumValue other = - (com.google.cloud.contentwarehouse.v1.EnumValue) obj; + com.google.cloud.contentwarehouse.v1.EnumValue other = (com.google.cloud.contentwarehouse.v1.EnumValue) obj; - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -179,136 +156,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumValue 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.contentwarehouse.v1.EnumValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.EnumValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.EnumValue 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.contentwarehouse.v1.EnumValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.EnumValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the string value of the enum field.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.EnumValue} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.EnumValue) com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_EnumValue_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.EnumValue.class, - com.google.cloud.contentwarehouse.v1.EnumValue.Builder.class); + com.google.cloud.contentwarehouse.v1.EnumValue.class, com.google.cloud.contentwarehouse.v1.EnumValue.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.EnumValue.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(); @@ -318,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; } @java.lang.Override @@ -339,11 +312,8 @@ public com.google.cloud.contentwarehouse.v1.EnumValue build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumValue buildPartial() { - com.google.cloud.contentwarehouse.v1.EnumValue result = - new com.google.cloud.contentwarehouse.v1.EnumValue(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.EnumValue result = new com.google.cloud.contentwarehouse.v1.EnumValue(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -359,39 +329,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.EnumValue 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.contentwarehouse.v1.EnumValue) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.EnumValue) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.EnumValue)other); } else { super.mergeFrom(other); return this; @@ -431,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + value_ = 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) { @@ -453,26 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object value_ = ""; /** - * - * *
      * String value of the enum field. This must match defined set of enums
      * in document schema using EnumTypeOptions.
      * 
* * string value = 1; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -481,22 +445,21 @@ public java.lang.String getValue() { } } /** - * - * *
      * String value of the enum field. This must match defined set of enums
      * in document schema using EnumTypeOptions.
      * 
* * string value = 1; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -504,37 +467,30 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
      * String value of the enum field. This must match defined set of enums
      * in document schema using EnumTypeOptions.
      * 
* * 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(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * String value of the enum field. This must match defined set of enums
      * in document schema using EnumTypeOptions.
      * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -544,31 +500,27 @@ public Builder clearValue() { return this; } /** - * - * *
      * String value of the enum field. This must match defined set of enums
      * in document schema using EnumTypeOptions.
      * 
* * 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); value_ = 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); } @@ -578,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.EnumValue) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.EnumValue) private static final com.google.cloud.contentwarehouse.v1.EnumValue DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.EnumValue(); } @@ -592,27 +544,27 @@ public static com.google.cloud.contentwarehouse.v1.EnumValue getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 EnumValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -627,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.EnumValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java similarity index 52% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java index 5c90894e6192..608d69b49d1d 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java @@ -1,52 +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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface EnumValueOrBuilder - extends +public interface EnumValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.EnumValue) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * String value of the enum field. This must match defined set of enums
    * in document schema using EnumTypeOptions.
    * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
    * String value of the enum field. This must match defined set of enums
    * in document schema using EnumTypeOptions.
    * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java similarity index 74% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java index 5b9208a8c614..b8b0dda30119 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * The configuration of exporting documents from the Document Warehouse to CDW
  * pipeline.
@@ -28,51 +11,47 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.ExportToCdwPipeline}
  */
-public final class ExportToCdwPipeline extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ExportToCdwPipeline extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ExportToCdwPipeline)
     ExportToCdwPipelineOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ExportToCdwPipeline.newBuilder() to construct.
   private ExportToCdwPipeline(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ExportToCdwPipeline() {
-    documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    documents_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     exportFolderPath_ = "";
     docAiDataset_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ExportToCdwPipeline();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.PipelinesProto
-        .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.PipelinesProto
-        .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.class,
-            com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder.class);
+            com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.class, com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder.class);
   }
 
   public static final int DOCUMENTS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList documents_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -80,15 +59,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string documents = 1; - * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList getDocumentsList() { + public com.google.protobuf.ProtocolStringList + getDocumentsList() { return documents_; } /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -96,15 +73,12 @@ public com.google.protobuf.ProtocolStringList getDocumentsList() {
    * 
* * repeated string documents = 1; - * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -112,7 +86,6 @@ public int getDocumentsCount() {
    * 
* * repeated string documents = 1; - * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -120,8 +93,6 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -129,21 +100,18 @@ public java.lang.String getDocuments(int index) {
    * 
* * repeated string documents = 1; - * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString getDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getDocumentsBytes(int index) { return documents_.getByteString(index); } public static final int EXPORT_FOLDER_PATH_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object exportFolderPath_ = ""; /** - * - * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -151,7 +119,6 @@ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
    * 
* * string export_folder_path = 2; - * * @return The exportFolderPath. */ @java.lang.Override @@ -160,15 +127,14 @@ public java.lang.String getExportFolderPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exportFolderPath_ = s; return s; } } /** - * - * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -176,15 +142,16 @@ public java.lang.String getExportFolderPath() {
    * 
* * string export_folder_path = 2; - * * @return The bytes for exportFolderPath. */ @java.lang.Override - public com.google.protobuf.ByteString getExportFolderPathBytes() { + public com.google.protobuf.ByteString + getExportFolderPathBytes() { java.lang.Object ref = exportFolderPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); exportFolderPath_ = b; return b; } else { @@ -193,12 +160,9 @@ public com.google.protobuf.ByteString getExportFolderPathBytes() { } public static final int DOC_AI_DATASET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object docAiDataset_ = ""; /** - * - * *
    * Optional. The CDW dataset resource name. This field is optional. If not
    * set, the documents will be exported to Cloud Storage only. Format:
@@ -206,7 +170,6 @@ public com.google.protobuf.ByteString getExportFolderPathBytes() {
    * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The docAiDataset. */ @java.lang.Override @@ -215,15 +178,14 @@ public java.lang.String getDocAiDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docAiDataset_ = s; return s; } } /** - * - * *
    * Optional. The CDW dataset resource name. This field is optional. If not
    * set, the documents will be exported to Cloud Storage only. Format:
@@ -231,15 +193,16 @@ public java.lang.String getDocAiDataset() {
    * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for docAiDataset. */ @java.lang.Override - public com.google.protobuf.ByteString getDocAiDatasetBytes() { + public com.google.protobuf.ByteString + getDocAiDatasetBytes() { java.lang.Object ref = docAiDataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); docAiDataset_ = b; return b; } else { @@ -250,8 +213,6 @@ public com.google.protobuf.ByteString getDocAiDatasetBytes() { public static final int TRAINING_SPLIT_RATIO_FIELD_NUMBER = 4; private float trainingSplitRatio_ = 0F; /** - * - * *
    * Ratio of training dataset split. When importing into Document AI Workbench,
    * documents will be automatically split into training and test split category
@@ -259,7 +220,6 @@ public com.google.protobuf.ByteString getDocAiDatasetBytes() {
    * 
* * float training_split_ratio = 4; - * * @return The trainingSplitRatio. */ @java.lang.Override @@ -268,7 +228,6 @@ public float getTrainingSplitRatio() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,7 +239,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++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i)); } @@ -317,7 +277,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, docAiDataset_); } if (java.lang.Float.floatToRawIntBits(trainingSplitRatio_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, trainingSplitRatio_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, trainingSplitRatio_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -327,19 +288,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.contentwarehouse.v1.ExportToCdwPipeline)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline other = - (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) obj; - - if (!getDocumentsList().equals(other.getDocumentsList())) return false; - if (!getExportFolderPath().equals(other.getExportFolderPath())) return false; - if (!getDocAiDataset().equals(other.getDocAiDataset())) return false; + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline other = (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) obj; + + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (!getExportFolderPath() + .equals(other.getExportFolderPath())) return false; + if (!getDocAiDataset() + .equals(other.getDocAiDataset())) return false; if (java.lang.Float.floatToIntBits(getTrainingSplitRatio()) - != java.lang.Float.floatToIntBits(other.getTrainingSplitRatio())) return false; + != java.lang.Float.floatToIntBits( + other.getTrainingSplitRatio())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -360,111 +324,106 @@ public int hashCode() { hash = (37 * hash) + DOC_AI_DATASET_FIELD_NUMBER; hash = (53 * hash) + getDocAiDataset().hashCode(); hash = (37 * hash) + TRAINING_SPLIT_RATIO_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTrainingSplitRatio()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTrainingSplitRatio()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline 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.contentwarehouse.v1.ExportToCdwPipeline parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline 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.contentwarehouse.v1.ExportToCdwPipeline parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The configuration of exporting documents from the Document Warehouse to CDW
    * pipeline.
@@ -472,37 +431,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.ExportToCdwPipeline}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ExportToCdwPipeline)
       com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto
-          .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto
-          .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.class,
-              com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder.class);
+              com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.class, com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.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;
-      documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      documents_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       exportFolderPath_ = "";
       docAiDataset_ = "";
       trainingSplitRatio_ = 0F;
@@ -510,9 +471,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto
-          .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
     }
 
     @java.lang.Override
@@ -531,11 +492,8 @@ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline buildPartial() {
-      com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline result =
-          new com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline result = new com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -561,39 +519,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ExportToCdwPipel
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.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.contentwarehouse.v1.ExportToCdwPipeline) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -601,8 +558,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline other) {
-      if (other == com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance()) return this;
       if (!other.documents_.isEmpty()) {
         if (documents_.isEmpty()) {
           documents_ = other.documents_;
@@ -652,38 +608,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureDocumentsIsMutable();
-                documents_.add(s);
-                break;
-              } // case 10
-            case 18:
-              {
-                exportFolderPath_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                docAiDataset_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 37:
-              {
-                trainingSplitRatio_ = input.readFloat();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 37
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureDocumentsIsMutable();
+              documents_.add(s);
+              break;
+            } // case 10
+            case 18: {
+              exportFolderPath_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              docAiDataset_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 37: {
+              trainingSplitRatio_ = input.readFloat();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 37
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -693,12 +644,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList documents_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-
     private void ensureDocumentsIsMutable() {
       if (!documents_.isModifiable()) {
         documents_ = new com.google.protobuf.LazyStringArrayList(documents_);
@@ -706,8 +655,6 @@ private void ensureDocumentsIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
-     *
-     *
      * 
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -715,16 +662,14 @@ private void ensureDocumentsIsMutable() {
      * 
* * repeated string documents = 1; - * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList getDocumentsList() { + public com.google.protobuf.ProtocolStringList + getDocumentsList() { documents_.makeImmutable(); return documents_; } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -732,15 +677,12 @@ public com.google.protobuf.ProtocolStringList getDocumentsList() {
      * 
* * repeated string documents = 1; - * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -748,7 +690,6 @@ public int getDocumentsCount() {
      * 
* * repeated string documents = 1; - * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -756,8 +697,6 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -765,16 +704,14 @@ public java.lang.String getDocuments(int index) {
      * 
* * repeated string documents = 1; - * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString getDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getDocumentsBytes(int index) { return documents_.getByteString(index); } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -782,15 +719,13 @@ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
      * 
* * repeated string documents = 1; - * * @param index The index to set the value at. * @param value The documents to set. * @return This builder for chaining. */ - public Builder setDocuments(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocuments( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentsIsMutable(); documents_.set(index, value); bitField0_ |= 0x00000001; @@ -798,8 +733,6 @@ public Builder setDocuments(int index, java.lang.String value) { return this; } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -807,14 +740,12 @@ public Builder setDocuments(int index, java.lang.String value) {
      * 
* * repeated string documents = 1; - * * @param value The documents to add. * @return This builder for chaining. */ - public Builder addDocuments(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocuments( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentsIsMutable(); documents_.add(value); bitField0_ |= 0x00000001; @@ -822,8 +753,6 @@ public Builder addDocuments(java.lang.String value) { return this; } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -831,20 +760,19 @@ public Builder addDocuments(java.lang.String value) {
      * 
* * repeated string documents = 1; - * * @param values The documents to add. * @return This builder for chaining. */ - public Builder addAllDocuments(java.lang.Iterable values) { + public Builder addAllDocuments( + java.lang.Iterable values) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -852,19 +780,16 @@ public Builder addAllDocuments(java.lang.Iterable values) {
      * 
* * repeated string documents = 1; - * * @return This builder for chaining. */ public Builder clearDocuments() { - documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + documents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -872,14 +797,12 @@ public Builder clearDocuments() {
      * 
* * repeated string documents = 1; - * * @param value The bytes of the documents to add. * @return This builder for chaining. */ - public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocumentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDocumentsIsMutable(); documents_.add(value); @@ -890,8 +813,6 @@ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { private java.lang.Object exportFolderPath_ = ""; /** - * - * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -899,13 +820,13 @@ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) {
      * 
* * string export_folder_path = 2; - * * @return The exportFolderPath. */ public java.lang.String getExportFolderPath() { java.lang.Object ref = exportFolderPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exportFolderPath_ = s; return s; @@ -914,8 +835,6 @@ public java.lang.String getExportFolderPath() { } } /** - * - * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -923,14 +842,15 @@ public java.lang.String getExportFolderPath() {
      * 
* * string export_folder_path = 2; - * * @return The bytes for exportFolderPath. */ - public com.google.protobuf.ByteString getExportFolderPathBytes() { + public com.google.protobuf.ByteString + getExportFolderPathBytes() { java.lang.Object ref = exportFolderPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); exportFolderPath_ = b; return b; } else { @@ -938,8 +858,6 @@ public com.google.protobuf.ByteString getExportFolderPathBytes() { } } /** - * - * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -947,22 +865,18 @@ public com.google.protobuf.ByteString getExportFolderPathBytes() {
      * 
* * string export_folder_path = 2; - * * @param value The exportFolderPath to set. * @return This builder for chaining. */ - public Builder setExportFolderPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExportFolderPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } exportFolderPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -970,7 +884,6 @@ public Builder setExportFolderPath(java.lang.String value) {
      * 
* * string export_folder_path = 2; - * * @return This builder for chaining. */ public Builder clearExportFolderPath() { @@ -980,8 +893,6 @@ public Builder clearExportFolderPath() { return this; } /** - * - * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -989,14 +900,12 @@ public Builder clearExportFolderPath() {
      * 
* * string export_folder_path = 2; - * * @param value The bytes for exportFolderPath to set. * @return This builder for chaining. */ - public Builder setExportFolderPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExportFolderPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); exportFolderPath_ = value; bitField0_ |= 0x00000002; @@ -1006,8 +915,6 @@ public Builder setExportFolderPathBytes(com.google.protobuf.ByteString value) { private java.lang.Object docAiDataset_ = ""; /** - * - * *
      * Optional. The CDW dataset resource name. This field is optional. If not
      * set, the documents will be exported to Cloud Storage only. Format:
@@ -1015,13 +922,13 @@ public Builder setExportFolderPathBytes(com.google.protobuf.ByteString value) {
      * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The docAiDataset. */ public java.lang.String getDocAiDataset() { java.lang.Object ref = docAiDataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docAiDataset_ = s; return s; @@ -1030,8 +937,6 @@ public java.lang.String getDocAiDataset() { } } /** - * - * *
      * Optional. The CDW dataset resource name. This field is optional. If not
      * set, the documents will be exported to Cloud Storage only. Format:
@@ -1039,14 +944,15 @@ public java.lang.String getDocAiDataset() {
      * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for docAiDataset. */ - public com.google.protobuf.ByteString getDocAiDatasetBytes() { + public com.google.protobuf.ByteString + getDocAiDatasetBytes() { java.lang.Object ref = docAiDataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); docAiDataset_ = b; return b; } else { @@ -1054,8 +960,6 @@ public com.google.protobuf.ByteString getDocAiDatasetBytes() { } } /** - * - * *
      * Optional. The CDW dataset resource name. This field is optional. If not
      * set, the documents will be exported to Cloud Storage only. Format:
@@ -1063,22 +967,18 @@ public com.google.protobuf.ByteString getDocAiDatasetBytes() {
      * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The docAiDataset to set. * @return This builder for chaining. */ - public Builder setDocAiDataset(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocAiDataset( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } docAiDataset_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The CDW dataset resource name. This field is optional. If not
      * set, the documents will be exported to Cloud Storage only. Format:
@@ -1086,7 +986,6 @@ public Builder setDocAiDataset(java.lang.String value) {
      * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDocAiDataset() { @@ -1096,8 +995,6 @@ public Builder clearDocAiDataset() { return this; } /** - * - * *
      * Optional. The CDW dataset resource name. This field is optional. If not
      * set, the documents will be exported to Cloud Storage only. Format:
@@ -1105,14 +1002,12 @@ public Builder clearDocAiDataset() {
      * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for docAiDataset to set. * @return This builder for chaining. */ - public Builder setDocAiDatasetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocAiDatasetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docAiDataset_ = value; bitField0_ |= 0x00000004; @@ -1120,10 +1015,8 @@ public Builder setDocAiDatasetBytes(com.google.protobuf.ByteString value) { return this; } - private float trainingSplitRatio_; + private float trainingSplitRatio_ ; /** - * - * *
      * Ratio of training dataset split. When importing into Document AI Workbench,
      * documents will be automatically split into training and test split category
@@ -1131,7 +1024,6 @@ public Builder setDocAiDatasetBytes(com.google.protobuf.ByteString value) {
      * 
* * float training_split_ratio = 4; - * * @return The trainingSplitRatio. */ @java.lang.Override @@ -1139,8 +1031,6 @@ public float getTrainingSplitRatio() { return trainingSplitRatio_; } /** - * - * *
      * Ratio of training dataset split. When importing into Document AI Workbench,
      * documents will be automatically split into training and test split category
@@ -1148,7 +1038,6 @@ public float getTrainingSplitRatio() {
      * 
* * float training_split_ratio = 4; - * * @param value The trainingSplitRatio to set. * @return This builder for chaining. */ @@ -1160,8 +1049,6 @@ public Builder setTrainingSplitRatio(float value) { return this; } /** - * - * *
      * Ratio of training dataset split. When importing into Document AI Workbench,
      * documents will be automatically split into training and test split category
@@ -1169,7 +1056,6 @@ public Builder setTrainingSplitRatio(float value) {
      * 
* * float training_split_ratio = 4; - * * @return This builder for chaining. */ public Builder clearTrainingSplitRatio() { @@ -1178,9 +1064,9 @@ public Builder clearTrainingSplitRatio() { 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); } @@ -1190,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ExportToCdwPipeline) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ExportToCdwPipeline) private static final com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline(); } @@ -1204,27 +1090,27 @@ public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportToCdwPipeline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ExportToCdwPipeline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1239,4 +1125,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java similarity index 77% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java index f33d2e08a597..1c59f190d8fb 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface ExportToCdwPipelineOrBuilder - extends +public interface ExportToCdwPipelineOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ExportToCdwPipeline) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -33,13 +15,11 @@ public interface ExportToCdwPipelineOrBuilder
    * 
* * repeated string documents = 1; - * * @return A list containing the documents. */ - java.util.List getDocumentsList(); + java.util.List + getDocumentsList(); /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -47,13 +27,10 @@ public interface ExportToCdwPipelineOrBuilder
    * 
* * repeated string documents = 1; - * * @return The count of documents. */ int getDocumentsCount(); /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -61,14 +38,11 @@ public interface ExportToCdwPipelineOrBuilder
    * 
* * repeated string documents = 1; - * * @param index The index of the element to return. * @return The documents at the given index. */ java.lang.String getDocuments(int index); /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -76,15 +50,13 @@ public interface ExportToCdwPipelineOrBuilder
    * 
* * repeated string documents = 1; - * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - com.google.protobuf.ByteString getDocumentsBytes(int index); + com.google.protobuf.ByteString + getDocumentsBytes(int index); /** - * - * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -92,13 +64,10 @@ public interface ExportToCdwPipelineOrBuilder
    * 
* * string export_folder_path = 2; - * * @return The exportFolderPath. */ java.lang.String getExportFolderPath(); /** - * - * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -106,14 +75,12 @@ public interface ExportToCdwPipelineOrBuilder
    * 
* * string export_folder_path = 2; - * * @return The bytes for exportFolderPath. */ - com.google.protobuf.ByteString getExportFolderPathBytes(); + com.google.protobuf.ByteString + getExportFolderPathBytes(); /** - * - * *
    * Optional. The CDW dataset resource name. This field is optional. If not
    * set, the documents will be exported to Cloud Storage only. Format:
@@ -121,13 +88,10 @@ public interface ExportToCdwPipelineOrBuilder
    * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The docAiDataset. */ java.lang.String getDocAiDataset(); /** - * - * *
    * Optional. The CDW dataset resource name. This field is optional. If not
    * set, the documents will be exported to Cloud Storage only. Format:
@@ -135,14 +99,12 @@ public interface ExportToCdwPipelineOrBuilder
    * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for docAiDataset. */ - com.google.protobuf.ByteString getDocAiDatasetBytes(); + com.google.protobuf.ByteString + getDocAiDatasetBytes(); /** - * - * *
    * Ratio of training dataset split. When importing into Document AI Workbench,
    * documents will be automatically split into training and test split category
@@ -150,7 +112,6 @@ public interface ExportToCdwPipelineOrBuilder
    * 
* * float training_split_ratio = 4; - * * @return The trainingSplitRatio. */ float getTrainingSplitRatio(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java similarity index 72% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java index 7e5e13964787..2d4aa5216c91 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java @@ -1,74 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentService.FetchAcl
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FetchAclRequest} */ -public final class FetchAclRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FetchAclRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.FetchAclRequest) FetchAclRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FetchAclRequest.newBuilder() to construct. private FetchAclRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FetchAclRequest() { resource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FetchAclRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FetchAclRequest.class, - com.google.cloud.contentwarehouse.v1.FetchAclRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.FetchAclRequest.class, com.google.cloud.contentwarehouse.v1.FetchAclRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object resource_ = ""; /** - * - * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -79,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ @java.lang.Override @@ -88,15 +65,14 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -107,15 +83,16 @@ public java.lang.String getResource() {
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -126,15 +103,12 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int REQUEST_METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -142,26 +116,19 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -170,25 +137,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-      getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-        : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
   }
 
   public static final int PROJECT_OWNER_FIELD_NUMBER = 3;
   private boolean projectOwner_ = false;
   /**
-   *
-   *
    * 
    * For Get Project ACL only. Authorization check for end user will be ignored
    * when project_owner=true.
    * 
* * bool project_owner = 3; - * * @return The projectOwner. */ @java.lang.Override @@ -197,7 +158,6 @@ public boolean getProjectOwner() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +169,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(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } @@ -232,10 +193,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } if (requestMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRequestMetadata()); } if (projectOwner_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, projectOwner_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, projectOwner_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,20 +208,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.contentwarehouse.v1.FetchAclRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.FetchAclRequest other = - (com.google.cloud.contentwarehouse.v1.FetchAclRequest) obj; + com.google.cloud.contentwarehouse.v1.FetchAclRequest other = (com.google.cloud.contentwarehouse.v1.FetchAclRequest) obj; - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; if (hasRequestMetadata() != other.hasRequestMetadata()) return false; if (hasRequestMetadata()) { - if (!getRequestMetadata().equals(other.getRequestMetadata())) return false; + if (!getRequestMetadata() + .equals(other.getRequestMetadata())) return false; } - if (getProjectOwner() != other.getProjectOwner()) return false; + if (getProjectOwner() + != other.getProjectOwner()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,142 +242,139 @@ public int hashCode() { hash = (53 * hash) + getRequestMetadata().hashCode(); } hash = (37 * hash) + PROJECT_OWNER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProjectOwner()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getProjectOwner()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.FetchAclRequest 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.contentwarehouse.v1.FetchAclRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.FetchAclRequest 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.contentwarehouse.v1.FetchAclRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.FetchAclRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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.FetchAcl
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FetchAclRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.FetchAclRequest) com.google.cloud.contentwarehouse.v1.FetchAclRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FetchAclRequest.class, - com.google.cloud.contentwarehouse.v1.FetchAclRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.FetchAclRequest.class, com.google.cloud.contentwarehouse.v1.FetchAclRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.FetchAclRequest.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(); @@ -428,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; } @java.lang.Override @@ -449,11 +411,8 @@ public com.google.cloud.contentwarehouse.v1.FetchAclRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.FetchAclRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.FetchAclRequest result = - new com.google.cloud.contentwarehouse.v1.FetchAclRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.FetchAclRequest result = new com.google.cloud.contentwarehouse.v1.FetchAclRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -464,8 +423,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.FetchAclRequest result.resource_ = resource_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMetadata_ = - requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + result.requestMetadata_ = requestMetadataBuilder_ == null + ? requestMetadata_ + : requestMetadataBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.projectOwner_ = projectOwner_; @@ -476,39 +436,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.FetchAclRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.FetchAclRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.FetchAclRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.FetchAclRequest)other); } else { super.mergeFrom(other); return this; @@ -516,8 +475,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.FetchAclRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.FetchAclRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.FetchAclRequest.getDefaultInstance()) return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; bitField0_ |= 0x00000001; @@ -555,31 +513,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - projectOwner_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + projectOwner_ = 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) { @@ -589,13 +545,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object resource_ = ""; /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -606,13 +559,13 @@ public Builder mergeFrom(
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -621,8 +574,6 @@ public java.lang.String getResource() { } } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -633,14 +584,15 @@ public java.lang.String getResource() {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -648,8 +600,6 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -660,22 +610,18 @@ public com.google.protobuf.ByteString getResourceBytes() {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resource_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -686,7 +632,6 @@ public Builder setResource(java.lang.String value) {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearResource() { @@ -696,8 +641,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -708,14 +651,12 @@ public Builder clearResource() {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resource_ = value; bitField0_ |= 0x00000001; @@ -725,49 +666,36 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> - requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -789,8 +717,6 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -810,8 +736,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -819,13 +743,11 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public Builder mergeRequestMetadata(
-        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && requestMetadata_ != null
-            && requestMetadata_
-                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          requestMetadata_ != null &&
+          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -838,8 +760,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -858,8 +778,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -867,15 +785,12 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
-        getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -883,19 +798,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-        getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-            : requestMetadata_;
+        return requestMetadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -904,33 +815,27 @@ public Builder clearRequestMetadata() {
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RequestMetadata,
-                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(), getParentForChildren(), isClean());
+        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(),
+                getParentForChildren(),
+                isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
 
-    private boolean projectOwner_;
+    private boolean projectOwner_ ;
     /**
-     *
-     *
      * 
      * For Get Project ACL only. Authorization check for end user will be ignored
      * when project_owner=true.
      * 
* * bool project_owner = 3; - * * @return The projectOwner. */ @java.lang.Override @@ -938,15 +843,12 @@ public boolean getProjectOwner() { return projectOwner_; } /** - * - * *
      * For Get Project ACL only. Authorization check for end user will be ignored
      * when project_owner=true.
      * 
* * bool project_owner = 3; - * * @param value The projectOwner to set. * @return This builder for chaining. */ @@ -958,15 +860,12 @@ public Builder setProjectOwner(boolean value) { return this; } /** - * - * *
      * For Get Project ACL only. Authorization check for end user will be ignored
      * when project_owner=true.
      * 
* * bool project_owner = 3; - * * @return This builder for chaining. */ public Builder clearProjectOwner() { @@ -975,9 +874,9 @@ public Builder clearProjectOwner() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -987,12 +886,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.FetchAclRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.FetchAclRequest) private static final com.google.cloud.contentwarehouse.v1.FetchAclRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.FetchAclRequest(); } @@ -1001,27 +900,27 @@ public static com.google.cloud.contentwarehouse.v1.FetchAclRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchAclRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 FetchAclRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1036,4 +935,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.FetchAclRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java similarity index 76% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java index 570d692dfffe..e7051e0dbe0a 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface FetchAclRequestOrBuilder - extends +public interface FetchAclRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.FetchAclRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -36,13 +18,10 @@ public interface FetchAclRequestOrBuilder
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ java.lang.String getResource(); /** - * - * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -53,40 +32,32 @@ public interface FetchAclRequestOrBuilder
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -97,15 +68,12 @@ public interface FetchAclRequestOrBuilder
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
-   *
-   *
    * 
    * For Get Project ACL only. Authorization check for end user will be ignored
    * when project_owner=true.
    * 
* * bool project_owner = 3; - * * @return The projectOwner. */ boolean getProjectOwner(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java index 1fd0cff15365..131b03534b25 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.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/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Response message for DocumentService.FetchAcl.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FetchAclResponse} */ -public final class FetchAclResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FetchAclResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.FetchAclResponse) FetchAclResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FetchAclResponse.newBuilder() to construct. private FetchAclResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FetchAclResponse() {} + private FetchAclResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FetchAclResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FetchAclResponse.class, - com.google.cloud.contentwarehouse.v1.FetchAclResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.FetchAclResponse.class, com.google.cloud.contentwarehouse.v1.FetchAclResponse.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.iam.v1.Policy policy_; /** - * - * *
    * The IAM policy.
    * 
* * .google.iam.v1.Policy policy = 1; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -78,14 +57,11 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * The IAM policy.
    * 
* * .google.iam.v1.Policy policy = 1; - * * @return The policy. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * The IAM policy.
    * 
@@ -109,15 +83,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { public static final int METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_; /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -125,26 +96,19 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; - * * @return The metadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -154,13 +118,10 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() {
    */
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder() {
-    return metadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
-        : metadata_;
+    return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -172,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 (policy_ != null) {
       output.writeMessage(1, getPolicy());
     }
@@ -189,10 +151,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getPolicy());
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -202,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.contentwarehouse.v1.FetchAclResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.FetchAclResponse other =
-        (com.google.cloud.contentwarehouse.v1.FetchAclResponse) obj;
+    com.google.cloud.contentwarehouse.v1.FetchAclResponse other = (com.google.cloud.contentwarehouse.v1.FetchAclResponse) obj;
 
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy().equals(other.getPolicy())) return false;
+      if (!getPolicy()
+          .equals(other.getPolicy())) return false;
     }
     if (hasMetadata() != other.hasMetadata()) return false;
     if (hasMetadata()) {
-      if (!getMetadata().equals(other.getMetadata())) return false;
+      if (!getMetadata()
+          .equals(other.getMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -243,136 +208,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse 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.contentwarehouse.v1.FetchAclResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse 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.contentwarehouse.v1.FetchAclResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.FetchAclResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.FetchAclResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder 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.FetchAcl.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FetchAclResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.FetchAclResponse) com.google.cloud.contentwarehouse.v1.FetchAclResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FetchAclResponse.class, - com.google.cloud.contentwarehouse.v1.FetchAclResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.FetchAclResponse.class, com.google.cloud.contentwarehouse.v1.FetchAclResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.FetchAclResponse.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,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; } @java.lang.Override @@ -412,11 +372,8 @@ public com.google.cloud.contentwarehouse.v1.FetchAclResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.FetchAclResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.FetchAclResponse result = - new com.google.cloud.contentwarehouse.v1.FetchAclResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.FetchAclResponse result = new com.google.cloud.contentwarehouse.v1.FetchAclResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -424,10 +381,14 @@ public com.google.cloud.contentwarehouse.v1.FetchAclResponse buildPartial() { private void buildPartial0(com.google.cloud.contentwarehouse.v1.FetchAclResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null + ? policy_ + : policyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); } } @@ -435,39 +396,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.FetchAclResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.FetchAclResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.FetchAclResponse) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.FetchAclResponse)other); } else { super.mergeFrom(other); return this; @@ -475,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.FetchAclResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.FetchAclResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.FetchAclResponse.getDefaultInstance()) return this; if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } @@ -509,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getMetadataFieldBuilder().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( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getMetadataFieldBuilder().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) { @@ -537,38 +497,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - policyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; /** - * - * *
      * The IAM policy.
      * 
* * .google.iam.v1.Policy policy = 1; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The IAM policy.
      * 
* * .google.iam.v1.Policy policy = 1; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -579,8 +529,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
      * The IAM policy.
      * 
@@ -601,15 +549,14 @@ public Builder setPolicy(com.google.iam.v1.Policy value) { return this; } /** - * - * *
      * The IAM policy.
      * 
* * .google.iam.v1.Policy policy = 1; */ - public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { + public Builder setPolicy( + com.google.iam.v1.Policy.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); } else { @@ -620,8 +567,6 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { return this; } /** - * - * *
      * The IAM policy.
      * 
@@ -630,9 +575,9 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { */ public Builder mergePolicy(com.google.iam.v1.Policy value) { if (policyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && policy_ != null - && policy_ != com.google.iam.v1.Policy.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + policy_ != null && + policy_ != com.google.iam.v1.Policy.getDefaultInstance()) { getPolicyBuilder().mergeFrom(value); } else { policy_ = value; @@ -645,8 +590,6 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { return this; } /** - * - * *
      * The IAM policy.
      * 
@@ -664,8 +607,6 @@ public Builder clearPolicy() { return this; } /** - * - * *
      * The IAM policy.
      * 
@@ -678,8 +619,6 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() { return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * The IAM policy.
      * 
@@ -690,12 +629,11 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; + return policy_ == null ? + com.google.iam.v1.Policy.getDefaultInstance() : policy_; } } /** - * - * *
      * The IAM policy.
      * 
@@ -703,16 +641,14 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { * .google.iam.v1.Policy policy = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean()); + policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>( + getPolicy(), + getParentForChildren(), + isClean()); policy_ = null; } return policyBuilder_; @@ -720,49 +656,36 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ResponseMetadata, - com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, - com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> - metadataBuilder_; + com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> metadataBuilder_; /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; - * * @return The metadata. */ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -784,8 +707,6 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -805,8 +726,6 @@ public Builder setMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -816,10 +735,9 @@ public Builder setMetadata(
      */
     public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && metadata_ != null
-            && metadata_
-                != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          metadata_ != null &&
+          metadata_ != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -832,8 +750,6 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -852,8 +768,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -867,8 +781,6 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadata
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -880,14 +792,11 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
-            : metadata_;
+        return metadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
       }
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -896,24 +805,21 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> 
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.ResponseMetadata,
-                com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
-                getMetadata(), getParentForChildren(), isClean());
+        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
+                getMetadata(),
+                getParentForChildren(),
+                isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
-
     @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);
     }
 
@@ -923,12 +829,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.FetchAclResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.FetchAclResponse)
   private static final com.google.cloud.contentwarehouse.v1.FetchAclResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.FetchAclResponse();
   }
@@ -937,27 +843,27 @@ public static com.google.cloud.contentwarehouse.v1.FetchAclResponse getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public FetchAclResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 FetchAclResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -972,4 +878,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.FetchAclResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java
similarity index 70%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java
index 6e71c176497c..706c30371030 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.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/contentwarehouse/v1/document_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface FetchAclResponseOrBuilder
-    extends
+public interface FetchAclResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.FetchAclResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The IAM policy.
    * 
* * .google.iam.v1.Policy policy = 1; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * The IAM policy.
    * 
* * .google.iam.v1.Policy policy = 1; - * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** - * - * *
    * The IAM policy.
    * 
@@ -59,34 +35,26 @@ public interface FetchAclResponseOrBuilder com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; - * * @return The metadata. */ com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java
similarity index 66%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java
index 6929213dfea4..868e0c7e51a1 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java
@@ -1,80 +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/contentwarehouse/v1/filters.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Filter for the specific types of documents returned.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FileTypeFilter} */ -public final class FileTypeFilter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FileTypeFilter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.FileTypeFilter) FileTypeFilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FileTypeFilter.newBuilder() to construct. private FileTypeFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FileTypeFilter() { fileType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FileTypeFilter(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FileTypeFilter.class, - com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.FileTypeFilter.class, com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder.class); } /** - * - * *
    * Representation of the types of files.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.FileTypeFilter.FileType} */ - public enum FileType implements com.google.protobuf.ProtocolMessageEnum { + public enum FileType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default document type. If set, disables the filter.
      * 
@@ -83,8 +61,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ FILE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Returns all document types, including folders.
      * 
@@ -93,8 +69,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ ALL(1), /** - * - * *
      * Returns only folders.
      * 
@@ -103,8 +77,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ FOLDER(2), /** - * - * *
      * Returns only non-folder documents.
      * 
@@ -112,12 +84,18 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { * DOCUMENT = 3; */ DOCUMENT(3), + /** + *
+     * Returns only root folders
+     * 
+ * + * ROOT_FOLDER = 4; + */ + ROOT_FOLDER(4), UNRECOGNIZED(-1), ; /** - * - * *
      * Default document type. If set, disables the filter.
      * 
@@ -126,8 +104,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FILE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Returns all document types, including folders.
      * 
@@ -136,8 +112,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALL_VALUE = 1; /** - * - * *
      * Returns only folders.
      * 
@@ -146,8 +120,6 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FOLDER_VALUE = 2; /** - * - * *
      * Returns only non-folder documents.
      * 
@@ -155,6 +127,15 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { * DOCUMENT = 3; */ public static final int DOCUMENT_VALUE = 3; + /** + *
+     * Returns only root folders
+     * 
+ * + * ROOT_FOLDER = 4; + */ + public static final int ROOT_FOLDER_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { @@ -180,53 +161,51 @@ public static FileType valueOf(int value) { */ public static FileType forNumber(int value) { switch (value) { - case 0: - return FILE_TYPE_UNSPECIFIED; - case 1: - return ALL; - case 2: - return FOLDER; - case 3: - return DOCUMENT; - default: - return null; + case 0: return FILE_TYPE_UNSPECIFIED; + case 1: return ALL; + case 2: return FOLDER; + case 3: return DOCUMENT; + case 4: return ROOT_FOLDER; + 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< + FileType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FileType findValueByNumber(int number) { + return FileType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FileType findValueByNumber(int number) { - return FileType.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.contentwarehouse.v1.FileTypeFilter.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDescriptor().getEnumTypes().get(0); } private static final FileType[] VALUES = values(); - public static FileType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FileType 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; @@ -246,42 +225,30 @@ private FileType(int value) { public static final int FILE_TYPE_FIELD_NUMBER = 1; private int fileType_ = 0; /** - * - * *
    * The type of files to return.
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; - * * @return The enum numeric value on the wire for fileType. */ - @java.lang.Override - public int getFileTypeValue() { + @java.lang.Override public int getFileTypeValue() { return fileType_; } /** - * - * *
    * The type of files to return.
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; - * * @return The fileType. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType getFileType() { - com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType result = - com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.forNumber(fileType_); - return result == null - ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType getFileType() { + com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType result = com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.forNumber(fileType_); + return result == null ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,10 +260,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (fileType_ - != com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.FILE_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (fileType_ != com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.FILE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, fileType_); } getUnknownFields().writeTo(output); @@ -308,10 +274,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (fileType_ - != com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.FILE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, fileType_); + if (fileType_ != com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.FILE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, fileType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -321,13 +286,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.contentwarehouse.v1.FileTypeFilter)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.FileTypeFilter other = - (com.google.cloud.contentwarehouse.v1.FileTypeFilter) obj; + com.google.cloud.contentwarehouse.v1.FileTypeFilter other = (com.google.cloud.contentwarehouse.v1.FileTypeFilter) obj; if (fileType_ != other.fileType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -349,135 +313,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.FileTypeFilter 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.contentwarehouse.v1.FileTypeFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.FileTypeFilter 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.contentwarehouse.v1.FileTypeFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.FileTypeFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Filter for the specific types of documents returned.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FileTypeFilter} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.FileTypeFilter) com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FileTypeFilter.class, - com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.FileTypeFilter.class, com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.FileTypeFilter.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 +447,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; } @java.lang.Override @@ -508,11 +468,8 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.FileTypeFilter buildPartial() { - com.google.cloud.contentwarehouse.v1.FileTypeFilter result = - new com.google.cloud.contentwarehouse.v1.FileTypeFilter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.FileTypeFilter result = new com.google.cloud.contentwarehouse.v1.FileTypeFilter(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -528,39 +485,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.FileTypeFilter 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.contentwarehouse.v1.FileTypeFilter) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.FileTypeFilter) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.FileTypeFilter)other); } else { super.mergeFrom(other); return this; @@ -568,8 +524,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.FileTypeFilter other) { - if (other == com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance()) return this; if (other.fileType_ != 0) { setFileTypeValue(other.getFileTypeValue()); } @@ -599,19 +554,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - fileType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + fileType_ = 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) { @@ -621,34 +574,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int fileType_ = 0; /** - * - * *
      * The type of files to return.
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; - * * @return The enum numeric value on the wire for fileType. */ - @java.lang.Override - public int getFileTypeValue() { + @java.lang.Override public int getFileTypeValue() { return fileType_; } /** - * - * *
      * The type of files to return.
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; - * * @param value The enum numeric value on the wire for fileType to set. * @return This builder for chaining. */ @@ -659,33 +604,24 @@ public Builder setFileTypeValue(int value) { return this; } /** - * - * *
      * The type of files to return.
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; - * * @return The fileType. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType getFileType() { - com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType result = - com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.forNumber(fileType_); - return result == null - ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.UNRECOGNIZED - : result; + com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType result = com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.forNumber(fileType_); + return result == null ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.UNRECOGNIZED : result; } /** - * - * *
      * The type of files to return.
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; - * * @param value The fileType to set. * @return This builder for chaining. */ @@ -699,14 +635,11 @@ public Builder setFileType(com.google.cloud.contentwarehouse.v1.FileTypeFilter.F return this; } /** - * - * *
      * The type of files to return.
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; - * * @return This builder for chaining. */ public Builder clearFileType() { @@ -715,9 +648,9 @@ public Builder clearFileType() { 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); } @@ -727,12 +660,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.FileTypeFilter) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.FileTypeFilter) private static final com.google.cloud.contentwarehouse.v1.FileTypeFilter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.FileTypeFilter(); } @@ -741,27 +674,27 @@ public static com.google.cloud.contentwarehouse.v1.FileTypeFilter getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FileTypeFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 FileTypeFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -776,4 +709,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.FileTypeFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java similarity index 55% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java index cc37b072829f..4e69558aa67e 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -public interface FileTypeFilterOrBuilder - extends +public interface FileTypeFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.FileTypeFilter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The type of files to return.
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; - * * @return The enum numeric value on the wire for fileType. */ int getFileTypeValue(); /** - * - * *
    * The type of files to return.
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; - * * @return The fileType. */ com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType getFileType(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java new file mode 100644 index 000000000000..2f358d12a054 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java @@ -0,0 +1,153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/filters.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class FiltersProto { + private FiltersProto() {} + 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_contentwarehouse_v1_DocumentQuery_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_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/contentwarehouse/v1/filte" + + "rs.proto\022 google.cloud.contentwarehouse." + + "v1\032\031google/api/resource.proto\032\032google/ty" + + "pe/interval.proto\"\235\004\n\rDocumentQuery\022\r\n\005q" + + "uery\030\001 \001(\t\022\023\n\013is_nl_query\030\014 \001(\010\022\"\n\026custo" + + "m_property_filter\030\004 \001(\tB\002\030\001\022B\n\014time_filt" + + "ers\030\005 \003(\0132,.google.cloud.contentwarehous" + + "e.v1.TimeFilter\022\035\n\025document_schema_names" + + "\030\006 \003(\t\022I\n\017property_filter\030\007 \003(\01320.google" + + ".cloud.contentwarehouse.v1.PropertyFilte" + + "r\022J\n\020file_type_filter\030\010 \001(\01320.google.clo" + + "ud.contentwarehouse.v1.FileTypeFilter\022\032\n" + + "\022folder_name_filter\030\t \001(\t\022\034\n\024document_na" + + "me_filter\030\016 \003(\t\022\025\n\rquery_context\030\n \003(\t\022\037" + + "\n\027document_creator_filter\030\013 \003(\t\022X\n\027custo" + + "m_weights_metadata\030\r \001(\01327.google.cloud." + + "contentwarehouse.v1.CustomWeightsMetadat" + + "a\"\344\001\n\nTimeFilter\022)\n\ntime_range\030\001 \001(\0132\025.g" + + "oogle.type.Interval\022J\n\ntime_field\030\002 \001(\0162" + + "6.google.cloud.contentwarehouse.v1.TimeF" + + "ilter.TimeField\"_\n\tTimeField\022\032\n\026TIME_FIE" + + "LD_UNSPECIFIED\020\000\022\017\n\013CREATE_TIME\020\001\022\017\n\013UPD" + + "ATE_TIME\020\002\022\024\n\020DISPOSITION_TIME\020\003\"v\n\016Prop" + + "ertyFilter\022Q\n\024document_schema_name\030\001 \001(\t" + + "B3\372A0\n.contentwarehouse.googleapis.com/D" + + "ocumentSchema\022\021\n\tcondition\030\002 \001(\t\"\271\001\n\016Fil" + + "eTypeFilter\022L\n\tfile_type\030\001 \001(\01629.google." + + "cloud.contentwarehouse.v1.FileTypeFilter" + + ".FileType\"Y\n\010FileType\022\031\n\025FILE_TYPE_UNSPE" + + "CIFIED\020\000\022\007\n\003ALL\020\001\022\n\n\006FOLDER\020\002\022\014\n\010DOCUMEN" + + "T\020\003\022\017\n\013ROOT_FOLDER\020\004\"u\n\025CustomWeightsMet" + + "adata\022\\\n\032weighted_schema_properties\030\001 \003(" + + "\01328.google.cloud.contentwarehouse.v1.Wei" + + "ghtedSchemaProperty\"\203\001\n\026WeightedSchemaPr" + + "operty\022Q\n\024document_schema_name\030\001 \001(\tB3\372A" + + "0\n.contentwarehouse.googleapis.com/Docum" + + "entSchema\022\026\n\016property_names\030\002 \003(\tB\364\001\n$co" + + "m.google.cloud.contentwarehouse.v1B\014Filt" + + "ersProtoP\001ZPcloud.google.com/go/contentw" + + "arehouse/apiv1/contentwarehousepb;conten" + + "twarehousepb\252\002 Google.Cloud.ContentWareh" + + "ouse.V1\312\002 Google\\Cloud\\ContentWarehouse\\" + + "V1\352\002#Google::Cloud::ContentWarehouse::V1" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.type.IntervalProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor, + new java.lang.String[] { "Query", "IsNlQuery", "CustomPropertyFilter", "TimeFilters", "DocumentSchemaNames", "PropertyFilter", "FileTypeFilter", "FolderNameFilter", "DocumentNameFilter", "QueryContext", "DocumentCreatorFilter", "CustomWeightsMetadata", }); + internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor, + new java.lang.String[] { "TimeRange", "TimeField", }); + internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor, + new java.lang.String[] { "DocumentSchemaName", "Condition", }); + internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor, + new java.lang.String[] { "FileType", }); + internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor, + new java.lang.String[] { "WeightedSchemaProperties", }); + internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor, + new java.lang.String[] { "DocumentSchemaName", "PropertyNames", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.type.IntervalProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java similarity index 65% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java index 05ca7452a410..e458c9f686db 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Float values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FloatArray} */ -public final class FloatArray extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FloatArray extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.FloatArray) FloatArrayOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FloatArray.newBuilder() to construct. private FloatArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FloatArray() { values_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FloatArray(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FloatArray.class, - com.google.cloud.contentwarehouse.v1.FloatArray.Builder.class); + com.google.cloud.contentwarehouse.v1.FloatArray.class, com.google.cloud.contentwarehouse.v1.FloatArray.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList values_; /** - * - * *
    * List of float values.
    * 
* * repeated float values = 1; - * * @return A list containing the values. */ @java.lang.Override - public java.util.List getValuesList() { + public java.util.List + getValuesList() { return values_; } /** - * - * *
    * List of float values.
    * 
* * repeated float values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
    * List of float values.
    * 
* * repeated float values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ public float getValues(int index) { return values_.getFloat(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.contentwarehouse.v1.FloatArray)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.FloatArray other = - (com.google.cloud.contentwarehouse.v1.FloatArray) obj; + com.google.cloud.contentwarehouse.v1.FloatArray other = (com.google.cloud.contentwarehouse.v1.FloatArray) obj; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,136 +163,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FloatArray 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.contentwarehouse.v1.FloatArray parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FloatArray parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.FloatArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.FloatArray 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.contentwarehouse.v1.FloatArray parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.FloatArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Float values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FloatArray} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.FloatArray) com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FloatArray.class, - com.google.cloud.contentwarehouse.v1.FloatArray.Builder.class); + com.google.cloud.contentwarehouse.v1.FloatArray.class, com.google.cloud.contentwarehouse.v1.FloatArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.FloatArray.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.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; } @java.lang.Override @@ -351,18 +319,14 @@ public com.google.cloud.contentwarehouse.v1.FloatArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.FloatArray buildPartial() { - com.google.cloud.contentwarehouse.v1.FloatArray result = - new com.google.cloud.contentwarehouse.v1.FloatArray(this); + com.google.cloud.contentwarehouse.v1.FloatArray result = new com.google.cloud.contentwarehouse.v1.FloatArray(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.FloatArray result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.FloatArray result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); @@ -378,39 +342,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.FloatArray 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.contentwarehouse.v1.FloatArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.FloatArray) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.FloatArray)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.contentwarehouse.v1.FloatArray other) { - if (other == com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.FloatArray.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 13: - { - float v = input.readFloat(); - ensureValuesIsMutable(); - values_.addFloat(v); - break; - } // case 13 - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValuesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - values_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + float v = input.readFloat(); + ensureValuesIsMutable(); + values_.addFloat(v); + break; + } // case 13 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValuesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + values_.addFloat(input.readFloat()); + } + 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.FloatList values_ = emptyFloatList(); - private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = mutableCopy(values_); @@ -502,44 +459,35 @@ private void ensureValuesIsMutable() { } } /** - * - * *
      * List of float values.
      * 
* * repeated float 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_; } /** - * - * *
      * List of float values.
      * 
* * repeated float values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
      * List of float values.
      * 
* * repeated float values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -547,19 +495,17 @@ public float getValues(int index) { return values_.getFloat(index); } /** - * - * *
      * List of float values.
      * 
* * repeated float 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, float value) { + public Builder setValues( + int index, float value) { ensureValuesIsMutable(); values_.setFloat(index, value); @@ -567,14 +513,11 @@ public Builder setValues(int index, float value) { return this; } /** - * - * *
      * List of float values.
      * 
* * repeated float values = 1; - * * @param value The values to add. * @return This builder for chaining. */ @@ -586,32 +529,28 @@ public Builder addValues(float value) { return this; } /** - * - * *
      * List of float values.
      * 
* * repeated float 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; } /** - * - * *
      * List of float values.
      * 
* * repeated float 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.contentwarehouse.v1.FloatArray) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.FloatArray) private static final com.google.cloud.contentwarehouse.v1.FloatArray DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.FloatArray(); } @@ -646,27 +585,27 @@ public static com.google.cloud.contentwarehouse.v1.FloatArray getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 FloatArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.contentwarehouse.v1.FloatArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java similarity index 57% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java index c952d1da8ffa..86e873d8e091 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface FloatArrayOrBuilder - extends +public interface FloatArrayOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.FloatArray) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of float values.
    * 
* * repeated float values = 1; - * * @return A list containing the values. */ java.util.List getValuesList(); /** - * - * *
    * List of float values.
    * 
* * repeated float values = 1; - * * @return The count of values. */ int getValuesCount(); /** - * - * *
    * List of float values.
    * 
* * repeated float values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java index dc294dc3a32d..663a3d80d51d 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java @@ -1,67 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Configurations for a float property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FloatTypeOptions} */ -public final class FloatTypeOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FloatTypeOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.FloatTypeOptions) FloatTypeOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FloatTypeOptions.newBuilder() to construct. private FloatTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FloatTypeOptions() {} + private FloatTypeOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FloatTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FloatTypeOptions.class, - com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.FloatTypeOptions.class, com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -73,7 +54,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 { getUnknownFields().writeTo(output); } @@ -91,13 +73,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.contentwarehouse.v1.FloatTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.FloatTypeOptions other = - (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.FloatTypeOptions other = (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -116,136 +97,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions 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.contentwarehouse.v1.FloatTypeOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions 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.contentwarehouse.v1.FloatTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.FloatTypeOptions prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.FloatTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Configurations for a float property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FloatTypeOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.FloatTypeOptions) com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FloatTypeOptions.class, - com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.FloatTypeOptions.class, com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.FloatTypeOptions.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(); @@ -253,9 +229,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; } @java.lang.Override @@ -274,8 +250,7 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.FloatTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.FloatTypeOptions result = - new com.google.cloud.contentwarehouse.v1.FloatTypeOptions(this); + com.google.cloud.contentwarehouse.v1.FloatTypeOptions result = new com.google.cloud.contentwarehouse.v1.FloatTypeOptions(this); onBuilt(); return result; } @@ -284,39 +259,38 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.FloatTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.FloatTypeOptions) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.FloatTypeOptions)other); } else { super.mergeFrom(other); return this; @@ -324,8 +298,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.FloatTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -352,13 +325,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -368,9 +340,9 @@ public Builder mergeFrom( } // finally 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); } @@ -380,12 +352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.FloatTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.FloatTypeOptions) private static final com.google.cloud.contentwarehouse.v1.FloatTypeOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.FloatTypeOptions(); } @@ -394,27 +366,27 @@ public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 FloatTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -429,4 +401,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.FloatTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..2d55c7b5e607 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface FloatTypeOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.FloatTypeOptions) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java index 7d42cb4e5319..987f08f60b4e 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * The configuration of the Cloud Storage Ingestion pipeline.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.GcsIngestPipeline} */ -public final class GcsIngestPipeline extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsIngestPipeline extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.GcsIngestPipeline) GcsIngestPipelineOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsIngestPipeline.newBuilder() to construct. private GcsIngestPipeline(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsIngestPipeline() { inputPath_ = ""; schemaName_ = ""; @@ -45,32 +27,28 @@ private GcsIngestPipeline() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsIngestPipeline(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.class, - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder.class); + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.class, com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder.class); } public static final int INPUT_PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object inputPath_ = ""; /** - * - * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string input_path = 1; - * * @return The inputPath. */ @java.lang.Override @@ -87,15 +64,14 @@ public java.lang.String getInputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; } } /** - * - * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -103,15 +79,16 @@ public java.lang.String getInputPath() {
    * 
* * string input_path = 1; - * * @return The bytes for inputPath. */ @java.lang.Override - public com.google.protobuf.ByteString getInputPathBytes() { + public com.google.protobuf.ByteString + getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputPath_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getInputPathBytes() { } public static final int SCHEMA_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object schemaName_ = ""; /** - * - * *
    * The Document Warehouse schema resource name. All documents processed by
    * this pipeline will use this schema.
@@ -134,7 +108,6 @@ public com.google.protobuf.ByteString getInputPathBytes() {
    * 
* * string schema_name = 2; - * * @return The schemaName. */ @java.lang.Override @@ -143,15 +116,14 @@ public java.lang.String getSchemaName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; } } /** - * - * *
    * The Document Warehouse schema resource name. All documents processed by
    * this pipeline will use this schema.
@@ -160,15 +132,16 @@ public java.lang.String getSchemaName() {
    * 
* * string schema_name = 2; - * * @return The bytes for schemaName. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaNameBytes() { + public com.google.protobuf.ByteString + getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaName_ = b; return b; } else { @@ -177,19 +150,15 @@ public com.google.protobuf.ByteString getSchemaNameBytes() { } public static final int PROCESSOR_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object processorType_ = ""; /** - * - * *
    * The Doc AI processor type name. Only used when the format of ingested
    * files is Doc AI Document proto format.
    * 
* * string processor_type = 3; - * * @return The processorType. */ @java.lang.Override @@ -198,30 +167,30 @@ public java.lang.String getProcessorType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorType_ = s; return s; } } /** - * - * *
    * The Doc AI processor type name. Only used when the format of ingested
    * files is Doc AI Document proto format.
    * 
* * string processor_type = 3; - * * @return The bytes for processorType. */ @java.lang.Override - public com.google.protobuf.ByteString getProcessorTypeBytes() { + public com.google.protobuf.ByteString + getProcessorTypeBytes() { java.lang.Object ref = processorType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); processorType_ = b; return b; } else { @@ -232,8 +201,6 @@ public com.google.protobuf.ByteString getProcessorTypeBytes() { public static final int SKIP_INGESTED_DOCUMENTS_FIELD_NUMBER = 4; private boolean skipIngestedDocuments_ = false; /** - * - * *
    * The flag whether to skip ingested documents.
    * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -241,7 +208,6 @@ public com.google.protobuf.ByteString getProcessorTypeBytes() {
    * 
* * bool skip_ingested_documents = 4; - * * @return The skipIngestedDocuments. */ @java.lang.Override @@ -252,18 +218,13 @@ public boolean getSkipIngestedDocuments() { public static final int PIPELINE_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipelineConfig_; /** - * - * *
    * Optional. The config for the Cloud Storage Ingestion pipeline.
    * It provides additional customization options to run the pipeline and can be
    * skipped if it is not applicable.
    * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pipelineConfig field is set. */ @java.lang.Override @@ -271,49 +232,34 @@ public boolean hasPipelineConfig() { return pipelineConfig_ != null; } /** - * - * *
    * Optional. The config for the Cloud Storage Ingestion pipeline.
    * It provides additional customization options to run the pipeline and can be
    * skipped if it is not applicable.
    * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The pipelineConfig. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig() { - return pipelineConfig_ == null - ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() - : pipelineConfig_; + return pipelineConfig_ == null ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; } /** - * - * *
    * Optional. The config for the Cloud Storage Ingestion pipeline.
    * It provides additional customization options to run the pipeline and can be
    * skipped if it is not applicable.
    * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder - getPipelineConfigOrBuilder() { - return pipelineConfig_ == null - ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() - : pipelineConfig_; + public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder() { + return pipelineConfig_ == null ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,7 +271,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(inputPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputPath_); } @@ -360,10 +307,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, processorType_); } if (skipIngestedDocuments_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, skipIngestedDocuments_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, skipIngestedDocuments_); } if (pipelineConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPipelineConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getPipelineConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -373,21 +322,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.contentwarehouse.v1.GcsIngestPipeline)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline other = - (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) obj; + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline other = (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) obj; - if (!getInputPath().equals(other.getInputPath())) return false; - if (!getSchemaName().equals(other.getSchemaName())) return false; - if (!getProcessorType().equals(other.getProcessorType())) return false; - if (getSkipIngestedDocuments() != other.getSkipIngestedDocuments()) return false; + if (!getInputPath() + .equals(other.getInputPath())) return false; + if (!getSchemaName() + .equals(other.getSchemaName())) return false; + if (!getProcessorType() + .equals(other.getProcessorType())) return false; + if (getSkipIngestedDocuments() + != other.getSkipIngestedDocuments()) return false; if (hasPipelineConfig() != other.hasPipelineConfig()) return false; if (hasPipelineConfig()) { - if (!getPipelineConfig().equals(other.getPipelineConfig())) return false; + if (!getPipelineConfig() + .equals(other.getPipelineConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -407,7 +360,8 @@ public int hashCode() { hash = (37 * hash) + PROCESSOR_TYPE_FIELD_NUMBER; hash = (53 * hash) + getProcessorType().hashCode(); hash = (37 * hash) + SKIP_INGESTED_DOCUMENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipIngestedDocuments()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSkipIngestedDocuments()); if (hasPipelineConfig()) { hash = (37 * hash) + PIPELINE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPipelineConfig().hashCode(); @@ -418,136 +372,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline 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.contentwarehouse.v1.GcsIngestPipeline parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline 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.contentwarehouse.v1.GcsIngestPipeline parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.GcsIngestPipeline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The configuration of the Cloud Storage Ingestion pipeline.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.GcsIngestPipeline} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.GcsIngestPipeline) com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.class, - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder.class); + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.class, com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.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 +514,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; } @java.lang.Override @@ -586,11 +535,8 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline buildPartial() { - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline result = - new com.google.cloud.contentwarehouse.v1.GcsIngestPipeline(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline result = new com.google.cloud.contentwarehouse.v1.GcsIngestPipeline(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -610,8 +556,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GcsIngestPipelin result.skipIngestedDocuments_ = skipIngestedDocuments_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.pipelineConfig_ = - pipelineConfigBuilder_ == null ? pipelineConfig_ : pipelineConfigBuilder_.build(); + result.pipelineConfig_ = pipelineConfigBuilder_ == null + ? pipelineConfig_ + : pipelineConfigBuilder_.build(); } } @@ -619,39 +566,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GcsIngestPipelin public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.GcsIngestPipeline) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.GcsIngestPipeline)other); } else { super.mergeFrom(other); return this; @@ -659,8 +605,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GcsIngestPipeline other) { - if (other == com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance()) return this; if (!other.getInputPath().isEmpty()) { inputPath_ = other.inputPath_; bitField0_ |= 0x00000001; @@ -708,43 +653,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - inputPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - schemaName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - processorType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - skipIngestedDocuments_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage(getPipelineConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + inputPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + schemaName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + processorType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + skipIngestedDocuments_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getPipelineConfigFieldBuilder().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) { @@ -754,13 +695,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object inputPath_ = ""; /** - * - * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -768,13 +706,13 @@ public Builder mergeFrom(
      * 
* * string input_path = 1; - * * @return The inputPath. */ public java.lang.String getInputPath() { java.lang.Object ref = inputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; @@ -783,8 +721,6 @@ public java.lang.String getInputPath() { } } /** - * - * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -792,14 +728,15 @@ public java.lang.String getInputPath() {
      * 
* * string input_path = 1; - * * @return The bytes for inputPath. */ - public com.google.protobuf.ByteString getInputPathBytes() { + public com.google.protobuf.ByteString + getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputPath_ = b; return b; } else { @@ -807,8 +744,6 @@ public com.google.protobuf.ByteString getInputPathBytes() { } } /** - * - * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -816,22 +751,18 @@ public com.google.protobuf.ByteString getInputPathBytes() {
      * 
* * string input_path = 1; - * * @param value The inputPath to set. * @return This builder for chaining. */ - public Builder setInputPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } inputPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -839,7 +770,6 @@ public Builder setInputPath(java.lang.String value) {
      * 
* * string input_path = 1; - * * @return This builder for chaining. */ public Builder clearInputPath() { @@ -849,8 +779,6 @@ public Builder clearInputPath() { return this; } /** - * - * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -858,14 +786,12 @@ public Builder clearInputPath() {
      * 
* * string input_path = 1; - * * @param value The bytes for inputPath to set. * @return This builder for chaining. */ - public Builder setInputPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); inputPath_ = value; bitField0_ |= 0x00000001; @@ -875,8 +801,6 @@ public Builder setInputPathBytes(com.google.protobuf.ByteString value) { private java.lang.Object schemaName_ = ""; /** - * - * *
      * The Document Warehouse schema resource name. All documents processed by
      * this pipeline will use this schema.
@@ -885,13 +809,13 @@ public Builder setInputPathBytes(com.google.protobuf.ByteString value) {
      * 
* * string schema_name = 2; - * * @return The schemaName. */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; @@ -900,8 +824,6 @@ public java.lang.String getSchemaName() { } } /** - * - * *
      * The Document Warehouse schema resource name. All documents processed by
      * this pipeline will use this schema.
@@ -910,14 +832,15 @@ public java.lang.String getSchemaName() {
      * 
* * string schema_name = 2; - * * @return The bytes for schemaName. */ - public com.google.protobuf.ByteString getSchemaNameBytes() { + public com.google.protobuf.ByteString + getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaName_ = b; return b; } else { @@ -925,8 +848,6 @@ public com.google.protobuf.ByteString getSchemaNameBytes() { } } /** - * - * *
      * The Document Warehouse schema resource name. All documents processed by
      * this pipeline will use this schema.
@@ -935,22 +856,18 @@ public com.google.protobuf.ByteString getSchemaNameBytes() {
      * 
* * string schema_name = 2; - * * @param value The schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The Document Warehouse schema resource name. All documents processed by
      * this pipeline will use this schema.
@@ -959,7 +876,6 @@ public Builder setSchemaName(java.lang.String value) {
      * 
* * string schema_name = 2; - * * @return This builder for chaining. */ public Builder clearSchemaName() { @@ -969,8 +885,6 @@ public Builder clearSchemaName() { return this; } /** - * - * *
      * The Document Warehouse schema resource name. All documents processed by
      * this pipeline will use this schema.
@@ -979,14 +893,12 @@ public Builder clearSchemaName() {
      * 
* * string schema_name = 2; - * * @param value The bytes for schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaName_ = value; bitField0_ |= 0x00000002; @@ -996,21 +908,19 @@ public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object processorType_ = ""; /** - * - * *
      * The Doc AI processor type name. Only used when the format of ingested
      * files is Doc AI Document proto format.
      * 
* * string processor_type = 3; - * * @return The processorType. */ public java.lang.String getProcessorType() { java.lang.Object ref = processorType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorType_ = s; return s; @@ -1019,22 +929,21 @@ public java.lang.String getProcessorType() { } } /** - * - * *
      * The Doc AI processor type name. Only used when the format of ingested
      * files is Doc AI Document proto format.
      * 
* * string processor_type = 3; - * * @return The bytes for processorType. */ - public com.google.protobuf.ByteString getProcessorTypeBytes() { + public com.google.protobuf.ByteString + getProcessorTypeBytes() { java.lang.Object ref = processorType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); processorType_ = b; return b; } else { @@ -1042,37 +951,30 @@ public com.google.protobuf.ByteString getProcessorTypeBytes() { } } /** - * - * *
      * The Doc AI processor type name. Only used when the format of ingested
      * files is Doc AI Document proto format.
      * 
* * string processor_type = 3; - * * @param value The processorType to set. * @return This builder for chaining. */ - public Builder setProcessorType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProcessorType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } processorType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The Doc AI processor type name. Only used when the format of ingested
      * files is Doc AI Document proto format.
      * 
* * string processor_type = 3; - * * @return This builder for chaining. */ public Builder clearProcessorType() { @@ -1082,22 +984,18 @@ public Builder clearProcessorType() { return this; } /** - * - * *
      * The Doc AI processor type name. Only used when the format of ingested
      * files is Doc AI Document proto format.
      * 
* * string processor_type = 3; - * * @param value The bytes for processorType to set. * @return This builder for chaining. */ - public Builder setProcessorTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProcessorTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); processorType_ = value; bitField0_ |= 0x00000004; @@ -1105,10 +1003,8 @@ public Builder setProcessorTypeBytes(com.google.protobuf.ByteString value) { return this; } - private boolean skipIngestedDocuments_; + private boolean skipIngestedDocuments_ ; /** - * - * *
      * The flag whether to skip ingested documents.
      * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -1116,7 +1012,6 @@ public Builder setProcessorTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * bool skip_ingested_documents = 4; - * * @return The skipIngestedDocuments. */ @java.lang.Override @@ -1124,8 +1019,6 @@ public boolean getSkipIngestedDocuments() { return skipIngestedDocuments_; } /** - * - * *
      * The flag whether to skip ingested documents.
      * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -1133,7 +1026,6 @@ public boolean getSkipIngestedDocuments() {
      * 
* * bool skip_ingested_documents = 4; - * * @param value The skipIngestedDocuments to set. * @return This builder for chaining. */ @@ -1145,8 +1037,6 @@ public Builder setSkipIngestedDocuments(boolean value) { return this; } /** - * - * *
      * The flag whether to skip ingested documents.
      * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -1154,7 +1044,6 @@ public Builder setSkipIngestedDocuments(boolean value) {
      * 
* * bool skip_ingested_documents = 4; - * * @return This builder for chaining. */ public Builder clearSkipIngestedDocuments() { @@ -1166,67 +1055,47 @@ public Builder clearSkipIngestedDocuments() { private com.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipelineConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> - pipelineConfigBuilder_; + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> pipelineConfigBuilder_; /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pipelineConfig field is set. */ public boolean hasPipelineConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The pipelineConfig. */ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig() { if (pipelineConfigBuilder_ == null) { - return pipelineConfig_ == null - ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() - : pipelineConfig_; + return pipelineConfig_ == null ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; } else { return pipelineConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPipelineConfig( - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { + public Builder setPipelineConfig(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { if (pipelineConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1240,17 +1109,13 @@ public Builder setPipelineConfig( return this; } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPipelineConfig( com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder builderForValue) { @@ -1264,25 +1129,19 @@ public Builder setPipelineConfig( return this; } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergePipelineConfig( - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { + public Builder mergePipelineConfig(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { if (pipelineConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && pipelineConfig_ != null - && pipelineConfig_ - != com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + pipelineConfig_ != null && + pipelineConfig_ != com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) { getPipelineConfigBuilder().mergeFrom(value); } else { pipelineConfig_ = value; @@ -1295,17 +1154,13 @@ public Builder mergePipelineConfig( return this; } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPipelineConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1318,79 +1173,61 @@ public Builder clearPipelineConfig() { return this; } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder - getPipelineConfigBuilder() { + public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder getPipelineConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getPipelineConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder - getPipelineConfigOrBuilder() { + public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder() { if (pipelineConfigBuilder_ != null) { return pipelineConfigBuilder_.getMessageOrBuilder(); } else { - return pipelineConfig_ == null - ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() - : pipelineConfig_; + return pipelineConfig_ == null ? + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; } } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> getPipelineConfigFieldBuilder() { if (pipelineConfigBuilder_ == null) { - pipelineConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>( - getPipelineConfig(), getParentForChildren(), isClean()); + pipelineConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>( + getPipelineConfig(), + getParentForChildren(), + isClean()); pipelineConfig_ = null; } return pipelineConfigBuilder_; } - @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); } @@ -1400,12 +1237,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.GcsIngestPipeline) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GcsIngestPipeline) private static final com.google.cloud.contentwarehouse.v1.GcsIngestPipeline DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GcsIngestPipeline(); } @@ -1414,27 +1251,27 @@ public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsIngestPipeline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GcsIngestPipeline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1449,4 +1286,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java similarity index 71% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java index 00b3b7cb21c2..924da3270a8f 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface GcsIngestPipelineOrBuilder - extends +public interface GcsIngestPipelineOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GcsIngestPipeline) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -33,13 +15,10 @@ public interface GcsIngestPipelineOrBuilder
    * 
* * string input_path = 1; - * * @return The inputPath. */ java.lang.String getInputPath(); /** - * - * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -47,14 +26,12 @@ public interface GcsIngestPipelineOrBuilder
    * 
* * string input_path = 1; - * * @return The bytes for inputPath. */ - com.google.protobuf.ByteString getInputPathBytes(); + com.google.protobuf.ByteString + getInputPathBytes(); /** - * - * *
    * The Document Warehouse schema resource name. All documents processed by
    * this pipeline will use this schema.
@@ -63,13 +40,10 @@ public interface GcsIngestPipelineOrBuilder
    * 
* * string schema_name = 2; - * * @return The schemaName. */ java.lang.String getSchemaName(); /** - * - * *
    * The Document Warehouse schema resource name. All documents processed by
    * this pipeline will use this schema.
@@ -78,41 +52,34 @@ public interface GcsIngestPipelineOrBuilder
    * 
* * string schema_name = 2; - * * @return The bytes for schemaName. */ - com.google.protobuf.ByteString getSchemaNameBytes(); + com.google.protobuf.ByteString + getSchemaNameBytes(); /** - * - * *
    * The Doc AI processor type name. Only used when the format of ingested
    * files is Doc AI Document proto format.
    * 
* * string processor_type = 3; - * * @return The processorType. */ java.lang.String getProcessorType(); /** - * - * *
    * The Doc AI processor type name. Only used when the format of ingested
    * files is Doc AI Document proto format.
    * 
* * string processor_type = 3; - * * @return The bytes for processorType. */ - com.google.protobuf.ByteString getProcessorTypeBytes(); + com.google.protobuf.ByteString + getProcessorTypeBytes(); /** - * - * *
    * The flag whether to skip ingested documents.
    * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -120,55 +87,40 @@ public interface GcsIngestPipelineOrBuilder
    * 
* * bool skip_ingested_documents = 4; - * * @return The skipIngestedDocuments. */ boolean getSkipIngestedDocuments(); /** - * - * *
    * Optional. The config for the Cloud Storage Ingestion pipeline.
    * It provides additional customization options to run the pipeline and can be
    * skipped if it is not applicable.
    * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pipelineConfig field is set. */ boolean hasPipelineConfig(); /** - * - * *
    * Optional. The config for the Cloud Storage Ingestion pipeline.
    * It provides additional customization options to run the pipeline and can be
    * skipped if it is not applicable.
    * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The pipelineConfig. */ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig(); /** - * - * *
    * Optional. The config for the Cloud Storage Ingestion pipeline.
    * It provides additional customization options to run the pipeline and can be
    * skipped if it is not applicable.
    * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java index 66ca5449ed62..7cf218ff3e2f 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * The configuration of the Cloud Storage Ingestion with DocAI Processors
  * pipeline.
@@ -28,18 +11,15 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline}
  */
-public final class GcsIngestWithDocAiProcessorsPipeline
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GcsIngestWithDocAiProcessorsPipeline extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
     GcsIngestWithDocAiProcessorsPipelineOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GcsIngestWithDocAiProcessorsPipeline.newBuilder() to construct.
-  private GcsIngestWithDocAiProcessorsPipeline(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GcsIngestWithDocAiProcessorsPipeline(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GcsIngestWithDocAiProcessorsPipeline() {
     inputPath_ = "";
     extractProcessorInfos_ = java.util.Collections.emptyList();
@@ -48,33 +28,28 @@ private GcsIngestWithDocAiProcessorsPipeline() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GcsIngestWithDocAiProcessorsPipeline();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.PipelinesProto
-        .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.PipelinesProto
-        .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.class,
-            com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder
-                .class);
+            com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.class, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder.class);
   }
 
   public static final int INPUT_PATH_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object inputPath_ = "";
   /**
-   *
-   *
    * 
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -82,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string input_path = 1; - * * @return The inputPath. */ @java.lang.Override @@ -91,15 +65,14 @@ public java.lang.String getInputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; } } /** - * - * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -107,15 +80,16 @@ public java.lang.String getInputPath() {
    * 
* * string input_path = 1; - * * @return The bytes for inputPath. */ @java.lang.Override - public com.google.protobuf.ByteString getInputPathBytes() { + public com.google.protobuf.ByteString + getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputPath_ = b; return b; } else { @@ -126,8 +100,6 @@ public com.google.protobuf.ByteString getInputPathBytes() { public static final int SPLIT_CLASSIFY_PROCESSOR_INFO_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.ProcessorInfo splitClassifyProcessorInfo_; /** - * - * *
    * The split and classify processor information.
    * The split and classify result will be used to find a matched extract
@@ -135,7 +107,6 @@ public com.google.protobuf.ByteString getInputPathBytes() {
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * * @return Whether the splitClassifyProcessorInfo field is set. */ @java.lang.Override @@ -143,8 +114,6 @@ public boolean hasSplitClassifyProcessorInfo() { return splitClassifyProcessorInfo_ != null; } /** - * - * *
    * The split and classify processor information.
    * The split and classify result will be used to find a matched extract
@@ -152,18 +121,13 @@ public boolean hasSplitClassifyProcessorInfo() {
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * * @return The splitClassifyProcessorInfo. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProcessorInfo() { - return splitClassifyProcessorInfo_ == null - ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() - : splitClassifyProcessorInfo_; + return splitClassifyProcessorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : splitClassifyProcessorInfo_; } /** - * - * *
    * The split and classify processor information.
    * The split and classify result will be used to find a matched extract
@@ -173,20 +137,14 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProces
    * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder
-      getSplitClassifyProcessorInfoOrBuilder() {
-    return splitClassifyProcessorInfo_ == null
-        ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
-        : splitClassifyProcessorInfo_;
+  public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getSplitClassifyProcessorInfoOrBuilder() {
+    return splitClassifyProcessorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : splitClassifyProcessorInfo_;
   }
 
   public static final int EXTRACT_PROCESSOR_INFOS_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private java.util.List extractProcessorInfos_;
   /**
-   *
-   *
    * 
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -194,17 +152,13 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProces
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ @java.lang.Override - public java.util.List - getExtractProcessorInfosList() { + public java.util.List getExtractProcessorInfosList() { return extractProcessorInfos_; } /** - * - * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -212,17 +166,14 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProces
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ @java.lang.Override - public java.util.List + public java.util.List getExtractProcessorInfosOrBuilderList() { return extractProcessorInfos_; } /** - * - * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -230,16 +181,13 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProces
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ @java.lang.Override public int getExtractProcessorInfosCount() { return extractProcessorInfos_.size(); } /** - * - * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -247,16 +195,13 @@ public int getExtractProcessorInfosCount() {
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInfos(int index) { return extractProcessorInfos_.get(index); } /** - * - * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -264,22 +209,18 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInf
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder - getExtractProcessorInfosOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorInfosOrBuilder( + int index) { return extractProcessorInfos_.get(index); } public static final int PROCESSOR_RESULTS_FOLDER_PATH_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object processorResultsFolderPath_ = ""; /** - * - * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -287,7 +228,6 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInf
    * 
* * string processor_results_folder_path = 4; - * * @return The processorResultsFolderPath. */ @java.lang.Override @@ -296,15 +236,14 @@ public java.lang.String getProcessorResultsFolderPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorResultsFolderPath_ = s; return s; } } /** - * - * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -312,15 +251,16 @@ public java.lang.String getProcessorResultsFolderPath() {
    * 
* * string processor_results_folder_path = 4; - * * @return The bytes for processorResultsFolderPath. */ @java.lang.Override - public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() { + public com.google.protobuf.ByteString + getProcessorResultsFolderPathBytes() { java.lang.Object ref = processorResultsFolderPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); processorResultsFolderPath_ = b; return b; } else { @@ -331,8 +271,6 @@ public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() { public static final int SKIP_INGESTED_DOCUMENTS_FIELD_NUMBER = 5; private boolean skipIngestedDocuments_ = false; /** - * - * *
    * The flag whether to skip ingested documents.
    * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -340,7 +278,6 @@ public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() {
    * 
* * bool skip_ingested_documents = 5; - * * @return The skipIngestedDocuments. */ @java.lang.Override @@ -351,18 +288,13 @@ public boolean getSkipIngestedDocuments() { public static final int PIPELINE_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipelineConfig_; /** - * - * *
    * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
    * pipeline. It provides additional customization options to run the pipeline
    * and can be skipped if it is not applicable.
    * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pipelineConfig field is set. */ @java.lang.Override @@ -370,49 +302,34 @@ public boolean hasPipelineConfig() { return pipelineConfig_ != null; } /** - * - * *
    * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
    * pipeline. It provides additional customization options to run the pipeline
    * and can be skipped if it is not applicable.
    * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The pipelineConfig. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig() { - return pipelineConfig_ == null - ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() - : pipelineConfig_; + return pipelineConfig_ == null ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; } /** - * - * *
    * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
    * pipeline. It provides additional customization options to run the pipeline
    * and can be skipped if it is not applicable.
    * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder - getPipelineConfigOrBuilder() { - return pipelineConfig_ == null - ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() - : pipelineConfig_; + public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder() { + return pipelineConfig_ == null ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -424,7 +341,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(inputPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputPath_); } @@ -456,24 +374,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputPath_); } if (splitClassifyProcessorInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getSplitClassifyProcessorInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSplitClassifyProcessorInfo()); } for (int i = 0; i < extractProcessorInfos_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, extractProcessorInfos_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, extractProcessorInfos_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorResultsFolderPath_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(4, processorResultsFolderPath_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, processorResultsFolderPath_); } if (skipIngestedDocuments_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, skipIngestedDocuments_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, skipIngestedDocuments_); } if (pipelineConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPipelineConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getPipelineConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -483,28 +400,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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)) { + if (!(obj instanceof com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline other = - (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) obj; + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline other = (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) obj; - if (!getInputPath().equals(other.getInputPath())) return false; + if (!getInputPath() + .equals(other.getInputPath())) return false; if (hasSplitClassifyProcessorInfo() != other.hasSplitClassifyProcessorInfo()) return false; if (hasSplitClassifyProcessorInfo()) { - if (!getSplitClassifyProcessorInfo().equals(other.getSplitClassifyProcessorInfo())) - return false; - } - if (!getExtractProcessorInfosList().equals(other.getExtractProcessorInfosList())) return false; - if (!getProcessorResultsFolderPath().equals(other.getProcessorResultsFolderPath())) - return false; - if (getSkipIngestedDocuments() != other.getSkipIngestedDocuments()) return false; + if (!getSplitClassifyProcessorInfo() + .equals(other.getSplitClassifyProcessorInfo())) return false; + } + if (!getExtractProcessorInfosList() + .equals(other.getExtractProcessorInfosList())) return false; + if (!getProcessorResultsFolderPath() + .equals(other.getProcessorResultsFolderPath())) return false; + if (getSkipIngestedDocuments() + != other.getSkipIngestedDocuments()) return false; if (hasPipelineConfig() != other.hasPipelineConfig()) return false; if (hasPipelineConfig()) { - if (!getPipelineConfig().equals(other.getPipelineConfig())) return false; + if (!getPipelineConfig() + .equals(other.getPipelineConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -530,7 +449,8 @@ public int hashCode() { hash = (37 * hash) + PROCESSOR_RESULTS_FOLDER_PATH_FIELD_NUMBER; hash = (53 * hash) + getProcessorResultsFolderPath().hashCode(); hash = (37 * hash) + SKIP_INGESTED_DOCUMENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipIngestedDocuments()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSkipIngestedDocuments()); if (hasPipelineConfig()) { hash = (37 * hash) + PIPELINE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPipelineConfig().hashCode(); @@ -541,105 +461,98 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline 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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The configuration of the Cloud Storage Ingestion with DocAI Processors
    * pipeline.
@@ -647,34 +560,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
       com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto
-          .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto
-          .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.class,
-              com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder
-                  .class);
+              com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.class, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.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();
@@ -703,22 +615,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto
-          .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
-        getDefaultInstanceForType() {
-      return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
-          .getDefaultInstance();
+    public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline getDefaultInstanceForType() {
+      return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline build() {
-      com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result =
-          buildPartial();
+      com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -726,20 +635,15 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
     }
 
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
-        buildPartial() {
-      com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result =
-          new com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline(this);
+    public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline buildPartial() {
+      com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result = new com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result) {
+    private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result) {
       if (extractProcessorInfosBuilder_ == null) {
         if (((bitField0_ & 0x00000004) != 0)) {
           extractProcessorInfos_ = java.util.Collections.unmodifiableList(extractProcessorInfos_);
@@ -751,17 +655,15 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result) {
+    private void buildPartial0(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.inputPath_ = inputPath_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.splitClassifyProcessorInfo_ =
-            splitClassifyProcessorInfoBuilder_ == null
-                ? splitClassifyProcessorInfo_
-                : splitClassifyProcessorInfoBuilder_.build();
+        result.splitClassifyProcessorInfo_ = splitClassifyProcessorInfoBuilder_ == null
+            ? splitClassifyProcessorInfo_
+            : splitClassifyProcessorInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.processorResultsFolderPath_ = processorResultsFolderPath_;
@@ -770,8 +672,9 @@ private void buildPartial0(
         result.skipIngestedDocuments_ = skipIngestedDocuments_;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.pipelineConfig_ =
-            pipelineConfigBuilder_ == null ? pipelineConfig_ : pipelineConfigBuilder_.build();
+        result.pipelineConfig_ = pipelineConfigBuilder_ == null
+            ? pipelineConfig_
+            : pipelineConfigBuilder_.build();
       }
     }
 
@@ -779,52 +682,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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) {
-        return mergeFrom(
-            (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) other);
+      if (other instanceof com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) {
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline other) {
-      if (other
-          == com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline other) {
+      if (other == com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance()) return this;
       if (!other.getInputPath().isEmpty()) {
         inputPath_ = other.inputPath_;
         bitField0_ |= 0x00000001;
@@ -851,10 +748,9 @@ public Builder mergeFrom(
             extractProcessorInfosBuilder_ = null;
             extractProcessorInfos_ = other.extractProcessorInfos_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            extractProcessorInfosBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getExtractProcessorInfosFieldBuilder()
-                    : null;
+            extractProcessorInfosBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getExtractProcessorInfosFieldBuilder() : null;
           } else {
             extractProcessorInfosBuilder_.addAllMessages(other.extractProcessorInfos_);
           }
@@ -897,58 +793,54 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                inputPath_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(
-                    getSplitClassifyProcessorInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.contentwarehouse.v1.ProcessorInfo m =
-                    input.readMessage(
-                        com.google.cloud.contentwarehouse.v1.ProcessorInfo.parser(),
-                        extensionRegistry);
-                if (extractProcessorInfosBuilder_ == null) {
-                  ensureExtractProcessorInfosIsMutable();
-                  extractProcessorInfos_.add(m);
-                } else {
-                  extractProcessorInfosBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            case 34:
-              {
-                processorResultsFolderPath_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                skipIngestedDocuments_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 50:
-              {
-                input.readMessage(getPipelineConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              inputPath_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSplitClassifyProcessorInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.contentwarehouse.v1.ProcessorInfo m =
+                  input.readMessage(
+                      com.google.cloud.contentwarehouse.v1.ProcessorInfo.parser(),
+                      extensionRegistry);
+              if (extractProcessorInfosBuilder_ == null) {
+                ensureExtractProcessorInfosIsMutable();
+                extractProcessorInfos_.add(m);
+              } else {
+                extractProcessorInfosBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            case 34: {
+              processorResultsFolderPath_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              skipIngestedDocuments_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 50: {
+              input.readMessage(
+                  getPipelineConfigFieldBuilder().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) {
@@ -958,13 +850,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object inputPath_ = "";
     /**
-     *
-     *
      * 
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -972,13 +861,13 @@ public Builder mergeFrom(
      * 
* * string input_path = 1; - * * @return The inputPath. */ public java.lang.String getInputPath() { java.lang.Object ref = inputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; @@ -987,8 +876,6 @@ public java.lang.String getInputPath() { } } /** - * - * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -996,14 +883,15 @@ public java.lang.String getInputPath() {
      * 
* * string input_path = 1; - * * @return The bytes for inputPath. */ - public com.google.protobuf.ByteString getInputPathBytes() { + public com.google.protobuf.ByteString + getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputPath_ = b; return b; } else { @@ -1011,8 +899,6 @@ public com.google.protobuf.ByteString getInputPathBytes() { } } /** - * - * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -1020,22 +906,18 @@ public com.google.protobuf.ByteString getInputPathBytes() {
      * 
* * string input_path = 1; - * * @param value The inputPath to set. * @return This builder for chaining. */ - public Builder setInputPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } inputPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -1043,7 +925,6 @@ public Builder setInputPath(java.lang.String value) {
      * 
* * string input_path = 1; - * * @return This builder for chaining. */ public Builder clearInputPath() { @@ -1053,8 +934,6 @@ public Builder clearInputPath() { return this; } /** - * - * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -1062,14 +941,12 @@ public Builder clearInputPath() {
      * 
* * string input_path = 1; - * * @param value The bytes for inputPath to set. * @return This builder for chaining. */ - public Builder setInputPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); inputPath_ = value; bitField0_ |= 0x00000001; @@ -1079,64 +956,47 @@ public Builder setInputPathBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.ProcessorInfo splitClassifyProcessorInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, - com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> - splitClassifyProcessorInfoBuilder_; + com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> splitClassifyProcessorInfoBuilder_; /** - * - * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * - * + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; * @return Whether the splitClassifyProcessorInfo field is set. */ public boolean hasSplitClassifyProcessorInfo() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * - * + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; * @return The splitClassifyProcessorInfo. */ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProcessorInfo() { if (splitClassifyProcessorInfoBuilder_ == null) { - return splitClassifyProcessorInfo_ == null - ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() - : splitClassifyProcessorInfo_; + return splitClassifyProcessorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : splitClassifyProcessorInfo_; } else { return splitClassifyProcessorInfoBuilder_.getMessage(); } } /** - * - * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; */ - public Builder setSplitClassifyProcessorInfo( - com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { + public Builder setSplitClassifyProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { if (splitClassifyProcessorInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1150,16 +1010,13 @@ public Builder setSplitClassifyProcessorInfo( return this; } /** - * - * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; */ public Builder setSplitClassifyProcessorInfo( com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) { @@ -1173,24 +1030,19 @@ public Builder setSplitClassifyProcessorInfo( return this; } /** - * - * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; */ - public Builder mergeSplitClassifyProcessorInfo( - com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { + public Builder mergeSplitClassifyProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { if (splitClassifyProcessorInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && splitClassifyProcessorInfo_ != null - && splitClassifyProcessorInfo_ - != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + splitClassifyProcessorInfo_ != null && + splitClassifyProcessorInfo_ != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) { getSplitClassifyProcessorInfoBuilder().mergeFrom(value); } else { splitClassifyProcessorInfo_ = value; @@ -1203,16 +1055,13 @@ public Builder mergeSplitClassifyProcessorInfo( return this; } /** - * - * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; */ public Builder clearSplitClassifyProcessorInfo() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1225,95 +1074,72 @@ public Builder clearSplitClassifyProcessorInfo() { return this; } /** - * - * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder - getSplitClassifyProcessorInfoBuilder() { + public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder getSplitClassifyProcessorInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSplitClassifyProcessorInfoFieldBuilder().getBuilder(); } /** - * - * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder - getSplitClassifyProcessorInfoOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getSplitClassifyProcessorInfoOrBuilder() { if (splitClassifyProcessorInfoBuilder_ != null) { return splitClassifyProcessorInfoBuilder_.getMessageOrBuilder(); } else { - return splitClassifyProcessorInfo_ == null - ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() - : splitClassifyProcessorInfo_; + return splitClassifyProcessorInfo_ == null ? + com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : splitClassifyProcessorInfo_; } } /** - * - * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, - com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> getSplitClassifyProcessorInfoFieldBuilder() { if (splitClassifyProcessorInfoBuilder_ == null) { - splitClassifyProcessorInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, - com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( - getSplitClassifyProcessorInfo(), getParentForChildren(), isClean()); + splitClassifyProcessorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( + getSplitClassifyProcessorInfo(), + getParentForChildren(), + isClean()); splitClassifyProcessorInfo_ = null; } return splitClassifyProcessorInfoBuilder_; } - private java.util.List - extractProcessorInfos_ = java.util.Collections.emptyList(); - + private java.util.List extractProcessorInfos_ = + java.util.Collections.emptyList(); private void ensureExtractProcessorInfosIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - extractProcessorInfos_ = - new java.util.ArrayList( - extractProcessorInfos_); + extractProcessorInfos_ = new java.util.ArrayList(extractProcessorInfos_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, - com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> - extractProcessorInfosBuilder_; + com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> extractProcessorInfosBuilder_; /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1321,11 +1147,9 @@ private void ensureExtractProcessorInfosIsMutable() {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ - public java.util.List - getExtractProcessorInfosList() { + public java.util.List getExtractProcessorInfosList() { if (extractProcessorInfosBuilder_ == null) { return java.util.Collections.unmodifiableList(extractProcessorInfos_); } else { @@ -1333,8 +1157,6 @@ private void ensureExtractProcessorInfosIsMutable() { } } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1342,8 +1164,7 @@ private void ensureExtractProcessorInfosIsMutable() {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ public int getExtractProcessorInfosCount() { if (extractProcessorInfosBuilder_ == null) { @@ -1353,8 +1174,6 @@ public int getExtractProcessorInfosCount() { } } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1362,8 +1181,7 @@ public int getExtractProcessorInfosCount() {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInfos(int index) { if (extractProcessorInfosBuilder_ == null) { @@ -1373,8 +1191,6 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInf } } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1382,8 +1198,7 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInf
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ public Builder setExtractProcessorInfos( int index, com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { @@ -1400,8 +1215,6 @@ public Builder setExtractProcessorInfos( return this; } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1409,8 +1222,7 @@ public Builder setExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ public Builder setExtractProcessorInfos( int index, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) { @@ -1424,8 +1236,6 @@ public Builder setExtractProcessorInfos( return this; } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1433,11 +1243,9 @@ public Builder setExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ - public Builder addExtractProcessorInfos( - com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { + public Builder addExtractProcessorInfos(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { if (extractProcessorInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1451,8 +1259,6 @@ public Builder addExtractProcessorInfos( return this; } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1460,8 +1266,7 @@ public Builder addExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ public Builder addExtractProcessorInfos( int index, com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { @@ -1478,8 +1283,6 @@ public Builder addExtractProcessorInfos( return this; } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1487,8 +1290,7 @@ public Builder addExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ public Builder addExtractProcessorInfos( com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) { @@ -1502,8 +1304,6 @@ public Builder addExtractProcessorInfos( return this; } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1511,8 +1311,7 @@ public Builder addExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ public Builder addExtractProcessorInfos( int index, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) { @@ -1526,8 +1325,6 @@ public Builder addExtractProcessorInfos( return this; } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1535,14 +1332,14 @@ public Builder addExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ public Builder addAllExtractProcessorInfos( java.lang.Iterable values) { if (extractProcessorInfosBuilder_ == null) { ensureExtractProcessorInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extractProcessorInfos_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, extractProcessorInfos_); onChanged(); } else { extractProcessorInfosBuilder_.addAllMessages(values); @@ -1550,8 +1347,6 @@ public Builder addAllExtractProcessorInfos( return this; } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1559,8 +1354,7 @@ public Builder addAllExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ public Builder clearExtractProcessorInfos() { if (extractProcessorInfosBuilder_ == null) { @@ -1573,8 +1367,6 @@ public Builder clearExtractProcessorInfos() { return this; } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1582,8 +1374,7 @@ public Builder clearExtractProcessorInfos() {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ public Builder removeExtractProcessorInfos(int index) { if (extractProcessorInfosBuilder_ == null) { @@ -1596,8 +1387,6 @@ public Builder removeExtractProcessorInfos(int index) { return this; } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1605,16 +1394,13 @@ public Builder removeExtractProcessorInfos(int index) {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder - getExtractProcessorInfosBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder getExtractProcessorInfosBuilder( + int index) { return getExtractProcessorInfosFieldBuilder().getBuilder(index); } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1622,20 +1408,16 @@ public Builder removeExtractProcessorInfos(int index) {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder - getExtractProcessorInfosOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorInfosOrBuilder( + int index) { if (extractProcessorInfosBuilder_ == null) { - return extractProcessorInfos_.get(index); - } else { + return extractProcessorInfos_.get(index); } else { return extractProcessorInfosBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1643,11 +1425,10 @@ public Builder removeExtractProcessorInfos(int index) {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ - public java.util.List - getExtractProcessorInfosOrBuilderList() { + public java.util.List + getExtractProcessorInfosOrBuilderList() { if (extractProcessorInfosBuilder_ != null) { return extractProcessorInfosBuilder_.getMessageOrBuilderList(); } else { @@ -1655,8 +1436,6 @@ public Builder removeExtractProcessorInfos(int index) { } } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1664,17 +1443,13 @@ public Builder removeExtractProcessorInfos(int index) {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder - addExtractProcessorInfosBuilder() { - return getExtractProcessorInfosFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder addExtractProcessorInfosBuilder() { + return getExtractProcessorInfosFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()); } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1682,18 +1457,14 @@ public Builder removeExtractProcessorInfos(int index) {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder - addExtractProcessorInfosBuilder(int index) { - return getExtractProcessorInfosFieldBuilder() - .addBuilder( - index, com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder addExtractProcessorInfosBuilder( + int index) { + return getExtractProcessorInfosFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()); } /** - * - * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1701,25 +1472,18 @@ public Builder removeExtractProcessorInfos(int index) {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ - public java.util.List - getExtractProcessorInfosBuilderList() { + public java.util.List + getExtractProcessorInfosBuilderList() { return getExtractProcessorInfosFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, - com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> getExtractProcessorInfosFieldBuilder() { if (extractProcessorInfosBuilder_ == null) { - extractProcessorInfosBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, - com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( + extractProcessorInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( extractProcessorInfos_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -1731,8 +1495,6 @@ public Builder removeExtractProcessorInfos(int index) { private java.lang.Object processorResultsFolderPath_ = ""; /** - * - * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1740,13 +1502,13 @@ public Builder removeExtractProcessorInfos(int index) {
      * 
* * string processor_results_folder_path = 4; - * * @return The processorResultsFolderPath. */ public java.lang.String getProcessorResultsFolderPath() { java.lang.Object ref = processorResultsFolderPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorResultsFolderPath_ = s; return s; @@ -1755,8 +1517,6 @@ public java.lang.String getProcessorResultsFolderPath() { } } /** - * - * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1764,14 +1524,15 @@ public java.lang.String getProcessorResultsFolderPath() {
      * 
* * string processor_results_folder_path = 4; - * * @return The bytes for processorResultsFolderPath. */ - public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() { + public com.google.protobuf.ByteString + getProcessorResultsFolderPathBytes() { java.lang.Object ref = processorResultsFolderPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); processorResultsFolderPath_ = b; return b; } else { @@ -1779,8 +1540,6 @@ public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() { } } /** - * - * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1788,22 +1547,18 @@ public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() {
      * 
* * string processor_results_folder_path = 4; - * * @param value The processorResultsFolderPath to set. * @return This builder for chaining. */ - public Builder setProcessorResultsFolderPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProcessorResultsFolderPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } processorResultsFolderPath_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1811,7 +1566,6 @@ public Builder setProcessorResultsFolderPath(java.lang.String value) {
      * 
* * string processor_results_folder_path = 4; - * * @return This builder for chaining. */ public Builder clearProcessorResultsFolderPath() { @@ -1821,8 +1575,6 @@ public Builder clearProcessorResultsFolderPath() { return this; } /** - * - * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1830,14 +1582,12 @@ public Builder clearProcessorResultsFolderPath() {
      * 
* * string processor_results_folder_path = 4; - * * @param value The bytes for processorResultsFolderPath to set. * @return This builder for chaining. */ - public Builder setProcessorResultsFolderPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProcessorResultsFolderPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); processorResultsFolderPath_ = value; bitField0_ |= 0x00000008; @@ -1845,10 +1595,8 @@ public Builder setProcessorResultsFolderPathBytes(com.google.protobuf.ByteString return this; } - private boolean skipIngestedDocuments_; + private boolean skipIngestedDocuments_ ; /** - * - * *
      * The flag whether to skip ingested documents.
      * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -1856,7 +1604,6 @@ public Builder setProcessorResultsFolderPathBytes(com.google.protobuf.ByteString
      * 
* * bool skip_ingested_documents = 5; - * * @return The skipIngestedDocuments. */ @java.lang.Override @@ -1864,8 +1611,6 @@ public boolean getSkipIngestedDocuments() { return skipIngestedDocuments_; } /** - * - * *
      * The flag whether to skip ingested documents.
      * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -1873,7 +1618,6 @@ public boolean getSkipIngestedDocuments() {
      * 
* * bool skip_ingested_documents = 5; - * * @param value The skipIngestedDocuments to set. * @return This builder for chaining. */ @@ -1885,8 +1629,6 @@ public Builder setSkipIngestedDocuments(boolean value) { return this; } /** - * - * *
      * The flag whether to skip ingested documents.
      * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -1894,7 +1636,6 @@ public Builder setSkipIngestedDocuments(boolean value) {
      * 
* * bool skip_ingested_documents = 5; - * * @return This builder for chaining. */ public Builder clearSkipIngestedDocuments() { @@ -1906,67 +1647,47 @@ public Builder clearSkipIngestedDocuments() { private com.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipelineConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> - pipelineConfigBuilder_; + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> pipelineConfigBuilder_; /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pipelineConfig field is set. */ public boolean hasPipelineConfig() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The pipelineConfig. */ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig() { if (pipelineConfigBuilder_ == null) { - return pipelineConfig_ == null - ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() - : pipelineConfig_; + return pipelineConfig_ == null ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; } else { return pipelineConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPipelineConfig( - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { + public Builder setPipelineConfig(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { if (pipelineConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1980,17 +1701,13 @@ public Builder setPipelineConfig( return this; } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPipelineConfig( com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder builderForValue) { @@ -2004,25 +1721,19 @@ public Builder setPipelineConfig( return this; } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergePipelineConfig( - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { + public Builder mergePipelineConfig(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { if (pipelineConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && pipelineConfig_ != null - && pipelineConfig_ - != com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + pipelineConfig_ != null && + pipelineConfig_ != com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) { getPipelineConfigBuilder().mergeFrom(value); } else { pipelineConfig_ = value; @@ -2035,17 +1746,13 @@ public Builder mergePipelineConfig( return this; } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPipelineConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2058,79 +1765,61 @@ public Builder clearPipelineConfig() { return this; } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder - getPipelineConfigBuilder() { + public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder getPipelineConfigBuilder() { bitField0_ |= 0x00000020; onChanged(); return getPipelineConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder - getPipelineConfigOrBuilder() { + public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder() { if (pipelineConfigBuilder_ != null) { return pipelineConfigBuilder_.getMessageOrBuilder(); } else { - return pipelineConfig_ == null - ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() - : pipelineConfig_; + return pipelineConfig_ == null ? + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; } } /** - * - * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> getPipelineConfigFieldBuilder() { if (pipelineConfigBuilder_ == null) { - pipelineConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>( - getPipelineConfig(), getParentForChildren(), isClean()); + pipelineConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>( + getPipelineConfig(), + getParentForChildren(), + isClean()); pipelineConfig_ = null; } return pipelineConfigBuilder_; } - @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); } @@ -2140,44 +1829,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) - private static final com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline(); + DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline(); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsIngestWithDocAiProcessorsPipeline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GcsIngestWithDocAiProcessorsPipeline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2189,8 +1875,9 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java similarity index 77% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java index e9582cdbb26b..04b3ad85600e 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder - extends +public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -33,13 +15,10 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder
    * 
* * string input_path = 1; - * * @return The inputPath. */ java.lang.String getInputPath(); /** - * - * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -47,14 +26,12 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder
    * 
* * string input_path = 1; - * * @return The bytes for inputPath. */ - com.google.protobuf.ByteString getInputPathBytes(); + com.google.protobuf.ByteString + getInputPathBytes(); /** - * - * *
    * The split and classify processor information.
    * The split and classify result will be used to find a matched extract
@@ -62,13 +39,10 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * * @return Whether the splitClassifyProcessorInfo field is set. */ boolean hasSplitClassifyProcessorInfo(); /** - * - * *
    * The split and classify processor information.
    * The split and classify result will be used to find a matched extract
@@ -76,13 +50,10 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; - * * @return The splitClassifyProcessorInfo. */ com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProcessorInfo(); /** - * - * *
    * The split and classify processor information.
    * The split and classify result will be used to find a matched extract
@@ -91,12 +62,9 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder
    *
    * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
    */
-  com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder
-      getSplitClassifyProcessorInfoOrBuilder();
+  com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getSplitClassifyProcessorInfoOrBuilder();
 
   /**
-   *
-   *
    * 
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -104,13 +72,11 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ - java.util.List getExtractProcessorInfosList(); + java.util.List + getExtractProcessorInfosList(); /** - * - * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -118,13 +84,10 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInfos(int index); /** - * - * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -132,13 +95,10 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ int getExtractProcessorInfosCount(); /** - * - * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -146,14 +106,11 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ - java.util.List + java.util.List getExtractProcessorInfosOrBuilderList(); /** - * - * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -161,15 +118,12 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; - * + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; */ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorInfosOrBuilder( int index); /** - * - * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -177,13 +131,10 @@ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorI
    * 
* * string processor_results_folder_path = 4; - * * @return The processorResultsFolderPath. */ java.lang.String getProcessorResultsFolderPath(); /** - * - * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -191,14 +142,12 @@ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorI
    * 
* * string processor_results_folder_path = 4; - * * @return The bytes for processorResultsFolderPath. */ - com.google.protobuf.ByteString getProcessorResultsFolderPathBytes(); + com.google.protobuf.ByteString + getProcessorResultsFolderPathBytes(); /** - * - * *
    * The flag whether to skip ingested documents.
    * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -206,55 +155,40 @@ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorI
    * 
* * bool skip_ingested_documents = 5; - * * @return The skipIngestedDocuments. */ boolean getSkipIngestedDocuments(); /** - * - * *
    * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
    * pipeline. It provides additional customization options to run the pipeline
    * and can be skipped if it is not applicable.
    * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pipelineConfig field is set. */ boolean hasPipelineConfig(); /** - * - * *
    * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
    * pipeline. It provides additional customization options to run the pipeline
    * and can be skipped if it is not applicable.
    * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The pipelineConfig. */ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig(); /** - * - * *
    * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
    * pipeline. It provides additional customization options to run the pipeline
    * and can be skipped if it is not applicable.
    * 
* - * - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java similarity index 67% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java index ee31bdfecf27..bd1e08eab435 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java @@ -1,74 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentService.GetDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GetDocumentRequest.class, - com.google.cloud.contentwarehouse.v1.GetDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.GetDocumentRequest.class, com.google.cloud.contentwarehouse.v1.GetDocumentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the document to retrieve.
    * Format:
@@ -76,10 +54,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 @@ -88,15 +63,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 name of the document to retrieve.
    * Format:
@@ -104,18 +78,17 @@ public java.lang.String getName() {
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 { @@ -126,15 +99,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -142,26 +112,19 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -170,15 +133,11 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-      getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-        : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -190,7 +149,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -210,7 +170,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getRequestMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -220,18 +181,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.contentwarehouse.v1.GetDocumentRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.GetDocumentRequest other =
-        (com.google.cloud.contentwarehouse.v1.GetDocumentRequest) obj;
+    com.google.cloud.contentwarehouse.v1.GetDocumentRequest other = (com.google.cloud.contentwarehouse.v1.GetDocumentRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata()
+          .equals(other.getRequestMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -256,136 +218,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.GetDocumentRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.GetDocumentRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.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.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest) com.google.cloud.contentwarehouse.v1.GetDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GetDocumentRequest.class, - com.google.cloud.contentwarehouse.v1.GetDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.GetDocumentRequest.class, com.google.cloud.contentwarehouse.v1.GetDocumentRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.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(); @@ -400,9 +357,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; } @java.lang.Override @@ -421,11 +378,8 @@ public com.google.cloud.contentwarehouse.v1.GetDocumentRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.GetDocumentRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.GetDocumentRequest result = - new com.google.cloud.contentwarehouse.v1.GetDocumentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.GetDocumentRequest result = new com.google.cloud.contentwarehouse.v1.GetDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -436,8 +390,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GetDocumentReque result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMetadata_ = - requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + result.requestMetadata_ = requestMetadataBuilder_ == null + ? requestMetadata_ + : requestMetadataBuilder_.build(); } } @@ -445,39 +400,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GetDocumentReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.GetDocumentRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.GetDocumentRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.GetDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -485,8 +439,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GetDocumentRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.GetDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.GetDocumentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -521,25 +474,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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( + getRequestMetadataFieldBuilder().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) { @@ -549,13 +501,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -563,16 +512,14 @@ public Builder mergeFrom(
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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; @@ -581,8 +528,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -590,17 +535,16 @@ public java.lang.String getName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 { @@ -608,8 +552,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -617,25 +559,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 name of the document to retrieve.
      * Format:
@@ -643,10 +579,7 @@ public Builder setName(java.lang.String value) {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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() { @@ -656,8 +589,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -665,17 +596,13 @@ public Builder clearName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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; @@ -685,49 +612,36 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> - requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -749,8 +663,6 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -770,8 +682,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -779,13 +689,11 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public Builder mergeRequestMetadata(
-        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && requestMetadata_ != null
-            && requestMetadata_
-                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          requestMetadata_ != null &&
+          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -798,8 +706,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -818,8 +724,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -827,15 +731,12 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
-        getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -843,19 +744,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-        getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-            : requestMetadata_;
+        return requestMetadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -864,24 +761,21 @@ public Builder clearRequestMetadata() {
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RequestMetadata,
-                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(), getParentForChildren(), isClean());
+        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(),
+                getParentForChildren(),
+                isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
-
     @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 +785,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.GetDocumentRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GetDocumentRequest)
   private static final com.google.cloud.contentwarehouse.v1.GetDocumentRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GetDocumentRequest();
   }
@@ -905,27 +799,27 @@ public static com.google.cloud.contentwarehouse.v1.GetDocumentRequest getDefault
     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;
@@ -940,4 +834,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.GetDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java
similarity index 65%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java
index 45f19deda7c0..a442c218cd24 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/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/contentwarehouse/v1/document_service_request.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface GetDocumentRequestOrBuilder
-    extends
+public interface GetDocumentRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetDocumentRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The name of the document to retrieve.
    * Format:
@@ -33,16 +15,11 @@ public interface GetDocumentRequestOrBuilder
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the document to retrieve.
    * Format:
@@ -50,43 +27,33 @@ public interface GetDocumentRequestOrBuilder
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java
similarity index 62%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java
index 905d952e8c62..0ce9af9d31db 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java
@@ -1,82 +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/contentwarehouse/v1/document_schema_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Request message for DocumentSchemaService.GetDocumentSchema.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest} */ -public final class GetDocumentSchemaRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDocumentSchemaRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) GetDocumentSchemaRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDocumentSchemaRequest.newBuilder() to construct. private GetDocumentSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetDocumentSchemaRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDocumentSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.class, - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the document schema to retrieve.
    * 
* - * - * 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 @@ -85,31 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the document schema to retrieve.
    * 
* - * - * 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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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.contentwarehouse.v1.GetDocumentSchemaRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest other = - (com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) obj; + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest other = (com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +155,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest 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.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest 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.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 DocumentSchemaService.GetDocumentSchema.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.class, - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.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(); @@ -321,14 +289,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.getDefaultInstance(); } @@ -343,17 +310,13 @@ public com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest result = - new com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest result = new com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -364,39 +327,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.contentwarehouse.v1.GetDocumentSchemaRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest)other); } else { super.mergeFrom(other); return this; @@ -404,9 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest other) { - if (other - == com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -438,19 +398,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) { @@ -460,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document schema to retrieve.
      * 
* - * - * 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,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document schema to retrieve.
      * 
* - * - * 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 { @@ -513,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document schema to retrieve.
      * 
* - * - * 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 name of the document schema to retrieve.
      * 
* - * - * 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() { @@ -555,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the document schema to retrieve.
      * 
* - * - * 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); } @@ -590,13 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) - private static final com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest(); } @@ -605,27 +537,27 @@ public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDocumentSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetDocumentSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..8aa88719413e --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface GetDocumentSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the document schema to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the document schema to retrieve.
+   * 
+ * + * 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-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java similarity index 64% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java index eaa451a01b24..ea89d8bd3ed7 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for RuleSetService.GetRuleSet.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.GetRuleSetRequest} */ -public final class GetRuleSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetRuleSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.GetRuleSetRequest) GetRuleSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetRuleSetRequest.newBuilder() to construct. private GetRuleSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetRuleSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetRuleSetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.class, - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the rule set to retrieve.
    * Format:
    * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 @@ -87,33 +62,31 @@ 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 name of the rule set to retrieve.
    * Format:
    * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 { @@ -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.contentwarehouse.v1.GetRuleSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest other = - (com.google.cloud.contentwarehouse.v1.GetRuleSetRequest) obj; + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest other = (com.google.cloud.contentwarehouse.v1.GetRuleSetRequest) 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,136 +159,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest 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.contentwarehouse.v1.GetRuleSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest 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.contentwarehouse.v1.GetRuleSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.GetRuleSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 RuleSetService.GetRuleSet.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.GetRuleSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.GetRuleSetRequest) com.google.cloud.contentwarehouse.v1.GetRuleSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.class, - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.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(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; } @java.lang.Override @@ -346,11 +314,8 @@ public com.google.cloud.contentwarehouse.v1.GetRuleSetRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.GetRuleSetRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest result = - new com.google.cloud.contentwarehouse.v1.GetRuleSetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest result = new com.google.cloud.contentwarehouse.v1.GetRuleSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +331,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GetRuleSetReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.GetRuleSetRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.GetRuleSetRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.GetRuleSetRequest)other); } else { super.mergeFrom(other); return this; @@ -406,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GetRuleSetRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +402,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) { @@ -461,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the rule set to retrieve.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the rule set to retrieve.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 { @@ -518,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the rule set to retrieve.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 name of the rule set to retrieve.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the rule set to retrieve.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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); } @@ -601,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.GetRuleSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GetRuleSetRequest) private static final com.google.cloud.contentwarehouse.v1.GetRuleSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GetRuleSetRequest(); } @@ -615,27 +551,27 @@ public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRuleSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetRuleSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.GetRuleSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java new file mode 100644 index 000000000000..6aa9c50a9d3e --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface GetRuleSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetRuleSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the rule set to retrieve.
+   * Format:
+   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the rule set to retrieve.
+   * Format:
+   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java similarity index 64% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java index c9d79a8ca857..317011fd6f62 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.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/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for SynonymSetService.GetSynonymSet.
  * Will return synonymSet for a certain context.
@@ -28,58 +11,50 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.GetSynonymSetRequest}
  */
-public final class GetSynonymSetRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetSynonymSetRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.GetSynonymSetRequest)
     GetSynonymSetRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetSynonymSetRequest.newBuilder() to construct.
   private GetSynonymSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetSynonymSetRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetSynonymSetRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-        .internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-        .internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.class,
-            com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.Builder.class);
+            com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the synonymSet to retrieve
    * Format:
    * projects/{project_number}/locations/{location}/synonymSets/{context}.
    * 
* - * - * 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,33 +63,31 @@ 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 name of the synonymSet to retrieve
    * Format:
    * projects/{project_number}/locations/{location}/synonymSets/{context}.
    * 
* - * - * 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 { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,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_); } @@ -159,15 +132,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.contentwarehouse.v1.GetSynonymSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest other = - (com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest) obj; + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest other = (com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,104 +160,98 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest 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.contentwarehouse.v1.GetSynonymSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest 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.contentwarehouse.v1.GetSynonymSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 SynonymSetService.GetSynonymSet.
    * Will return synonymSet for a certain context.
@@ -292,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.GetSynonymSetRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.GetSynonymSetRequest)
       com.google.cloud.contentwarehouse.v1.GetSynonymSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-          .internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-          .internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.class,
-              com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.Builder.class);
+              com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.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.contentwarehouse.v1.SynonymSetServiceRequestProto
-          .internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -348,11 +316,8 @@ public com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest buildPartial() {
-      com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest result =
-          new com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest result = new com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -368,39 +333,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GetSynonymSetReq
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.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.contentwarehouse.v1.GetSynonymSetRequest) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest) other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest)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.contentwarehouse.v1.GetSynonymSetRequest other) {
-      if (other == com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.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,29 +424,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the synonymSet to retrieve
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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; @@ -494,25 +450,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the synonymSet to retrieve
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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,43 +473,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the synonymSet to retrieve
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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 name of the synonymSet to retrieve
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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() { @@ -566,34 +508,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the synonymSet to retrieve
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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); } @@ -603,12 +539,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.GetSynonymSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GetSynonymSetRequest) private static final com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest(); } @@ -617,27 +553,27 @@ public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSynonymSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetSynonymSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java new file mode 100644 index 000000000000..72c28f48ceaf --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface GetSynonymSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetSynonymSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the synonymSet to retrieve
+   * Format:
+   * projects/{project_number}/locations/{location}/synonymSets/{context}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the synonymSet to retrieve
+   * Format:
+   * projects/{project_number}/locations/{location}/synonymSets/{context}.
+   * 
+ * + * 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-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java new file mode 100644 index 000000000000..4c2f4c61d56c --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java @@ -0,0 +1,115 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/histogram.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class HistogramProto { + private HistogramProto() {} + 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_contentwarehouse_v1_HistogramQuery_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_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/contentwarehouse/v1/histo" + + "gram.proto\022 google.cloud.contentwarehous" + + "e.v1\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\"\251\001\n\016HistogramQu" + + "ery\022\027\n\017histogram_query\030\001 \001(\t\022#\n\033require_" + + "precise_result_size\030\002 \001(\010\022Y\n\007filters\030\003 \001" + + "(\0132B.google.cloud.contentwarehouse.v1.Hi" + + "stogramQueryPropertyNameFilterB\004\342A\001\001\"\272\002\n" + + " HistogramQueryPropertyNameFilter\022M\n\020doc" + + "ument_schemas\030\001 \003(\tB3\372A0\n.contentwarehou" + + "se.googleapis.com/DocumentSchema\022\026\n\016prop" + + "erty_names\030\002 \003(\t\022a\n\006y_axis\030\003 \001(\0162Q.googl" + + "e.cloud.contentwarehouse.v1.HistogramQue" + + "ryPropertyNameFilter.HistogramYAxis\"L\n\016H" + + "istogramYAxis\022\034\n\030HISTOGRAM_YAXIS_DOCUMEN" + + "T\020\000\022\034\n\030HISTOGRAM_YAXIS_PROPERTY\020\001\"\273\001\n\024Hi" + + "stogramQueryResult\022\027\n\017histogram_query\030\001 " + + "\001(\t\022X\n\thistogram\030\002 \003(\0132E.google.cloud.co" + + "ntentwarehouse.v1.HistogramQueryResult.H" + + "istogramEntry\0320\n\016HistogramEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001B\366\001\n$com.google.c" + + "loud.contentwarehouse.v1B\016HistogramProto" + + "P\001ZPcloud.google.com/go/contentwarehouse" + + "/apiv1/contentwarehousepb;contentwarehou" + + "sepb\252\002 Google.Cloud.ContentWarehouse.V1\312" + + "\002 Google\\Cloud\\ContentWarehouse\\V1\352\002#Goo" + + "gle::Cloud::ContentWarehouse::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(), + }); + internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor, + new java.lang.String[] { "HistogramQuery", "RequirePreciseResultSize", "Filters", }); + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor, + new java.lang.String[] { "DocumentSchemas", "PropertyNames", "YAxis", }); + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor, + new java.lang.String[] { "HistogramQuery", "Histogram", }); + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor = + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java similarity index 68% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java index 77ef89d655f9..2fba9dab0abb 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java @@ -1,74 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/histogram.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * The histogram request.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQuery} */ -public final class HistogramQuery extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HistogramQuery extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.HistogramQuery) HistogramQueryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HistogramQuery.newBuilder() to construct. private HistogramQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HistogramQuery() { histogramQuery_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HistogramQuery(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.HistogramProto - .internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.HistogramProto - .internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.HistogramQuery.class, - com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder.class); + com.google.cloud.contentwarehouse.v1.HistogramQuery.class, com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder.class); } public static final int HISTOGRAM_QUERY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object histogramQuery_ = ""; /** - * - * *
    * An expression specifies a histogram request against matching documents for
    * searches.
@@ -79,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string histogram_query = 1; - * * @return The histogramQuery. */ @java.lang.Override @@ -88,15 +65,14 @@ public java.lang.String getHistogramQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); histogramQuery_ = s; return s; } } /** - * - * *
    * An expression specifies a histogram request against matching documents for
    * searches.
@@ -107,15 +83,16 @@ public java.lang.String getHistogramQuery() {
    * 
* * string histogram_query = 1; - * * @return The bytes for histogramQuery. */ @java.lang.Override - public com.google.protobuf.ByteString getHistogramQueryBytes() { + public com.google.protobuf.ByteString + getHistogramQueryBytes() { java.lang.Object ref = histogramQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); histogramQuery_ = b; return b; } else { @@ -126,8 +103,6 @@ public com.google.protobuf.ByteString getHistogramQueryBytes() { public static final int REQUIRE_PRECISE_RESULT_SIZE_FIELD_NUMBER = 2; private boolean requirePreciseResultSize_ = false; /** - * - * *
    * Controls if the histogram query requires the return of a precise count.
    * Enable this flag may adversely impact performance.
@@ -136,7 +111,6 @@ public com.google.protobuf.ByteString getHistogramQueryBytes() {
    * 
* * bool require_precise_result_size = 2; - * * @return The requirePreciseResultSize. */ @java.lang.Override @@ -147,8 +121,6 @@ public boolean getRequirePreciseResultSize() { public static final int FILTERS_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters_; /** - * - * *
    * Optional. Filter the result of histogram query by the property names. It
    * only works with histogram query count('FilterableProperties'). It is an
@@ -156,10 +128,7 @@ public boolean getRequirePreciseResultSize() {
    * document schemas. Setting this field will have a better performance.
    * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the filters field is set. */ @java.lang.Override @@ -167,8 +136,6 @@ public boolean hasFilters() { return filters_ != null; } /** - * - * *
    * Optional. Filter the result of histogram query by the property names. It
    * only works with histogram query count('FilterableProperties'). It is an
@@ -176,21 +143,14 @@ public boolean hasFilters() {
    * document schemas. Setting this field will have a better performance.
    * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The filters. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter getFilters() { - return filters_ == null - ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance() - : filters_; + return filters_ == null ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance() : filters_; } /** - * - * *
    * Optional. Filter the result of histogram query by the property names. It
    * only works with histogram query count('FilterableProperties'). It is an
@@ -198,20 +158,14 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter get
    * document schemas. Setting this field will have a better performance.
    * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder - getFiltersOrBuilder() { - return filters_ == null - ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance() - : filters_; + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder getFiltersOrBuilder() { + return filters_ == null ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance() : filters_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(histogramQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, histogramQuery_); } @@ -246,10 +201,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, histogramQuery_); } if (requirePreciseResultSize_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, requirePreciseResultSize_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, requirePreciseResultSize_); } if (filters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFilters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFilters()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -259,19 +216,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.contentwarehouse.v1.HistogramQuery)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.HistogramQuery other = - (com.google.cloud.contentwarehouse.v1.HistogramQuery) obj; + com.google.cloud.contentwarehouse.v1.HistogramQuery other = (com.google.cloud.contentwarehouse.v1.HistogramQuery) obj; - if (!getHistogramQuery().equals(other.getHistogramQuery())) return false; - if (getRequirePreciseResultSize() != other.getRequirePreciseResultSize()) return false; + if (!getHistogramQuery() + .equals(other.getHistogramQuery())) return false; + if (getRequirePreciseResultSize() + != other.getRequirePreciseResultSize()) return false; if (hasFilters() != other.hasFilters()) return false; if (hasFilters()) { - if (!getFilters().equals(other.getFilters())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -287,7 +246,8 @@ public int hashCode() { hash = (37 * hash) + HISTOGRAM_QUERY_FIELD_NUMBER; hash = (53 * hash) + getHistogramQuery().hashCode(); hash = (37 * hash) + REQUIRE_PRECISE_RESULT_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequirePreciseResultSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequirePreciseResultSize()); if (hasFilters()) { hash = (37 * hash) + FILTERS_FIELD_NUMBER; hash = (53 * hash) + getFilters().hashCode(); @@ -298,135 +258,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.HistogramQuery 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.contentwarehouse.v1.HistogramQuery parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.HistogramQuery 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.contentwarehouse.v1.HistogramQuery parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.HistogramQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The histogram request.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQuery} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.HistogramQuery) com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.HistogramProto - .internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.HistogramProto - .internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.HistogramQuery.class, - com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder.class); + com.google.cloud.contentwarehouse.v1.HistogramQuery.class, com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.HistogramQuery.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(); @@ -442,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.HistogramProto - .internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor; } @java.lang.Override @@ -463,11 +419,8 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.HistogramQuery buildPartial() { - com.google.cloud.contentwarehouse.v1.HistogramQuery result = - new com.google.cloud.contentwarehouse.v1.HistogramQuery(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.HistogramQuery result = new com.google.cloud.contentwarehouse.v1.HistogramQuery(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -481,7 +434,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.HistogramQuery r result.requirePreciseResultSize_ = requirePreciseResultSize_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.filters_ = filtersBuilder_ == null ? filters_ : filtersBuilder_.build(); + result.filters_ = filtersBuilder_ == null + ? filters_ + : filtersBuilder_.build(); } } @@ -489,39 +444,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.HistogramQuery 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.contentwarehouse.v1.HistogramQuery) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.HistogramQuery) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.HistogramQuery)other); } else { super.mergeFrom(other); return this; @@ -529,8 +483,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.HistogramQuery other) { - if (other == com.google.cloud.contentwarehouse.v1.HistogramQuery.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.HistogramQuery.getDefaultInstance()) return this; if (!other.getHistogramQuery().isEmpty()) { histogramQuery_ = other.histogramQuery_; bitField0_ |= 0x00000001; @@ -568,31 +521,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - histogramQuery_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - requirePreciseResultSize_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getFiltersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + histogramQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + requirePreciseResultSize_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getFiltersFieldBuilder().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) { @@ -602,13 +553,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object histogramQuery_ = ""; /** - * - * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -619,13 +567,13 @@ public Builder mergeFrom(
      * 
* * string histogram_query = 1; - * * @return The histogramQuery. */ public java.lang.String getHistogramQuery() { java.lang.Object ref = histogramQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); histogramQuery_ = s; return s; @@ -634,8 +582,6 @@ public java.lang.String getHistogramQuery() { } } /** - * - * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -646,14 +592,15 @@ public java.lang.String getHistogramQuery() {
      * 
* * string histogram_query = 1; - * * @return The bytes for histogramQuery. */ - public com.google.protobuf.ByteString getHistogramQueryBytes() { + public com.google.protobuf.ByteString + getHistogramQueryBytes() { java.lang.Object ref = histogramQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); histogramQuery_ = b; return b; } else { @@ -661,8 +608,6 @@ public com.google.protobuf.ByteString getHistogramQueryBytes() { } } /** - * - * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -673,22 +618,18 @@ public com.google.protobuf.ByteString getHistogramQueryBytes() {
      * 
* * string histogram_query = 1; - * * @param value The histogramQuery to set. * @return This builder for chaining. */ - public Builder setHistogramQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHistogramQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } histogramQuery_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -699,7 +640,6 @@ public Builder setHistogramQuery(java.lang.String value) {
      * 
* * string histogram_query = 1; - * * @return This builder for chaining. */ public Builder clearHistogramQuery() { @@ -709,8 +649,6 @@ public Builder clearHistogramQuery() { return this; } /** - * - * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -721,14 +659,12 @@ public Builder clearHistogramQuery() {
      * 
* * string histogram_query = 1; - * * @param value The bytes for histogramQuery to set. * @return This builder for chaining. */ - public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHistogramQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); histogramQuery_ = value; bitField0_ |= 0x00000001; @@ -736,10 +672,8 @@ public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requirePreciseResultSize_; + private boolean requirePreciseResultSize_ ; /** - * - * *
      * Controls if the histogram query requires the return of a precise count.
      * Enable this flag may adversely impact performance.
@@ -748,7 +682,6 @@ public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) {
      * 
* * bool require_precise_result_size = 2; - * * @return The requirePreciseResultSize. */ @java.lang.Override @@ -756,8 +689,6 @@ public boolean getRequirePreciseResultSize() { return requirePreciseResultSize_; } /** - * - * *
      * Controls if the histogram query requires the return of a precise count.
      * Enable this flag may adversely impact performance.
@@ -766,7 +697,6 @@ public boolean getRequirePreciseResultSize() {
      * 
* * bool require_precise_result_size = 2; - * * @param value The requirePreciseResultSize to set. * @return This builder for chaining. */ @@ -778,8 +708,6 @@ public Builder setRequirePreciseResultSize(boolean value) { return this; } /** - * - * *
      * Controls if the histogram query requires the return of a precise count.
      * Enable this flag may adversely impact performance.
@@ -788,7 +716,6 @@ public Builder setRequirePreciseResultSize(boolean value) {
      * 
* * bool require_precise_result_size = 2; - * * @return This builder for chaining. */ public Builder clearRequirePreciseResultSize() { @@ -800,13 +727,8 @@ public Builder clearRequirePreciseResultSize() { private com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder, - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder> - filtersBuilder_; + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder> filtersBuilder_; /** - * - * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -814,18 +736,13 @@ public Builder clearRequirePreciseResultSize() {
      * document schemas. Setting this field will have a better performance.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the filters field is set. */ public boolean hasFilters() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -833,25 +750,17 @@ public boolean hasFilters() {
      * document schemas. Setting this field will have a better performance.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The filters. */ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter getFilters() { if (filtersBuilder_ == null) { - return filters_ == null - ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter - .getDefaultInstance() - : filters_; + return filters_ == null ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance() : filters_; } else { return filtersBuilder_.getMessage(); } } /** - * - * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -859,12 +768,9 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter get
      * document schemas. Setting this field will have a better performance.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setFilters( - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter value) { + public Builder setFilters(com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter value) { if (filtersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -878,8 +784,6 @@ public Builder setFilters( return this; } /** - * - * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -887,13 +791,10 @@ public Builder setFilters(
      * document schemas. Setting this field will have a better performance.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFilters( - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder - builderForValue) { + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder builderForValue) { if (filtersBuilder_ == null) { filters_ = builderForValue.build(); } else { @@ -904,8 +805,6 @@ public Builder setFilters( return this; } /** - * - * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -913,18 +812,13 @@ public Builder setFilters(
      * document schemas. Setting this field will have a better performance.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeFilters( - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter value) { + public Builder mergeFilters(com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter value) { if (filtersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && filters_ != null - && filters_ - != com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + filters_ != null && + filters_ != com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance()) { getFiltersBuilder().mergeFrom(value); } else { filters_ = value; @@ -937,8 +831,6 @@ public Builder mergeFilters( return this; } /** - * - * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -946,9 +838,7 @@ public Builder mergeFilters(
      * document schemas. Setting this field will have a better performance.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearFilters() { bitField0_ = (bitField0_ & ~0x00000004); @@ -961,8 +851,6 @@ public Builder clearFilters() { return this; } /** - * - * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -970,19 +858,14 @@ public Builder clearFilters() {
      * document schemas. Setting this field will have a better performance.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder - getFiltersBuilder() { + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder getFiltersBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFiltersFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -990,24 +873,17 @@ public Builder clearFilters() {
      * document schemas. Setting this field will have a better performance.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder - getFiltersOrBuilder() { + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder getFiltersOrBuilder() { if (filtersBuilder_ != null) { return filtersBuilder_.getMessageOrBuilder(); } else { - return filters_ == null - ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter - .getDefaultInstance() - : filters_; + return filters_ == null ? + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance() : filters_; } } /** - * - * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -1015,29 +891,24 @@ public Builder clearFilters() {
      * document schemas. Setting this field will have a better performance.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder, - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder> + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder> getFiltersFieldBuilder() { if (filtersBuilder_ == null) { - filtersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder, - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder>( - getFilters(), getParentForChildren(), isClean()); + filtersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder>( + getFilters(), + getParentForChildren(), + isClean()); filters_ = null; } return filtersBuilder_; } - @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); } @@ -1047,12 +918,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.HistogramQuery) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.HistogramQuery) private static final com.google.cloud.contentwarehouse.v1.HistogramQuery DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.HistogramQuery(); } @@ -1061,27 +932,27 @@ public static com.google.cloud.contentwarehouse.v1.HistogramQuery getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HistogramQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 HistogramQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1096,4 +967,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.HistogramQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java similarity index 68% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java index 7598ee44c601..51e9e48933ad 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.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/contentwarehouse/v1/histogram.proto package com.google.cloud.contentwarehouse.v1; -public interface HistogramQueryOrBuilder - extends +public interface HistogramQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.HistogramQuery) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * An expression specifies a histogram request against matching documents for
    * searches.
@@ -36,13 +18,10 @@ public interface HistogramQueryOrBuilder
    * 
* * string histogram_query = 1; - * * @return The histogramQuery. */ java.lang.String getHistogramQuery(); /** - * - * *
    * An expression specifies a histogram request against matching documents for
    * searches.
@@ -53,14 +32,12 @@ public interface HistogramQueryOrBuilder
    * 
* * string histogram_query = 1; - * * @return The bytes for histogramQuery. */ - com.google.protobuf.ByteString getHistogramQueryBytes(); + com.google.protobuf.ByteString + getHistogramQueryBytes(); /** - * - * *
    * Controls if the histogram query requires the return of a precise count.
    * Enable this flag may adversely impact performance.
@@ -69,14 +46,11 @@ public interface HistogramQueryOrBuilder
    * 
* * bool require_precise_result_size = 2; - * * @return The requirePreciseResultSize. */ boolean getRequirePreciseResultSize(); /** - * - * *
    * Optional. Filter the result of histogram query by the property names. It
    * only works with histogram query count('FilterableProperties'). It is an
@@ -84,16 +58,11 @@ public interface HistogramQueryOrBuilder
    * document schemas. Setting this field will have a better performance.
    * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the filters field is set. */ boolean hasFilters(); /** - * - * *
    * Optional. Filter the result of histogram query by the property names. It
    * only works with histogram query count('FilterableProperties'). It is an
@@ -101,16 +70,11 @@ public interface HistogramQueryOrBuilder
    * document schemas. Setting this field will have a better performance.
    * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The filters. */ com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter getFilters(); /** - * - * *
    * Optional. Filter the result of histogram query by the property names. It
    * only works with histogram query count('FilterableProperties'). It is an
@@ -118,10 +82,7 @@ public interface HistogramQueryOrBuilder
    * document schemas. Setting this field will have a better performance.
    * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder - getFiltersOrBuilder(); + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder getFiltersOrBuilder(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java similarity index 71% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java index 48ff2a030410..0ea917a90ed6 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java @@ -1,65 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/histogram.proto package com.google.cloud.contentwarehouse.v1; -/** Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter} */ -public final class HistogramQueryPropertyNameFilter extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter} + */ +public final class HistogramQueryPropertyNameFilter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) HistogramQueryPropertyNameFilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HistogramQueryPropertyNameFilter.newBuilder() to construct. - private HistogramQueryPropertyNameFilter( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private HistogramQueryPropertyNameFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HistogramQueryPropertyNameFilter() { - documentSchemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); - propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documentSchemas_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + propertyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); yAxis_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HistogramQueryPropertyNameFilter(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.HistogramProto - .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.HistogramProto - .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.class, - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.class, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder.class); } /** - * - * *
    * The result of the histogram query count('FilterableProperties') using
    * HISTOGRAM_YAXIS_DOCUMENT will be:
@@ -69,13 +53,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * line_item_description: 1
    * 
* - * Protobuf enum {@code - * google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis} + * Protobuf enum {@code google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis} */ - public enum HistogramYAxis implements com.google.protobuf.ProtocolMessageEnum { + public enum HistogramYAxis + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Count the documents per property name.
      * 
@@ -84,8 +66,6 @@ public enum HistogramYAxis implements com.google.protobuf.ProtocolMessageEnum { */ HISTOGRAM_YAXIS_DOCUMENT(0), /** - * - * *
      * Count the properties per property name.
      * 
@@ -97,8 +77,6 @@ public enum HistogramYAxis implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Count the documents per property name.
      * 
@@ -107,8 +85,6 @@ public enum HistogramYAxis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HISTOGRAM_YAXIS_DOCUMENT_VALUE = 0; /** - * - * *
      * Count the properties per property name.
      * 
@@ -117,6 +93,7 @@ public enum HistogramYAxis implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HISTOGRAM_YAXIS_PROPERTY_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -141,49 +118,48 @@ public static HistogramYAxis valueOf(int value) { */ public static HistogramYAxis forNumber(int value) { switch (value) { - case 0: - return HISTOGRAM_YAXIS_DOCUMENT; - case 1: - return HISTOGRAM_YAXIS_PROPERTY; - default: - return null; + case 0: return HISTOGRAM_YAXIS_DOCUMENT; + case 1: return HISTOGRAM_YAXIS_PROPERTY; + 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< + HistogramYAxis> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HistogramYAxis findValueByNumber(int number) { + return HistogramYAxis.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HistogramYAxis findValueByNumber(int number) { - return HistogramYAxis.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.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDescriptor().getEnumTypes().get(0); } private static final HistogramYAxis[] VALUES = values(); - public static HistogramYAxis valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static HistogramYAxis 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; @@ -201,13 +177,10 @@ private HistogramYAxis(int value) { } public static final int DOCUMENT_SCHEMAS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList documentSchemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -220,15 +193,13 @@ private HistogramYAxis(int value) {
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the documentSchemas. */ - public com.google.protobuf.ProtocolStringList getDocumentSchemasList() { + public com.google.protobuf.ProtocolStringList + getDocumentSchemasList() { return documentSchemas_; } /** - * - * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -241,15 +212,12 @@ public com.google.protobuf.ProtocolStringList getDocumentSchemasList() {
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of documentSchemas. */ public int getDocumentSchemasCount() { return documentSchemas_.size(); } /** - * - * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -262,7 +230,6 @@ public int getDocumentSchemasCount() {
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The documentSchemas at the given index. */ @@ -270,8 +237,6 @@ public java.lang.String getDocumentSchemas(int index) { return documentSchemas_.get(index); } /** - * - * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -284,22 +249,19 @@ public java.lang.String getDocumentSchemas(int index) {
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the documentSchemas at the given index. */ - public com.google.protobuf.ByteString getDocumentSchemasBytes(int index) { + public com.google.protobuf.ByteString + getDocumentSchemasBytes(int index) { return documentSchemas_.getByteString(index); } public static final int PROPERTY_NAMES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -311,15 +273,13 @@ public com.google.protobuf.ByteString getDocumentSchemasBytes(int index) {
    * 
* * repeated string property_names = 2; - * * @return A list containing the propertyNames. */ - public com.google.protobuf.ProtocolStringList getPropertyNamesList() { + public com.google.protobuf.ProtocolStringList + getPropertyNamesList() { return propertyNames_; } /** - * - * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -331,15 +291,12 @@ public com.google.protobuf.ProtocolStringList getPropertyNamesList() {
    * 
* * repeated string property_names = 2; - * * @return The count of propertyNames. */ public int getPropertyNamesCount() { return propertyNames_.size(); } /** - * - * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -351,7 +308,6 @@ public int getPropertyNamesCount() {
    * 
* * repeated string property_names = 2; - * * @param index The index of the element to return. * @return The propertyNames at the given index. */ @@ -359,8 +315,6 @@ public java.lang.String getPropertyNames(int index) { return propertyNames_.get(index); } /** - * - * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -372,62 +326,43 @@ public java.lang.String getPropertyNames(int index) {
    * 
* * repeated string property_names = 2; - * * @param index The index of the value to return. * @return The bytes of the propertyNames at the given index. */ - public com.google.protobuf.ByteString getPropertyNamesBytes(int index) { + public com.google.protobuf.ByteString + getPropertyNamesBytes(int index) { return propertyNames_.getByteString(index); } public static final int Y_AXIS_FIELD_NUMBER = 3; private int yAxis_ = 0; /** - * - * *
    * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
    * set.
    * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; * @return The enum numeric value on the wire for yAxis. */ - @java.lang.Override - public int getYAxisValue() { + @java.lang.Override public int getYAxisValue() { return yAxis_; } /** - * - * *
    * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
    * set.
    * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; * @return The yAxis. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - getYAxis() { - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - .forNumber(yAxis_); - return result == null - ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis getYAxis() { + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.forNumber(yAxis_); + return result == null ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,17 +374,15 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < documentSchemas_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentSchemas_.getRaw(i)); } for (int i = 0; i < propertyNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, propertyNames_.getRaw(i)); } - if (yAxis_ - != com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - .HISTOGRAM_YAXIS_DOCUMENT - .getNumber()) { + if (yAxis_ != com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.HISTOGRAM_YAXIS_DOCUMENT.getNumber()) { output.writeEnum(3, yAxis_); } getUnknownFields().writeTo(output); @@ -477,11 +410,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPropertyNamesList().size(); } - if (yAxis_ - != com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - .HISTOGRAM_YAXIS_DOCUMENT - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, yAxis_); + if (yAxis_ != com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.HISTOGRAM_YAXIS_DOCUMENT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, yAxis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -491,16 +422,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.contentwarehouse.v1.HistogramQueryPropertyNameFilter)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter other = - (com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) obj; + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter other = (com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) obj; - if (!getDocumentSchemasList().equals(other.getDocumentSchemasList())) return false; - if (!getPropertyNamesList().equals(other.getPropertyNamesList())) return false; + if (!getDocumentSchemasList() + .equals(other.getDocumentSchemasList())) return false; + if (!getPropertyNamesList() + .equals(other.getPropertyNamesList())) return false; if (yAxis_ != other.yAxis_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -529,151 +461,148 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter 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.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.HistogramProto - .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.HistogramProto - .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.class, - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.class, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder.class); } - // Construct using - // com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.newBuilder() - private Builder() {} + // Construct using com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.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; - documentSchemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); - propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documentSchemas_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + propertyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); yAxis_ = 0; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.HistogramProto - .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter - getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter - .getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance(); } @java.lang.Override @@ -687,17 +616,13 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter bui @java.lang.Override public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter buildPartial() { - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter result = - new com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter result = new com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { documentSchemas_.makeImmutable(); @@ -716,51 +641,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.contentwarehouse.v1.HistogramQueryPropertyNameFilter) { - return mergeFrom( - (com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter other) { - if (other - == com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter other) { + if (other == com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance()) return this; if (!other.documentSchemas_.isEmpty()) { if (documentSchemas_.isEmpty()) { documentSchemas_ = other.documentSchemas_; @@ -810,33 +730,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDocumentSchemasIsMutable(); - documentSchemas_.add(s); - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePropertyNamesIsMutable(); - propertyNames_.add(s); - break; - } // case 18 - case 24: - { - yAxis_ = input.readEnum(); - 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(); + ensureDocumentSchemasIsMutable(); + documentSchemas_.add(s); + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePropertyNamesIsMutable(); + propertyNames_.add(s); + break; + } // case 18 + case 24: { + yAxis_ = input.readEnum(); + 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) { @@ -846,12 +762,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList documentSchemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureDocumentSchemasIsMutable() { if (!documentSchemas_.isModifiable()) { documentSchemas_ = new com.google.protobuf.LazyStringArrayList(documentSchemas_); @@ -859,8 +773,6 @@ private void ensureDocumentSchemasIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -873,16 +785,14 @@ private void ensureDocumentSchemasIsMutable() {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the documentSchemas. */ - public com.google.protobuf.ProtocolStringList getDocumentSchemasList() { + public com.google.protobuf.ProtocolStringList + getDocumentSchemasList() { documentSchemas_.makeImmutable(); return documentSchemas_; } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -895,15 +805,12 @@ public com.google.protobuf.ProtocolStringList getDocumentSchemasList() {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of documentSchemas. */ public int getDocumentSchemasCount() { return documentSchemas_.size(); } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -916,7 +823,6 @@ public int getDocumentSchemasCount() {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The documentSchemas at the given index. */ @@ -924,8 +830,6 @@ public java.lang.String getDocumentSchemas(int index) { return documentSchemas_.get(index); } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -938,16 +842,14 @@ public java.lang.String getDocumentSchemas(int index) {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the documentSchemas at the given index. */ - public com.google.protobuf.ByteString getDocumentSchemasBytes(int index) { + public com.google.protobuf.ByteString + getDocumentSchemasBytes(int index) { return documentSchemas_.getByteString(index); } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -960,15 +862,13 @@ public com.google.protobuf.ByteString getDocumentSchemasBytes(int index) {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index to set the value at. * @param value The documentSchemas to set. * @return This builder for chaining. */ - public Builder setDocumentSchemas(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentSchemas( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentSchemasIsMutable(); documentSchemas_.set(index, value); bitField0_ |= 0x00000001; @@ -976,8 +876,6 @@ public Builder setDocumentSchemas(int index, java.lang.String value) { return this; } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -990,14 +888,12 @@ public Builder setDocumentSchemas(int index, java.lang.String value) {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @param value The documentSchemas to add. * @return This builder for chaining. */ - public Builder addDocumentSchemas(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocumentSchemas( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentSchemasIsMutable(); documentSchemas_.add(value); bitField0_ |= 0x00000001; @@ -1005,8 +901,6 @@ public Builder addDocumentSchemas(java.lang.String value) { return this; } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -1019,20 +913,19 @@ public Builder addDocumentSchemas(java.lang.String value) {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @param values The documentSchemas to add. * @return This builder for chaining. */ - public Builder addAllDocumentSchemas(java.lang.Iterable values) { + public Builder addAllDocumentSchemas( + java.lang.Iterable values) { ensureDocumentSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentSchemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documentSchemas_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -1045,19 +938,16 @@ public Builder addAllDocumentSchemas(java.lang.Iterable values
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDocumentSchemas() { - documentSchemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + documentSchemas_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -1070,14 +960,12 @@ public Builder clearDocumentSchemas() {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes of the documentSchemas to add. * @return This builder for chaining. */ - public Builder addDocumentSchemasBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocumentSchemasBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDocumentSchemasIsMutable(); documentSchemas_.add(value); @@ -1088,7 +976,6 @@ public Builder addDocumentSchemasBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePropertyNamesIsMutable() { if (!propertyNames_.isModifiable()) { propertyNames_ = new com.google.protobuf.LazyStringArrayList(propertyNames_); @@ -1096,8 +983,6 @@ private void ensurePropertyNamesIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1109,16 +994,14 @@ private void ensurePropertyNamesIsMutable() {
      * 
* * repeated string property_names = 2; - * * @return A list containing the propertyNames. */ - public com.google.protobuf.ProtocolStringList getPropertyNamesList() { + public com.google.protobuf.ProtocolStringList + getPropertyNamesList() { propertyNames_.makeImmutable(); return propertyNames_; } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1130,15 +1013,12 @@ public com.google.protobuf.ProtocolStringList getPropertyNamesList() {
      * 
* * repeated string property_names = 2; - * * @return The count of propertyNames. */ public int getPropertyNamesCount() { return propertyNames_.size(); } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1150,7 +1030,6 @@ public int getPropertyNamesCount() {
      * 
* * repeated string property_names = 2; - * * @param index The index of the element to return. * @return The propertyNames at the given index. */ @@ -1158,8 +1037,6 @@ public java.lang.String getPropertyNames(int index) { return propertyNames_.get(index); } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1171,16 +1048,14 @@ public java.lang.String getPropertyNames(int index) {
      * 
* * repeated string property_names = 2; - * * @param index The index of the value to return. * @return The bytes of the propertyNames at the given index. */ - public com.google.protobuf.ByteString getPropertyNamesBytes(int index) { + public com.google.protobuf.ByteString + getPropertyNamesBytes(int index) { return propertyNames_.getByteString(index); } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1192,15 +1067,13 @@ public com.google.protobuf.ByteString getPropertyNamesBytes(int index) {
      * 
* * repeated string property_names = 2; - * * @param index The index to set the value at. * @param value The propertyNames to set. * @return This builder for chaining. */ - public Builder setPropertyNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPropertyNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePropertyNamesIsMutable(); propertyNames_.set(index, value); bitField0_ |= 0x00000002; @@ -1208,8 +1081,6 @@ public Builder setPropertyNames(int index, java.lang.String value) { return this; } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1221,14 +1092,12 @@ public Builder setPropertyNames(int index, java.lang.String value) {
      * 
* * repeated string property_names = 2; - * * @param value The propertyNames to add. * @return This builder for chaining. */ - public Builder addPropertyNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPropertyNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePropertyNamesIsMutable(); propertyNames_.add(value); bitField0_ |= 0x00000002; @@ -1236,8 +1105,6 @@ public Builder addPropertyNames(java.lang.String value) { return this; } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1249,20 +1116,19 @@ public Builder addPropertyNames(java.lang.String value) {
      * 
* * repeated string property_names = 2; - * * @param values The propertyNames to add. * @return This builder for chaining. */ - public Builder addAllPropertyNames(java.lang.Iterable values) { + public Builder addAllPropertyNames( + java.lang.Iterable values) { ensurePropertyNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, propertyNames_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1274,19 +1140,16 @@ public Builder addAllPropertyNames(java.lang.Iterable values)
      * 
* * repeated string property_names = 2; - * * @return This builder for chaining. */ public Builder clearPropertyNames() { - propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + propertyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1298,14 +1161,12 @@ public Builder clearPropertyNames() {
      * 
* * repeated string property_names = 2; - * * @param value The bytes of the propertyNames to add. * @return This builder for chaining. */ - public Builder addPropertyNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPropertyNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePropertyNamesIsMutable(); propertyNames_.add(value); @@ -1316,35 +1177,24 @@ public Builder addPropertyNamesBytes(com.google.protobuf.ByteString value) { private int yAxis_ = 0; /** - * - * *
      * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
      * set.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; * @return The enum numeric value on the wire for yAxis. */ - @java.lang.Override - public int getYAxisValue() { + @java.lang.Override public int getYAxisValue() { return yAxis_; } /** - * - * *
      * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
      * set.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; * @param value The enum numeric value on the wire for yAxis to set. * @return This builder for chaining. */ @@ -1355,48 +1205,30 @@ public Builder setYAxisValue(int value) { return this; } /** - * - * *
      * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
      * set.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; * @return The yAxis. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - getYAxis() { - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - .forNumber(yAxis_); - return result == null - ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - .UNRECOGNIZED - : result; + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis getYAxis() { + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.forNumber(yAxis_); + return result == null ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.UNRECOGNIZED : result; } /** - * - * *
      * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
      * set.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; * @param value The yAxis to set. * @return This builder for chaining. */ - public Builder setYAxis( - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis - value) { + public Builder setYAxis(com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis value) { if (value == null) { throw new NullPointerException(); } @@ -1406,17 +1238,12 @@ public Builder setYAxis( return this; } /** - * - * *
      * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
      * set.
      * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; * @return This builder for chaining. */ public Builder clearYAxis() { @@ -1425,9 +1252,9 @@ public Builder clearYAxis() { 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); } @@ -1437,43 +1264,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) - private static final com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter(); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HistogramQueryPropertyNameFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 HistogramQueryPropertyNameFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1485,8 +1310,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java similarity index 82% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java index f6923817420b..c51681de43b2 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.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/contentwarehouse/v1/histogram.proto package com.google.cloud.contentwarehouse.v1; -public interface HistogramQueryPropertyNameFilterOrBuilder - extends +public interface HistogramQueryPropertyNameFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -38,13 +20,11 @@ public interface HistogramQueryPropertyNameFilterOrBuilder
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the documentSchemas. */ - java.util.List getDocumentSchemasList(); + java.util.List + getDocumentSchemasList(); /** - * - * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -57,13 +37,10 @@ public interface HistogramQueryPropertyNameFilterOrBuilder
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of documentSchemas. */ int getDocumentSchemasCount(); /** - * - * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -76,14 +53,11 @@ public interface HistogramQueryPropertyNameFilterOrBuilder
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The documentSchemas at the given index. */ java.lang.String getDocumentSchemas(int index); /** - * - * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -96,15 +70,13 @@ public interface HistogramQueryPropertyNameFilterOrBuilder
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the documentSchemas at the given index. */ - com.google.protobuf.ByteString getDocumentSchemasBytes(int index); + com.google.protobuf.ByteString + getDocumentSchemasBytes(int index); /** - * - * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -116,13 +88,11 @@ public interface HistogramQueryPropertyNameFilterOrBuilder
    * 
* * repeated string property_names = 2; - * * @return A list containing the propertyNames. */ - java.util.List getPropertyNamesList(); + java.util.List + getPropertyNamesList(); /** - * - * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -134,13 +104,10 @@ public interface HistogramQueryPropertyNameFilterOrBuilder
    * 
* * repeated string property_names = 2; - * * @return The count of propertyNames. */ int getPropertyNamesCount(); /** - * - * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -152,14 +119,11 @@ public interface HistogramQueryPropertyNameFilterOrBuilder
    * 
* * repeated string property_names = 2; - * * @param index The index of the element to return. * @return The propertyNames at the given index. */ java.lang.String getPropertyNames(int index); /** - * - * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -171,39 +135,29 @@ public interface HistogramQueryPropertyNameFilterOrBuilder
    * 
* * repeated string property_names = 2; - * * @param index The index of the value to return. * @return The bytes of the propertyNames at the given index. */ - com.google.protobuf.ByteString getPropertyNamesBytes(int index); + com.google.protobuf.ByteString + getPropertyNamesBytes(int index); /** - * - * *
    * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
    * set.
    * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; * @return The enum numeric value on the wire for yAxis. */ int getYAxisValue(); /** - * - * *
    * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
    * set.
    * 
* - * - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; - * - * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; * @return The yAxis. */ com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis getYAxis(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java similarity index 64% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java index a688d2e38976..980cffb3c235 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.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/contentwarehouse/v1/histogram.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Histogram result that matches
  * [HistogramQuery][google.cloud.contentwarehouse.v1.HistogramQuery] specified
@@ -29,65 +12,60 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQueryResult}
  */
-public final class HistogramQueryResult extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class HistogramQueryResult extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.HistogramQueryResult)
     HistogramQueryResultOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use HistogramQueryResult.newBuilder() to construct.
   private HistogramQueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private HistogramQueryResult() {
     histogramQuery_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new HistogramQueryResult();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.HistogramProto
-        .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 2:
         return internalGetHistogram();
       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.contentwarehouse.v1.HistogramProto
-        .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.HistogramQueryResult.class,
-            com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder.class);
+            com.google.cloud.contentwarehouse.v1.HistogramQueryResult.class, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder.class);
   }
 
   public static final int HISTOGRAM_QUERY_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object histogramQuery_ = "";
   /**
-   *
-   *
    * 
    * Requested histogram expression.
    * 
* * string histogram_query = 1; - * * @return The histogramQuery. */ @java.lang.Override @@ -96,29 +74,29 @@ public java.lang.String getHistogramQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); histogramQuery_ = s; return s; } } /** - * - * *
    * Requested histogram expression.
    * 
* * string histogram_query = 1; - * * @return The bytes for histogramQuery. */ @java.lang.Override - public com.google.protobuf.ByteString getHistogramQueryBytes() { + public com.google.protobuf.ByteString + getHistogramQueryBytes() { java.lang.Object ref = histogramQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); histogramQuery_ = b; return b; } else { @@ -127,34 +105,32 @@ public com.google.protobuf.ByteString getHistogramQueryBytes() { } public static final int HISTOGRAM_FIELD_NUMBER = 2; - private static final class HistogramDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.contentwarehouse.v1.HistogramProto - .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField histogram_; - - private com.google.protobuf.MapField internalGetHistogram() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> histogram_; + private com.google.protobuf.MapField + internalGetHistogram() { if (histogram_ == null) { - return com.google.protobuf.MapField.emptyMapField(HistogramDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + HistogramDefaultEntryHolder.defaultEntry); } return histogram_; } - public int getHistogramCount() { return internalGetHistogram().getMap().size(); } /** - * - * *
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -167,21 +143,20 @@ public int getHistogramCount() {
    * map<string, int64> histogram = 2;
    */
   @java.lang.Override
-  public boolean containsHistogram(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsHistogram(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetHistogram().getMap().containsKey(key);
   }
-  /** Use {@link #getHistogramMap()} instead. */
+  /**
+   * Use {@link #getHistogramMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getHistogram() {
     return getHistogramMap();
   }
   /**
-   *
-   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -198,8 +173,6 @@ public java.util.Map getHistogramMap() {
     return internalGetHistogram().getMap();
   }
   /**
-   *
-   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -212,16 +185,15 @@ public java.util.Map getHistogramMap() {
    * map<string, int64> histogram = 2;
    */
   @java.lang.Override
-  public long getHistogramOrDefault(java.lang.String key, long defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetHistogram().getMap();
+  public long getHistogramOrDefault(
+      java.lang.String key,
+      long defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetHistogram().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -234,11 +206,11 @@ public long getHistogramOrDefault(java.lang.String key, long defaultValue) {
    * map<string, int64> histogram = 2;
    */
   @java.lang.Override
-  public long getHistogramOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetHistogram().getMap();
+  public long getHistogramOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetHistogram().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -246,7 +218,6 @@ public long getHistogramOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -258,12 +229,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(histogramQuery_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, histogramQuery_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetHistogram(), HistogramDefaultEntryHolder.defaultEntry, 2);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetHistogram(),
+        HistogramDefaultEntryHolder.defaultEntry,
+        2);
     getUnknownFields().writeTo(output);
   }
 
@@ -276,15 +252,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(histogramQuery_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, histogramQuery_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetHistogram().getMap().entrySet()) {
-      com.google.protobuf.MapEntry histogram__ =
-          HistogramDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, histogram__);
+    for (java.util.Map.Entry entry
+         : internalGetHistogram().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      histogram__ = HistogramDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, histogram__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -294,16 +270,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.contentwarehouse.v1.HistogramQueryResult)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.HistogramQueryResult other =
-        (com.google.cloud.contentwarehouse.v1.HistogramQueryResult) obj;
+    com.google.cloud.contentwarehouse.v1.HistogramQueryResult other = (com.google.cloud.contentwarehouse.v1.HistogramQueryResult) obj;
 
-    if (!getHistogramQuery().equals(other.getHistogramQuery())) return false;
-    if (!internalGetHistogram().equals(other.internalGetHistogram())) return false;
+    if (!getHistogramQuery()
+        .equals(other.getHistogramQuery())) return false;
+    if (!internalGetHistogram().equals(
+        other.internalGetHistogram())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -327,104 +304,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult 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.contentwarehouse.v1.HistogramQueryResult parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult 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.contentwarehouse.v1.HistogramQueryResult parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.HistogramQueryResult prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.HistogramQueryResult prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder 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;
   }
   /**
-   *
-   *
    * 
    * Histogram result that matches
    * [HistogramQuery][google.cloud.contentwarehouse.v1.HistogramQuery] specified
@@ -433,52 +404,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQueryResult}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.HistogramQueryResult)
       com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.HistogramProto
-          .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetHistogram();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetMutableHistogram();
         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.contentwarehouse.v1.HistogramProto
-          .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.HistogramQueryResult.class,
-              com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder.class);
+              com.google.cloud.contentwarehouse.v1.HistogramQueryResult.class, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.HistogramQueryResult.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();
@@ -489,9 +463,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.HistogramProto
-          .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor;
     }
 
     @java.lang.Override
@@ -510,11 +484,8 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryResult build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.HistogramQueryResult buildPartial() {
-      com.google.cloud.contentwarehouse.v1.HistogramQueryResult result =
-          new com.google.cloud.contentwarehouse.v1.HistogramQueryResult(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.contentwarehouse.v1.HistogramQueryResult result = new com.google.cloud.contentwarehouse.v1.HistogramQueryResult(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -534,39 +505,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.HistogramQueryRe
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.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.contentwarehouse.v1.HistogramQueryResult) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.HistogramQueryResult) other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.HistogramQueryResult)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -574,14 +544,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.HistogramQueryResult other) {
-      if (other == com.google.cloud.contentwarehouse.v1.HistogramQueryResult.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.contentwarehouse.v1.HistogramQueryResult.getDefaultInstance()) return this;
       if (!other.getHistogramQuery().isEmpty()) {
         histogramQuery_ = other.histogramQuery_;
         bitField0_ |= 0x00000001;
         onChanged();
       }
-      internalGetMutableHistogram().mergeFrom(other.internalGetHistogram());
+      internalGetMutableHistogram().mergeFrom(
+          other.internalGetHistogram());
       bitField0_ |= 0x00000002;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -609,31 +579,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                histogramQuery_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.protobuf.MapEntry histogram__ =
-                    input.readMessage(
-                        HistogramDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableHistogram()
-                    .getMutableMap()
-                    .put(histogram__.getKey(), histogram__.getValue());
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              histogramQuery_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              com.google.protobuf.MapEntry
+              histogram__ = input.readMessage(
+                  HistogramDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableHistogram().getMutableMap().put(
+                  histogram__.getKey(), histogram__.getValue());
+              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) {
@@ -643,25 +608,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object histogramQuery_ = "";
     /**
-     *
-     *
      * 
      * Requested histogram expression.
      * 
* * string histogram_query = 1; - * * @return The histogramQuery. */ public java.lang.String getHistogramQuery() { java.lang.Object ref = histogramQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); histogramQuery_ = s; return s; @@ -670,21 +632,20 @@ public java.lang.String getHistogramQuery() { } } /** - * - * *
      * Requested histogram expression.
      * 
* * string histogram_query = 1; - * * @return The bytes for histogramQuery. */ - public com.google.protobuf.ByteString getHistogramQueryBytes() { + public com.google.protobuf.ByteString + getHistogramQueryBytes() { java.lang.Object ref = histogramQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); histogramQuery_ = b; return b; } else { @@ -692,35 +653,28 @@ public com.google.protobuf.ByteString getHistogramQueryBytes() { } } /** - * - * *
      * Requested histogram expression.
      * 
* * string histogram_query = 1; - * * @param value The histogramQuery to set. * @return This builder for chaining. */ - public Builder setHistogramQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHistogramQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } histogramQuery_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Requested histogram expression.
      * 
* * string histogram_query = 1; - * * @return This builder for chaining. */ public Builder clearHistogramQuery() { @@ -730,21 +684,17 @@ public Builder clearHistogramQuery() { return this; } /** - * - * *
      * Requested histogram expression.
      * 
* * string histogram_query = 1; - * * @param value The bytes for histogramQuery to set. * @return This builder for chaining. */ - public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHistogramQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); histogramQuery_ = value; bitField0_ |= 0x00000001; @@ -752,20 +702,21 @@ public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField histogram_; - - private com.google.protobuf.MapField internalGetHistogram() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> histogram_; + private com.google.protobuf.MapField + internalGetHistogram() { if (histogram_ == null) { - return com.google.protobuf.MapField.emptyMapField(HistogramDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + HistogramDefaultEntryHolder.defaultEntry); } return histogram_; } - private com.google.protobuf.MapField internalGetMutableHistogram() { if (histogram_ == null) { - histogram_ = - com.google.protobuf.MapField.newMapField(HistogramDefaultEntryHolder.defaultEntry); + histogram_ = com.google.protobuf.MapField.newMapField( + HistogramDefaultEntryHolder.defaultEntry); } if (!histogram_.isMutable()) { histogram_ = histogram_.copy(); @@ -774,13 +725,10 @@ private com.google.protobuf.MapField internalG onChanged(); return histogram_; } - public int getHistogramCount() { return internalGetHistogram().getMap().size(); } /** - * - * *
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -793,21 +741,20 @@ public int getHistogramCount() {
      * map<string, int64> histogram = 2;
      */
     @java.lang.Override
-    public boolean containsHistogram(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsHistogram(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetHistogram().getMap().containsKey(key);
     }
-    /** Use {@link #getHistogramMap()} instead. */
+    /**
+     * Use {@link #getHistogramMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getHistogram() {
       return getHistogramMap();
     }
     /**
-     *
-     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -824,8 +771,6 @@ public java.util.Map getHistogramMap() {
       return internalGetHistogram().getMap();
     }
     /**
-     *
-     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -838,16 +783,15 @@ public java.util.Map getHistogramMap() {
      * map<string, int64> histogram = 2;
      */
     @java.lang.Override
-    public long getHistogramOrDefault(java.lang.String key, long defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetHistogram().getMap();
+    public long getHistogramOrDefault(
+        java.lang.String key,
+        long defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetHistogram().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -860,25 +804,23 @@ public long getHistogramOrDefault(java.lang.String key, long defaultValue) {
      * map<string, int64> histogram = 2;
      */
     @java.lang.Override
-    public long getHistogramOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetHistogram().getMap();
+    public long getHistogramOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetHistogram().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearHistogram() {
       bitField0_ = (bitField0_ & ~0x00000002);
-      internalGetMutableHistogram().getMutableMap().clear();
+      internalGetMutableHistogram().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -890,22 +832,23 @@ public Builder clearHistogram() {
      *
      * map<string, int64> histogram = 2;
      */
-    public Builder removeHistogram(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableHistogram().getMutableMap().remove(key);
+    public Builder removeHistogram(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableHistogram().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableHistogram() {
+    public java.util.Map
+        getMutableHistogram() {
       bitField0_ |= 0x00000002;
       return internalGetMutableHistogram().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -917,18 +860,17 @@ public java.util.Map getMutableHistogram() {
      *
      * map<string, int64> histogram = 2;
      */
-    public Builder putHistogram(java.lang.String key, long value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putHistogram(
+        java.lang.String key,
+        long value) {
+      if (key == null) { throw new NullPointerException("map key"); }
 
-      internalGetMutableHistogram().getMutableMap().put(key, value);
+      internalGetMutableHistogram().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000002;
       return this;
     }
     /**
-     *
-     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -940,14 +882,16 @@ public Builder putHistogram(java.lang.String key, long value) {
      *
      * map<string, int64> histogram = 2;
      */
-    public Builder putAllHistogram(java.util.Map values) {
-      internalGetMutableHistogram().getMutableMap().putAll(values);
+    public Builder putAllHistogram(
+        java.util.Map values) {
+      internalGetMutableHistogram().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000002;
       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);
     }
 
@@ -957,12 +901,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.HistogramQueryResult)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.HistogramQueryResult)
   private static final com.google.cloud.contentwarehouse.v1.HistogramQueryResult DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.HistogramQueryResult();
   }
@@ -971,27 +915,27 @@ public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public HistogramQueryResult parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 HistogramQueryResult parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1006,4 +950,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java
similarity index 67%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java
index cf04a6b09df4..fb71b9e9961c 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/histogram.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface HistogramQueryResultOrBuilder
-    extends
+public interface HistogramQueryResultOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.HistogramQueryResult)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Requested histogram expression.
    * 
* * string histogram_query = 1; - * * @return The histogramQuery. */ java.lang.String getHistogramQuery(); /** - * - * *
    * Requested histogram expression.
    * 
* * string histogram_query = 1; - * * @return The bytes for histogramQuery. */ - com.google.protobuf.ByteString getHistogramQueryBytes(); + com.google.protobuf.ByteString + getHistogramQueryBytes(); /** - * - * *
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -64,8 +41,6 @@ public interface HistogramQueryResultOrBuilder
    */
   int getHistogramCount();
   /**
-   *
-   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -77,13 +52,15 @@ public interface HistogramQueryResultOrBuilder
    *
    * map<string, int64> histogram = 2;
    */
-  boolean containsHistogram(java.lang.String key);
-  /** Use {@link #getHistogramMap()} instead. */
+  boolean containsHistogram(
+      java.lang.String key);
+  /**
+   * Use {@link #getHistogramMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getHistogram();
+  java.util.Map
+  getHistogram();
   /**
-   *
-   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -95,10 +72,9 @@ public interface HistogramQueryResultOrBuilder
    *
    * map<string, int64> histogram = 2;
    */
-  java.util.Map getHistogramMap();
+  java.util.Map
+  getHistogramMap();
   /**
-   *
-   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -110,10 +86,10 @@ public interface HistogramQueryResultOrBuilder
    *
    * map<string, int64> histogram = 2;
    */
-  long getHistogramOrDefault(java.lang.String key, long defaultValue);
+  long getHistogramOrDefault(
+      java.lang.String key,
+      long defaultValue);
   /**
-   *
-   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -125,5 +101,6 @@ public interface HistogramQueryResultOrBuilder
    *
    * map<string, int64> histogram = 2;
    */
-  long getHistogramOrThrow(java.lang.String key);
+  long getHistogramOrThrow(
+      java.lang.String key);
 }
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java
similarity index 61%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java
index 55130c6c0e65..154459581897 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java
@@ -1,72 +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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/pipelines.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * The ingestion pipeline config.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.IngestPipelineConfig} */ -public final class IngestPipelineConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class IngestPipelineConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.IngestPipelineConfig) IngestPipelineConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use IngestPipelineConfig.newBuilder() to construct. private IngestPipelineConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IngestPipelineConfig() { folder_ = ""; + cloudFunction_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IngestPipelineConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.class, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder.class); + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.class, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder.class); } public static final int DOCUMENT_ACL_POLICY_FIELD_NUMBER = 1; private com.google.iam.v1.Policy documentAclPolicy_; /** - * - * *
    * The document level acl policy config.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -88,7 +68,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.iam.v1.Policy document_acl_policy = 1; - * * @return Whether the documentAclPolicy field is set. */ @java.lang.Override @@ -96,8 +75,6 @@ public boolean hasDocumentAclPolicy() { return documentAclPolicy_ != null; } /** - * - * *
    * The document level acl policy config.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -119,18 +96,13 @@ public boolean hasDocumentAclPolicy() {
    * 
* * .google.iam.v1.Policy document_acl_policy = 1; - * * @return The documentAclPolicy. */ @java.lang.Override public com.google.iam.v1.Policy getDocumentAclPolicy() { - return documentAclPolicy_ == null - ? com.google.iam.v1.Policy.getDefaultInstance() - : documentAclPolicy_; + return documentAclPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : documentAclPolicy_; } /** - * - * *
    * The document level acl policy config.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -155,16 +127,12 @@ public com.google.iam.v1.Policy getDocumentAclPolicy() {
    */
   @java.lang.Override
   public com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder() {
-    return documentAclPolicy_ == null
-        ? com.google.iam.v1.Policy.getDefaultInstance()
-        : documentAclPolicy_;
+    return documentAclPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : documentAclPolicy_;
   }
 
   public static final int ENABLE_DOCUMENT_TEXT_EXTRACTION_FIELD_NUMBER = 2;
   private boolean enableDocumentTextExtraction_ = false;
   /**
-   *
-   *
    * 
    * The document text extraction enabled flag.
    * If the flag is set to true, DWH will perform text extraction on the raw
@@ -172,7 +140,6 @@ public com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder() {
    * 
* * bool enable_document_text_extraction = 2; - * * @return The enableDocumentTextExtraction. */ @java.lang.Override @@ -181,12 +148,9 @@ public boolean getEnableDocumentTextExtraction() { } public static final int FOLDER_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object folder_ = ""; /** - * - * *
    * Optional. The name of the folder to which all ingested documents will be
    * linked during ingestion process. Format is
@@ -194,7 +158,6 @@ public boolean getEnableDocumentTextExtraction() {
    * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The folder. */ @java.lang.Override @@ -203,15 +166,14 @@ public java.lang.String getFolder() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folder_ = s; return s; } } /** - * - * *
    * Optional. The name of the folder to which all ingested documents will be
    * linked during ingestion process. Format is
@@ -219,15 +181,16 @@ public java.lang.String getFolder() {
    * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for folder. */ @java.lang.Override - public com.google.protobuf.ByteString getFolderBytes() { + public com.google.protobuf.ByteString + getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); folder_ = b; return b; } else { @@ -235,8 +198,98 @@ public com.google.protobuf.ByteString getFolderBytes() { } } - private byte memoizedIsInitialized = -1; + public static final int CLOUD_FUNCTION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object cloudFunction_ = ""; + /** + *
+   * The Cloud Function resource name. The Cloud Function needs to live inside
+   * consumer project and is accessible to Document AI Warehouse P4SA.
+   * Only Cloud Functions V2 is supported. Cloud function execution should
+   * complete within 5 minutes or this file ingestion may fail due to timeout.
+   * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+   * The following keys are available the request json payload.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * reference_id
+   * * document_schema_name
+   * * raw_document_path
+   * * raw_document_file_type
+   *
+   * The following keys from the cloud function json response payload will be
+   * ingested to the Document AI Warehouse as part of Document proto content
+   * and/or related information. The original values will be overridden if any
+   * key is present in the response.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * document_acl_policy
+   * * folder
+   * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * @return The cloudFunction. + */ + @java.lang.Override + public java.lang.String getCloudFunction() { + java.lang.Object ref = cloudFunction_; + 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(); + cloudFunction_ = s; + return s; + } + } + /** + *
+   * The Cloud Function resource name. The Cloud Function needs to live inside
+   * consumer project and is accessible to Document AI Warehouse P4SA.
+   * Only Cloud Functions V2 is supported. Cloud function execution should
+   * complete within 5 minutes or this file ingestion may fail due to timeout.
+   * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+   * The following keys are available the request json payload.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * reference_id
+   * * document_schema_name
+   * * raw_document_path
+   * * raw_document_file_type
+   *
+   * The following keys from the cloud function json response payload will be
+   * ingested to the Document AI Warehouse as part of Document proto content
+   * and/or related information. The original values will be overridden if any
+   * key is present in the response.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * document_acl_policy
+   * * folder
+   * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * @return The bytes for cloudFunction. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCloudFunctionBytes() { + java.lang.Object ref = cloudFunction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloudFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,7 +301,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 (documentAclPolicy_ != null) { output.writeMessage(1, getDocumentAclPolicy()); } @@ -258,6 +312,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folder_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, folder_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudFunction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cloudFunction_); + } getUnknownFields().writeTo(output); } @@ -268,15 +325,19 @@ public int getSerializedSize() { size = 0; if (documentAclPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentAclPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDocumentAclPolicy()); } if (enableDocumentTextExtraction_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableDocumentTextExtraction_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableDocumentTextExtraction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folder_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, folder_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudFunction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cloudFunction_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -285,20 +346,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.contentwarehouse.v1.IngestPipelineConfig)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig other = - (com.google.cloud.contentwarehouse.v1.IngestPipelineConfig) obj; + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig other = (com.google.cloud.contentwarehouse.v1.IngestPipelineConfig) obj; if (hasDocumentAclPolicy() != other.hasDocumentAclPolicy()) return false; if (hasDocumentAclPolicy()) { - if (!getDocumentAclPolicy().equals(other.getDocumentAclPolicy())) return false; + if (!getDocumentAclPolicy() + .equals(other.getDocumentAclPolicy())) return false; } - if (getEnableDocumentTextExtraction() != other.getEnableDocumentTextExtraction()) return false; - if (!getFolder().equals(other.getFolder())) return false; + if (getEnableDocumentTextExtraction() + != other.getEnableDocumentTextExtraction()) return false; + if (!getFolder() + .equals(other.getFolder())) return false; + if (!getCloudFunction() + .equals(other.getCloudFunction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -315,146 +380,143 @@ public int hashCode() { hash = (53 * hash) + getDocumentAclPolicy().hashCode(); } hash = (37 * hash) + ENABLE_DOCUMENT_TEXT_EXTRACTION_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDocumentTextExtraction()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableDocumentTextExtraction()); hash = (37 * hash) + FOLDER_FIELD_NUMBER; hash = (53 * hash) + getFolder().hashCode(); + hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getCloudFunction().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig 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.contentwarehouse.v1.IngestPipelineConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig 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.contentwarehouse.v1.IngestPipelineConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The ingestion pipeline config.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.IngestPipelineConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.IngestPipelineConfig) com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.class, - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder.class); + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.class, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.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(); @@ -466,13 +528,14 @@ public Builder clear() { } enableDocumentTextExtraction_ = false; folder_ = ""; + cloudFunction_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; } @java.lang.Override @@ -491,11 +554,8 @@ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig buildPartial() { - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig result = - new com.google.cloud.contentwarehouse.v1.IngestPipelineConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig result = new com.google.cloud.contentwarehouse.v1.IngestPipelineConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -503,10 +563,9 @@ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig buildPartial() private void buildPartial0(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.documentAclPolicy_ = - documentAclPolicyBuilder_ == null - ? documentAclPolicy_ - : documentAclPolicyBuilder_.build(); + result.documentAclPolicy_ = documentAclPolicyBuilder_ == null + ? documentAclPolicy_ + : documentAclPolicyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.enableDocumentTextExtraction_ = enableDocumentTextExtraction_; @@ -514,45 +573,47 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.IngestPipelineCo if (((from_bitField0_ & 0x00000004) != 0)) { result.folder_ = folder_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cloudFunction_ = cloudFunction_; + } } @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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.IngestPipelineConfig) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.IngestPipelineConfig) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.IngestPipelineConfig)other); } else { super.mergeFrom(other); return this; @@ -560,8 +621,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig other) { - if (other == com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) return this; if (other.hasDocumentAclPolicy()) { mergeDocumentAclPolicy(other.getDocumentAclPolicy()); } @@ -573,6 +633,11 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.IngestPipelineConf bitField0_ |= 0x00000004; onChanged(); } + if (!other.getCloudFunction().isEmpty()) { + cloudFunction_ = other.cloudFunction_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -599,32 +664,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getDocumentAclPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - enableDocumentTextExtraction_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - folder_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getDocumentAclPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + enableDocumentTextExtraction_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + folder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + cloudFunction_ = 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) { @@ -634,18 +701,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.iam.v1.Policy documentAclPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - documentAclPolicyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> documentAclPolicyBuilder_; /** - * - * *
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -667,15 +728,12 @@ public Builder mergeFrom(
      * 
* * .google.iam.v1.Policy document_acl_policy = 1; - * * @return Whether the documentAclPolicy field is set. */ public boolean hasDocumentAclPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -697,21 +755,16 @@ public boolean hasDocumentAclPolicy() {
      * 
* * .google.iam.v1.Policy document_acl_policy = 1; - * * @return The documentAclPolicy. */ public com.google.iam.v1.Policy getDocumentAclPolicy() { if (documentAclPolicyBuilder_ == null) { - return documentAclPolicy_ == null - ? com.google.iam.v1.Policy.getDefaultInstance() - : documentAclPolicy_; + return documentAclPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : documentAclPolicy_; } else { return documentAclPolicyBuilder_.getMessage(); } } /** - * - * *
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -748,8 +801,6 @@ public Builder setDocumentAclPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -772,7 +823,8 @@ public Builder setDocumentAclPolicy(com.google.iam.v1.Policy value) {
      *
      * .google.iam.v1.Policy document_acl_policy = 1;
      */
-    public Builder setDocumentAclPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
+    public Builder setDocumentAclPolicy(
+        com.google.iam.v1.Policy.Builder builderForValue) {
       if (documentAclPolicyBuilder_ == null) {
         documentAclPolicy_ = builderForValue.build();
       } else {
@@ -783,8 +835,6 @@ public Builder setDocumentAclPolicy(com.google.iam.v1.Policy.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -809,9 +859,9 @@ public Builder setDocumentAclPolicy(com.google.iam.v1.Policy.Builder builderForV
      */
     public Builder mergeDocumentAclPolicy(com.google.iam.v1.Policy value) {
       if (documentAclPolicyBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && documentAclPolicy_ != null
-            && documentAclPolicy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          documentAclPolicy_ != null &&
+          documentAclPolicy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
           getDocumentAclPolicyBuilder().mergeFrom(value);
         } else {
           documentAclPolicy_ = value;
@@ -824,8 +874,6 @@ public Builder mergeDocumentAclPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -859,8 +907,6 @@ public Builder clearDocumentAclPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -889,8 +935,6 @@ public com.google.iam.v1.Policy.Builder getDocumentAclPolicyBuilder() {
       return getDocumentAclPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -917,14 +961,11 @@ public com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder() {
       if (documentAclPolicyBuilder_ != null) {
         return documentAclPolicyBuilder_.getMessageOrBuilder();
       } else {
-        return documentAclPolicy_ == null
-            ? com.google.iam.v1.Policy.getDefaultInstance()
-            : documentAclPolicy_;
+        return documentAclPolicy_ == null ?
+            com.google.iam.v1.Policy.getDefaultInstance() : documentAclPolicy_;
       }
     }
     /**
-     *
-     *
      * 
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -948,26 +989,21 @@ public com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder() {
      * .google.iam.v1.Policy document_acl_policy = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy,
-            com.google.iam.v1.Policy.Builder,
-            com.google.iam.v1.PolicyOrBuilder>
+        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
         getDocumentAclPolicyFieldBuilder() {
       if (documentAclPolicyBuilder_ == null) {
-        documentAclPolicyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.iam.v1.Policy,
-                com.google.iam.v1.Policy.Builder,
-                com.google.iam.v1.PolicyOrBuilder>(
-                getDocumentAclPolicy(), getParentForChildren(), isClean());
+        documentAclPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
+                getDocumentAclPolicy(),
+                getParentForChildren(),
+                isClean());
         documentAclPolicy_ = null;
       }
       return documentAclPolicyBuilder_;
     }
 
-    private boolean enableDocumentTextExtraction_;
+    private boolean enableDocumentTextExtraction_ ;
     /**
-     *
-     *
      * 
      * The document text extraction enabled flag.
      * If the flag is set to true, DWH will perform text extraction on the raw
@@ -975,7 +1011,6 @@ public com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder() {
      * 
* * bool enable_document_text_extraction = 2; - * * @return The enableDocumentTextExtraction. */ @java.lang.Override @@ -983,8 +1018,6 @@ public boolean getEnableDocumentTextExtraction() { return enableDocumentTextExtraction_; } /** - * - * *
      * The document text extraction enabled flag.
      * If the flag is set to true, DWH will perform text extraction on the raw
@@ -992,7 +1025,6 @@ public boolean getEnableDocumentTextExtraction() {
      * 
* * bool enable_document_text_extraction = 2; - * * @param value The enableDocumentTextExtraction to set. * @return This builder for chaining. */ @@ -1004,8 +1036,6 @@ public Builder setEnableDocumentTextExtraction(boolean value) { return this; } /** - * - * *
      * The document text extraction enabled flag.
      * If the flag is set to true, DWH will perform text extraction on the raw
@@ -1013,7 +1043,6 @@ public Builder setEnableDocumentTextExtraction(boolean value) {
      * 
* * bool enable_document_text_extraction = 2; - * * @return This builder for chaining. */ public Builder clearEnableDocumentTextExtraction() { @@ -1025,8 +1054,6 @@ public Builder clearEnableDocumentTextExtraction() { private java.lang.Object folder_ = ""; /** - * - * *
      * Optional. The name of the folder to which all ingested documents will be
      * linked during ingestion process. Format is
@@ -1034,13 +1061,13 @@ public Builder clearEnableDocumentTextExtraction() {
      * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The folder. */ public java.lang.String getFolder() { java.lang.Object ref = folder_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folder_ = s; return s; @@ -1049,8 +1076,6 @@ public java.lang.String getFolder() { } } /** - * - * *
      * Optional. The name of the folder to which all ingested documents will be
      * linked during ingestion process. Format is
@@ -1058,14 +1083,15 @@ public java.lang.String getFolder() {
      * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for folder. */ - public com.google.protobuf.ByteString getFolderBytes() { + public com.google.protobuf.ByteString + getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); folder_ = b; return b; } else { @@ -1073,8 +1099,6 @@ public com.google.protobuf.ByteString getFolderBytes() { } } /** - * - * *
      * Optional. The name of the folder to which all ingested documents will be
      * linked during ingestion process. Format is
@@ -1082,22 +1106,18 @@ public com.google.protobuf.ByteString getFolderBytes() {
      * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The folder to set. * @return This builder for chaining. */ - public Builder setFolder(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFolder( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } folder_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The name of the folder to which all ingested documents will be
      * linked during ingestion process. Format is
@@ -1105,7 +1125,6 @@ public Builder setFolder(java.lang.String value) {
      * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFolder() { @@ -1115,8 +1134,6 @@ public Builder clearFolder() { return this; } /** - * - * *
      * Optional. The name of the folder to which all ingested documents will be
      * linked during ingestion process. Format is
@@ -1124,14 +1141,12 @@ public Builder clearFolder() {
      * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for folder to set. * @return This builder for chaining. */ - public Builder setFolderBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFolderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folder_ = value; bitField0_ |= 0x00000004; @@ -1139,8 +1154,210 @@ public Builder setFolderBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object cloudFunction_ = ""; + /** + *
+     * The Cloud Function resource name. The Cloud Function needs to live inside
+     * consumer project and is accessible to Document AI Warehouse P4SA.
+     * Only Cloud Functions V2 is supported. Cloud function execution should
+     * complete within 5 minutes or this file ingestion may fail due to timeout.
+     * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+     * The following keys are available the request json payload.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * reference_id
+     * * document_schema_name
+     * * raw_document_path
+     * * raw_document_file_type
+     *
+     * The following keys from the cloud function json response payload will be
+     * ingested to the Document AI Warehouse as part of Document proto content
+     * and/or related information. The original values will be overridden if any
+     * key is present in the response.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * document_acl_policy
+     * * folder
+     * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * @return The cloudFunction. + */ + public java.lang.String getCloudFunction() { + java.lang.Object ref = cloudFunction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudFunction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Cloud Function resource name. The Cloud Function needs to live inside
+     * consumer project and is accessible to Document AI Warehouse P4SA.
+     * Only Cloud Functions V2 is supported. Cloud function execution should
+     * complete within 5 minutes or this file ingestion may fail due to timeout.
+     * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+     * The following keys are available the request json payload.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * reference_id
+     * * document_schema_name
+     * * raw_document_path
+     * * raw_document_file_type
+     *
+     * The following keys from the cloud function json response payload will be
+     * ingested to the Document AI Warehouse as part of Document proto content
+     * and/or related information. The original values will be overridden if any
+     * key is present in the response.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * document_acl_policy
+     * * folder
+     * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * @return The bytes for cloudFunction. + */ + public com.google.protobuf.ByteString + getCloudFunctionBytes() { + java.lang.Object ref = cloudFunction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cloudFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Cloud Function resource name. The Cloud Function needs to live inside
+     * consumer project and is accessible to Document AI Warehouse P4SA.
+     * Only Cloud Functions V2 is supported. Cloud function execution should
+     * complete within 5 minutes or this file ingestion may fail due to timeout.
+     * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+     * The following keys are available the request json payload.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * reference_id
+     * * document_schema_name
+     * * raw_document_path
+     * * raw_document_file_type
+     *
+     * The following keys from the cloud function json response payload will be
+     * ingested to the Document AI Warehouse as part of Document proto content
+     * and/or related information. The original values will be overridden if any
+     * key is present in the response.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * document_acl_policy
+     * * folder
+     * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * @param value The cloudFunction to set. + * @return This builder for chaining. + */ + public Builder setCloudFunction( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cloudFunction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The Cloud Function resource name. The Cloud Function needs to live inside
+     * consumer project and is accessible to Document AI Warehouse P4SA.
+     * Only Cloud Functions V2 is supported. Cloud function execution should
+     * complete within 5 minutes or this file ingestion may fail due to timeout.
+     * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+     * The following keys are available the request json payload.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * reference_id
+     * * document_schema_name
+     * * raw_document_path
+     * * raw_document_file_type
+     *
+     * The following keys from the cloud function json response payload will be
+     * ingested to the Document AI Warehouse as part of Document proto content
+     * and/or related information. The original values will be overridden if any
+     * key is present in the response.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * document_acl_policy
+     * * folder
+     * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearCloudFunction() { + cloudFunction_ = getDefaultInstance().getCloudFunction(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The Cloud Function resource name. The Cloud Function needs to live inside
+     * consumer project and is accessible to Document AI Warehouse P4SA.
+     * Only Cloud Functions V2 is supported. Cloud function execution should
+     * complete within 5 minutes or this file ingestion may fail due to timeout.
+     * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+     * The following keys are available the request json payload.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * reference_id
+     * * document_schema_name
+     * * raw_document_path
+     * * raw_document_file_type
+     *
+     * The following keys from the cloud function json response payload will be
+     * ingested to the Document AI Warehouse as part of Document proto content
+     * and/or related information. The original values will be overridden if any
+     * key is present in the response.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * document_acl_policy
+     * * folder
+     * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * @param value The bytes for cloudFunction to set. + * @return This builder for chaining. + */ + public Builder setCloudFunctionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cloudFunction_ = 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); } @@ -1150,12 +1367,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.IngestPipelineConfig) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.IngestPipelineConfig) private static final com.google.cloud.contentwarehouse.v1.IngestPipelineConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.IngestPipelineConfig(); } @@ -1164,27 +1381,27 @@ public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IngestPipelineConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 IngestPipelineConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,4 +1416,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java index 31814767d8fb..816458f574fa 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface IngestPipelineConfigOrBuilder - extends +public interface IngestPipelineConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.IngestPipelineConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The document level acl policy config.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -47,13 +29,10 @@ public interface IngestPipelineConfigOrBuilder
    * 
* * .google.iam.v1.Policy document_acl_policy = 1; - * * @return Whether the documentAclPolicy field is set. */ boolean hasDocumentAclPolicy(); /** - * - * *
    * The document level acl policy config.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -75,13 +54,10 @@ public interface IngestPipelineConfigOrBuilder
    * 
* * .google.iam.v1.Policy document_acl_policy = 1; - * * @return The documentAclPolicy. */ com.google.iam.v1.Policy getDocumentAclPolicy(); /** - * - * *
    * The document level acl policy config.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -107,8 +83,6 @@ public interface IngestPipelineConfigOrBuilder
   com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The document text extraction enabled flag.
    * If the flag is set to true, DWH will perform text extraction on the raw
@@ -116,14 +90,11 @@ public interface IngestPipelineConfigOrBuilder
    * 
* * bool enable_document_text_extraction = 2; - * * @return The enableDocumentTextExtraction. */ boolean getEnableDocumentTextExtraction(); /** - * - * *
    * Optional. The name of the folder to which all ingested documents will be
    * linked during ingestion process. Format is
@@ -131,13 +102,10 @@ public interface IngestPipelineConfigOrBuilder
    * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The folder. */ java.lang.String getFolder(); /** - * - * *
    * Optional. The name of the folder to which all ingested documents will be
    * linked during ingestion process. Format is
@@ -145,8 +113,72 @@ public interface IngestPipelineConfigOrBuilder
    * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for folder. */ - com.google.protobuf.ByteString getFolderBytes(); + com.google.protobuf.ByteString + getFolderBytes(); + + /** + *
+   * The Cloud Function resource name. The Cloud Function needs to live inside
+   * consumer project and is accessible to Document AI Warehouse P4SA.
+   * Only Cloud Functions V2 is supported. Cloud function execution should
+   * complete within 5 minutes or this file ingestion may fail due to timeout.
+   * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+   * The following keys are available the request json payload.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * reference_id
+   * * document_schema_name
+   * * raw_document_path
+   * * raw_document_file_type
+   *
+   * The following keys from the cloud function json response payload will be
+   * ingested to the Document AI Warehouse as part of Document proto content
+   * and/or related information. The original values will be overridden if any
+   * key is present in the response.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * document_acl_policy
+   * * folder
+   * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * @return The cloudFunction. + */ + java.lang.String getCloudFunction(); + /** + *
+   * The Cloud Function resource name. The Cloud Function needs to live inside
+   * consumer project and is accessible to Document AI Warehouse P4SA.
+   * Only Cloud Functions V2 is supported. Cloud function execution should
+   * complete within 5 minutes or this file ingestion may fail due to timeout.
+   * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+   * The following keys are available the request json payload.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * reference_id
+   * * document_schema_name
+   * * raw_document_path
+   * * raw_document_file_type
+   *
+   * The following keys from the cloud function json response payload will be
+   * ingested to the Document AI Warehouse as part of Document proto content
+   * and/or related information. The original values will be overridden if any
+   * key is present in the response.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * document_acl_policy
+   * * folder
+   * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * @return The bytes for cloudFunction. + */ + com.google.protobuf.ByteString + getCloudFunctionBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java similarity index 64% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java index fe7835371274..b732aece5567 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Integer values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.IntegerArray} */ -public final class IntegerArray extends com.google.protobuf.GeneratedMessageV3 - implements +public final class IntegerArray extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.IntegerArray) IntegerArrayOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use IntegerArray.newBuilder() to construct. private IntegerArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IntegerArray() { values_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IntegerArray(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.IntegerArray.class, - com.google.cloud.contentwarehouse.v1.IntegerArray.Builder.class); + com.google.cloud.contentwarehouse.v1.IntegerArray.class, com.google.cloud.contentwarehouse.v1.IntegerArray.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList values_; /** - * - * *
    * List of integer values.
    * 
* * repeated int32 values = 1; - * * @return A list containing the values. */ @java.lang.Override - public java.util.List getValuesList() { + public java.util.List + getValuesList() { return values_; } /** - * - * *
    * List of integer values.
    * 
* * repeated int32 values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
    * List of integer values.
    * 
* * repeated int32 values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ public int getValues(int index) { return values_.getInt(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); @@ -147,12 +118,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(values_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(values_.getInt(i)); } size += dataSize; if (!getValuesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } valuesMemoizedSerializedSize = dataSize; } @@ -164,15 +137,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.contentwarehouse.v1.IntegerArray)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.IntegerArray other = - (com.google.cloud.contentwarehouse.v1.IntegerArray) obj; + com.google.cloud.contentwarehouse.v1.IntegerArray other = (com.google.cloud.contentwarehouse.v1.IntegerArray) obj; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -194,135 +167,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.IntegerArray 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.contentwarehouse.v1.IntegerArray parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IntegerArray parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.IntegerArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.IntegerArray 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.contentwarehouse.v1.IntegerArray parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.IntegerArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Integer values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.IntegerArray} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.IntegerArray) com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.IntegerArray.class, - com.google.cloud.contentwarehouse.v1.IntegerArray.Builder.class); + com.google.cloud.contentwarehouse.v1.IntegerArray.class, com.google.cloud.contentwarehouse.v1.IntegerArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.IntegerArray.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(); @@ -332,9 +301,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; } @java.lang.Override @@ -353,18 +322,14 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.IntegerArray buildPartial() { - com.google.cloud.contentwarehouse.v1.IntegerArray result = - new com.google.cloud.contentwarehouse.v1.IntegerArray(this); + com.google.cloud.contentwarehouse.v1.IntegerArray result = new com.google.cloud.contentwarehouse.v1.IntegerArray(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.IntegerArray result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.IntegerArray result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); @@ -380,39 +345,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.IntegerArray 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.contentwarehouse.v1.IntegerArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.IntegerArray) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.IntegerArray)other); } else { super.mergeFrom(other); return this; @@ -420,8 +384,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.IntegerArray other) { - if (other == com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance()) return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; @@ -458,31 +421,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - int v = input.readInt32(); - ensureValuesIsMutable(); - values_.addInt(v); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValuesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - values_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + int v = input.readInt32(); + ensureValuesIsMutable(); + values_.addInt(v); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValuesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + values_.addInt(input.readInt32()); + } + 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) { @@ -492,11 +452,9 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Internal.IntList values_ = emptyIntList(); - private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = mutableCopy(values_); @@ -504,44 +462,35 @@ private void ensureValuesIsMutable() { } } /** - * - * *
      * List of integer values.
      * 
* * repeated int32 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_; } /** - * - * *
      * List of integer values.
      * 
* * repeated int32 values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
      * List of integer values.
      * 
* * repeated int32 values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -549,19 +498,17 @@ public int getValues(int index) { return values_.getInt(index); } /** - * - * *
      * List of integer values.
      * 
* * repeated int32 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, int value) { + public Builder setValues( + int index, int value) { ensureValuesIsMutable(); values_.setInt(index, value); @@ -569,14 +516,11 @@ public Builder setValues(int index, int value) { return this; } /** - * - * *
      * List of integer values.
      * 
* * repeated int32 values = 1; - * * @param value The values to add. * @return This builder for chaining. */ @@ -588,32 +532,28 @@ public Builder addValues(int value) { return this; } /** - * - * *
      * List of integer values.
      * 
* * repeated int32 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; } /** - * - * *
      * List of integer values.
      * 
* * repeated int32 values = 1; - * * @return This builder for chaining. */ public Builder clearValues() { @@ -622,9 +562,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); } @@ -634,12 +574,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.IntegerArray) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.IntegerArray) private static final com.google.cloud.contentwarehouse.v1.IntegerArray DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.IntegerArray(); } @@ -648,27 +588,27 @@ public static com.google.cloud.contentwarehouse.v1.IntegerArray getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IntegerArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 IntegerArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -683,4 +623,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.IntegerArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java similarity index 57% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java index 6b9d52e1bfb3..408d653542c4 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface IntegerArrayOrBuilder - extends +public interface IntegerArrayOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.IntegerArray) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of integer values.
    * 
* * repeated int32 values = 1; - * * @return A list containing the values. */ java.util.List getValuesList(); /** - * - * *
    * List of integer values.
    * 
* * repeated int32 values = 1; - * * @return The count of values. */ int getValuesCount(); /** - * - * *
    * List of integer values.
    * 
* * repeated int32 values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java index 753a659b7566..385dd10953bb 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java @@ -1,67 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Configurations for an integer property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.IntegerTypeOptions} */ -public final class IntegerTypeOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class IntegerTypeOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.IntegerTypeOptions) IntegerTypeOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use IntegerTypeOptions.newBuilder() to construct. private IntegerTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private IntegerTypeOptions() {} + private IntegerTypeOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IntegerTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.class, - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.class, com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -73,7 +54,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 { getUnknownFields().writeTo(output); } @@ -91,13 +73,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.contentwarehouse.v1.IntegerTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions other = - (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions other = (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -116,136 +97,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions 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.contentwarehouse.v1.IntegerTypeOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions 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.contentwarehouse.v1.IntegerTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.IntegerTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Configurations for an integer property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.IntegerTypeOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.IntegerTypeOptions) com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.class, - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.class, com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.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(); @@ -253,9 +229,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; } @java.lang.Override @@ -274,8 +250,7 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions result = - new com.google.cloud.contentwarehouse.v1.IntegerTypeOptions(this); + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions result = new com.google.cloud.contentwarehouse.v1.IntegerTypeOptions(this); onBuilt(); return result; } @@ -284,39 +259,38 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.IntegerTypeOptions)other); } else { super.mergeFrom(other); return this; @@ -324,8 +298,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.IntegerTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -352,13 +325,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -368,9 +340,9 @@ public Builder mergeFrom( } // finally 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); } @@ -380,12 +352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.IntegerTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.IntegerTypeOptions) private static final com.google.cloud.contentwarehouse.v1.IntegerTypeOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.IntegerTypeOptions(); } @@ -394,27 +366,27 @@ public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IntegerTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 IntegerTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -429,4 +401,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..436a891adbe1 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface IntegerTypeOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.IntegerTypeOptions) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java similarity index 67% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java index 03e25c813ad7..74e099169a07 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * A triggered rule that failed the validation check(s) after parsing.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.InvalidRule} */ -public final class InvalidRule extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InvalidRule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.InvalidRule) InvalidRuleOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InvalidRule.newBuilder() to construct. private InvalidRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InvalidRule() { error_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InvalidRule(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.InvalidRule.class, - com.google.cloud.contentwarehouse.v1.InvalidRule.Builder.class); + com.google.cloud.contentwarehouse.v1.InvalidRule.class, com.google.cloud.contentwarehouse.v1.InvalidRule.Builder.class); } public static final int RULE_FIELD_NUMBER = 1; private com.google.cloud.contentwarehouse.v1.Rule rule_; /** - * - * *
    * Triggered rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return Whether the rule field is set. */ @java.lang.Override @@ -80,14 +58,11 @@ public boolean hasRule() { return rule_ != null; } /** - * - * *
    * Triggered rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return The rule. */ @java.lang.Override @@ -95,8 +70,6 @@ public com.google.cloud.contentwarehouse.v1.Rule getRule() { return rule_ == null ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; } /** - * - * *
    * Triggered rule.
    * 
@@ -109,18 +82,14 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { } public static final int ERROR_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object error_ = ""; /** - * - * *
    * Validation error on a parsed expression.
    * 
* * string error = 2; - * * @return The error. */ @java.lang.Override @@ -129,29 +98,29 @@ public java.lang.String getError() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } } /** - * - * *
    * Validation error on a parsed expression.
    * 
* * string error = 2; - * * @return The bytes for error. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorBytes() { + public com.google.protobuf.ByteString + getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); error_ = b; return b; } else { @@ -160,7 +129,6 @@ public com.google.protobuf.ByteString getErrorBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,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 (rule_ != null) { output.writeMessage(1, getRule()); } @@ -189,7 +158,8 @@ public int getSerializedSize() { size = 0; if (rule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); @@ -202,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.contentwarehouse.v1.InvalidRule)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.InvalidRule other = - (com.google.cloud.contentwarehouse.v1.InvalidRule) obj; + com.google.cloud.contentwarehouse.v1.InvalidRule other = (com.google.cloud.contentwarehouse.v1.InvalidRule) obj; if (hasRule() != other.hasRule()) return false; if (hasRule()) { - if (!getRule().equals(other.getRule())) return false; + if (!getRule() + .equals(other.getRule())) return false; } - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,136 +208,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.InvalidRule 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.contentwarehouse.v1.InvalidRule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.InvalidRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 triggered rule that failed the validation check(s) after parsing.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.InvalidRule} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.InvalidRule) com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.InvalidRule.class, - com.google.cloud.contentwarehouse.v1.InvalidRule.Builder.class); + com.google.cloud.contentwarehouse.v1.InvalidRule.class, com.google.cloud.contentwarehouse.v1.InvalidRule.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.InvalidRule.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(); @@ -381,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; } @java.lang.Override @@ -402,11 +369,8 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.InvalidRule buildPartial() { - com.google.cloud.contentwarehouse.v1.InvalidRule result = - new com.google.cloud.contentwarehouse.v1.InvalidRule(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.InvalidRule result = new com.google.cloud.contentwarehouse.v1.InvalidRule(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -414,7 +378,9 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule buildPartial() { private void buildPartial0(com.google.cloud.contentwarehouse.v1.InvalidRule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.rule_ = ruleBuilder_ == null ? rule_ : ruleBuilder_.build(); + result.rule_ = ruleBuilder_ == null + ? rule_ + : ruleBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.error_ = error_; @@ -425,39 +391,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.InvalidRule 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.contentwarehouse.v1.InvalidRule) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.InvalidRule) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.InvalidRule)other); } else { super.mergeFrom(other); return this; @@ -465,8 +430,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.InvalidRule other) { - if (other == com.google.cloud.contentwarehouse.v1.InvalidRule.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.InvalidRule.getDefaultInstance()) return this; if (other.hasRule()) { mergeRule(other.getRule()); } @@ -501,25 +465,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getRuleFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - error_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getRuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + error_ = 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) { @@ -529,52 +492,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.contentwarehouse.v1.Rule rule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder> - ruleBuilder_; + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> ruleBuilder_; /** - * - * *
      * Triggered rule.
      * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return Whether the rule field is set. */ public boolean hasRule() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Triggered rule.
      * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return The rule. */ public com.google.cloud.contentwarehouse.v1.Rule getRule() { if (ruleBuilder_ == null) { - return rule_ == null - ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() - : rule_; + return rule_ == null ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; } else { return ruleBuilder_.getMessage(); } } /** - * - * *
      * Triggered rule.
      * 
@@ -595,15 +544,14 @@ public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** - * - * *
      * Triggered rule.
      * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; */ - public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule.Builder builderForValue) { + public Builder setRule( + com.google.cloud.contentwarehouse.v1.Rule.Builder builderForValue) { if (ruleBuilder_ == null) { rule_ = builderForValue.build(); } else { @@ -614,8 +562,6 @@ public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule.Builder builder return this; } /** - * - * *
      * Triggered rule.
      * 
@@ -624,9 +570,9 @@ public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule.Builder builder */ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { if (ruleBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && rule_ != null - && rule_ != com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + rule_ != null && + rule_ != com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()) { getRuleBuilder().mergeFrom(value); } else { rule_ = value; @@ -639,8 +585,6 @@ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** - * - * *
      * Triggered rule.
      * 
@@ -658,8 +602,6 @@ public Builder clearRule() { return this; } /** - * - * *
      * Triggered rule.
      * 
@@ -672,8 +614,6 @@ public com.google.cloud.contentwarehouse.v1.Rule.Builder getRuleBuilder() { return getRuleFieldBuilder().getBuilder(); } /** - * - * *
      * Triggered rule.
      * 
@@ -684,14 +624,11 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { if (ruleBuilder_ != null) { return ruleBuilder_.getMessageOrBuilder(); } else { - return rule_ == null - ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() - : rule_; + return rule_ == null ? + com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; } } /** - * - * *
      * Triggered rule.
      * 
@@ -699,17 +636,14 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { * .google.cloud.contentwarehouse.v1.Rule rule = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> getRuleFieldBuilder() { if (ruleBuilder_ == null) { - ruleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( - getRule(), getParentForChildren(), isClean()); + ruleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( + getRule(), + getParentForChildren(), + isClean()); rule_ = null; } return ruleBuilder_; @@ -717,20 +651,18 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { private java.lang.Object error_ = ""; /** - * - * *
      * Validation error on a parsed expression.
      * 
* * string error = 2; - * * @return The error. */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; @@ -739,21 +671,20 @@ public java.lang.String getError() { } } /** - * - * *
      * Validation error on a parsed expression.
      * 
* * string error = 2; - * * @return The bytes for error. */ - public com.google.protobuf.ByteString getErrorBytes() { + public com.google.protobuf.ByteString + getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); error_ = b; return b; } else { @@ -761,35 +692,28 @@ public com.google.protobuf.ByteString getErrorBytes() { } } /** - * - * *
      * Validation error on a parsed expression.
      * 
* * string error = 2; - * * @param value The error to set. * @return This builder for chaining. */ - public Builder setError(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setError( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } error_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Validation error on a parsed expression.
      * 
* * string error = 2; - * * @return This builder for chaining. */ public Builder clearError() { @@ -799,30 +723,26 @@ public Builder clearError() { return this; } /** - * - * *
      * Validation error on a parsed expression.
      * 
* * string error = 2; - * * @param value The bytes for error to set. * @return This builder for chaining. */ - public Builder setErrorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = 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); } @@ -832,12 +752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.InvalidRule) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.InvalidRule) private static final com.google.cloud.contentwarehouse.v1.InvalidRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.InvalidRule(); } @@ -846,27 +766,27 @@ public static com.google.cloud.contentwarehouse.v1.InvalidRule getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InvalidRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 InvalidRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,4 +801,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.InvalidRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java similarity index 61% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java index f95e131d0b05..1ab964d30a31 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface InvalidRuleOrBuilder - extends +public interface InvalidRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.InvalidRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Triggered rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return Whether the rule field is set. */ boolean hasRule(); /** - * - * *
    * Triggered rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return The rule. */ com.google.cloud.contentwarehouse.v1.Rule getRule(); /** - * - * *
    * Triggered rule.
    * 
@@ -59,27 +35,22 @@ public interface InvalidRuleOrBuilder com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder(); /** - * - * *
    * Validation error on a parsed expression.
    * 
* * string error = 2; - * * @return The error. */ java.lang.String getError(); /** - * - * *
    * Validation error on a parsed expression.
    * 
* * string error = 2; - * * @return The bytes for error. */ - com.google.protobuf.ByteString getErrorBytes(); + com.google.protobuf.ByteString + getErrorBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java similarity index 67% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java index 5ffa10791e52..12e4423aae78 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.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/contentwarehouse/v1/document_schema_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentSchemaService.ListDocumentSchemas.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest} */ -public final class ListDocumentSchemasRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDocumentSchemasRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) ListDocumentSchemasRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDocumentSchemasRequest.newBuilder() to construct. private ListDocumentSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDocumentSchemasRequest() { parent_ = ""; pageToken_ = ""; @@ -44,41 +26,34 @@ private ListDocumentSchemasRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDocumentSchemasRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.class, - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.class, com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent, which owns this collection of document schemas.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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, which owns this collection of document schemas.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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,8 +96,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of document schemas to return. The service may return
    * fewer than this value.
@@ -133,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,12 +112,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 `ListDocumentSchemas` call.
    * Provide this to retrieve the subsequent page.
@@ -157,7 +124,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -166,15 +132,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 `ListDocumentSchemas` call.
    * Provide this to retrieve the subsequent page.
@@ -184,15 +149,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 { @@ -201,7 +167,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +178,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_); } @@ -236,7 +202,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_); @@ -249,17 +216,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.contentwarehouse.v1.ListDocumentSchemasRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest other = - (com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) obj; + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest other = (com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) 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; } @@ -283,136 +252,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest 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.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest 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.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 DocumentSchemaService.ListDocumentSchemas.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.class, - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.class, com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.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(); @@ -424,14 +388,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.getDefaultInstance(); } @@ -446,17 +409,13 @@ public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest result = - new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest result = new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -473,50 +432,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.contentwarehouse.v1.ListDocumentSchemasRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest other) { - if (other - == com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest other) { + if (other == com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -556,31 +511,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) { @@ -590,28 +541,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of document schemas.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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; @@ -620,24 +566,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of document schemas.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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 { @@ -645,41 +588,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of document schemas.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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, which owns this collection of document schemas.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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() { @@ -689,24 +621,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent, which owns this collection of document schemas.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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; @@ -714,10 +640,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of document schemas to return. The service may return
      * fewer than this value.
@@ -726,7 +650,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -734,8 +657,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of document schemas to return. The service may return
      * fewer than this value.
@@ -744,7 +665,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -756,8 +676,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of document schemas to return. The service may return
      * fewer than this value.
@@ -766,7 +684,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -778,8 +695,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -789,13 +704,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; @@ -804,8 +719,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -815,14 +728,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 { @@ -830,8 +744,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -841,22 +753,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 `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -866,7 +774,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -876,8 +783,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -887,23 +792,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); } @@ -913,43 +816,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) - private static final com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest(); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDocumentSchemasRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListDocumentSchemasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -961,8 +862,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java index 4f0c4e95b98a..9ab03c524212 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.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/contentwarehouse/v1/document_schema_service.proto package com.google.cloud.contentwarehouse.v1; -public interface ListDocumentSchemasRequestOrBuilder - extends +public interface ListDocumentSchemasRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of document schemas.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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, which owns this collection of document schemas.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 document schemas to return. The service may return
    * fewer than this value.
@@ -65,14 +38,11 @@ public interface ListDocumentSchemasRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListDocumentSchemas` call.
    * Provide this to retrieve the subsequent page.
@@ -82,13 +52,10 @@ public interface ListDocumentSchemasRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListDocumentSchemas` call.
    * Provide this to retrieve the subsequent page.
@@ -98,8 +65,8 @@ public interface ListDocumentSchemasRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java similarity index 72% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java index a0a6c94b0803..57f202cfc42e 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.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/contentwarehouse/v1/document_schema_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Response message for DocumentSchemaService.ListDocumentSchemas.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse} */ -public final class ListDocumentSchemasResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDocumentSchemasResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) ListDocumentSchemasResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDocumentSchemasResponse.newBuilder() to construct. private ListDocumentSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDocumentSchemasResponse() { documentSchemas_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListDocumentSchemasResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDocumentSchemasResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.class, - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.class, com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.Builder.class); } public static final int DOCUMENT_SCHEMAS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List documentSchemas_; /** - * - * *
    * The document schemas from the specified parent.
    * 
@@ -77,13 +55,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ @java.lang.Override - public java.util.List - getDocumentSchemasList() { + public java.util.List getDocumentSchemasList() { return documentSchemas_; } /** - * - * *
    * The document schemas from the specified parent.
    * 
@@ -91,13 +66,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDocumentSchemasOrBuilderList() { return documentSchemas_; } /** - * - * *
    * The document schemas from the specified parent.
    * 
@@ -109,8 +82,6 @@ public int getDocumentSchemasCount() { return documentSchemas_.size(); } /** - * - * *
    * The document schemas from the specified parent.
    * 
@@ -122,8 +93,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchemas(in return documentSchemas_.get(index); } /** - * - * *
    * The document schemas from the specified parent.
    * 
@@ -137,19 +106,15 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `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 @@ -158,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `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() { + 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 { @@ -190,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +166,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 < documentSchemas_.size(); i++) { output.writeMessage(1, documentSchemas_.get(i)); } @@ -219,7 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < documentSchemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documentSchemas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, documentSchemas_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -232,16 +198,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.contentwarehouse.v1.ListDocumentSchemasResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse other = - (com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) obj; + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse other = (com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) obj; - if (!getDocumentSchemasList().equals(other.getDocumentSchemasList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDocumentSchemasList() + .equals(other.getDocumentSchemasList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,136 +232,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse 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.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse 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.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 DocumentSchemaService.ListDocumentSchemas.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.class, - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.class, com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.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(); @@ -411,14 +373,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.getDefaultInstance(); } @@ -433,18 +394,14 @@ public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse build() @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse result = - new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse(this); + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse result = new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse result) { if (documentSchemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { documentSchemas_ = java.util.Collections.unmodifiableList(documentSchemas_); @@ -456,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -468,50 +424,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.contentwarehouse.v1.ListDocumentSchemasResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse other) { - if (other - == com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse other) { + if (other == com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.getDefaultInstance()) return this; if (documentSchemasBuilder_ == null) { if (!other.documentSchemas_.isEmpty()) { if (documentSchemas_.isEmpty()) { @@ -530,10 +482,9 @@ public Builder mergeFrom( documentSchemasBuilder_ = null; documentSchemas_ = other.documentSchemas_; bitField0_ = (bitField0_ & ~0x00000001); - documentSchemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDocumentSchemasFieldBuilder() - : null; + documentSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDocumentSchemasFieldBuilder() : null; } else { documentSchemasBuilder_.addAllMessages(other.documentSchemas_); } @@ -570,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.DocumentSchema m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.DocumentSchema.parser(), - extensionRegistry); - if (documentSchemasBuilder_ == null) { - ensureDocumentSchemasIsMutable(); - documentSchemas_.add(m); - } else { - documentSchemasBuilder_.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.contentwarehouse.v1.DocumentSchema m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.DocumentSchema.parser(), + extensionRegistry); + if (documentSchemasBuilder_ == null) { + ensureDocumentSchemasIsMutable(); + documentSchemas_.add(m); + } else { + documentSchemasBuilder_.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 +554,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List documentSchemas_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDocumentSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - documentSchemas_ = - new java.util.ArrayList( - documentSchemas_); + documentSchemas_ = new java.util.ArrayList(documentSchemas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, - com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> - documentSchemasBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> documentSchemasBuilder_; /** - * - * *
      * The document schemas from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ - public java.util.List - getDocumentSchemasList() { + public java.util.List getDocumentSchemasList() { if (documentSchemasBuilder_ == null) { return java.util.Collections.unmodifiableList(documentSchemas_); } else { @@ -645,8 +583,6 @@ private void ensureDocumentSchemasIsMutable() { } } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -661,8 +597,6 @@ public int getDocumentSchemasCount() { } } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -677,8 +611,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchemas(in } } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -700,8 +632,6 @@ public Builder setDocumentSchemas( return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -720,8 +650,6 @@ public Builder setDocumentSchemas( return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -742,8 +670,6 @@ public Builder addDocumentSchemas(com.google.cloud.contentwarehouse.v1.DocumentS return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -765,8 +691,6 @@ public Builder addDocumentSchemas( return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -785,8 +709,6 @@ public Builder addDocumentSchemas( return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -805,8 +727,6 @@ public Builder addDocumentSchemas( return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -817,7 +737,8 @@ public Builder addAllDocumentSchemas( java.lang.Iterable values) { if (documentSchemasBuilder_ == null) { ensureDocumentSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentSchemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documentSchemas_); onChanged(); } else { documentSchemasBuilder_.addAllMessages(values); @@ -825,8 +746,6 @@ public Builder addAllDocumentSchemas( return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -844,8 +763,6 @@ public Builder clearDocumentSchemas() { return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -863,8 +780,6 @@ public Builder removeDocumentSchemas(int index) { return this; } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -876,8 +791,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSc return getDocumentSchemasFieldBuilder().getBuilder(index); } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -887,22 +800,19 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSc public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemasOrBuilder( int index) { if (documentSchemasBuilder_ == null) { - return documentSchemas_.get(index); - } else { + return documentSchemas_.get(index); } else { return documentSchemasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The document schemas from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ - public java.util.List - getDocumentSchemasOrBuilderList() { + public java.util.List + getDocumentSchemasOrBuilderList() { if (documentSchemasBuilder_ != null) { return documentSchemasBuilder_.getMessageOrBuilderList(); } else { @@ -910,8 +820,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS } } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -919,12 +827,10 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder addDocumentSchemasBuilder() { - return getDocumentSchemasFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()); + return getDocumentSchemasFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()); } /** - * - * *
      * The document schemas from the specified parent.
      * 
@@ -933,35 +839,26 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder addDocumentSc */ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder addDocumentSchemasBuilder( int index) { - return getDocumentSchemasFieldBuilder() - .addBuilder( - index, com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()); + return getDocumentSchemasFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()); } /** - * - * *
      * The document schemas from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ - public java.util.List - getDocumentSchemasBuilderList() { + public java.util.List + getDocumentSchemasBuilderList() { return getDocumentSchemasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, - com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> getDocumentSchemasFieldBuilder() { if (documentSchemasBuilder_ == null) { - documentSchemasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, - com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder>( + documentSchemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder>( documentSchemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -973,21 +870,19 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder addDocumentSc private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -996,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `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() { + 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,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `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() { @@ -1059,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `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(); - } + 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,43 +976,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) - private static final com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse(); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDocumentSchemasResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListDocumentSchemasResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,8 +1022,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java similarity index 72% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java index 5b7847a92354..b785420f4f4f 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.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/contentwarehouse/v1/document_schema_service.proto package com.google.cloud.contentwarehouse.v1; -public interface ListDocumentSchemasResponseOrBuilder - extends +public interface ListDocumentSchemasResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The document schemas from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ - java.util.List getDocumentSchemasList(); + java.util.List + getDocumentSchemasList(); /** - * - * *
    * The document schemas from the specified parent.
    * 
@@ -44,8 +25,6 @@ public interface ListDocumentSchemasResponseOrBuilder */ com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchemas(int index); /** - * - * *
    * The document schemas from the specified parent.
    * 
@@ -54,19 +33,15 @@ public interface ListDocumentSchemasResponseOrBuilder */ int getDocumentSchemasCount(); /** - * - * *
    * The document schemas from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ - java.util.List + java.util.List getDocumentSchemasOrBuilderList(); /** - * - * *
    * The document schemas from the specified parent.
    * 
@@ -77,29 +52,24 @@ com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemasO int index); /** - * - * *
    * A token, which can be sent as `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, which can be sent as `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(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java similarity index 70% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java index f66d38187731..b9be5a77dff9 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.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/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Response message for DocumentLinkService.ListLinkedSources.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest} */ -public final class ListLinkedSourcesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLinkedSourcesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) ListLinkedSourcesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLinkedSourcesRequest.newBuilder() to construct. private ListLinkedSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLinkedSourcesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,42 +26,35 @@ private ListLinkedSourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLinkedSourcesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.class, - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.class, com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the document, for which all source links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_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 @@ -88,33 +63,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 name of the document, for which all source links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_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,8 +98,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * The maximum number of document-links to return. The service may return
    * fewer than this value.
@@ -136,7 +107,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -145,12 +115,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListLinkedSources` call.
    * Provide this to retrieve the subsequent page.
@@ -160,7 +127,6 @@ public int getPageSize() {
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -169,15 +135,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 `ListLinkedSources` call.
    * Provide this to retrieve the subsequent page.
@@ -187,15 +152,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,15 +172,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int REQUEST_METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -222,26 +185,19 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
@@ -250,15 +206,11 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-      getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-        : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -270,7 +222,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_);
     }
@@ -296,10 +249,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getRequestMetadata());
     }
     if (pageSize_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(3, pageSize_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
@@ -312,20 +267,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.contentwarehouse.v1.ListLinkedSourcesRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest other =
-        (com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) obj;
-
-    if (!getParent().equals(other.getParent())) return false;
-    if (getPageSize() != other.getPageSize()) return false;
-    if (!getPageToken().equals(other.getPageToken())) return false;
+    com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest other = (com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) obj;
+
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (getPageSize()
+        != other.getPageSize()) return false;
+    if (!getPageToken()
+        .equals(other.getPageToken())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata()
+          .equals(other.getRequestMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -354,136 +312,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest 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.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest 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.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder 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 DocumentLinkService.ListLinkedSources.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.class, - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.class, com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.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(); @@ -500,14 +453,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.getDefaultInstance(); } @@ -522,17 +474,13 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest result = - new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest result = new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -544,8 +492,9 @@ private void buildPartial0( result.pageToken_ = pageToken_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.requestMetadata_ = - requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + result.requestMetadata_ = requestMetadataBuilder_ == null + ? requestMetadata_ + : requestMetadataBuilder_.build(); } } @@ -553,39 +502,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.contentwarehouse.v1.ListLinkedSourcesRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest)other); } else { super.mergeFrom(other); return this; @@ -593,9 +541,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest other) { - if (other - == com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -638,37 +584,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - 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( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + 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) { @@ -678,29 +621,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the document, for which all source links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_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; @@ -709,25 +647,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the document, for which all source links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_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 { @@ -735,43 +670,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the document, for which all source links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_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 name of the document, for which all source links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_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() { @@ -781,25 +705,19 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the document, for which all source links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_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; @@ -807,10 +725,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of document-links to return. The service may return
      * fewer than this value.
@@ -820,7 +736,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -828,8 +743,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of document-links to return. The service may return
      * fewer than this value.
@@ -839,7 +752,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -851,8 +763,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of document-links to return. The service may return
      * fewer than this value.
@@ -862,7 +772,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -874,8 +783,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -885,13 +792,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -900,8 +807,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -911,14 +816,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -926,8 +832,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -937,22 +841,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + 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 `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -962,7 +862,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -972,8 +871,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -983,14 +880,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1000,49 +895,36 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> - requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; /** - * - * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** - * - * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1064,8 +946,6 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1085,8 +965,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1094,13 +972,11 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public Builder mergeRequestMetadata(
-        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && requestMetadata_ != null
-            && requestMetadata_
-                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          requestMetadata_ != null &&
+          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -1113,8 +989,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1133,8 +1007,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1142,15 +1014,12 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
-        getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
       bitField0_ |= 0x00000008;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1158,19 +1027,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-        getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-            : requestMetadata_;
+        return requestMetadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1179,24 +1044,21 @@ public Builder clearRequestMetadata() {
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RequestMetadata,
-                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(), getParentForChildren(), isClean());
+        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(),
+                getParentForChildren(),
+                isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
-
     @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);
     }
 
@@ -1206,13 +1068,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest)
-  private static final com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest();
   }
@@ -1221,27 +1082,27 @@ public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest getD
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ListLinkedSourcesRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 ListLinkedSourcesRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1256,4 +1117,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java
similarity index 72%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java
index 17c8a0a5f938..e65aa781398b 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java
@@ -1,64 +1,37 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_link_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface ListLinkedSourcesRequestOrBuilder
-    extends
+public interface ListLinkedSourcesRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The name of the document, for which all source links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_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 name of the document, for which all source links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_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(); /** - * - * *
    * The maximum number of document-links to return. The service may return
    * fewer than this value.
@@ -68,14 +41,11 @@ public interface ListLinkedSourcesRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListLinkedSources` call.
    * Provide this to retrieve the subsequent page.
@@ -85,13 +55,10 @@ public interface ListLinkedSourcesRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListLinkedSources` call.
    * Provide this to retrieve the subsequent page.
@@ -101,40 +68,32 @@ public interface ListLinkedSourcesRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java
similarity index 72%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java
index 5f04a6238673..7cca29c7a13d 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.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/contentwarehouse/v1/document_link_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Response message for DocumentLinkService.ListLinkedSources.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse} */ -public final class ListLinkedSourcesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLinkedSourcesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) ListLinkedSourcesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLinkedSourcesResponse.newBuilder() to construct. private ListLinkedSourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLinkedSourcesResponse() { documentLinks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListLinkedSourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLinkedSourcesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.class, - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.class, com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.Builder.class); } public static final int DOCUMENT_LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List documentLinks_; /** - * - * *
    * Source document-links.
    * 
@@ -81,8 +59,6 @@ public java.util.List getDocu return documentLinks_; } /** - * - * *
    * Source document-links.
    * 
@@ -90,13 +66,11 @@ public java.util.List getDocu * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDocumentLinksOrBuilderList() { return documentLinks_; } /** - * - * *
    * Source document-links.
    * 
@@ -108,8 +82,6 @@ public int getDocumentLinksCount() { return documentLinks_.size(); } /** - * - * *
    * Source document-links.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in return documentLinks_.get(index); } /** - * - * *
    * Source document-links.
    * 
@@ -136,19 +106,15 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `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 @@ -157,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `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() { + 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 { @@ -189,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +166,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 < documentLinks_.size(); i++) { output.writeMessage(1, documentLinks_.get(i)); } @@ -218,7 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < documentLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documentLinks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, documentLinks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -231,16 +198,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.contentwarehouse.v1.ListLinkedSourcesResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse other = - (com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) obj; + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse other = (com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) obj; - if (!getDocumentLinksList().equals(other.getDocumentLinksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDocumentLinksList() + .equals(other.getDocumentLinksList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +232,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse 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.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse 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.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 DocumentLinkService.ListLinkedSources.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.class, - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.class, com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.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(); @@ -410,14 +373,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.getDefaultInstance(); } @@ -432,18 +394,14 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse result = - new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse(this); + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse result = new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse result) { if (documentLinksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { documentLinks_ = java.util.Collections.unmodifiableList(documentLinks_); @@ -455,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -467,39 +424,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.contentwarehouse.v1.ListLinkedSourcesResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse)other); } else { super.mergeFrom(other); return this; @@ -507,9 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse other) { - if (other - == com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.getDefaultInstance()) return this; if (documentLinksBuilder_ == null) { if (!other.documentLinks_.isEmpty()) { if (documentLinks_.isEmpty()) { @@ -528,10 +482,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesR documentLinksBuilder_ = null; documentLinks_ = other.documentLinks_; bitField0_ = (bitField0_ & ~0x00000001); - documentLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDocumentLinksFieldBuilder() - : null; + documentLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDocumentLinksFieldBuilder() : null; } else { documentLinksBuilder_.addAllMessages(other.documentLinks_); } @@ -568,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.DocumentLink m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.DocumentLink.parser(), - extensionRegistry); - if (documentLinksBuilder_ == null) { - ensureDocumentLinksIsMutable(); - documentLinks_.add(m); - } else { - documentLinksBuilder_.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.contentwarehouse.v1.DocumentLink m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.DocumentLink.parser(), + extensionRegistry); + if (documentLinksBuilder_ == null) { + ensureDocumentLinksIsMutable(); + documentLinks_.add(m); + } else { + documentLinksBuilder_.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) { @@ -604,38 +554,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List documentLinks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDocumentLinksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - documentLinks_ = - new java.util.ArrayList( - documentLinks_); + documentLinks_ = new java.util.ArrayList(documentLinks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, - com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> - documentLinksBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> documentLinksBuilder_; /** - * - * *
      * Source document-links.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - public java.util.List - getDocumentLinksList() { + public java.util.List getDocumentLinksList() { if (documentLinksBuilder_ == null) { return java.util.Collections.unmodifiableList(documentLinks_); } else { @@ -643,8 +583,6 @@ private void ensureDocumentLinksIsMutable() { } } /** - * - * *
      * Source document-links.
      * 
@@ -659,8 +597,6 @@ public int getDocumentLinksCount() { } } /** - * - * *
      * Source document-links.
      * 
@@ -675,8 +611,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in } } /** - * - * *
      * Source document-links.
      * 
@@ -698,8 +632,6 @@ public Builder setDocumentLinks( return this; } /** - * - * *
      * Source document-links.
      * 
@@ -718,8 +650,6 @@ public Builder setDocumentLinks( return this; } /** - * - * *
      * Source document-links.
      * 
@@ -740,8 +670,6 @@ public Builder addDocumentLinks(com.google.cloud.contentwarehouse.v1.DocumentLin return this; } /** - * - * *
      * Source document-links.
      * 
@@ -763,8 +691,6 @@ public Builder addDocumentLinks( return this; } /** - * - * *
      * Source document-links.
      * 
@@ -783,8 +709,6 @@ public Builder addDocumentLinks( return this; } /** - * - * *
      * Source document-links.
      * 
@@ -803,8 +727,6 @@ public Builder addDocumentLinks( return this; } /** - * - * *
      * Source document-links.
      * 
@@ -815,7 +737,8 @@ public Builder addAllDocumentLinks( java.lang.Iterable values) { if (documentLinksBuilder_ == null) { ensureDocumentLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentLinks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documentLinks_); onChanged(); } else { documentLinksBuilder_.addAllMessages(values); @@ -823,8 +746,6 @@ public Builder addAllDocumentLinks( return this; } /** - * - * *
      * Source document-links.
      * 
@@ -842,8 +763,6 @@ public Builder clearDocumentLinks() { return this; } /** - * - * *
      * Source document-links.
      * 
@@ -861,8 +780,6 @@ public Builder removeDocumentLinks(int index) { return this; } /** - * - * *
      * Source document-links.
      * 
@@ -874,8 +791,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink return getDocumentLinksFieldBuilder().getBuilder(index); } /** - * - * *
      * Source document-links.
      * 
@@ -885,22 +800,19 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinksOrBuilder( int index) { if (documentLinksBuilder_ == null) { - return documentLinks_.get(index); - } else { + return documentLinks_.get(index); } else { return documentLinksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Source document-links.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - public java.util.List - getDocumentLinksOrBuilderList() { + public java.util.List + getDocumentLinksOrBuilderList() { if (documentLinksBuilder_ != null) { return documentLinksBuilder_.getMessageOrBuilderList(); } else { @@ -908,8 +820,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin } } /** - * - * *
      * Source document-links.
      * 
@@ -917,12 +827,10 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLinksBuilder() { - return getDocumentLinksFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); + return getDocumentLinksFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); } /** - * - * *
      * Source document-links.
      * 
@@ -931,35 +839,26 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLink */ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLinksBuilder( int index) { - return getDocumentLinksFieldBuilder() - .addBuilder( - index, com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); + return getDocumentLinksFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); } /** - * - * *
      * Source document-links.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - public java.util.List - getDocumentLinksBuilderList() { + public java.util.List + getDocumentLinksBuilderList() { return getDocumentLinksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, - com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> getDocumentLinksFieldBuilder() { if (documentLinksBuilder_ == null) { - documentLinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, - com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>( + documentLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>( documentLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -971,21 +870,19 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLink private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -994,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `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() { + 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,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `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() { @@ -1057,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `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(); - } + 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,43 +976,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) - private static final com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse(); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLinkedSourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListLinkedSourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,8 +1022,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java index 4e1d0a8e4b55..65538bf208f5 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.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/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; -public interface ListLinkedSourcesResponseOrBuilder - extends +public interface ListLinkedSourcesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Source document-links.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - java.util.List getDocumentLinksList(); + java.util.List + getDocumentLinksList(); /** - * - * *
    * Source document-links.
    * 
@@ -44,8 +25,6 @@ public interface ListLinkedSourcesResponseOrBuilder */ com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int index); /** - * - * *
    * Source document-links.
    * 
@@ -54,51 +33,43 @@ public interface ListLinkedSourcesResponseOrBuilder */ int getDocumentLinksCount(); /** - * - * *
    * Source document-links.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - java.util.List + java.util.List getDocumentLinksOrBuilderList(); /** - * - * *
    * Source document-links.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinksOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinksOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `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, which can be sent as `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(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java similarity index 67% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java index 247a186d71b3..7e2fe3df0b2d 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.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/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentLinkService.ListLinkedTargets.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest} */ -public final class ListLinkedTargetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLinkedTargetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) ListLinkedTargetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLinkedTargetsRequest.newBuilder() to construct. private ListLinkedTargetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLinkedTargetsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLinkedTargetsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.class, - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.class, com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the document, for which all target links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{target_document_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 @@ -87,33 +62,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 name of the document, for which all target links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{target_document_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 { @@ -124,15 +97,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int REQUEST_METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -140,26 +110,19 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
@@ -168,15 +131,11 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-      getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-        : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -188,7 +147,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 +168,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getRequestMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -218,18 +179,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.contentwarehouse.v1.ListLinkedTargetsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest other =
-        (com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) obj;
+    com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest other = (com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata()
+          .equals(other.getRequestMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -254,136 +216,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest 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.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest 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.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder 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 DocumentLinkService.ListLinkedTargets.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.class, - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.class, com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.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 +355,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.getDefaultInstance(); } @@ -420,24 +376,21 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest result = - new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest result = new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMetadata_ = - requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + result.requestMetadata_ = requestMetadataBuilder_ == null + ? requestMetadata_ + : requestMetadataBuilder_.build(); } } @@ -445,39 +398,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.contentwarehouse.v1.ListLinkedTargetsRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest)other); } else { super.mergeFrom(other); return this; @@ -485,9 +437,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest other) { - if (other - == com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -522,25 +472,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getRequestMetadataFieldBuilder().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( + getRequestMetadataFieldBuilder().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,29 +499,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the document, for which all target links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{target_document_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; @@ -581,25 +525,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the document, for which all target links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{target_document_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 { @@ -607,43 +548,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the document, for which all target links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{target_document_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 name of the document, for which all target links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{target_document_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() { @@ -653,25 +583,19 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the document, for which all target links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{target_document_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; @@ -681,49 +605,36 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> - requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; /** - * - * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** - * - * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -745,8 +656,6 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -766,8 +675,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -775,13 +682,11 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public Builder mergeRequestMetadata(
-        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && requestMetadata_ != null
-            && requestMetadata_
-                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          requestMetadata_ != null &&
+          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -794,8 +699,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -814,8 +717,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -823,15 +724,12 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
-        getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -839,19 +737,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-        getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-            : requestMetadata_;
+        return requestMetadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -860,24 +754,21 @@ public Builder clearRequestMetadata() {
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RequestMetadata,
-                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(), getParentForChildren(), isClean());
+        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(),
+                getParentForChildren(),
+                isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
-
     @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);
     }
 
@@ -887,13 +778,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest)
-  private static final com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest();
   }
@@ -902,27 +792,27 @@ public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest getD
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ListLinkedTargetsRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 ListLinkedTargetsRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -937,4 +827,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java
similarity index 64%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java
index fa0a3a5ffaa1..e1c0ba832fb4 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java
@@ -1,90 +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/contentwarehouse/v1/document_link_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface ListLinkedTargetsRequestOrBuilder
-    extends
+public interface ListLinkedTargetsRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The name of the document, for which all target links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{target_document_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 name of the document, for which all target links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{target_document_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(); /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; - * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** - * - * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java
similarity index 72%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java
index 1331171df123..20cd68657065 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.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/contentwarehouse/v1/document_link_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Response message for DocumentLinkService.ListLinkedTargets.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse} */ -public final class ListLinkedTargetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLinkedTargetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) ListLinkedTargetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLinkedTargetsResponse.newBuilder() to construct. private ListLinkedTargetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLinkedTargetsResponse() { documentLinks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListLinkedTargetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLinkedTargetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.class, - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.class, com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.Builder.class); } public static final int DOCUMENT_LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List documentLinks_; /** - * - * *
    * Target document-links.
    * 
@@ -81,8 +59,6 @@ public java.util.List getDocu return documentLinks_; } /** - * - * *
    * Target document-links.
    * 
@@ -90,13 +66,11 @@ public java.util.List getDocu * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDocumentLinksOrBuilderList() { return documentLinks_; } /** - * - * *
    * Target document-links.
    * 
@@ -108,8 +82,6 @@ public int getDocumentLinksCount() { return documentLinks_.size(); } /** - * - * *
    * Target document-links.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in return documentLinks_.get(index); } /** - * - * *
    * Target document-links.
    * 
@@ -136,19 +106,15 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `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 @@ -157,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `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() { + 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 { @@ -189,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +166,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 < documentLinks_.size(); i++) { output.writeMessage(1, documentLinks_.get(i)); } @@ -218,7 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < documentLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documentLinks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, documentLinks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -231,16 +198,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.contentwarehouse.v1.ListLinkedTargetsResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse other = - (com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) obj; + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse other = (com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) obj; - if (!getDocumentLinksList().equals(other.getDocumentLinksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDocumentLinksList() + .equals(other.getDocumentLinksList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +232,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse 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.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse 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.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 DocumentLinkService.ListLinkedTargets.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.class, - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.class, com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.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(); @@ -410,14 +373,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto - .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.getDefaultInstance(); } @@ -432,18 +394,14 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse result = - new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse(this); + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse result = new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse result) { if (documentLinksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { documentLinks_ = java.util.Collections.unmodifiableList(documentLinks_); @@ -455,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -467,39 +424,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.contentwarehouse.v1.ListLinkedTargetsResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse)other); } else { super.mergeFrom(other); return this; @@ -507,9 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse other) { - if (other - == com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.getDefaultInstance()) return this; if (documentLinksBuilder_ == null) { if (!other.documentLinks_.isEmpty()) { if (documentLinks_.isEmpty()) { @@ -528,10 +482,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsR documentLinksBuilder_ = null; documentLinks_ = other.documentLinks_; bitField0_ = (bitField0_ & ~0x00000001); - documentLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDocumentLinksFieldBuilder() - : null; + documentLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDocumentLinksFieldBuilder() : null; } else { documentLinksBuilder_.addAllMessages(other.documentLinks_); } @@ -568,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.DocumentLink m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.DocumentLink.parser(), - extensionRegistry); - if (documentLinksBuilder_ == null) { - ensureDocumentLinksIsMutable(); - documentLinks_.add(m); - } else { - documentLinksBuilder_.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.contentwarehouse.v1.DocumentLink m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.DocumentLink.parser(), + extensionRegistry); + if (documentLinksBuilder_ == null) { + ensureDocumentLinksIsMutable(); + documentLinks_.add(m); + } else { + documentLinksBuilder_.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) { @@ -604,38 +554,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List documentLinks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDocumentLinksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - documentLinks_ = - new java.util.ArrayList( - documentLinks_); + documentLinks_ = new java.util.ArrayList(documentLinks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, - com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> - documentLinksBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> documentLinksBuilder_; /** - * - * *
      * Target document-links.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - public java.util.List - getDocumentLinksList() { + public java.util.List getDocumentLinksList() { if (documentLinksBuilder_ == null) { return java.util.Collections.unmodifiableList(documentLinks_); } else { @@ -643,8 +583,6 @@ private void ensureDocumentLinksIsMutable() { } } /** - * - * *
      * Target document-links.
      * 
@@ -659,8 +597,6 @@ public int getDocumentLinksCount() { } } /** - * - * *
      * Target document-links.
      * 
@@ -675,8 +611,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in } } /** - * - * *
      * Target document-links.
      * 
@@ -698,8 +632,6 @@ public Builder setDocumentLinks( return this; } /** - * - * *
      * Target document-links.
      * 
@@ -718,8 +650,6 @@ public Builder setDocumentLinks( return this; } /** - * - * *
      * Target document-links.
      * 
@@ -740,8 +670,6 @@ public Builder addDocumentLinks(com.google.cloud.contentwarehouse.v1.DocumentLin return this; } /** - * - * *
      * Target document-links.
      * 
@@ -763,8 +691,6 @@ public Builder addDocumentLinks( return this; } /** - * - * *
      * Target document-links.
      * 
@@ -783,8 +709,6 @@ public Builder addDocumentLinks( return this; } /** - * - * *
      * Target document-links.
      * 
@@ -803,8 +727,6 @@ public Builder addDocumentLinks( return this; } /** - * - * *
      * Target document-links.
      * 
@@ -815,7 +737,8 @@ public Builder addAllDocumentLinks( java.lang.Iterable values) { if (documentLinksBuilder_ == null) { ensureDocumentLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentLinks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documentLinks_); onChanged(); } else { documentLinksBuilder_.addAllMessages(values); @@ -823,8 +746,6 @@ public Builder addAllDocumentLinks( return this; } /** - * - * *
      * Target document-links.
      * 
@@ -842,8 +763,6 @@ public Builder clearDocumentLinks() { return this; } /** - * - * *
      * Target document-links.
      * 
@@ -861,8 +780,6 @@ public Builder removeDocumentLinks(int index) { return this; } /** - * - * *
      * Target document-links.
      * 
@@ -874,8 +791,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink return getDocumentLinksFieldBuilder().getBuilder(index); } /** - * - * *
      * Target document-links.
      * 
@@ -885,22 +800,19 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinksOrBuilder( int index) { if (documentLinksBuilder_ == null) { - return documentLinks_.get(index); - } else { + return documentLinks_.get(index); } else { return documentLinksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Target document-links.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - public java.util.List - getDocumentLinksOrBuilderList() { + public java.util.List + getDocumentLinksOrBuilderList() { if (documentLinksBuilder_ != null) { return documentLinksBuilder_.getMessageOrBuilderList(); } else { @@ -908,8 +820,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin } } /** - * - * *
      * Target document-links.
      * 
@@ -917,12 +827,10 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLinksBuilder() { - return getDocumentLinksFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); + return getDocumentLinksFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); } /** - * - * *
      * Target document-links.
      * 
@@ -931,35 +839,26 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLink */ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLinksBuilder( int index) { - return getDocumentLinksFieldBuilder() - .addBuilder( - index, com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); + return getDocumentLinksFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); } /** - * - * *
      * Target document-links.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - public java.util.List - getDocumentLinksBuilderList() { + public java.util.List + getDocumentLinksBuilderList() { return getDocumentLinksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, - com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> getDocumentLinksFieldBuilder() { if (documentLinksBuilder_ == null) { - documentLinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, - com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>( + documentLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>( documentLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -971,21 +870,19 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLink private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -994,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `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() { + 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,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `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() { @@ -1057,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `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(); - } + 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,43 +976,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) - private static final com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse(); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLinkedTargetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListLinkedTargetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,8 +1022,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java index 4ced83a6c3ff..388a602dfba1 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.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/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; -public interface ListLinkedTargetsResponseOrBuilder - extends +public interface ListLinkedTargetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Target document-links.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - java.util.List getDocumentLinksList(); + java.util.List + getDocumentLinksList(); /** - * - * *
    * Target document-links.
    * 
@@ -44,8 +25,6 @@ public interface ListLinkedTargetsResponseOrBuilder */ com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int index); /** - * - * *
    * Target document-links.
    * 
@@ -54,51 +33,43 @@ public interface ListLinkedTargetsResponseOrBuilder */ int getDocumentLinksCount(); /** - * - * *
    * Target document-links.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - java.util.List + java.util.List getDocumentLinksOrBuilderList(); /** - * - * *
    * Target document-links.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinksOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinksOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `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, which can be sent as `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(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java index eced13b09804..026da89a2c2e 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for RuleSetService.ListRuleSets.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListRuleSetsRequest} */ -public final class ListRuleSetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRuleSetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListRuleSetsRequest) ListRuleSetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRuleSetsRequest.newBuilder() to construct. private ListRuleSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRuleSetsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,41 +26,34 @@ private ListRuleSetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRuleSetsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.class, - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.class, com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent, which owns this collection of document.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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, which owns this collection of document.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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,8 +96,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of rule sets to return. The service may return
    * fewer than this value.
@@ -133,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,12 +112,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 `ListRuleSets` call.
    * Provide this to retrieve the subsequent page.
@@ -157,7 +124,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -166,15 +132,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 `ListRuleSets` call.
    * Provide this to retrieve the subsequent page.
@@ -184,15 +149,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 { @@ -201,7 +167,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +178,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_); } @@ -236,7 +202,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_); @@ -249,17 +216,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.contentwarehouse.v1.ListRuleSetsRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest other = - (com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest) obj; + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest other = (com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest) 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; } @@ -283,136 +252,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest 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.contentwarehouse.v1.ListRuleSetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest 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.contentwarehouse.v1.ListRuleSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 RuleSetService.ListRuleSets.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListRuleSetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListRuleSetsRequest) com.google.cloud.contentwarehouse.v1.ListRuleSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.class, - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.class, com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.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(); @@ -424,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; } @java.lang.Override @@ -445,11 +409,8 @@ public com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest result = - new com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest result = new com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -471,39 +432,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListRuleSetsRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest)other); } else { super.mergeFrom(other); return this; @@ -511,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -552,31 +511,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) { @@ -586,28 +541,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of document.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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; @@ -616,24 +566,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of document.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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 { @@ -641,41 +588,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of document.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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, which owns this collection of document.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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() { @@ -685,24 +621,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent, which owns this collection of document.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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,10 +640,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of rule sets to return. The service may return
      * fewer than this value.
@@ -722,7 +650,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -730,8 +657,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of rule sets to return. The service may return
      * fewer than this value.
@@ -740,7 +665,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -752,8 +676,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of rule sets to return. The service may return
      * fewer than this value.
@@ -762,7 +684,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -774,8 +695,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -785,13 +704,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; @@ -800,8 +719,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -811,14 +728,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 { @@ -826,8 +744,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -837,22 +753,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 `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -862,7 +774,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -872,8 +783,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -883,23 +792,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); } @@ -909,12 +816,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListRuleSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListRuleSetsRequest) private static final com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest(); } @@ -923,27 +830,27 @@ public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuleSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListRuleSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -958,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java index f63ec1cc62f6..4439d3cb1d90 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface ListRuleSetsRequestOrBuilder - extends +public interface ListRuleSetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListRuleSetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of document.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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, which owns this collection of document.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 rule sets to return. The service may return
    * fewer than this value.
@@ -65,14 +38,11 @@ public interface ListRuleSetsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListRuleSets` call.
    * Provide this to retrieve the subsequent page.
@@ -82,13 +52,10 @@ public interface ListRuleSetsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListRuleSets` call.
    * Provide this to retrieve the subsequent page.
@@ -98,8 +65,8 @@ public interface ListRuleSetsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java similarity index 72% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java index 30b63055b725..6dc78ec93692 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Response message for RuleSetService.ListRuleSets.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListRuleSetsResponse} */ -public final class ListRuleSetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRuleSetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListRuleSetsResponse) ListRuleSetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRuleSetsResponse.newBuilder() to construct. private ListRuleSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRuleSetsResponse() { ruleSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListRuleSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRuleSetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.class, - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.class, com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.Builder.class); } public static final int RULE_SETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List ruleSets_; /** - * - * *
    * The rule sets from the specified parent.
    * 
@@ -81,8 +59,6 @@ public java.util.List getRuleSetsL return ruleSets_; } /** - * - * *
    * The rule sets from the specified parent.
    * 
@@ -90,13 +66,11 @@ public java.util.List getRuleSetsL * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRuleSetsOrBuilderList() { return ruleSets_; } /** - * - * *
    * The rule sets from the specified parent.
    * 
@@ -108,8 +82,6 @@ public int getRuleSetsCount() { return ruleSets_.size(); } /** - * - * *
    * The rule sets from the specified parent.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSets(int index) { return ruleSets_.get(index); } /** - * - * *
    * The rule sets from the specified parent.
    * 
@@ -130,24 +100,21 @@ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSets(int index) { * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilder( + int index) { return ruleSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `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 @@ -156,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `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() { + 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 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +166,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 < ruleSets_.size(); i++) { output.writeMessage(1, ruleSets_.get(i)); } @@ -217,7 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < ruleSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ruleSets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, ruleSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -230,16 +198,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.contentwarehouse.v1.ListRuleSetsResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse other = - (com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse) obj; + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse other = (com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse) obj; - if (!getRuleSetsList().equals(other.getRuleSetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getRuleSetsList() + .equals(other.getRuleSetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +232,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse 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.contentwarehouse.v1.ListRuleSetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse 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.contentwarehouse.v1.ListRuleSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 RuleSetService.ListRuleSets.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListRuleSetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListRuleSetsResponse) com.google.cloud.contentwarehouse.v1.ListRuleSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.class, - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.class, com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.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(); @@ -409,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; } @java.lang.Override @@ -430,18 +394,14 @@ public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse result = - new com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse(this); + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse result = new com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse result) { if (ruleSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { ruleSets_ = java.util.Collections.unmodifiableList(ruleSets_); @@ -464,39 +424,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListRuleSetsResp public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListRuleSetsResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse)other); } else { super.mergeFrom(other); return this; @@ -504,8 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.getDefaultInstance()) return this; if (ruleSetsBuilder_ == null) { if (!other.ruleSets_.isEmpty()) { if (ruleSets_.isEmpty()) { @@ -524,10 +482,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListRuleSetsRespon ruleSetsBuilder_ = null; ruleSets_ = other.ruleSets_; bitField0_ = (bitField0_ & ~0x00000001); - ruleSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRuleSetsFieldBuilder() - : null; + ruleSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRuleSetsFieldBuilder() : null; } else { ruleSetsBuilder_.addAllMessages(other.ruleSets_); } @@ -564,32 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.RuleSet m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.RuleSet.parser(), extensionRegistry); - if (ruleSetsBuilder_ == null) { - ensureRuleSetsIsMutable(); - ruleSets_.add(m); - } else { - ruleSetsBuilder_.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.contentwarehouse.v1.RuleSet m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.RuleSet.parser(), + extensionRegistry); + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + ruleSets_.add(m); + } else { + ruleSetsBuilder_.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) { @@ -599,29 +554,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List ruleSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRuleSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - ruleSets_ = - new java.util.ArrayList(ruleSets_); + ruleSets_ = new java.util.ArrayList(ruleSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, - com.google.cloud.contentwarehouse.v1.RuleSet.Builder, - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> - ruleSetsBuilder_; + com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> ruleSetsBuilder_; /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -636,8 +583,6 @@ public java.util.List getRuleSetsL } } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -652,8 +597,6 @@ public int getRuleSetsCount() { } } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -668,15 +611,14 @@ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSets(int index) { } } /** - * - * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public Builder setRuleSets(int index, com.google.cloud.contentwarehouse.v1.RuleSet value) { + public Builder setRuleSets( + int index, com.google.cloud.contentwarehouse.v1.RuleSet value) { if (ruleSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -690,8 +632,6 @@ public Builder setRuleSets(int index, com.google.cloud.contentwarehouse.v1.RuleS return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -710,8 +650,6 @@ public Builder setRuleSets( return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -732,15 +670,14 @@ public Builder addRuleSets(com.google.cloud.contentwarehouse.v1.RuleSet value) { return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public Builder addRuleSets(int index, com.google.cloud.contentwarehouse.v1.RuleSet value) { + public Builder addRuleSets( + int index, com.google.cloud.contentwarehouse.v1.RuleSet value) { if (ruleSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -754,8 +691,6 @@ public Builder addRuleSets(int index, com.google.cloud.contentwarehouse.v1.RuleS return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -774,8 +709,6 @@ public Builder addRuleSets( return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -794,8 +727,6 @@ public Builder addRuleSets( return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -806,7 +737,8 @@ public Builder addAllRuleSets( java.lang.Iterable values) { if (ruleSetsBuilder_ == null) { ensureRuleSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ruleSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ruleSets_); onChanged(); } else { ruleSetsBuilder_.addAllMessages(values); @@ -814,8 +746,6 @@ public Builder addAllRuleSets( return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -833,8 +763,6 @@ public Builder clearRuleSets() { return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -852,44 +780,39 @@ public Builder removeRuleSets(int index) { return this; } /** - * - * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public com.google.cloud.contentwarehouse.v1.RuleSet.Builder getRuleSetsBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.RuleSet.Builder getRuleSetsBuilder( + int index) { return getRuleSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilder( + int index) { if (ruleSetsBuilder_ == null) { - return ruleSets_.get(index); - } else { + return ruleSets_.get(index); } else { return ruleSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public java.util.List - getRuleSetsOrBuilderList() { + public java.util.List + getRuleSetsOrBuilderList() { if (ruleSetsBuilder_ != null) { return ruleSetsBuilder_.getMessageOrBuilderList(); } else { @@ -897,8 +820,6 @@ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilde } } /** - * - * *
      * The rule sets from the specified parent.
      * 
@@ -906,48 +827,42 @@ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilde * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ public com.google.cloud.contentwarehouse.v1.RuleSet.Builder addRuleSetsBuilder() { - return getRuleSetsFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()); + return getRuleSetsFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()); } /** - * - * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public com.google.cloud.contentwarehouse.v1.RuleSet.Builder addRuleSetsBuilder(int index) { - return getRuleSetsFieldBuilder() - .addBuilder(index, com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.RuleSet.Builder addRuleSetsBuilder( + int index) { + return getRuleSetsFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()); } /** - * - * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public java.util.List - getRuleSetsBuilderList() { + public java.util.List + getRuleSetsBuilderList() { return getRuleSetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, - com.google.cloud.contentwarehouse.v1.RuleSet.Builder, - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> + com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> getRuleSetsFieldBuilder() { if (ruleSetsBuilder_ == null) { - ruleSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, - com.google.cloud.contentwarehouse.v1.RuleSet.Builder, - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>( - ruleSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + ruleSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>( + ruleSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); ruleSets_ = null; } return ruleSetsBuilder_; @@ -955,21 +870,19 @@ public com.google.cloud.contentwarehouse.v1.RuleSet.Builder addRuleSetsBuilder(i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -978,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `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() { + 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 { @@ -1001,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `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() { @@ -1041,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `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(); - } + 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); } @@ -1075,12 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListRuleSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListRuleSetsResponse) private static final com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse(); } @@ -1089,27 +990,27 @@ public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuleSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListRuleSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java similarity index 68% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java index 57bd48d24250..e44a6c926e3f 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface ListRuleSetsResponseOrBuilder - extends +public interface ListRuleSetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListRuleSetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The rule sets from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - java.util.List getRuleSetsList(); + java.util.List + getRuleSetsList(); /** - * - * *
    * The rule sets from the specified parent.
    * 
@@ -44,8 +25,6 @@ public interface ListRuleSetsResponseOrBuilder */ com.google.cloud.contentwarehouse.v1.RuleSet getRuleSets(int index); /** - * - * *
    * The rule sets from the specified parent.
    * 
@@ -54,51 +33,43 @@ public interface ListRuleSetsResponseOrBuilder */ int getRuleSetsCount(); /** - * - * *
    * The rule sets from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - java.util.List + java.util.List getRuleSetsOrBuilderList(); /** - * - * *
    * The rule sets from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `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, which can be sent as `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(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java index 580a68d6cc65..3ae9b962da0a 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.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/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for SynonymSetService.ListSynonymSets.
  * Will return all synonymSets belonging to the customer project.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.ListSynonymSetsRequest}
  */
-public final class ListSynonymSetsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListSynonymSetsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListSynonymSetsRequest)
     ListSynonymSetsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListSynonymSetsRequest.newBuilder() to construct.
   private ListSynonymSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListSynonymSetsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -45,41 +27,34 @@ private ListSynonymSetsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListSynonymSetsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-        .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-        .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.class,
-            com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.Builder.class);
+            com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.class, com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 @@ -88,32 +63,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 name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 { @@ -124,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of synonymSets to return. The service may return
    * fewer than this value.
@@ -134,7 +105,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -143,12 +113,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 `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
@@ -158,7 +125,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -167,15 +133,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 `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
@@ -185,15 +150,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 { @@ -202,7 +168,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +179,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_); } @@ -237,7 +203,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_); @@ -250,17 +217,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.contentwarehouse.v1.ListSynonymSetsRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest other = - (com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) obj; + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest other = (com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) 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; } @@ -284,104 +253,98 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest 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.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest 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.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 SynonymSetService.ListSynonymSets.
    * Will return all synonymSets belonging to the customer project.
@@ -389,32 +352,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.ListSynonymSetsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListSynonymSetsRequest)
       com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-          .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-          .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.class,
-              com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.Builder.class);
+              com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.class, com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.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();
@@ -426,9 +390,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-          .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -447,11 +411,8 @@ public com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest buildPartial() {
-      com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest result =
-          new com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest result = new com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -473,39 +434,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListSynonymSetsR
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListSynonymSetsRequest) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -513,8 +473,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest other) {
-      if (other == com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -554,31 +513,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) {
@@ -588,28 +543,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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; @@ -618,24 +568,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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 { @@ -643,41 +590,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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 name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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() { @@ -687,24 +623,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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; @@ -712,10 +642,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of synonymSets to return. The service may return
      * fewer than this value.
@@ -724,7 +652,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -732,8 +659,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of synonymSets to return. The service may return
      * fewer than this value.
@@ -742,7 +667,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -754,8 +678,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of synonymSets to return. The service may return
      * fewer than this value.
@@ -764,7 +686,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -776,8 +697,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -787,13 +706,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; @@ -802,8 +721,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -813,14 +730,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 { @@ -828,8 +746,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -839,22 +755,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 `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -864,7 +776,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -874,8 +785,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -885,23 +794,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); } @@ -911,12 +818,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) private static final com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest(); } @@ -925,27 +832,27 @@ public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSynonymSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListSynonymSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -960,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java similarity index 62% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java index ebf17095d259..f22dbb66e1e6 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.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/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface ListSynonymSetsRequestOrBuilder - extends +public interface ListSynonymSetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 synonymSets to return. The service may return
    * fewer than this value.
@@ -65,14 +38,11 @@ public interface ListSynonymSetsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
@@ -82,13 +52,10 @@ public interface ListSynonymSetsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
@@ -98,8 +65,8 @@ public interface ListSynonymSetsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java similarity index 72% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java index 154241e602d4..02b0480a8246 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.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/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Response message for SynonymSetService.ListSynonymSets.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListSynonymSetsResponse} */ -public final class ListSynonymSetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSynonymSetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) ListSynonymSetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSynonymSetsResponse.newBuilder() to construct. private ListSynonymSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSynonymSetsResponse() { synonymSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListSynonymSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSynonymSetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.class, - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.class, com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.Builder.class); } public static final int SYNONYM_SETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List synonymSets_; /** - * - * *
    * The synonymSets from the specified parent.
    * 
@@ -81,8 +59,6 @@ public java.util.List getSynony return synonymSets_; } /** - * - * *
    * The synonymSets from the specified parent.
    * 
@@ -90,13 +66,11 @@ public java.util.List getSynony * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSynonymSetsOrBuilderList() { return synonymSets_; } /** - * - * *
    * The synonymSets from the specified parent.
    * 
@@ -108,8 +82,6 @@ public int getSynonymSetsCount() { return synonymSets_.size(); } /** - * - * *
    * The synonymSets from the specified parent.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSets(int index) return synonymSets_.get(index); } /** - * - * *
    * The synonymSets from the specified parent.
    * 
@@ -136,19 +106,15 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent 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 { @@ -189,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +166,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 < synonymSets_.size(); i++) { output.writeMessage(1, synonymSets_.get(i)); } @@ -218,7 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < synonymSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, synonymSets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, synonymSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -231,16 +198,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.contentwarehouse.v1.ListSynonymSetsResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse other = - (com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) obj; + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse other = (com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) obj; - if (!getSynonymSetsList().equals(other.getSynonymSetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSynonymSetsList() + .equals(other.getSynonymSetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +232,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse 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.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse 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.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 SynonymSetService.ListSynonymSets.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListSynonymSetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.class, - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.class, com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.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(); @@ -410,14 +373,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.getDefaultInstance(); } @@ -432,18 +394,14 @@ public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse result = - new com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse(this); + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse result = new com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse result) { if (synonymSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { synonymSets_ = java.util.Collections.unmodifiableList(synonymSets_); @@ -455,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -467,39 +424,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.contentwarehouse.v1.ListSynonymSetsResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse)other); } else { super.mergeFrom(other); return this; @@ -507,9 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse other) { - if (other - == com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.getDefaultInstance()) return this; if (synonymSetsBuilder_ == null) { if (!other.synonymSets_.isEmpty()) { if (synonymSets_.isEmpty()) { @@ -528,10 +482,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRes synonymSetsBuilder_ = null; synonymSets_ = other.synonymSets_; bitField0_ = (bitField0_ & ~0x00000001); - synonymSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSynonymSetsFieldBuilder() - : null; + synonymSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSynonymSetsFieldBuilder() : null; } else { synonymSetsBuilder_.addAllMessages(other.synonymSets_); } @@ -568,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.SynonymSet m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.SynonymSet.parser(), - extensionRegistry); - if (synonymSetsBuilder_ == null) { - ensureSynonymSetsIsMutable(); - synonymSets_.add(m); - } else { - synonymSetsBuilder_.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.contentwarehouse.v1.SynonymSet m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.SynonymSet.parser(), + extensionRegistry); + if (synonymSetsBuilder_ == null) { + ensureSynonymSetsIsMutable(); + synonymSets_.add(m); + } else { + synonymSetsBuilder_.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) { @@ -604,29 +554,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List synonymSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSynonymSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - synonymSets_ = - new java.util.ArrayList(synonymSets_); + synonymSets_ = new java.util.ArrayList(synonymSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, - com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> - synonymSetsBuilder_; + com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> synonymSetsBuilder_; /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -641,8 +583,6 @@ public java.util.List getSynony } } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -657,8 +597,6 @@ public int getSynonymSetsCount() { } } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -673,8 +611,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSets(int index) } } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -696,8 +632,6 @@ public Builder setSynonymSets( return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -716,8 +650,6 @@ public Builder setSynonymSets( return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -738,8 +670,6 @@ public Builder addSynonymSets(com.google.cloud.contentwarehouse.v1.SynonymSet va return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -761,8 +691,6 @@ public Builder addSynonymSets( return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -781,8 +709,6 @@ public Builder addSynonymSets( return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -801,8 +727,6 @@ public Builder addSynonymSets( return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -813,7 +737,8 @@ public Builder addAllSynonymSets( java.lang.Iterable values) { if (synonymSetsBuilder_ == null) { ensureSynonymSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, synonymSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, synonymSets_); onChanged(); } else { synonymSetsBuilder_.addAllMessages(values); @@ -821,8 +746,6 @@ public Builder addAllSynonymSets( return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -840,8 +763,6 @@ public Builder clearSynonymSets() { return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -859,8 +780,6 @@ public Builder removeSynonymSets(int index) { return this; } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -872,8 +791,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetsBui return getSynonymSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -883,22 +800,19 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetsBui public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOrBuilder( int index) { if (synonymSetsBuilder_ == null) { - return synonymSets_.get(index); - } else { + return synonymSets_.get(index); } else { return synonymSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The synonymSets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ - public java.util.List - getSynonymSetsOrBuilderList() { + public java.util.List + getSynonymSetsOrBuilderList() { if (synonymSetsBuilder_ != null) { return synonymSetsBuilder_.getMessageOrBuilderList(); } else { @@ -906,8 +820,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOr } } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -915,12 +827,10 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOr * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder addSynonymSetsBuilder() { - return getSynonymSetsFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()); + return getSynonymSetsFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()); } /** - * - * *
      * The synonymSets from the specified parent.
      * 
@@ -929,35 +839,30 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder addSynonymSetsBui */ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder addSynonymSetsBuilder( int index) { - return getSynonymSetsFieldBuilder() - .addBuilder(index, com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()); + return getSynonymSetsFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()); } /** - * - * *
      * The synonymSets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ - public java.util.List - getSynonymSetsBuilderList() { + public java.util.List + getSynonymSetsBuilderList() { return getSynonymSetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, - com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> + com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> getSynonymSetsFieldBuilder() { if (synonymSetsBuilder_ == null) { - synonymSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, - com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder>( - synonymSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + synonymSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder>( + synonymSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); synonymSets_ = null; } return synonymSetsBuilder_; @@ -965,21 +870,19 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder addSynonymSetsBui private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent 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; @@ -988,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent 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,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent 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; } /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1051,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent 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); } @@ -1085,13 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) - private static final com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse(); } @@ -1100,27 +990,27 @@ public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSynonymSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListSynonymSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java similarity index 70% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java index 14b05e3bc221..c3642c5949d1 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.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/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface ListSynonymSetsResponseOrBuilder - extends +public interface ListSynonymSetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The synonymSets from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ - java.util.List getSynonymSetsList(); + java.util.List + getSynonymSetsList(); /** - * - * *
    * The synonymSets from the specified parent.
    * 
@@ -44,8 +25,6 @@ public interface ListSynonymSetsResponseOrBuilder */ com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSets(int index); /** - * - * *
    * The synonymSets from the specified parent.
    * 
@@ -54,51 +33,43 @@ public interface ListSynonymSetsResponseOrBuilder */ int getSynonymSetsCount(); /** - * - * *
    * The synonymSets from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ - java.util.List + java.util.List getSynonymSetsOrBuilderList(); /** - * - * *
    * The synonymSets from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOrBuilder( + int index); /** - * - * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent 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-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java similarity index 67% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java index 4d4b45988f38..db57b2c90ee9 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentService.LockDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.LockDocumentRequest} */ -public final class LockDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LockDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.LockDocumentRequest) LockDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LockDocumentRequest.newBuilder() to construct. private LockDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LockDocumentRequest() { name_ = ""; collectionId_ = ""; @@ -44,42 +26,35 @@ private LockDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LockDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.LockDocumentRequest.class, - com.google.cloud.contentwarehouse.v1.LockDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.LockDocumentRequest.class, com.google.cloud.contentwarehouse.v1.LockDocumentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the document to lock.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{document}.
    * 
* - * - * 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,33 +63,31 @@ 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 name of the document to lock.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{document}.
    * 
* - * - * 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 { @@ -123,18 +96,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int COLLECTION_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object collectionId_ = ""; /** - * - * *
    * The collection the document connects to.
    * 
* * string collection_id = 2; - * * @return The collectionId. */ @java.lang.Override @@ -143,29 +112,29 @@ public java.lang.String getCollectionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collectionId_ = s; return s; } } /** - * - * *
    * The collection the document connects to.
    * 
* * string collection_id = 2; - * * @return The bytes for collectionId. */ @java.lang.Override - public com.google.protobuf.ByteString getCollectionIdBytes() { + public com.google.protobuf.ByteString + getCollectionIdBytes() { java.lang.Object ref = collectionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); collectionId_ = b; return b; } else { @@ -176,14 +145,11 @@ public com.google.protobuf.ByteString getCollectionIdBytes() { public static final int LOCKING_USER_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.UserInfo lockingUser_; /** - * - * *
    * The user information who locks the document.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; - * * @return Whether the lockingUser field is set. */ @java.lang.Override @@ -191,25 +157,18 @@ public boolean hasLockingUser() { return lockingUser_ != null; } /** - * - * *
    * The user information who locks the document.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; - * * @return The lockingUser. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfo getLockingUser() { - return lockingUser_ == null - ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() - : lockingUser_; + return lockingUser_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : lockingUser_; } /** - * - * *
    * The user information who locks the document.
    * 
@@ -218,13 +177,10 @@ public com.google.cloud.contentwarehouse.v1.UserInfo getLockingUser() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getLockingUserOrBuilder() { - return lockingUser_ == null - ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() - : lockingUser_; + return lockingUser_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : lockingUser_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,7 +192,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_); } @@ -262,7 +219,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, collectionId_); } if (lockingUser_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLockingUser()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLockingUser()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -272,19 +230,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.contentwarehouse.v1.LockDocumentRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.LockDocumentRequest other = - (com.google.cloud.contentwarehouse.v1.LockDocumentRequest) obj; + com.google.cloud.contentwarehouse.v1.LockDocumentRequest other = (com.google.cloud.contentwarehouse.v1.LockDocumentRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getCollectionId().equals(other.getCollectionId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCollectionId() + .equals(other.getCollectionId())) return false; if (hasLockingUser() != other.hasLockingUser()) return false; if (hasLockingUser()) { - if (!getLockingUser().equals(other.getLockingUser())) return false; + if (!getLockingUser() + .equals(other.getLockingUser())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -311,136 +271,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest 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.contentwarehouse.v1.LockDocumentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest 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.contentwarehouse.v1.LockDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.LockDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.LockDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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.LockDocument.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.LockDocumentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.LockDocumentRequest) com.google.cloud.contentwarehouse.v1.LockDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.LockDocumentRequest.class, - com.google.cloud.contentwarehouse.v1.LockDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.LockDocumentRequest.class, com.google.cloud.contentwarehouse.v1.LockDocumentRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.LockDocumentRequest.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(); @@ -456,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; } @java.lang.Override @@ -477,11 +432,8 @@ public com.google.cloud.contentwarehouse.v1.LockDocumentRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.LockDocumentRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.LockDocumentRequest result = - new com.google.cloud.contentwarehouse.v1.LockDocumentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.LockDocumentRequest result = new com.google.cloud.contentwarehouse.v1.LockDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -495,8 +447,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.LockDocumentRequ result.collectionId_ = collectionId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.lockingUser_ = - lockingUserBuilder_ == null ? lockingUser_ : lockingUserBuilder_.build(); + result.lockingUser_ = lockingUserBuilder_ == null + ? lockingUser_ + : lockingUserBuilder_.build(); } } @@ -504,39 +457,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.LockDocumentRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.LockDocumentRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.LockDocumentRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.LockDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -544,8 +496,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.LockDocumentRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.LockDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.LockDocumentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -585,31 +536,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - collectionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getLockingUserFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - 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: { + collectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getLockingUserFieldBuilder().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) { @@ -619,29 +568,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document to lock.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{document}.
      * 
* - * - * 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; @@ -650,25 +594,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document to lock.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{document}.
      * 
* - * - * 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 { @@ -676,43 +617,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document to lock.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{document}.
      * 
* - * - * 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 name of the document to lock.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{document}.
      * 
* - * - * 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() { @@ -722,25 +652,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the document to lock.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{document}.
      * 
* - * - * 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; @@ -750,20 +674,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object collectionId_ = ""; /** - * - * *
      * The collection the document connects to.
      * 
* * string collection_id = 2; - * * @return The collectionId. */ public java.lang.String getCollectionId() { java.lang.Object ref = collectionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collectionId_ = s; return s; @@ -772,21 +694,20 @@ public java.lang.String getCollectionId() { } } /** - * - * *
      * The collection the document connects to.
      * 
* * string collection_id = 2; - * * @return The bytes for collectionId. */ - public com.google.protobuf.ByteString getCollectionIdBytes() { + public com.google.protobuf.ByteString + getCollectionIdBytes() { java.lang.Object ref = collectionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); collectionId_ = b; return b; } else { @@ -794,35 +715,28 @@ public com.google.protobuf.ByteString getCollectionIdBytes() { } } /** - * - * *
      * The collection the document connects to.
      * 
* * string collection_id = 2; - * * @param value The collectionId to set. * @return This builder for chaining. */ - public Builder setCollectionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCollectionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } collectionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The collection the document connects to.
      * 
* * string collection_id = 2; - * * @return This builder for chaining. */ public Builder clearCollectionId() { @@ -832,21 +746,17 @@ public Builder clearCollectionId() { return this; } /** - * - * *
      * The collection the document connects to.
      * 
* * string collection_id = 2; - * * @param value The bytes for collectionId to set. * @return This builder for chaining. */ - public Builder setCollectionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCollectionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collectionId_ = value; bitField0_ |= 0x00000002; @@ -856,47 +766,34 @@ public Builder setCollectionIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.UserInfo lockingUser_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, - com.google.cloud.contentwarehouse.v1.UserInfo.Builder, - com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> - lockingUserBuilder_; + com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> lockingUserBuilder_; /** - * - * *
      * The user information who locks the document.
      * 
* * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; - * * @return Whether the lockingUser field is set. */ public boolean hasLockingUser() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The user information who locks the document.
      * 
* * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; - * * @return The lockingUser. */ public com.google.cloud.contentwarehouse.v1.UserInfo getLockingUser() { if (lockingUserBuilder_ == null) { - return lockingUser_ == null - ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() - : lockingUser_; + return lockingUser_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : lockingUser_; } else { return lockingUserBuilder_.getMessage(); } } /** - * - * *
      * The user information who locks the document.
      * 
@@ -917,8 +814,6 @@ public Builder setLockingUser(com.google.cloud.contentwarehouse.v1.UserInfo valu return this; } /** - * - * *
      * The user information who locks the document.
      * 
@@ -937,8 +832,6 @@ public Builder setLockingUser( return this; } /** - * - * *
      * The user information who locks the document.
      * 
@@ -947,9 +840,9 @@ public Builder setLockingUser( */ public Builder mergeLockingUser(com.google.cloud.contentwarehouse.v1.UserInfo value) { if (lockingUserBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && lockingUser_ != null - && lockingUser_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + lockingUser_ != null && + lockingUser_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) { getLockingUserBuilder().mergeFrom(value); } else { lockingUser_ = value; @@ -962,8 +855,6 @@ public Builder mergeLockingUser(com.google.cloud.contentwarehouse.v1.UserInfo va return this; } /** - * - * *
      * The user information who locks the document.
      * 
@@ -981,8 +872,6 @@ public Builder clearLockingUser() { return this; } /** - * - * *
      * The user information who locks the document.
      * 
@@ -995,8 +884,6 @@ public com.google.cloud.contentwarehouse.v1.UserInfo.Builder getLockingUserBuild return getLockingUserFieldBuilder().getBuilder(); } /** - * - * *
      * The user information who locks the document.
      * 
@@ -1007,14 +894,11 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getLockingUserOrBu if (lockingUserBuilder_ != null) { return lockingUserBuilder_.getMessageOrBuilder(); } else { - return lockingUser_ == null - ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() - : lockingUser_; + return lockingUser_ == null ? + com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : lockingUser_; } } /** - * - * *
      * The user information who locks the document.
      * 
@@ -1022,24 +906,21 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getLockingUserOrBu * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, - com.google.cloud.contentwarehouse.v1.UserInfo.Builder, - com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> getLockingUserFieldBuilder() { if (lockingUserBuilder_ == null) { - lockingUserBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, - com.google.cloud.contentwarehouse.v1.UserInfo.Builder, - com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>( - getLockingUser(), getParentForChildren(), isClean()); + lockingUserBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>( + getLockingUser(), + getParentForChildren(), + isClean()); lockingUser_ = null; } return lockingUserBuilder_; } - @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); } @@ -1049,12 +930,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.LockDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.LockDocumentRequest) private static final com.google.cloud.contentwarehouse.v1.LockDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.LockDocumentRequest(); } @@ -1063,27 +944,27 @@ public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LockDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 LockDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1098,4 +979,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.LockDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java index 7bcdd9ec3b24..322f746a7ecc 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java @@ -1,113 +1,75 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface LockDocumentRequestOrBuilder - extends +public interface LockDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.LockDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the document to lock.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{document}.
    * 
* - * - * 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 name of the document to lock.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{document}.
    * 
* - * - * 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(); /** - * - * *
    * The collection the document connects to.
    * 
* * string collection_id = 2; - * * @return The collectionId. */ java.lang.String getCollectionId(); /** - * - * *
    * The collection the document connects to.
    * 
* * string collection_id = 2; - * * @return The bytes for collectionId. */ - com.google.protobuf.ByteString getCollectionIdBytes(); + com.google.protobuf.ByteString + getCollectionIdBytes(); /** - * - * *
    * The user information who locks the document.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; - * * @return Whether the lockingUser field is set. */ boolean hasLockingUser(); /** - * - * *
    * The user information who locks the document.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; - * * @return The lockingUser. */ com.google.cloud.contentwarehouse.v1.UserInfo getLockingUser(); /** - * - * *
    * The user information who locks the document.
    * 
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java similarity index 59% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java index 56484fc3f894..0e6aa007ff15 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Map property value.
  * Represents a structured entries of key value pairs, consisting of field names
@@ -29,84 +12,77 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.MapProperty}
  */
-public final class MapProperty extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MapProperty extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.MapProperty)
     MapPropertyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MapProperty.newBuilder() to construct.
   private MapProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private MapProperty() {}
+  private MapProperty() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MapProperty();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.DocumentProto
-        .internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 1:
         return internalGetFields();
       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.contentwarehouse.v1.DocumentProto
-        .internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.MapProperty.class,
-            com.google.cloud.contentwarehouse.v1.MapProperty.Builder.class);
+            com.google.cloud.contentwarehouse.v1.MapProperty.class, com.google.cloud.contentwarehouse.v1.MapProperty.Builder.class);
   }
 
   public static final int FIELDS_FIELD_NUMBER = 1;
-
   private static final class FieldsDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.contentwarehouse.v1.Value>
-        defaultEntry =
+        java.lang.String, com.google.cloud.contentwarehouse.v1.Value> defaultEntry =
             com.google.protobuf.MapEntry
-                .newDefaultInstance(
-                    com.google.cloud.contentwarehouse.v1.DocumentProto
-                        .internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor,
-                    com.google.protobuf.WireFormat.FieldType.STRING,
-                    "",
-                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                    com.google.cloud.contentwarehouse.v1.Value.getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.contentwarehouse.v1.Value.getDefaultInstance());
   }
-
   @SuppressWarnings("serial")
+  private com.google.protobuf.MapField<
+      java.lang.String, com.google.cloud.contentwarehouse.v1.Value> fields_;
   private com.google.protobuf.MapField
-      fields_;
-
-  private com.google.protobuf.MapField
-      internalGetFields() {
+  internalGetFields() {
     if (fields_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          FieldsDefaultEntryHolder.defaultEntry);
     }
     return fields_;
   }
-
   public int getFieldsCount() {
     return internalGetFields().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Unordered map of dynamically typed values.
    * 
@@ -114,21 +90,20 @@ public int getFieldsCount() { * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public boolean containsFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsFields( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetFields().getMap().containsKey(key); } - /** Use {@link #getFieldsMap()} instead. */ + /** + * Use {@link #getFieldsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFields() { return getFieldsMap(); } /** - * - * *
    * Unordered map of dynamically typed values.
    * 
@@ -136,13 +111,10 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public java.util.Map - getFieldsMap() { + public java.util.Map getFieldsMap() { return internalGetFields().getMap(); } /** - * - * *
    * Unordered map of dynamically typed values.
    * 
@@ -150,20 +122,17 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public /* nullable */ com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( + public /* nullable */ +com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.contentwarehouse.v1.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.contentwarehouse.v1.Value defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFields().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Unordered map of dynamically typed values.
    * 
@@ -171,10 +140,9 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFields().getMap(); if (!map.containsKey(key)) { @@ -184,7 +152,6 @@ public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow(java.lang.Str } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,9 +163,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetFields(), + FieldsDefaultEntryHolder.defaultEntry, + 1); getUnknownFields().writeTo(output); } @@ -208,16 +180,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetFields().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetFields().getMap().entrySet()) { com.google.protobuf.MapEntry - fields__ = - FieldsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields__); + fields__ = FieldsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fields__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -227,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.MapProperty)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.MapProperty other = - (com.google.cloud.contentwarehouse.v1.MapProperty) obj; + com.google.cloud.contentwarehouse.v1.MapProperty other = (com.google.cloud.contentwarehouse.v1.MapProperty) obj; - if (!internalGetFields().equals(other.internalGetFields())) return false; + if (!internalGetFields().equals( + other.internalGetFields())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,104 +227,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MapProperty parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.MapProperty parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.MapProperty 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.contentwarehouse.v1.MapProperty parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.MapProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Map property value.
    * Represents a structured entries of key value pairs, consisting of field names
@@ -362,52 +328,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.MapProperty}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.MapProperty)
       com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.DocumentProto
-          .internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetFields();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetMutableFields();
         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.contentwarehouse.v1.DocumentProto
-          .internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.MapProperty.class,
-              com.google.cloud.contentwarehouse.v1.MapProperty.Builder.class);
+              com.google.cloud.contentwarehouse.v1.MapProperty.class, com.google.cloud.contentwarehouse.v1.MapProperty.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.MapProperty.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 +386,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.DocumentProto
-          .internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor;
     }
 
     @java.lang.Override
@@ -438,11 +407,8 @@ public com.google.cloud.contentwarehouse.v1.MapProperty build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.MapProperty buildPartial() {
-      com.google.cloud.contentwarehouse.v1.MapProperty result =
-          new com.google.cloud.contentwarehouse.v1.MapProperty(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.contentwarehouse.v1.MapProperty result = new com.google.cloud.contentwarehouse.v1.MapProperty(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -459,39 +425,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.MapProperty 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.contentwarehouse.v1.MapProperty) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.MapProperty) other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.MapProperty)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -499,9 +464,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.MapProperty other) {
-      if (other == com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance())
-        return this;
-      internalGetMutableFields().mergeFrom(other.internalGetFields());
+      if (other == com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance()) return this;
+      internalGetMutableFields().mergeFrom(
+          other.internalGetFields());
       bitField0_ |= 0x00000001;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -529,27 +494,21 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.protobuf.MapEntry<
-                        java.lang.String, com.google.cloud.contentwarehouse.v1.Value>
-                    fields__ =
-                        input.readMessage(
-                            FieldsDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                internalGetMutableFields()
-                    .getMutableMap()
-                    .put(fields__.getKey(), fields__.getValue());
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.protobuf.MapEntry
+              fields__ = input.readMessage(
+                  FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableFields().getMutableMap().put(
+                  fields__.getKey(), fields__.getValue());
+              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) {
@@ -559,27 +518,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.contentwarehouse.v1.Value>
-        fields_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.contentwarehouse.v1.Value>
+        java.lang.String, com.google.cloud.contentwarehouse.v1.Value> fields_;
+    private com.google.protobuf.MapField
         internalGetFields() {
       if (fields_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            FieldsDefaultEntryHolder.defaultEntry);
       }
       return fields_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.contentwarehouse.v1.Value>
+    private com.google.protobuf.MapField
         internalGetMutableFields() {
       if (fields_ == null) {
-        fields_ = com.google.protobuf.MapField.newMapField(FieldsDefaultEntryHolder.defaultEntry);
+        fields_ = com.google.protobuf.MapField.newMapField(
+            FieldsDefaultEntryHolder.defaultEntry);
       }
       if (!fields_.isMutable()) {
         fields_ = fields_.copy();
@@ -588,13 +543,10 @@ public Builder mergeFrom(
       onChanged();
       return fields_;
     }
-
     public int getFieldsCount() {
       return internalGetFields().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Unordered map of dynamically typed values.
      * 
@@ -602,21 +554,20 @@ public int getFieldsCount() { * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public boolean containsFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsFields( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetFields().getMap().containsKey(key); } - /** Use {@link #getFieldsMap()} instead. */ + /** + * Use {@link #getFieldsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFields() { return getFieldsMap(); } /** - * - * *
      * Unordered map of dynamically typed values.
      * 
@@ -624,13 +575,10 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public java.util.Map - getFieldsMap() { + public java.util.Map getFieldsMap() { return internalGetFields().getMap(); } /** - * - * *
      * Unordered map of dynamically typed values.
      * 
@@ -638,20 +586,17 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public /* nullable */ com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( + public /* nullable */ +com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.contentwarehouse.v1.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.contentwarehouse.v1.Value defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFields().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Unordered map of dynamically typed values.
      * 
@@ -659,10 +604,9 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFields().getMap(); if (!map.containsKey(key)) { @@ -670,29 +614,29 @@ public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow(java.lang.Str } return map.get(key); } - public Builder clearFields() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableFields().getMutableMap().clear(); + internalGetMutableFields().getMutableMap() + .clear(); return this; } /** - * - * *
      * Unordered map of dynamically typed values.
      * 
* * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ - public Builder removeFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableFields().getMutableMap().remove(key); + public Builder removeFields( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableFields().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableFields() { @@ -700,8 +644,6 @@ public Builder removeFields(java.lang.String key) { return internalGetMutableFields().getMutableMap(); } /** - * - * *
      * Unordered map of dynamically typed values.
      * 
@@ -709,20 +651,16 @@ public Builder removeFields(java.lang.String key) { * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ public Builder putFields( - java.lang.String key, com.google.cloud.contentwarehouse.v1.Value value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableFields().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.contentwarehouse.v1.Value value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableFields().getMutableMap() + .put(key, value); bitField0_ |= 0x00000001; return this; } /** - * - * *
      * Unordered map of dynamically typed values.
      * 
@@ -731,13 +669,14 @@ public Builder putFields( */ public Builder putAllFields( java.util.Map values) { - internalGetMutableFields().getMutableMap().putAll(values); + internalGetMutableFields().getMutableMap() + .putAll(values); bitField0_ |= 0x00000001; 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); } @@ -747,12 +686,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.MapProperty) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.MapProperty) private static final com.google.cloud.contentwarehouse.v1.MapProperty DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.MapProperty(); } @@ -761,27 +700,27 @@ public static com.google.cloud.contentwarehouse.v1.MapProperty getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 MapProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -796,4 +735,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.MapProperty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java similarity index 57% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java index 48f80021d7d1..c63f7710da4c 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface MapPropertyOrBuilder - extends +public interface MapPropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.MapProperty) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Unordered map of dynamically typed values.
    * 
@@ -34,31 +16,30 @@ public interface MapPropertyOrBuilder */ int getFieldsCount(); /** - * - * *
    * Unordered map of dynamically typed values.
    * 
* * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ - boolean containsFields(java.lang.String key); - /** Use {@link #getFieldsMap()} instead. */ + boolean containsFields( + java.lang.String key); + /** + * Use {@link #getFieldsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getFields(); + java.util.Map + getFields(); /** - * - * *
    * Unordered map of dynamically typed values.
    * 
* * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ - java.util.Map getFieldsMap(); + java.util.Map + getFieldsMap(); /** - * - * *
    * Unordered map of dynamically typed values.
    * 
@@ -66,18 +47,17 @@ public interface MapPropertyOrBuilder * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ /* nullable */ - com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( +com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.contentwarehouse.v1.Value defaultValue); +com.google.cloud.contentwarehouse.v1.Value defaultValue); /** - * - * *
    * Unordered map of dynamically typed values.
    * 
* * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ - com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow(java.lang.String key); + com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow( + java.lang.String key); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java index 28f72df84518..b594542de9a9 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java @@ -1,67 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Configurations for a Map property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.MapTypeOptions} */ -public final class MapTypeOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MapTypeOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.MapTypeOptions) MapTypeOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MapTypeOptions.newBuilder() to construct. private MapTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private MapTypeOptions() {} + private MapTypeOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MapTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.MapTypeOptions.class, - com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.MapTypeOptions.class, com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -73,7 +54,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 { getUnknownFields().writeTo(output); } @@ -91,13 +73,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.contentwarehouse.v1.MapTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.MapTypeOptions other = - (com.google.cloud.contentwarehouse.v1.MapTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.MapTypeOptions other = (com.google.cloud.contentwarehouse.v1.MapTypeOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -116,135 +97,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.MapTypeOptions 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.contentwarehouse.v1.MapTypeOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.MapTypeOptions 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.contentwarehouse.v1.MapTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.MapTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Configurations for a Map property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.MapTypeOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.MapTypeOptions) com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.MapTypeOptions.class, - com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.MapTypeOptions.class, com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.MapTypeOptions.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(); @@ -252,9 +229,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; } @java.lang.Override @@ -273,8 +250,7 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.MapTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.MapTypeOptions result = - new com.google.cloud.contentwarehouse.v1.MapTypeOptions(this); + com.google.cloud.contentwarehouse.v1.MapTypeOptions result = new com.google.cloud.contentwarehouse.v1.MapTypeOptions(this); onBuilt(); return result; } @@ -283,39 +259,38 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.MapTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.MapTypeOptions) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.MapTypeOptions)other); } else { super.mergeFrom(other); return this; @@ -323,8 +298,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.MapTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -351,13 +325,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -367,9 +340,9 @@ public Builder mergeFrom( } // finally 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); } @@ -379,12 +352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.MapTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.MapTypeOptions) private static final com.google.cloud.contentwarehouse.v1.MapTypeOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.MapTypeOptions(); } @@ -393,27 +366,27 @@ public static com.google.cloud.contentwarehouse.v1.MapTypeOptions getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 MapTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -428,4 +401,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.MapTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..c58634f60b60 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface MapTypeOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.MapTypeOptions) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java similarity index 74% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java index 7b042121308f..80544ac68ca4 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Options for merging updated fields.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.MergeFieldsOptions} */ -public final class MergeFieldsOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MergeFieldsOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.MergeFieldsOptions) MergeFieldsOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MergeFieldsOptions.newBuilder() to construct. private MergeFieldsOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private MergeFieldsOptions() {} + private MergeFieldsOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MergeFieldsOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.class, - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.class, com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder.class); } private int bitField0_; public static final int REPLACE_MESSAGE_FIELDS_FIELD_NUMBER = 1; private boolean replaceMessageFields_ = false; /** - * - * *
    * When merging message fields, the default behavior is to merge
    * the content of two message fields together. If you instead want to use
@@ -76,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * optional bool replace_message_fields = 1; - * * @return Whether the replaceMessageFields field is set. */ @java.lang.Override @@ -84,8 +63,6 @@ public boolean hasReplaceMessageFields() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * When merging message fields, the default behavior is to merge
    * the content of two message fields together. If you instead want to use
@@ -96,7 +73,6 @@ public boolean hasReplaceMessageFields() {
    * 
* * optional bool replace_message_fields = 1; - * * @return The replaceMessageFields. */ @java.lang.Override @@ -107,8 +83,6 @@ public boolean getReplaceMessageFields() { public static final int REPLACE_REPEATED_FIELDS_FIELD_NUMBER = 2; private boolean replaceRepeatedFields_ = false; /** - * - * *
    * When merging repeated fields, the default behavior is to append
    * entries from the source repeated field to the destination repeated field.
@@ -122,7 +96,6 @@ public boolean getReplaceMessageFields() {
    * 
* * optional bool replace_repeated_fields = 2; - * * @return Whether the replaceRepeatedFields field is set. */ @java.lang.Override @@ -130,8 +103,6 @@ public boolean hasReplaceRepeatedFields() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * When merging repeated fields, the default behavior is to append
    * entries from the source repeated field to the destination repeated field.
@@ -145,7 +116,6 @@ public boolean hasReplaceRepeatedFields() {
    * 
* * optional bool replace_repeated_fields = 2; - * * @return The replaceRepeatedFields. */ @java.lang.Override @@ -154,7 +124,6 @@ public boolean getReplaceRepeatedFields() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,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 (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, replaceMessageFields_); } @@ -183,10 +153,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, replaceMessageFields_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, replaceMessageFields_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, replaceRepeatedFields_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, replaceRepeatedFields_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -196,21 +168,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.contentwarehouse.v1.MergeFieldsOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions other = - (com.google.cloud.contentwarehouse.v1.MergeFieldsOptions) obj; + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions other = (com.google.cloud.contentwarehouse.v1.MergeFieldsOptions) obj; if (hasReplaceMessageFields() != other.hasReplaceMessageFields()) return false; if (hasReplaceMessageFields()) { - if (getReplaceMessageFields() != other.getReplaceMessageFields()) return false; + if (getReplaceMessageFields() + != other.getReplaceMessageFields()) return false; } if (hasReplaceRepeatedFields() != other.hasReplaceRepeatedFields()) return false; if (hasReplaceRepeatedFields()) { - if (getReplaceRepeatedFields() != other.getReplaceRepeatedFields()) return false; + if (getReplaceRepeatedFields() + != other.getReplaceRepeatedFields()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -225,11 +198,13 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); if (hasReplaceMessageFields()) { hash = (37 * hash) + REPLACE_MESSAGE_FIELDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReplaceMessageFields()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReplaceMessageFields()); } if (hasReplaceRepeatedFields()) { hash = (37 * hash) + REPLACE_REPEATED_FIELDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReplaceRepeatedFields()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReplaceRepeatedFields()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -237,136 +212,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions 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.contentwarehouse.v1.MergeFieldsOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions 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.contentwarehouse.v1.MergeFieldsOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.MergeFieldsOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Options for merging updated fields.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.MergeFieldsOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.MergeFieldsOptions) com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.class, - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.class, com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.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(); @@ -377,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; } @java.lang.Override @@ -398,11 +368,8 @@ public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions result = - new com.google.cloud.contentwarehouse.v1.MergeFieldsOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions result = new com.google.cloud.contentwarehouse.v1.MergeFieldsOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -425,39 +392,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.MergeFieldsOptio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.MergeFieldsOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.MergeFieldsOptions) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.MergeFieldsOptions)other); } else { super.mergeFrom(other); return this; @@ -465,8 +431,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.MergeFieldsOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance()) return this; if (other.hasReplaceMessageFields()) { setReplaceMessageFields(other.getReplaceMessageFields()); } @@ -499,25 +464,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - replaceMessageFields_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - replaceRepeatedFields_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + replaceMessageFields_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + replaceRepeatedFields_ = 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) { @@ -527,13 +489,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean replaceMessageFields_; + private boolean replaceMessageFields_ ; /** - * - * *
      * When merging message fields, the default behavior is to merge
      * the content of two message fields together. If you instead want to use
@@ -544,7 +503,6 @@ public Builder mergeFrom(
      * 
* * optional bool replace_message_fields = 1; - * * @return Whether the replaceMessageFields field is set. */ @java.lang.Override @@ -552,8 +510,6 @@ public boolean hasReplaceMessageFields() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * When merging message fields, the default behavior is to merge
      * the content of two message fields together. If you instead want to use
@@ -564,7 +520,6 @@ public boolean hasReplaceMessageFields() {
      * 
* * optional bool replace_message_fields = 1; - * * @return The replaceMessageFields. */ @java.lang.Override @@ -572,8 +527,6 @@ public boolean getReplaceMessageFields() { return replaceMessageFields_; } /** - * - * *
      * When merging message fields, the default behavior is to merge
      * the content of two message fields together. If you instead want to use
@@ -584,7 +537,6 @@ public boolean getReplaceMessageFields() {
      * 
* * optional bool replace_message_fields = 1; - * * @param value The replaceMessageFields to set. * @return This builder for chaining. */ @@ -596,8 +548,6 @@ public Builder setReplaceMessageFields(boolean value) { return this; } /** - * - * *
      * When merging message fields, the default behavior is to merge
      * the content of two message fields together. If you instead want to use
@@ -608,7 +558,6 @@ public Builder setReplaceMessageFields(boolean value) {
      * 
* * optional bool replace_message_fields = 1; - * * @return This builder for chaining. */ public Builder clearReplaceMessageFields() { @@ -618,10 +567,8 @@ public Builder clearReplaceMessageFields() { return this; } - private boolean replaceRepeatedFields_; + private boolean replaceRepeatedFields_ ; /** - * - * *
      * When merging repeated fields, the default behavior is to append
      * entries from the source repeated field to the destination repeated field.
@@ -635,7 +582,6 @@ public Builder clearReplaceMessageFields() {
      * 
* * optional bool replace_repeated_fields = 2; - * * @return Whether the replaceRepeatedFields field is set. */ @java.lang.Override @@ -643,8 +589,6 @@ public boolean hasReplaceRepeatedFields() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * When merging repeated fields, the default behavior is to append
      * entries from the source repeated field to the destination repeated field.
@@ -658,7 +602,6 @@ public boolean hasReplaceRepeatedFields() {
      * 
* * optional bool replace_repeated_fields = 2; - * * @return The replaceRepeatedFields. */ @java.lang.Override @@ -666,8 +609,6 @@ public boolean getReplaceRepeatedFields() { return replaceRepeatedFields_; } /** - * - * *
      * When merging repeated fields, the default behavior is to append
      * entries from the source repeated field to the destination repeated field.
@@ -681,7 +622,6 @@ public boolean getReplaceRepeatedFields() {
      * 
* * optional bool replace_repeated_fields = 2; - * * @param value The replaceRepeatedFields to set. * @return This builder for chaining. */ @@ -693,8 +633,6 @@ public Builder setReplaceRepeatedFields(boolean value) { return this; } /** - * - * *
      * When merging repeated fields, the default behavior is to append
      * entries from the source repeated field to the destination repeated field.
@@ -708,7 +646,6 @@ public Builder setReplaceRepeatedFields(boolean value) {
      * 
* * optional bool replace_repeated_fields = 2; - * * @return This builder for chaining. */ public Builder clearReplaceRepeatedFields() { @@ -717,9 +654,9 @@ public Builder clearReplaceRepeatedFields() { 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); } @@ -729,12 +666,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.MergeFieldsOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.MergeFieldsOptions) private static final com.google.cloud.contentwarehouse.v1.MergeFieldsOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.MergeFieldsOptions(); } @@ -743,27 +680,27 @@ public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MergeFieldsOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 MergeFieldsOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -778,4 +715,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java similarity index 80% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java index 8b089a4f20b5..c61943337768 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; -public interface MergeFieldsOptionsOrBuilder - extends +public interface MergeFieldsOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.MergeFieldsOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * When merging message fields, the default behavior is to merge
    * the content of two message fields together. If you instead want to use
@@ -36,13 +18,10 @@ public interface MergeFieldsOptionsOrBuilder
    * 
* * optional bool replace_message_fields = 1; - * * @return Whether the replaceMessageFields field is set. */ boolean hasReplaceMessageFields(); /** - * - * *
    * When merging message fields, the default behavior is to merge
    * the content of two message fields together. If you instead want to use
@@ -53,14 +32,11 @@ public interface MergeFieldsOptionsOrBuilder
    * 
* * optional bool replace_message_fields = 1; - * * @return The replaceMessageFields. */ boolean getReplaceMessageFields(); /** - * - * *
    * When merging repeated fields, the default behavior is to append
    * entries from the source repeated field to the destination repeated field.
@@ -74,13 +50,10 @@ public interface MergeFieldsOptionsOrBuilder
    * 
* * optional bool replace_repeated_fields = 2; - * * @return Whether the replaceRepeatedFields field is set. */ boolean hasReplaceRepeatedFields(); /** - * - * *
    * When merging repeated fields, the default behavior is to append
    * entries from the source repeated field to the destination repeated field.
@@ -94,7 +67,6 @@ public interface MergeFieldsOptionsOrBuilder
    * 
* * optional bool replace_repeated_fields = 2; - * * @return The replaceRepeatedFields. */ boolean getReplaceRepeatedFields(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java new file mode 100644 index 000000000000..621dec2acad1 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java @@ -0,0 +1,108 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/pipeline_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class PipelineServiceProto { + private PipelineServiceProto() {} + 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_contentwarehouse_v1_RunPipelineRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_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/contentwarehouse/v1/pipel" + + "ine_service.proto\022 google.cloud.contentw" + + "arehouse.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032-google/cloud/contentwarehouse/v1" + + "/common.proto\0320google/cloud/contentwareh" + + "ouse/v1/pipelines.proto\032#google/longrunn" + + "ing/operations.proto\"\272\004\n\022RunPipelineRequ" + + "est\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareh" + + "ouse.googleapis.com/Location\022R\n\023gcs_inge" + + "st_pipeline\030\002 \001(\01323.google.cloud.content" + + "warehouse.v1.GcsIngestPipelineH\000\022|\n*gcs_" + + "ingest_with_doc_ai_processors_pipeline\030\003" + + " \001(\0132F.google.cloud.contentwarehouse.v1." + + "GcsIngestWithDocAiProcessorsPipelineH\000\022T" + + "\n\023export_cdw_pipeline\030\004 \001(\01325.google.clo" + + "ud.contentwarehouse.v1.ExportToCdwPipeli" + + "neH\000\022b\n\034process_with_doc_ai_pipeline\030\005 \001" + + "(\0132:.google.cloud.contentwarehouse.v1.Pr" + + "ocessWithDocAiPipelineH\000\022K\n\020request_meta" + + "data\030\006 \001(\01321.google.cloud.contentwarehou" + + "se.v1.RequestMetadataB\n\n\010pipeline2\271\002\n\017Pi" + + "pelineService\022\320\001\n\013RunPipeline\0224.google.c" + + "loud.contentwarehouse.v1.RunPipelineRequ" + + "est\032\035.google.longrunning.Operation\"l\312A*\n" + + "\023RunPipelineResponse\022\023RunPipelineMetadat" + + "a\332A\004name\202\323\344\223\0022\"-/v1/{name=projects/*/loc" + + "ations/*}:runPipeline:\001*\032S\312A\037contentware" + + "house.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\374\001\n$com.go" + + "ogle.cloud.contentwarehouse.v1B\024Pipeline" + + "ServiceProtoP\001ZPcloud.google.com/go/cont" + + "entwarehouse/apiv1/contentwarehousepb;co" + + "ntentwarehousepb\252\002 Google.Cloud.ContentW" + + "arehouse.V1\312\002 Google\\Cloud\\ContentWareho" + + "use\\V1\352\002#Google::Cloud::ContentWarehouse" + + "::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.contentwarehouse.v1.CommonProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.PipelinesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor, + new java.lang.String[] { "Name", "GcsIngestPipeline", "GcsIngestWithDocAiProcessorsPipeline", "ExportCdwPipeline", "ProcessWithDocAiPipeline", "RequestMetadata", "Pipeline", }); + 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.contentwarehouse.v1.CommonProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.PipelinesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java new file mode 100644 index 000000000000..00a399939525 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java @@ -0,0 +1,255 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/pipelines.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class PipelinesProto { + private PipelinesProto() {} + 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_contentwarehouse_v1_RunPipelineResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_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/contentwarehouse/v1/pipel" + + "ines.proto\022 google.cloud.contentwarehous" + + "e.v1\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032-google/cloud/c" + + "ontentwarehouse/v1/common.proto\032\032google/" + + "iam/v1/policy.proto\032\027google/rpc/status.p" + + "roto\"\025\n\023RunPipelineResponse\"\372\007\n\023RunPipel" + + "ineMetadata\022\030\n\020total_file_count\030\001 \001(\005\022\031\n" + + "\021failed_file_count\030\002 \001(\005\022=\n\tuser_info\030\003 " + + "\001(\0132*.google.cloud.contentwarehouse.v1.U" + + "serInfo\022w\n\034gcs_ingest_pipeline_metadata\030" + + "\004 \001(\0132O.google.cloud.contentwarehouse.v1" + + ".RunPipelineMetadata.GcsIngestPipelineMe" + + "tadataH\000\022|\n\037export_to_cdw_pipeline_metad" + + "ata\030\006 \001(\0132Q.google.cloud.contentwarehous" + + "e.v1.RunPipelineMetadata.ExportToCdwPipe" + + "lineMetadataH\000\022\207\001\n%process_with_doc_ai_p" + + "ipeline_metadata\030\007 \001(\0132V.google.cloud.co" + + "ntentwarehouse.v1.RunPipelineMetadata.Pr" + + "ocessWithDocAiPipelineMetadataH\000\022t\n\034indi" + + "vidual_document_statuses\030\005 \003(\0132N.google." + + "cloud.contentwarehouse.v1.RunPipelineMet" + + "adata.IndividualDocumentStatus\032/\n\031GcsIng" + + "estPipelineMetadata\022\022\n\ninput_path\030\001 \001(\t\032" + + "]\n\033ExportToCdwPipelineMetadata\022\021\n\tdocume" + + "nts\030\001 \003(\t\022\026\n\016doc_ai_dataset\030\002 \001(\t\022\023\n\013out" + + "put_path\030\003 \001(\t\032~\n ProcessWithDocAiPipeli" + + "neMetadata\022\021\n\tdocuments\030\001 \003(\t\022G\n\016process" + + "or_info\030\002 \001(\0132/.google.cloud.contentware" + + "house.v1.ProcessorInfo\032S\n\030IndividualDocu" + + "mentStatus\022\023\n\013document_id\030\001 \001(\t\022\"\n\006statu" + + "s\030\002 \001(\0132\022.google.rpc.StatusB\023\n\021pipeline_" + + "metadata\"S\n\rProcessorInfo\022\026\n\016processor_n" + + "ame\030\001 \001(\t\022\025\n\rdocument_type\030\002 \001(\t\022\023\n\013sche" + + "ma_name\030\003 \001(\t\"\323\001\n\024IngestPipelineConfig\0222" + + "\n\023document_acl_policy\030\001 \001(\0132\025.google.iam" + + ".v1.Policy\022\'\n\037enable_document_text_extra" + + "ction\030\002 \001(\010\022\024\n\006folder\030\003 \001(\tB\004\342A\001\001\022H\n\016clo" + + "ud_function\030\004 \001(\tB0\372A-\n+cloudfunctions.g" + + "oogleapis.com/CloudFunction\"\314\001\n\021GcsInges" + + "tPipeline\022\022\n\ninput_path\030\001 \001(\t\022\023\n\013schema_" + + "name\030\002 \001(\t\022\026\n\016processor_type\030\003 \001(\t\022\037\n\027sk" + + "ip_ingested_documents\030\004 \001(\010\022U\n\017pipeline_" + + "config\030\005 \001(\01326.google.cloud.contentwareh" + + "ouse.v1.IngestPipelineConfigB\004\342A\001\001\"\203\003\n$G" + + "csIngestWithDocAiProcessorsPipeline\022\022\n\ni" + + "nput_path\030\001 \001(\t\022V\n\035split_classify_proces" + + "sor_info\030\002 \001(\0132/.google.cloud.contentwar" + + "ehouse.v1.ProcessorInfo\022P\n\027extract_proce" + + "ssor_infos\030\003 \003(\0132/.google.cloud.contentw" + + "arehouse.v1.ProcessorInfo\022%\n\035processor_r" + + "esults_folder_path\030\004 \001(\t\022\037\n\027skip_ingeste" + + "d_documents\030\005 \001(\010\022U\n\017pipeline_config\030\006 \001" + + "(\01326.google.cloud.contentwarehouse.v1.In" + + "gestPipelineConfigB\004\342A\001\001\"\200\001\n\023ExportToCdw" + + "Pipeline\022\021\n\tdocuments\030\001 \003(\t\022\032\n\022export_fo" + + "lder_path\030\002 \001(\t\022\034\n\016doc_ai_dataset\030\003 \001(\tB" + + "\004\342A\001\001\022\034\n\024training_split_ratio\030\004 \001(\002\"\271\001\n\030" + + "ProcessWithDocAiPipeline\022\021\n\tdocuments\030\001 " + + "\003(\t\022\032\n\022export_folder_path\030\002 \001(\t\022G\n\016proce" + + "ssor_info\030\003 \001(\0132/.google.cloud.contentwa" + + "rehouse.v1.ProcessorInfo\022%\n\035processor_re" + + "sults_folder_path\030\004 \001(\tB\344\002\n$com.google.c" + + "loud.contentwarehouse.v1B\016PipelinesProto" + + "P\001ZPcloud.google.com/go/contentwarehouse" + + "/apiv1/contentwarehousepb;contentwarehou" + + "sepb\252\002 Google.Cloud.ContentWarehouse.V1\312" + + "\002 Google\\Cloud\\ContentWarehouse\\V1\352\002#Goo" + + "gle::Cloud::ContentWarehouse::V1\352Ak\n+clo" + + "udfunctions.googleapis.com/CloudFunction" + + "\022 * The configuration of processing documents in Document Warehouse with DocAi * processors pipeline. @@ -28,51 +11,47 @@ * * Protobuf type {@code google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline} */ -public final class ProcessWithDocAiPipeline extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProcessWithDocAiPipeline extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) ProcessWithDocAiPipelineOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProcessWithDocAiPipeline.newBuilder() to construct. private ProcessWithDocAiPipeline(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProcessWithDocAiPipeline() { - documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); exportFolderPath_ = ""; processorResultsFolderPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProcessWithDocAiPipeline(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.class, - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder.class); + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.class, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder.class); } public static final int DOCUMENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -80,15 +59,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string documents = 1; - * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList getDocumentsList() { + public com.google.protobuf.ProtocolStringList + getDocumentsList() { return documents_; } /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -96,15 +73,12 @@ public com.google.protobuf.ProtocolStringList getDocumentsList() {
    * 
* * repeated string documents = 1; - * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -112,7 +86,6 @@ public int getDocumentsCount() {
    * 
* * repeated string documents = 1; - * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -120,8 +93,6 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -129,21 +100,18 @@ public java.lang.String getDocuments(int index) {
    * 
* * repeated string documents = 1; - * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString getDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getDocumentsBytes(int index) { return documents_.getByteString(index); } public static final int EXPORT_FOLDER_PATH_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object exportFolderPath_ = ""; /** - * - * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -151,7 +119,6 @@ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
    * 
* * string export_folder_path = 2; - * * @return The exportFolderPath. */ @java.lang.Override @@ -160,15 +127,14 @@ public java.lang.String getExportFolderPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exportFolderPath_ = s; return s; } } /** - * - * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -176,15 +142,16 @@ public java.lang.String getExportFolderPath() {
    * 
* * string export_folder_path = 2; - * * @return The bytes for exportFolderPath. */ @java.lang.Override - public com.google.protobuf.ByteString getExportFolderPathBytes() { + public com.google.protobuf.ByteString + getExportFolderPathBytes() { java.lang.Object ref = exportFolderPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); exportFolderPath_ = b; return b; } else { @@ -195,14 +162,11 @@ public com.google.protobuf.ByteString getExportFolderPathBytes() { public static final int PROCESSOR_INFO_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.ProcessorInfo processorInfo_; /** - * - * *
    * The CDW processor information.
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; - * * @return Whether the processorInfo field is set. */ @java.lang.Override @@ -210,25 +174,18 @@ public boolean hasProcessorInfo() { return processorInfo_ != null; } /** - * - * *
    * The CDW processor information.
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; - * * @return The processorInfo. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() { - return processorInfo_ == null - ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() - : processorInfo_; + return processorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; } /** - * - * *
    * The CDW processor information.
    * 
@@ -237,18 +194,13 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder() { - return processorInfo_ == null - ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() - : processorInfo_; + return processorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; } public static final int PROCESSOR_RESULTS_FOLDER_PATH_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object processorResultsFolderPath_ = ""; /** - * - * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -256,7 +208,6 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorI
    * 
* * string processor_results_folder_path = 4; - * * @return The processorResultsFolderPath. */ @java.lang.Override @@ -265,15 +216,14 @@ public java.lang.String getProcessorResultsFolderPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorResultsFolderPath_ = s; return s; } } /** - * - * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -281,15 +231,16 @@ public java.lang.String getProcessorResultsFolderPath() {
    * 
* * string processor_results_folder_path = 4; - * * @return The bytes for processorResultsFolderPath. */ @java.lang.Override - public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() { + public com.google.protobuf.ByteString + getProcessorResultsFolderPathBytes() { java.lang.Object ref = processorResultsFolderPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); processorResultsFolderPath_ = b; return b; } else { @@ -298,7 +249,6 @@ public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,7 +260,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++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i)); } @@ -344,11 +295,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exportFolderPath_); } if (processorInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProcessorInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getProcessorInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorResultsFolderPath_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(4, processorResultsFolderPath_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, processorResultsFolderPath_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -358,22 +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.contentwarehouse.v1.ProcessWithDocAiPipeline)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline other = - (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) obj; + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline other = (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) obj; - if (!getDocumentsList().equals(other.getDocumentsList())) return false; - if (!getExportFolderPath().equals(other.getExportFolderPath())) return false; + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (!getExportFolderPath() + .equals(other.getExportFolderPath())) return false; if (hasProcessorInfo() != other.hasProcessorInfo()) return false; if (hasProcessorInfo()) { - if (!getProcessorInfo().equals(other.getProcessorInfo())) return false; + if (!getProcessorInfo() + .equals(other.getProcessorInfo())) return false; } - if (!getProcessorResultsFolderPath().equals(other.getProcessorResultsFolderPath())) - return false; + if (!getProcessorResultsFolderPath() + .equals(other.getProcessorResultsFolderPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -403,104 +356,98 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline 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.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline 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.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The configuration of processing documents in Document Warehouse with DocAi
    * processors pipeline.
@@ -508,37 +455,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline)
       com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto
-          .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto
-          .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.class,
-              com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder.class);
+              com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.class, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.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;
-      documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      documents_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       exportFolderPath_ = "";
       processorInfo_ = null;
       if (processorInfoBuilder_ != null) {
@@ -550,14 +499,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto
-          .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline
-        getDefaultInstanceForType() {
+    public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getDefaultInstanceForType() {
       return com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance();
     }
 
@@ -572,17 +520,13 @@ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline buildPartial() {
-      com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline result =
-          new com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline result = new com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline result) {
+    private void buildPartial0(com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         documents_.makeImmutable();
@@ -592,8 +536,9 @@ private void buildPartial0(
         result.exportFolderPath_ = exportFolderPath_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.processorInfo_ =
-            processorInfoBuilder_ == null ? processorInfo_ : processorInfoBuilder_.build();
+        result.processorInfo_ = processorInfoBuilder_ == null
+            ? processorInfo_
+            : processorInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.processorResultsFolderPath_ = processorResultsFolderPath_;
@@ -604,39 +549,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.contentwarehouse.v1.ProcessWithDocAiPipeline) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -644,9 +588,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline other) {
-      if (other
-          == com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance()) return this;
       if (!other.documents_.isEmpty()) {
         if (documents_.isEmpty()) {
           documents_ = other.documents_;
@@ -696,38 +638,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureDocumentsIsMutable();
-                documents_.add(s);
-                break;
-              } // case 10
-            case 18:
-              {
-                exportFolderPath_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getProcessorInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                processorResultsFolderPath_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureDocumentsIsMutable();
+              documents_.add(s);
+              break;
+            } // case 10
+            case 18: {
+              exportFolderPath_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getProcessorInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              processorResultsFolderPath_ = 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) {
@@ -737,12 +676,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList documents_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-
     private void ensureDocumentsIsMutable() {
       if (!documents_.isModifiable()) {
         documents_ = new com.google.protobuf.LazyStringArrayList(documents_);
@@ -750,8 +687,6 @@ private void ensureDocumentsIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
-     *
-     *
      * 
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -759,16 +694,14 @@ private void ensureDocumentsIsMutable() {
      * 
* * repeated string documents = 1; - * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList getDocumentsList() { + public com.google.protobuf.ProtocolStringList + getDocumentsList() { documents_.makeImmutable(); return documents_; } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -776,15 +709,12 @@ public com.google.protobuf.ProtocolStringList getDocumentsList() {
      * 
* * repeated string documents = 1; - * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -792,7 +722,6 @@ public int getDocumentsCount() {
      * 
* * repeated string documents = 1; - * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -800,8 +729,6 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -809,16 +736,14 @@ public java.lang.String getDocuments(int index) {
      * 
* * repeated string documents = 1; - * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString getDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getDocumentsBytes(int index) { return documents_.getByteString(index); } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -826,15 +751,13 @@ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
      * 
* * repeated string documents = 1; - * * @param index The index to set the value at. * @param value The documents to set. * @return This builder for chaining. */ - public Builder setDocuments(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocuments( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentsIsMutable(); documents_.set(index, value); bitField0_ |= 0x00000001; @@ -842,8 +765,6 @@ public Builder setDocuments(int index, java.lang.String value) { return this; } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -851,14 +772,12 @@ public Builder setDocuments(int index, java.lang.String value) {
      * 
* * repeated string documents = 1; - * * @param value The documents to add. * @return This builder for chaining. */ - public Builder addDocuments(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocuments( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentsIsMutable(); documents_.add(value); bitField0_ |= 0x00000001; @@ -866,8 +785,6 @@ public Builder addDocuments(java.lang.String value) { return this; } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -875,20 +792,19 @@ public Builder addDocuments(java.lang.String value) {
      * 
* * repeated string documents = 1; - * * @param values The documents to add. * @return This builder for chaining. */ - public Builder addAllDocuments(java.lang.Iterable values) { + public Builder addAllDocuments( + java.lang.Iterable values) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -896,19 +812,16 @@ public Builder addAllDocuments(java.lang.Iterable values) {
      * 
* * repeated string documents = 1; - * * @return This builder for chaining. */ public Builder clearDocuments() { - documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + documents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -916,14 +829,12 @@ public Builder clearDocuments() {
      * 
* * repeated string documents = 1; - * * @param value The bytes of the documents to add. * @return This builder for chaining. */ - public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocumentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDocumentsIsMutable(); documents_.add(value); @@ -934,8 +845,6 @@ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { private java.lang.Object exportFolderPath_ = ""; /** - * - * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -943,13 +852,13 @@ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) {
      * 
* * string export_folder_path = 2; - * * @return The exportFolderPath. */ public java.lang.String getExportFolderPath() { java.lang.Object ref = exportFolderPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exportFolderPath_ = s; return s; @@ -958,8 +867,6 @@ public java.lang.String getExportFolderPath() { } } /** - * - * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -967,14 +874,15 @@ public java.lang.String getExportFolderPath() {
      * 
* * string export_folder_path = 2; - * * @return The bytes for exportFolderPath. */ - public com.google.protobuf.ByteString getExportFolderPathBytes() { + public com.google.protobuf.ByteString + getExportFolderPathBytes() { java.lang.Object ref = exportFolderPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); exportFolderPath_ = b; return b; } else { @@ -982,8 +890,6 @@ public com.google.protobuf.ByteString getExportFolderPathBytes() { } } /** - * - * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -991,22 +897,18 @@ public com.google.protobuf.ByteString getExportFolderPathBytes() {
      * 
* * string export_folder_path = 2; - * * @param value The exportFolderPath to set. * @return This builder for chaining. */ - public Builder setExportFolderPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExportFolderPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } exportFolderPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -1014,7 +916,6 @@ public Builder setExportFolderPath(java.lang.String value) {
      * 
* * string export_folder_path = 2; - * * @return This builder for chaining. */ public Builder clearExportFolderPath() { @@ -1024,8 +925,6 @@ public Builder clearExportFolderPath() { return this; } /** - * - * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -1033,14 +932,12 @@ public Builder clearExportFolderPath() {
      * 
* * string export_folder_path = 2; - * * @param value The bytes for exportFolderPath to set. * @return This builder for chaining. */ - public Builder setExportFolderPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExportFolderPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); exportFolderPath_ = value; bitField0_ |= 0x00000002; @@ -1050,47 +947,34 @@ public Builder setExportFolderPathBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.ProcessorInfo processorInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, - com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> - processorInfoBuilder_; + com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> processorInfoBuilder_; /** - * - * *
      * The CDW processor information.
      * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; - * * @return Whether the processorInfo field is set. */ public boolean hasProcessorInfo() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The CDW processor information.
      * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; - * * @return The processorInfo. */ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() { if (processorInfoBuilder_ == null) { - return processorInfo_ == null - ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() - : processorInfo_; + return processorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; } else { return processorInfoBuilder_.getMessage(); } } /** - * - * *
      * The CDW processor information.
      * 
@@ -1111,8 +995,6 @@ public Builder setProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorIn return this; } /** - * - * *
      * The CDW processor information.
      * 
@@ -1131,8 +1013,6 @@ public Builder setProcessorInfo( return this; } /** - * - * *
      * The CDW processor information.
      * 
@@ -1141,10 +1021,9 @@ public Builder setProcessorInfo( */ public Builder mergeProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { if (processorInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && processorInfo_ != null - && processorInfo_ - != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + processorInfo_ != null && + processorInfo_ != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) { getProcessorInfoBuilder().mergeFrom(value); } else { processorInfo_ = value; @@ -1157,8 +1036,6 @@ public Builder mergeProcessorInfo(com.google.cloud.contentwarehouse.v1.Processor return this; } /** - * - * *
      * The CDW processor information.
      * 
@@ -1176,8 +1053,6 @@ public Builder clearProcessorInfo() { return this; } /** - * - * *
      * The CDW processor information.
      * 
@@ -1190,8 +1065,6 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder getProcessorIn return getProcessorInfoFieldBuilder().getBuilder(); } /** - * - * *
      * The CDW processor information.
      * 
@@ -1202,14 +1075,11 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorI if (processorInfoBuilder_ != null) { return processorInfoBuilder_.getMessageOrBuilder(); } else { - return processorInfo_ == null - ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() - : processorInfo_; + return processorInfo_ == null ? + com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; } } /** - * - * *
      * The CDW processor information.
      * 
@@ -1217,17 +1087,14 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorI * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, - com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> getProcessorInfoFieldBuilder() { if (processorInfoBuilder_ == null) { - processorInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, - com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( - getProcessorInfo(), getParentForChildren(), isClean()); + processorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( + getProcessorInfo(), + getParentForChildren(), + isClean()); processorInfo_ = null; } return processorInfoBuilder_; @@ -1235,8 +1102,6 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorI private java.lang.Object processorResultsFolderPath_ = ""; /** - * - * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1244,13 +1109,13 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorI
      * 
* * string processor_results_folder_path = 4; - * * @return The processorResultsFolderPath. */ public java.lang.String getProcessorResultsFolderPath() { java.lang.Object ref = processorResultsFolderPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorResultsFolderPath_ = s; return s; @@ -1259,8 +1124,6 @@ public java.lang.String getProcessorResultsFolderPath() { } } /** - * - * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1268,14 +1131,15 @@ public java.lang.String getProcessorResultsFolderPath() {
      * 
* * string processor_results_folder_path = 4; - * * @return The bytes for processorResultsFolderPath. */ - public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() { + public com.google.protobuf.ByteString + getProcessorResultsFolderPathBytes() { java.lang.Object ref = processorResultsFolderPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); processorResultsFolderPath_ = b; return b; } else { @@ -1283,8 +1147,6 @@ public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() { } } /** - * - * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1292,22 +1154,18 @@ public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() {
      * 
* * string processor_results_folder_path = 4; - * * @param value The processorResultsFolderPath to set. * @return This builder for chaining. */ - public Builder setProcessorResultsFolderPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProcessorResultsFolderPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } processorResultsFolderPath_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1315,7 +1173,6 @@ public Builder setProcessorResultsFolderPath(java.lang.String value) {
      * 
* * string processor_results_folder_path = 4; - * * @return This builder for chaining. */ public Builder clearProcessorResultsFolderPath() { @@ -1325,8 +1182,6 @@ public Builder clearProcessorResultsFolderPath() { return this; } /** - * - * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1334,23 +1189,21 @@ public Builder clearProcessorResultsFolderPath() {
      * 
* * string processor_results_folder_path = 4; - * * @param value The bytes for processorResultsFolderPath to set. * @return This builder for chaining. */ - public Builder setProcessorResultsFolderPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProcessorResultsFolderPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); processorResultsFolderPath_ = 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); } @@ -1360,13 +1213,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) - private static final com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline(); } @@ -1375,27 +1227,27 @@ public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProcessWithDocAiPipeline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ProcessWithDocAiPipeline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1410,4 +1262,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java similarity index 77% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java index 3dbed890082e..c5f73e395ad5 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface ProcessWithDocAiPipelineOrBuilder - extends +public interface ProcessWithDocAiPipelineOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -33,13 +15,11 @@ public interface ProcessWithDocAiPipelineOrBuilder
    * 
* * repeated string documents = 1; - * * @return A list containing the documents. */ - java.util.List getDocumentsList(); + java.util.List + getDocumentsList(); /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -47,13 +27,10 @@ public interface ProcessWithDocAiPipelineOrBuilder
    * 
* * repeated string documents = 1; - * * @return The count of documents. */ int getDocumentsCount(); /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -61,14 +38,11 @@ public interface ProcessWithDocAiPipelineOrBuilder
    * 
* * repeated string documents = 1; - * * @param index The index of the element to return. * @return The documents at the given index. */ java.lang.String getDocuments(int index); /** - * - * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -76,15 +50,13 @@ public interface ProcessWithDocAiPipelineOrBuilder
    * 
* * repeated string documents = 1; - * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - com.google.protobuf.ByteString getDocumentsBytes(int index); + com.google.protobuf.ByteString + getDocumentsBytes(int index); /** - * - * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -92,13 +64,10 @@ public interface ProcessWithDocAiPipelineOrBuilder
    * 
* * string export_folder_path = 2; - * * @return The exportFolderPath. */ java.lang.String getExportFolderPath(); /** - * - * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -106,38 +75,30 @@ public interface ProcessWithDocAiPipelineOrBuilder
    * 
* * string export_folder_path = 2; - * * @return The bytes for exportFolderPath. */ - com.google.protobuf.ByteString getExportFolderPathBytes(); + com.google.protobuf.ByteString + getExportFolderPathBytes(); /** - * - * *
    * The CDW processor information.
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; - * * @return Whether the processorInfo field is set. */ boolean hasProcessorInfo(); /** - * - * *
    * The CDW processor information.
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; - * * @return The processorInfo. */ com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo(); /** - * - * *
    * The CDW processor information.
    * 
@@ -147,8 +108,6 @@ public interface ProcessWithDocAiPipelineOrBuilder com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder(); /** - * - * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -156,13 +115,10 @@ public interface ProcessWithDocAiPipelineOrBuilder
    * 
* * string processor_results_folder_path = 4; - * * @return The processorResultsFolderPath. */ java.lang.String getProcessorResultsFolderPath(); /** - * - * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -170,8 +126,8 @@ public interface ProcessWithDocAiPipelineOrBuilder
    * 
* * string processor_results_folder_path = 4; - * * @return The bytes for processorResultsFolderPath. */ - com.google.protobuf.ByteString getProcessorResultsFolderPathBytes(); + com.google.protobuf.ByteString + getProcessorResultsFolderPathBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java similarity index 71% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java index 5aacaafc5067..64bde423c85f 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * The DocAI processor information.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ProcessorInfo} */ -public final class ProcessorInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProcessorInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ProcessorInfo) ProcessorInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProcessorInfo.newBuilder() to construct. private ProcessorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProcessorInfo() { processorName_ = ""; documentType_ = ""; @@ -45,32 +27,28 @@ private ProcessorInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProcessorInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ProcessorInfo.class, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder.class); + com.google.cloud.contentwarehouse.v1.ProcessorInfo.class, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder.class); } public static final int PROCESSOR_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object processorName_ = ""; /** - * - * *
    * The processor resource name.
    * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -79,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string processor_name = 1; - * * @return The processorName. */ @java.lang.Override @@ -88,15 +65,14 @@ public java.lang.String getProcessorName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorName_ = s; return s; } } /** - * - * *
    * The processor resource name.
    * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -105,15 +81,16 @@ public java.lang.String getProcessorName() {
    * 
* * string processor_name = 1; - * * @return The bytes for processorName. */ @java.lang.Override - public com.google.protobuf.ByteString getProcessorNameBytes() { + public com.google.protobuf.ByteString + getProcessorNameBytes() { java.lang.Object ref = processorName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); processorName_ = b; return b; } else { @@ -122,18 +99,14 @@ public com.google.protobuf.ByteString getProcessorNameBytes() { } public static final int DOCUMENT_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object documentType_ = ""; /** - * - * *
    * The processor will process the documents with this document type.
    * 
* * string document_type = 2; - * * @return The documentType. */ @java.lang.Override @@ -142,29 +115,29 @@ public java.lang.String getDocumentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentType_ = s; return s; } } /** - * - * *
    * The processor will process the documents with this document type.
    * 
* * string document_type = 2; - * * @return The bytes for documentType. */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentTypeBytes() { + public com.google.protobuf.ByteString + getDocumentTypeBytes() { java.lang.Object ref = documentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentType_ = b; return b; } else { @@ -173,12 +146,9 @@ public com.google.protobuf.ByteString getDocumentTypeBytes() { } public static final int SCHEMA_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object schemaName_ = ""; /** - * - * *
    * The Document schema resource name. All documents processed by this
    * processor will use this schema.
@@ -187,7 +157,6 @@ public com.google.protobuf.ByteString getDocumentTypeBytes() {
    * 
* * string schema_name = 3; - * * @return The schemaName. */ @java.lang.Override @@ -196,15 +165,14 @@ public java.lang.String getSchemaName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; } } /** - * - * *
    * The Document schema resource name. All documents processed by this
    * processor will use this schema.
@@ -213,15 +181,16 @@ public java.lang.String getSchemaName() {
    * 
* * string schema_name = 3; - * * @return The bytes for schemaName. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaNameBytes() { + public com.google.protobuf.ByteString + getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaName_ = b; return b; } else { @@ -230,7 +199,6 @@ public com.google.protobuf.ByteString getSchemaNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +210,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, processorName_); } @@ -278,17 +247,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.contentwarehouse.v1.ProcessorInfo)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ProcessorInfo other = - (com.google.cloud.contentwarehouse.v1.ProcessorInfo) obj; + com.google.cloud.contentwarehouse.v1.ProcessorInfo other = (com.google.cloud.contentwarehouse.v1.ProcessorInfo) obj; - if (!getProcessorName().equals(other.getProcessorName())) return false; - if (!getDocumentType().equals(other.getDocumentType())) return false; - if (!getSchemaName().equals(other.getSchemaName())) return false; + if (!getProcessorName() + .equals(other.getProcessorName())) return false; + if (!getDocumentType() + .equals(other.getDocumentType())) return false; + if (!getSchemaName() + .equals(other.getSchemaName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,135 +283,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ProcessorInfo 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.contentwarehouse.v1.ProcessorInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ProcessorInfo 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.contentwarehouse.v1.ProcessorInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ProcessorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The DocAI processor information.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ProcessorInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ProcessorInfo) com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ProcessorInfo.class, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder.class); + com.google.cloud.contentwarehouse.v1.ProcessorInfo.class, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ProcessorInfo.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(); @@ -452,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; } @java.lang.Override @@ -473,11 +440,8 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfo buildPartial() { - com.google.cloud.contentwarehouse.v1.ProcessorInfo result = - new com.google.cloud.contentwarehouse.v1.ProcessorInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.ProcessorInfo result = new com.google.cloud.contentwarehouse.v1.ProcessorInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -499,39 +463,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ProcessorInfo 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.contentwarehouse.v1.ProcessorInfo) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ProcessorInfo) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ProcessorInfo)other); } else { super.mergeFrom(other); return this; @@ -539,8 +502,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ProcessorInfo other) { - if (other == com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) return this; if (!other.getProcessorName().isEmpty()) { processorName_ = other.processorName_; bitField0_ |= 0x00000001; @@ -582,31 +544,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - processorName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - documentType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - schemaName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + processorName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + documentType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + schemaName_ = 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) { @@ -616,13 +574,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object processorName_ = ""; /** - * - * *
      * The processor resource name.
      * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -631,13 +586,13 @@ public Builder mergeFrom(
      * 
* * string processor_name = 1; - * * @return The processorName. */ public java.lang.String getProcessorName() { java.lang.Object ref = processorName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorName_ = s; return s; @@ -646,8 +601,6 @@ public java.lang.String getProcessorName() { } } /** - * - * *
      * The processor resource name.
      * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -656,14 +609,15 @@ public java.lang.String getProcessorName() {
      * 
* * string processor_name = 1; - * * @return The bytes for processorName. */ - public com.google.protobuf.ByteString getProcessorNameBytes() { + public com.google.protobuf.ByteString + getProcessorNameBytes() { java.lang.Object ref = processorName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); processorName_ = b; return b; } else { @@ -671,8 +625,6 @@ public com.google.protobuf.ByteString getProcessorNameBytes() { } } /** - * - * *
      * The processor resource name.
      * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -681,22 +633,18 @@ public com.google.protobuf.ByteString getProcessorNameBytes() {
      * 
* * string processor_name = 1; - * * @param value The processorName to set. * @return This builder for chaining. */ - public Builder setProcessorName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProcessorName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } processorName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The processor resource name.
      * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -705,7 +653,6 @@ public Builder setProcessorName(java.lang.String value) {
      * 
* * string processor_name = 1; - * * @return This builder for chaining. */ public Builder clearProcessorName() { @@ -715,8 +662,6 @@ public Builder clearProcessorName() { return this; } /** - * - * *
      * The processor resource name.
      * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -725,14 +670,12 @@ public Builder clearProcessorName() {
      * 
* * string processor_name = 1; - * * @param value The bytes for processorName to set. * @return This builder for chaining. */ - public Builder setProcessorNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProcessorNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); processorName_ = value; bitField0_ |= 0x00000001; @@ -742,20 +685,18 @@ public Builder setProcessorNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object documentType_ = ""; /** - * - * *
      * The processor will process the documents with this document type.
      * 
* * string document_type = 2; - * * @return The documentType. */ public java.lang.String getDocumentType() { java.lang.Object ref = documentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentType_ = s; return s; @@ -764,21 +705,20 @@ public java.lang.String getDocumentType() { } } /** - * - * *
      * The processor will process the documents with this document type.
      * 
* * string document_type = 2; - * * @return The bytes for documentType. */ - public com.google.protobuf.ByteString getDocumentTypeBytes() { + public com.google.protobuf.ByteString + getDocumentTypeBytes() { java.lang.Object ref = documentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentType_ = b; return b; } else { @@ -786,35 +726,28 @@ public com.google.protobuf.ByteString getDocumentTypeBytes() { } } /** - * - * *
      * The processor will process the documents with this document type.
      * 
* * string document_type = 2; - * * @param value The documentType to set. * @return This builder for chaining. */ - public Builder setDocumentType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The processor will process the documents with this document type.
      * 
* * string document_type = 2; - * * @return This builder for chaining. */ public Builder clearDocumentType() { @@ -824,21 +757,17 @@ public Builder clearDocumentType() { return this; } /** - * - * *
      * The processor will process the documents with this document type.
      * 
* * string document_type = 2; - * * @param value The bytes for documentType to set. * @return This builder for chaining. */ - public Builder setDocumentTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentType_ = value; bitField0_ |= 0x00000002; @@ -848,8 +777,6 @@ public Builder setDocumentTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object schemaName_ = ""; /** - * - * *
      * The Document schema resource name. All documents processed by this
      * processor will use this schema.
@@ -858,13 +785,13 @@ public Builder setDocumentTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string schema_name = 3; - * * @return The schemaName. */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; @@ -873,8 +800,6 @@ public java.lang.String getSchemaName() { } } /** - * - * *
      * The Document schema resource name. All documents processed by this
      * processor will use this schema.
@@ -883,14 +808,15 @@ public java.lang.String getSchemaName() {
      * 
* * string schema_name = 3; - * * @return The bytes for schemaName. */ - public com.google.protobuf.ByteString getSchemaNameBytes() { + public com.google.protobuf.ByteString + getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaName_ = b; return b; } else { @@ -898,8 +824,6 @@ public com.google.protobuf.ByteString getSchemaNameBytes() { } } /** - * - * *
      * The Document schema resource name. All documents processed by this
      * processor will use this schema.
@@ -908,22 +832,18 @@ public com.google.protobuf.ByteString getSchemaNameBytes() {
      * 
* * string schema_name = 3; - * * @param value The schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The Document schema resource name. All documents processed by this
      * processor will use this schema.
@@ -932,7 +852,6 @@ public Builder setSchemaName(java.lang.String value) {
      * 
* * string schema_name = 3; - * * @return This builder for chaining. */ public Builder clearSchemaName() { @@ -942,8 +861,6 @@ public Builder clearSchemaName() { return this; } /** - * - * *
      * The Document schema resource name. All documents processed by this
      * processor will use this schema.
@@ -952,23 +869,21 @@ public Builder clearSchemaName() {
      * 
* * string schema_name = 3; - * * @param value The bytes for schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaName_ = 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); } @@ -978,12 +893,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ProcessorInfo) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ProcessorInfo) private static final com.google.cloud.contentwarehouse.v1.ProcessorInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ProcessorInfo(); } @@ -992,27 +907,27 @@ public static com.google.cloud.contentwarehouse.v1.ProcessorInfo getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProcessorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ProcessorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,4 +942,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ProcessorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java similarity index 70% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java index 1443887561e1..484331f2ad8e 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface ProcessorInfoOrBuilder - extends +public interface ProcessorInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ProcessorInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The processor resource name.
    * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -34,13 +16,10 @@ public interface ProcessorInfoOrBuilder
    * 
* * string processor_name = 1; - * * @return The processorName. */ java.lang.String getProcessorName(); /** - * - * *
    * The processor resource name.
    * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -49,39 +28,32 @@ public interface ProcessorInfoOrBuilder
    * 
* * string processor_name = 1; - * * @return The bytes for processorName. */ - com.google.protobuf.ByteString getProcessorNameBytes(); + com.google.protobuf.ByteString + getProcessorNameBytes(); /** - * - * *
    * The processor will process the documents with this document type.
    * 
* * string document_type = 2; - * * @return The documentType. */ java.lang.String getDocumentType(); /** - * - * *
    * The processor will process the documents with this document type.
    * 
* * string document_type = 2; - * * @return The bytes for documentType. */ - com.google.protobuf.ByteString getDocumentTypeBytes(); + com.google.protobuf.ByteString + getDocumentTypeBytes(); /** - * - * *
    * The Document schema resource name. All documents processed by this
    * processor will use this schema.
@@ -90,13 +62,10 @@ public interface ProcessorInfoOrBuilder
    * 
* * string schema_name = 3; - * * @return The schemaName. */ java.lang.String getSchemaName(); /** - * - * *
    * The Document schema resource name. All documents processed by this
    * processor will use this schema.
@@ -105,8 +74,8 @@ public interface ProcessorInfoOrBuilder
    * 
* * string schema_name = 3; - * * @return The bytes for schemaName. */ - com.google.protobuf.ByteString getSchemaNameBytes(); + com.google.protobuf.ByteString + getSchemaNameBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java similarity index 74% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java index f1b64527ecb8..bf1ff05ae564 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java @@ -1,75 +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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Property of a document.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.Property} */ -public final class Property extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Property extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.Property) PropertyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Property() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Property(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Property.class, - com.google.cloud.contentwarehouse.v1.Property.Builder.class); + com.google.cloud.contentwarehouse.v1.Property.class, com.google.cloud.contentwarehouse.v1.Property.Builder.class); } private int valuesCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object values_; - public enum ValuesCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INTEGER_VALUES(2), FLOAT_VALUES(3), @@ -81,7 +59,6 @@ public enum ValuesCase TIMESTAMP_VALUES(9), VALUES_NOT_SET(0); private final int value; - private ValuesCase(int value) { this.value = value; } @@ -97,52 +74,39 @@ public static ValuesCase valueOf(int value) { public static ValuesCase forNumber(int value) { switch (value) { - case 2: - return INTEGER_VALUES; - case 3: - return FLOAT_VALUES; - case 4: - return TEXT_VALUES; - case 5: - return ENUM_VALUES; - case 6: - return PROPERTY_VALUES; - case 7: - return DATE_TIME_VALUES; - case 8: - return MAP_PROPERTY; - case 9: - return TIMESTAMP_VALUES; - case 0: - return VALUES_NOT_SET; - default: - return null; + case 2: return INTEGER_VALUES; + case 3: return FLOAT_VALUES; + case 4: return TEXT_VALUES; + case 5: return ENUM_VALUES; + case 6: return PROPERTY_VALUES; + case 7: return DATE_TIME_VALUES; + case 8: return MAP_PROPERTY; + case 9: return TIMESTAMP_VALUES; + case 0: return VALUES_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ValuesCase getValuesCase() { - return ValuesCase.forNumber(valuesCase_); + public ValuesCase + getValuesCase() { + return ValuesCase.forNumber( + valuesCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Must match the name of a PropertyDefinition in the
    * DocumentSchema.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -151,30 +115,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. Must match the name of a PropertyDefinition in the
    * DocumentSchema.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -184,14 +148,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int INTEGER_VALUES_FIELD_NUMBER = 2; /** - * - * *
    * Integer property values.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; - * * @return Whether the integerValues field is set. */ @java.lang.Override @@ -199,26 +160,21 @@ public boolean hasIntegerValues() { return valuesCase_ == 2; } /** - * - * *
    * Integer property values.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; - * * @return The integerValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.IntegerArray getIntegerValues() { if (valuesCase_ == 2) { - return (com.google.cloud.contentwarehouse.v1.IntegerArray) values_; + return (com.google.cloud.contentwarehouse.v1.IntegerArray) values_; } return com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance(); } /** - * - * *
    * Integer property values.
    * 
@@ -228,21 +184,18 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray getIntegerValues() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder getIntegerValuesOrBuilder() { if (valuesCase_ == 2) { - return (com.google.cloud.contentwarehouse.v1.IntegerArray) values_; + return (com.google.cloud.contentwarehouse.v1.IntegerArray) values_; } return com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance(); } public static final int FLOAT_VALUES_FIELD_NUMBER = 3; /** - * - * *
    * Float property values.
    * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; - * * @return Whether the floatValues field is set. */ @java.lang.Override @@ -250,26 +203,21 @@ public boolean hasFloatValues() { return valuesCase_ == 3; } /** - * - * *
    * Float property values.
    * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; - * * @return The floatValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.FloatArray getFloatValues() { if (valuesCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.FloatArray) values_; + return (com.google.cloud.contentwarehouse.v1.FloatArray) values_; } return com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance(); } /** - * - * *
    * Float property values.
    * 
@@ -279,21 +227,18 @@ public com.google.cloud.contentwarehouse.v1.FloatArray getFloatValues() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder getFloatValuesOrBuilder() { if (valuesCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.FloatArray) values_; + return (com.google.cloud.contentwarehouse.v1.FloatArray) values_; } return com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance(); } public static final int TEXT_VALUES_FIELD_NUMBER = 4; /** - * - * *
    * String/text property values.
    * 
* * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; - * * @return Whether the textValues field is set. */ @java.lang.Override @@ -301,26 +246,21 @@ public boolean hasTextValues() { return valuesCase_ == 4; } /** - * - * *
    * String/text property values.
    * 
* * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; - * * @return The textValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TextArray getTextValues() { if (valuesCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.TextArray) values_; + return (com.google.cloud.contentwarehouse.v1.TextArray) values_; } return com.google.cloud.contentwarehouse.v1.TextArray.getDefaultInstance(); } /** - * - * *
    * String/text property values.
    * 
@@ -330,21 +270,18 @@ public com.google.cloud.contentwarehouse.v1.TextArray getTextValues() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder getTextValuesOrBuilder() { if (valuesCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.TextArray) values_; + return (com.google.cloud.contentwarehouse.v1.TextArray) values_; } return com.google.cloud.contentwarehouse.v1.TextArray.getDefaultInstance(); } public static final int ENUM_VALUES_FIELD_NUMBER = 5; /** - * - * *
    * Enum property values.
    * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; - * * @return Whether the enumValues field is set. */ @java.lang.Override @@ -352,26 +289,21 @@ public boolean hasEnumValues() { return valuesCase_ == 5; } /** - * - * *
    * Enum property values.
    * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; - * * @return The enumValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumArray getEnumValues() { if (valuesCase_ == 5) { - return (com.google.cloud.contentwarehouse.v1.EnumArray) values_; + return (com.google.cloud.contentwarehouse.v1.EnumArray) values_; } return com.google.cloud.contentwarehouse.v1.EnumArray.getDefaultInstance(); } /** - * - * *
    * Enum property values.
    * 
@@ -381,21 +313,18 @@ public com.google.cloud.contentwarehouse.v1.EnumArray getEnumValues() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder getEnumValuesOrBuilder() { if (valuesCase_ == 5) { - return (com.google.cloud.contentwarehouse.v1.EnumArray) values_; + return (com.google.cloud.contentwarehouse.v1.EnumArray) values_; } return com.google.cloud.contentwarehouse.v1.EnumArray.getDefaultInstance(); } public static final int PROPERTY_VALUES_FIELD_NUMBER = 6; /** - * - * *
    * Nested structured data property values.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; - * * @return Whether the propertyValues field is set. */ @java.lang.Override @@ -403,26 +332,21 @@ public boolean hasPropertyValues() { return valuesCase_ == 6; } /** - * - * *
    * Nested structured data property values.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; - * * @return The propertyValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyArray getPropertyValues() { if (valuesCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.PropertyArray) values_; + return (com.google.cloud.contentwarehouse.v1.PropertyArray) values_; } return com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance(); } /** - * - * *
    * Nested structured data property values.
    * 
@@ -432,22 +356,19 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray getPropertyValues() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder getPropertyValuesOrBuilder() { if (valuesCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.PropertyArray) values_; + return (com.google.cloud.contentwarehouse.v1.PropertyArray) values_; } return com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance(); } public static final int DATE_TIME_VALUES_FIELD_NUMBER = 7; /** - * - * *
    * Date time property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7; - * * @return Whether the dateTimeValues field is set. */ @java.lang.Override @@ -455,27 +376,22 @@ public boolean hasDateTimeValues() { return valuesCase_ == 7; } /** - * - * *
    * Date time property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7; - * * @return The dateTimeValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DateTimeArray getDateTimeValues() { if (valuesCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_; + return (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_; } return com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance(); } /** - * - * *
    * Date time property values.
    * It is not supported by CMEK compliant deployment.
@@ -486,21 +402,18 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray getDateTimeValues() {
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder getDateTimeValuesOrBuilder() {
     if (valuesCase_ == 7) {
-      return (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_;
+       return (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_;
     }
     return com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance();
   }
 
   public static final int MAP_PROPERTY_FIELD_NUMBER = 8;
   /**
-   *
-   *
    * 
    * Map property values.
    * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; - * * @return Whether the mapProperty field is set. */ @java.lang.Override @@ -508,26 +421,21 @@ public boolean hasMapProperty() { return valuesCase_ == 8; } /** - * - * *
    * Map property values.
    * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; - * * @return The mapProperty. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.MapProperty getMapProperty() { if (valuesCase_ == 8) { - return (com.google.cloud.contentwarehouse.v1.MapProperty) values_; + return (com.google.cloud.contentwarehouse.v1.MapProperty) values_; } return com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance(); } /** - * - * *
    * Map property values.
    * 
@@ -537,22 +445,19 @@ public com.google.cloud.contentwarehouse.v1.MapProperty getMapProperty() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder getMapPropertyOrBuilder() { if (valuesCase_ == 8) { - return (com.google.cloud.contentwarehouse.v1.MapProperty) values_; + return (com.google.cloud.contentwarehouse.v1.MapProperty) values_; } return com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance(); } public static final int TIMESTAMP_VALUES_FIELD_NUMBER = 9; /** - * - * *
    * Timestamp property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9; - * * @return Whether the timestampValues field is set. */ @java.lang.Override @@ -560,27 +465,22 @@ public boolean hasTimestampValues() { return valuesCase_ == 9; } /** - * - * *
    * Timestamp property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9; - * * @return The timestampValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampArray getTimestampValues() { if (valuesCase_ == 9) { - return (com.google.cloud.contentwarehouse.v1.TimestampArray) values_; + return (com.google.cloud.contentwarehouse.v1.TimestampArray) values_; } return com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance(); } /** - * - * *
    * Timestamp property values.
    * It is not supported by CMEK compliant deployment.
@@ -589,16 +489,14 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray getTimestampValues()
    * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder
-      getTimestampValuesOrBuilder() {
+  public com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder getTimestampValuesOrBuilder() {
     if (valuesCase_ == 9) {
-      return (com.google.cloud.contentwarehouse.v1.TimestampArray) values_;
+       return (com.google.cloud.contentwarehouse.v1.TimestampArray) values_;
     }
     return com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -610,7 +508,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_);
     }
@@ -651,44 +550,36 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (valuesCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.contentwarehouse.v1.IntegerArray) values_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.contentwarehouse.v1.IntegerArray) values_);
     }
     if (valuesCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.cloud.contentwarehouse.v1.FloatArray) values_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.contentwarehouse.v1.FloatArray) values_);
     }
     if (valuesCase_ == 4) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              4, (com.google.cloud.contentwarehouse.v1.TextArray) values_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, (com.google.cloud.contentwarehouse.v1.TextArray) values_);
     }
     if (valuesCase_ == 5) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              5, (com.google.cloud.contentwarehouse.v1.EnumArray) values_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, (com.google.cloud.contentwarehouse.v1.EnumArray) values_);
     }
     if (valuesCase_ == 6) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              6, (com.google.cloud.contentwarehouse.v1.PropertyArray) values_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, (com.google.cloud.contentwarehouse.v1.PropertyArray) values_);
     }
     if (valuesCase_ == 7) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              7, (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_);
     }
     if (valuesCase_ == 8) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              8, (com.google.cloud.contentwarehouse.v1.MapProperty) values_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, (com.google.cloud.contentwarehouse.v1.MapProperty) values_);
     }
     if (valuesCase_ == 9) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              9, (com.google.cloud.contentwarehouse.v1.TimestampArray) values_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, (com.google.cloud.contentwarehouse.v1.TimestampArray) values_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -698,40 +589,48 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.contentwarehouse.v1.Property)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.Property other =
-        (com.google.cloud.contentwarehouse.v1.Property) obj;
+    com.google.cloud.contentwarehouse.v1.Property other = (com.google.cloud.contentwarehouse.v1.Property) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (!getValuesCase().equals(other.getValuesCase())) return false;
     switch (valuesCase_) {
       case 2:
-        if (!getIntegerValues().equals(other.getIntegerValues())) return false;
+        if (!getIntegerValues()
+            .equals(other.getIntegerValues())) return false;
         break;
       case 3:
-        if (!getFloatValues().equals(other.getFloatValues())) return false;
+        if (!getFloatValues()
+            .equals(other.getFloatValues())) return false;
         break;
       case 4:
-        if (!getTextValues().equals(other.getTextValues())) return false;
+        if (!getTextValues()
+            .equals(other.getTextValues())) return false;
         break;
       case 5:
-        if (!getEnumValues().equals(other.getEnumValues())) return false;
+        if (!getEnumValues()
+            .equals(other.getEnumValues())) return false;
         break;
       case 6:
-        if (!getPropertyValues().equals(other.getPropertyValues())) return false;
+        if (!getPropertyValues()
+            .equals(other.getPropertyValues())) return false;
         break;
       case 7:
-        if (!getDateTimeValues().equals(other.getDateTimeValues())) return false;
+        if (!getDateTimeValues()
+            .equals(other.getDateTimeValues())) return false;
         break;
       case 8:
-        if (!getMapProperty().equals(other.getMapProperty())) return false;
+        if (!getMapProperty()
+            .equals(other.getMapProperty())) return false;
         break;
       case 9:
-        if (!getTimestampValues().equals(other.getTimestampValues())) return false;
+        if (!getTimestampValues()
+            .equals(other.getTimestampValues())) return false;
         break;
       case 0:
       default:
@@ -790,136 +689,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.contentwarehouse.v1.Property parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.contentwarehouse.v1.Property parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.Property parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.Property parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.Property parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.Property parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.Property parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.Property 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.contentwarehouse.v1.Property parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.Property parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.Property parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.Property 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.contentwarehouse.v1.Property parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.Property parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.Property prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder 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;
   }
   /**
-   *
-   *
    * 
    * Property of a document.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.Property} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.Property) com.google.cloud.contentwarehouse.v1.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Property.class, - com.google.cloud.contentwarehouse.v1.Property.Builder.class); + com.google.cloud.contentwarehouse.v1.Property.class, com.google.cloud.contentwarehouse.v1.Property.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.Property.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(); @@ -955,9 +850,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; } @java.lang.Override @@ -976,11 +871,8 @@ public com.google.cloud.contentwarehouse.v1.Property build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.Property buildPartial() { - com.google.cloud.contentwarehouse.v1.Property result = - new com.google.cloud.contentwarehouse.v1.Property(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.Property result = new com.google.cloud.contentwarehouse.v1.Property(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -996,28 +888,36 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Property result) private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Property result) { result.valuesCase_ = valuesCase_; result.values_ = this.values_; - if (valuesCase_ == 2 && integerValuesBuilder_ != null) { + if (valuesCase_ == 2 && + integerValuesBuilder_ != null) { result.values_ = integerValuesBuilder_.build(); } - if (valuesCase_ == 3 && floatValuesBuilder_ != null) { + if (valuesCase_ == 3 && + floatValuesBuilder_ != null) { result.values_ = floatValuesBuilder_.build(); } - if (valuesCase_ == 4 && textValuesBuilder_ != null) { + if (valuesCase_ == 4 && + textValuesBuilder_ != null) { result.values_ = textValuesBuilder_.build(); } - if (valuesCase_ == 5 && enumValuesBuilder_ != null) { + if (valuesCase_ == 5 && + enumValuesBuilder_ != null) { result.values_ = enumValuesBuilder_.build(); } - if (valuesCase_ == 6 && propertyValuesBuilder_ != null) { + if (valuesCase_ == 6 && + propertyValuesBuilder_ != null) { result.values_ = propertyValuesBuilder_.build(); } - if (valuesCase_ == 7 && dateTimeValuesBuilder_ != null) { + if (valuesCase_ == 7 && + dateTimeValuesBuilder_ != null) { result.values_ = dateTimeValuesBuilder_.build(); } - if (valuesCase_ == 8 && mapPropertyBuilder_ != null) { + if (valuesCase_ == 8 && + mapPropertyBuilder_ != null) { result.values_ = mapPropertyBuilder_.build(); } - if (valuesCase_ == 9 && timestampValuesBuilder_ != null) { + if (valuesCase_ == 9 && + timestampValuesBuilder_ != null) { result.values_ = timestampValuesBuilder_.build(); } } @@ -1026,39 +926,38 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Property 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.contentwarehouse.v1.Property) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.Property) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.Property)other); } else { super.mergeFrom(other); return this; @@ -1073,50 +972,41 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Property other) { onChanged(); } switch (other.getValuesCase()) { - case INTEGER_VALUES: - { - mergeIntegerValues(other.getIntegerValues()); - break; - } - case FLOAT_VALUES: - { - mergeFloatValues(other.getFloatValues()); - break; - } - case TEXT_VALUES: - { - mergeTextValues(other.getTextValues()); - break; - } - case ENUM_VALUES: - { - mergeEnumValues(other.getEnumValues()); - break; - } - case PROPERTY_VALUES: - { - mergePropertyValues(other.getPropertyValues()); - break; - } - case DATE_TIME_VALUES: - { - mergeDateTimeValues(other.getDateTimeValues()); - break; - } - case MAP_PROPERTY: - { - mergeMapProperty(other.getMapProperty()); - break; - } - case TIMESTAMP_VALUES: - { - mergeTimestampValues(other.getTimestampValues()); - break; - } - case VALUES_NOT_SET: - { - break; - } + case INTEGER_VALUES: { + mergeIntegerValues(other.getIntegerValues()); + break; + } + case FLOAT_VALUES: { + mergeFloatValues(other.getFloatValues()); + break; + } + case TEXT_VALUES: { + mergeTextValues(other.getTextValues()); + break; + } + case ENUM_VALUES: { + mergeEnumValues(other.getEnumValues()); + break; + } + case PROPERTY_VALUES: { + mergePropertyValues(other.getPropertyValues()); + break; + } + case DATE_TIME_VALUES: { + mergeDateTimeValues(other.getDateTimeValues()); + break; + } + case MAP_PROPERTY: { + mergeMapProperty(other.getMapProperty()); + break; + } + case TIMESTAMP_VALUES: { + mergeTimestampValues(other.getTimestampValues()); + break; + } + case VALUES_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1144,67 +1034,73 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getIntegerValuesFieldBuilder().getBuilder(), extensionRegistry); - valuesCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getFloatValuesFieldBuilder().getBuilder(), extensionRegistry); - valuesCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getTextValuesFieldBuilder().getBuilder(), extensionRegistry); - valuesCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getEnumValuesFieldBuilder().getBuilder(), extensionRegistry); - valuesCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getPropertyValuesFieldBuilder().getBuilder(), extensionRegistry); - valuesCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getDateTimeValuesFieldBuilder().getBuilder(), extensionRegistry); - valuesCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage(getMapPropertyFieldBuilder().getBuilder(), extensionRegistry); - valuesCase_ = 8; - break; - } // case 66 - case 74: - { - input.readMessage(getTimestampValuesFieldBuilder().getBuilder(), extensionRegistry); - valuesCase_ = 9; - break; - } // case 74 - 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( + getIntegerValuesFieldBuilder().getBuilder(), + extensionRegistry); + valuesCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getFloatValuesFieldBuilder().getBuilder(), + extensionRegistry); + valuesCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getTextValuesFieldBuilder().getBuilder(), + extensionRegistry); + valuesCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getEnumValuesFieldBuilder().getBuilder(), + extensionRegistry); + valuesCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getPropertyValuesFieldBuilder().getBuilder(), + extensionRegistry); + valuesCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getDateTimeValuesFieldBuilder().getBuilder(), + extensionRegistry); + valuesCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getMapPropertyFieldBuilder().getBuilder(), + extensionRegistry); + valuesCase_ = 8; + break; + } // case 66 + case 74: { + input.readMessage( + getTimestampValuesFieldBuilder().getBuilder(), + extensionRegistry); + valuesCase_ = 9; + 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) { @@ -1214,12 +1110,12 @@ public Builder mergeFrom( } // finally return this; } - private int valuesCase_ = 0; private java.lang.Object values_; - - public ValuesCase getValuesCase() { - return ValuesCase.forNumber(valuesCase_); + public ValuesCase + getValuesCase() { + return ValuesCase.forNumber( + valuesCase_); } public Builder clearValues() { @@ -1233,21 +1129,19 @@ public Builder clearValues() { private java.lang.Object name_ = ""; /** - * - * *
      * Required. Must match the name of a PropertyDefinition in the
      * DocumentSchema.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -1256,22 +1150,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Must match the name of a PropertyDefinition in the
      * DocumentSchema.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1279,37 +1172,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Must match the name of a PropertyDefinition in the
      * DocumentSchema.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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. Must match the name of a PropertyDefinition in the
      * DocumentSchema.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1319,22 +1205,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Must match the name of a PropertyDefinition in the
      * DocumentSchema.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -1343,19 +1225,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IntegerArray, - com.google.cloud.contentwarehouse.v1.IntegerArray.Builder, - com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder> - integerValuesBuilder_; + com.google.cloud.contentwarehouse.v1.IntegerArray, com.google.cloud.contentwarehouse.v1.IntegerArray.Builder, com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder> integerValuesBuilder_; /** - * - * *
      * Integer property values.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; - * * @return Whether the integerValues field is set. */ @java.lang.Override @@ -1363,14 +1239,11 @@ public boolean hasIntegerValues() { return valuesCase_ == 2; } /** - * - * *
      * Integer property values.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; - * * @return The integerValues. */ @java.lang.Override @@ -1388,8 +1261,6 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray getIntegerValues() { } } /** - * - * *
      * Integer property values.
      * 
@@ -1410,8 +1281,6 @@ public Builder setIntegerValues(com.google.cloud.contentwarehouse.v1.IntegerArra return this; } /** - * - * *
      * Integer property values.
      * 
@@ -1430,8 +1299,6 @@ public Builder setIntegerValues( return this; } /** - * - * *
      * Integer property values.
      * 
@@ -1440,13 +1307,10 @@ public Builder setIntegerValues( */ public Builder mergeIntegerValues(com.google.cloud.contentwarehouse.v1.IntegerArray value) { if (integerValuesBuilder_ == null) { - if (valuesCase_ == 2 - && values_ != com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance()) { - values_ = - com.google.cloud.contentwarehouse.v1.IntegerArray.newBuilder( - (com.google.cloud.contentwarehouse.v1.IntegerArray) values_) - .mergeFrom(value) - .buildPartial(); + if (valuesCase_ == 2 && + values_ != com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance()) { + values_ = com.google.cloud.contentwarehouse.v1.IntegerArray.newBuilder((com.google.cloud.contentwarehouse.v1.IntegerArray) values_) + .mergeFrom(value).buildPartial(); } else { values_ = value; } @@ -1462,8 +1326,6 @@ public Builder mergeIntegerValues(com.google.cloud.contentwarehouse.v1.IntegerAr return this; } /** - * - * *
      * Integer property values.
      * 
@@ -1487,8 +1349,6 @@ public Builder clearIntegerValues() { return this; } /** - * - * *
      * Integer property values.
      * 
@@ -1499,8 +1359,6 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray.Builder getIntegerValue return getIntegerValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Integer property values.
      * 
@@ -1519,8 +1377,6 @@ public com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder getIntegerValu } } /** - * - * *
      * Integer property values.
      * 
@@ -1528,19 +1384,14 @@ public com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder getIntegerValu * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IntegerArray, - com.google.cloud.contentwarehouse.v1.IntegerArray.Builder, - com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder> + com.google.cloud.contentwarehouse.v1.IntegerArray, com.google.cloud.contentwarehouse.v1.IntegerArray.Builder, com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder> getIntegerValuesFieldBuilder() { if (integerValuesBuilder_ == null) { if (!(valuesCase_ == 2)) { values_ = com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance(); } - integerValuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IntegerArray, - com.google.cloud.contentwarehouse.v1.IntegerArray.Builder, - com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder>( + integerValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.IntegerArray, com.google.cloud.contentwarehouse.v1.IntegerArray.Builder, com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder>( (com.google.cloud.contentwarehouse.v1.IntegerArray) values_, getParentForChildren(), isClean()); @@ -1552,19 +1403,13 @@ public com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder getIntegerValu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.FloatArray, - com.google.cloud.contentwarehouse.v1.FloatArray.Builder, - com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder> - floatValuesBuilder_; + com.google.cloud.contentwarehouse.v1.FloatArray, com.google.cloud.contentwarehouse.v1.FloatArray.Builder, com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder> floatValuesBuilder_; /** - * - * *
      * Float property values.
      * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; - * * @return Whether the floatValues field is set. */ @java.lang.Override @@ -1572,14 +1417,11 @@ public boolean hasFloatValues() { return valuesCase_ == 3; } /** - * - * *
      * Float property values.
      * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; - * * @return The floatValues. */ @java.lang.Override @@ -1597,8 +1439,6 @@ public com.google.cloud.contentwarehouse.v1.FloatArray getFloatValues() { } } /** - * - * *
      * Float property values.
      * 
@@ -1619,8 +1459,6 @@ public Builder setFloatValues(com.google.cloud.contentwarehouse.v1.FloatArray va return this; } /** - * - * *
      * Float property values.
      * 
@@ -1639,8 +1477,6 @@ public Builder setFloatValues( return this; } /** - * - * *
      * Float property values.
      * 
@@ -1649,13 +1485,10 @@ public Builder setFloatValues( */ public Builder mergeFloatValues(com.google.cloud.contentwarehouse.v1.FloatArray value) { if (floatValuesBuilder_ == null) { - if (valuesCase_ == 3 - && values_ != com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance()) { - values_ = - com.google.cloud.contentwarehouse.v1.FloatArray.newBuilder( - (com.google.cloud.contentwarehouse.v1.FloatArray) values_) - .mergeFrom(value) - .buildPartial(); + if (valuesCase_ == 3 && + values_ != com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance()) { + values_ = com.google.cloud.contentwarehouse.v1.FloatArray.newBuilder((com.google.cloud.contentwarehouse.v1.FloatArray) values_) + .mergeFrom(value).buildPartial(); } else { values_ = value; } @@ -1671,8 +1504,6 @@ public Builder mergeFloatValues(com.google.cloud.contentwarehouse.v1.FloatArray return this; } /** - * - * *
      * Float property values.
      * 
@@ -1696,8 +1527,6 @@ public Builder clearFloatValues() { return this; } /** - * - * *
      * Float property values.
      * 
@@ -1708,8 +1537,6 @@ public com.google.cloud.contentwarehouse.v1.FloatArray.Builder getFloatValuesBui return getFloatValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Float property values.
      * 
@@ -1728,8 +1555,6 @@ public com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder getFloatValuesOr } } /** - * - * *
      * Float property values.
      * 
@@ -1737,19 +1562,14 @@ public com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder getFloatValuesOr * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.FloatArray, - com.google.cloud.contentwarehouse.v1.FloatArray.Builder, - com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder> + com.google.cloud.contentwarehouse.v1.FloatArray, com.google.cloud.contentwarehouse.v1.FloatArray.Builder, com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder> getFloatValuesFieldBuilder() { if (floatValuesBuilder_ == null) { if (!(valuesCase_ == 3)) { values_ = com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance(); } - floatValuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.FloatArray, - com.google.cloud.contentwarehouse.v1.FloatArray.Builder, - com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder>( + floatValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.FloatArray, com.google.cloud.contentwarehouse.v1.FloatArray.Builder, com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder>( (com.google.cloud.contentwarehouse.v1.FloatArray) values_, getParentForChildren(), isClean()); @@ -1761,19 +1581,13 @@ public com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder getFloatValuesOr } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TextArray, - com.google.cloud.contentwarehouse.v1.TextArray.Builder, - com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder> - textValuesBuilder_; + com.google.cloud.contentwarehouse.v1.TextArray, com.google.cloud.contentwarehouse.v1.TextArray.Builder, com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder> textValuesBuilder_; /** - * - * *
      * String/text property values.
      * 
* * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; - * * @return Whether the textValues field is set. */ @java.lang.Override @@ -1781,14 +1595,11 @@ public boolean hasTextValues() { return valuesCase_ == 4; } /** - * - * *
      * String/text property values.
      * 
* * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; - * * @return The textValues. */ @java.lang.Override @@ -1806,8 +1617,6 @@ public com.google.cloud.contentwarehouse.v1.TextArray getTextValues() { } } /** - * - * *
      * String/text property values.
      * 
@@ -1828,8 +1637,6 @@ public Builder setTextValues(com.google.cloud.contentwarehouse.v1.TextArray valu return this; } /** - * - * *
      * String/text property values.
      * 
@@ -1848,8 +1655,6 @@ public Builder setTextValues( return this; } /** - * - * *
      * String/text property values.
      * 
@@ -1858,13 +1663,10 @@ public Builder setTextValues( */ public Builder mergeTextValues(com.google.cloud.contentwarehouse.v1.TextArray value) { if (textValuesBuilder_ == null) { - if (valuesCase_ == 4 - && values_ != com.google.cloud.contentwarehouse.v1.TextArray.getDefaultInstance()) { - values_ = - com.google.cloud.contentwarehouse.v1.TextArray.newBuilder( - (com.google.cloud.contentwarehouse.v1.TextArray) values_) - .mergeFrom(value) - .buildPartial(); + if (valuesCase_ == 4 && + values_ != com.google.cloud.contentwarehouse.v1.TextArray.getDefaultInstance()) { + values_ = com.google.cloud.contentwarehouse.v1.TextArray.newBuilder((com.google.cloud.contentwarehouse.v1.TextArray) values_) + .mergeFrom(value).buildPartial(); } else { values_ = value; } @@ -1880,8 +1682,6 @@ public Builder mergeTextValues(com.google.cloud.contentwarehouse.v1.TextArray va return this; } /** - * - * *
      * String/text property values.
      * 
@@ -1905,8 +1705,6 @@ public Builder clearTextValues() { return this; } /** - * - * *
      * String/text property values.
      * 
@@ -1917,8 +1715,6 @@ public com.google.cloud.contentwarehouse.v1.TextArray.Builder getTextValuesBuild return getTextValuesFieldBuilder().getBuilder(); } /** - * - * *
      * String/text property values.
      * 
@@ -1937,8 +1733,6 @@ public com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder getTextValuesOrBu } } /** - * - * *
      * String/text property values.
      * 
@@ -1946,19 +1740,14 @@ public com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder getTextValuesOrBu * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TextArray, - com.google.cloud.contentwarehouse.v1.TextArray.Builder, - com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder> + com.google.cloud.contentwarehouse.v1.TextArray, com.google.cloud.contentwarehouse.v1.TextArray.Builder, com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder> getTextValuesFieldBuilder() { if (textValuesBuilder_ == null) { if (!(valuesCase_ == 4)) { values_ = com.google.cloud.contentwarehouse.v1.TextArray.getDefaultInstance(); } - textValuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TextArray, - com.google.cloud.contentwarehouse.v1.TextArray.Builder, - com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder>( + textValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.TextArray, com.google.cloud.contentwarehouse.v1.TextArray.Builder, com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder>( (com.google.cloud.contentwarehouse.v1.TextArray) values_, getParentForChildren(), isClean()); @@ -1970,19 +1759,13 @@ public com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder getTextValuesOrBu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumArray, - com.google.cloud.contentwarehouse.v1.EnumArray.Builder, - com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder> - enumValuesBuilder_; + com.google.cloud.contentwarehouse.v1.EnumArray, com.google.cloud.contentwarehouse.v1.EnumArray.Builder, com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder> enumValuesBuilder_; /** - * - * *
      * Enum property values.
      * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; - * * @return Whether the enumValues field is set. */ @java.lang.Override @@ -1990,14 +1773,11 @@ public boolean hasEnumValues() { return valuesCase_ == 5; } /** - * - * *
      * Enum property values.
      * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; - * * @return The enumValues. */ @java.lang.Override @@ -2015,8 +1795,6 @@ public com.google.cloud.contentwarehouse.v1.EnumArray getEnumValues() { } } /** - * - * *
      * Enum property values.
      * 
@@ -2037,8 +1815,6 @@ public Builder setEnumValues(com.google.cloud.contentwarehouse.v1.EnumArray valu return this; } /** - * - * *
      * Enum property values.
      * 
@@ -2057,8 +1833,6 @@ public Builder setEnumValues( return this; } /** - * - * *
      * Enum property values.
      * 
@@ -2067,13 +1841,10 @@ public Builder setEnumValues( */ public Builder mergeEnumValues(com.google.cloud.contentwarehouse.v1.EnumArray value) { if (enumValuesBuilder_ == null) { - if (valuesCase_ == 5 - && values_ != com.google.cloud.contentwarehouse.v1.EnumArray.getDefaultInstance()) { - values_ = - com.google.cloud.contentwarehouse.v1.EnumArray.newBuilder( - (com.google.cloud.contentwarehouse.v1.EnumArray) values_) - .mergeFrom(value) - .buildPartial(); + if (valuesCase_ == 5 && + values_ != com.google.cloud.contentwarehouse.v1.EnumArray.getDefaultInstance()) { + values_ = com.google.cloud.contentwarehouse.v1.EnumArray.newBuilder((com.google.cloud.contentwarehouse.v1.EnumArray) values_) + .mergeFrom(value).buildPartial(); } else { values_ = value; } @@ -2089,8 +1860,6 @@ public Builder mergeEnumValues(com.google.cloud.contentwarehouse.v1.EnumArray va return this; } /** - * - * *
      * Enum property values.
      * 
@@ -2114,8 +1883,6 @@ public Builder clearEnumValues() { return this; } /** - * - * *
      * Enum property values.
      * 
@@ -2126,8 +1893,6 @@ public com.google.cloud.contentwarehouse.v1.EnumArray.Builder getEnumValuesBuild return getEnumValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Enum property values.
      * 
@@ -2146,8 +1911,6 @@ public com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder getEnumValuesOrBu } } /** - * - * *
      * Enum property values.
      * 
@@ -2155,19 +1918,14 @@ public com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder getEnumValuesOrBu * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumArray, - com.google.cloud.contentwarehouse.v1.EnumArray.Builder, - com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder> + com.google.cloud.contentwarehouse.v1.EnumArray, com.google.cloud.contentwarehouse.v1.EnumArray.Builder, com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder> getEnumValuesFieldBuilder() { if (enumValuesBuilder_ == null) { if (!(valuesCase_ == 5)) { values_ = com.google.cloud.contentwarehouse.v1.EnumArray.getDefaultInstance(); } - enumValuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumArray, - com.google.cloud.contentwarehouse.v1.EnumArray.Builder, - com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder>( + enumValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.EnumArray, com.google.cloud.contentwarehouse.v1.EnumArray.Builder, com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder>( (com.google.cloud.contentwarehouse.v1.EnumArray) values_, getParentForChildren(), isClean()); @@ -2179,19 +1937,13 @@ public com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder getEnumValuesOrBu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyArray, - com.google.cloud.contentwarehouse.v1.PropertyArray.Builder, - com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder> - propertyValuesBuilder_; + com.google.cloud.contentwarehouse.v1.PropertyArray, com.google.cloud.contentwarehouse.v1.PropertyArray.Builder, com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder> propertyValuesBuilder_; /** - * - * *
      * Nested structured data property values.
      * 
* * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; - * * @return Whether the propertyValues field is set. */ @java.lang.Override @@ -2199,14 +1951,11 @@ public boolean hasPropertyValues() { return valuesCase_ == 6; } /** - * - * *
      * Nested structured data property values.
      * 
* * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; - * * @return The propertyValues. */ @java.lang.Override @@ -2224,8 +1973,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray getPropertyValues() { } } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2246,8 +1993,6 @@ public Builder setPropertyValues(com.google.cloud.contentwarehouse.v1.PropertyAr return this; } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2266,8 +2011,6 @@ public Builder setPropertyValues( return this; } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2276,13 +2019,10 @@ public Builder setPropertyValues( */ public Builder mergePropertyValues(com.google.cloud.contentwarehouse.v1.PropertyArray value) { if (propertyValuesBuilder_ == null) { - if (valuesCase_ == 6 - && values_ != com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance()) { - values_ = - com.google.cloud.contentwarehouse.v1.PropertyArray.newBuilder( - (com.google.cloud.contentwarehouse.v1.PropertyArray) values_) - .mergeFrom(value) - .buildPartial(); + if (valuesCase_ == 6 && + values_ != com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance()) { + values_ = com.google.cloud.contentwarehouse.v1.PropertyArray.newBuilder((com.google.cloud.contentwarehouse.v1.PropertyArray) values_) + .mergeFrom(value).buildPartial(); } else { values_ = value; } @@ -2298,8 +2038,6 @@ public Builder mergePropertyValues(com.google.cloud.contentwarehouse.v1.Property return this; } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2323,8 +2061,6 @@ public Builder clearPropertyValues() { return this; } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2335,8 +2071,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray.Builder getPropertyVal return getPropertyValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2344,8 +2078,7 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray.Builder getPropertyVal * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder - getPropertyValuesOrBuilder() { + public com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder getPropertyValuesOrBuilder() { if ((valuesCase_ == 6) && (propertyValuesBuilder_ != null)) { return propertyValuesBuilder_.getMessageOrBuilder(); } else { @@ -2356,8 +2089,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray.Builder getPropertyVal } } /** - * - * *
      * Nested structured data property values.
      * 
@@ -2365,19 +2096,14 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray.Builder getPropertyVal * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyArray, - com.google.cloud.contentwarehouse.v1.PropertyArray.Builder, - com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder> + com.google.cloud.contentwarehouse.v1.PropertyArray, com.google.cloud.contentwarehouse.v1.PropertyArray.Builder, com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder> getPropertyValuesFieldBuilder() { if (propertyValuesBuilder_ == null) { if (!(valuesCase_ == 6)) { values_ = com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance(); } - propertyValuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyArray, - com.google.cloud.contentwarehouse.v1.PropertyArray.Builder, - com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder>( + propertyValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.PropertyArray, com.google.cloud.contentwarehouse.v1.PropertyArray.Builder, com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder>( (com.google.cloud.contentwarehouse.v1.PropertyArray) values_, getParentForChildren(), isClean()); @@ -2389,20 +2115,14 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray.Builder getPropertyVal } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DateTimeArray, - com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder, - com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder> - dateTimeValuesBuilder_; + com.google.cloud.contentwarehouse.v1.DateTimeArray, com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder, com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder> dateTimeValuesBuilder_; /** - * - * *
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
      * 
* * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7; - * * @return Whether the dateTimeValues field is set. */ @java.lang.Override @@ -2410,15 +2130,12 @@ public boolean hasDateTimeValues() { return valuesCase_ == 7; } /** - * - * *
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
      * 
* * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7; - * * @return The dateTimeValues. */ @java.lang.Override @@ -2436,8 +2153,6 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray getDateTimeValues() { } } /** - * - * *
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2459,8 +2174,6 @@ public Builder setDateTimeValues(com.google.cloud.contentwarehouse.v1.DateTimeAr
       return this;
     }
     /**
-     *
-     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2480,8 +2193,6 @@ public Builder setDateTimeValues(
       return this;
     }
     /**
-     *
-     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2491,13 +2202,10 @@ public Builder setDateTimeValues(
      */
     public Builder mergeDateTimeValues(com.google.cloud.contentwarehouse.v1.DateTimeArray value) {
       if (dateTimeValuesBuilder_ == null) {
-        if (valuesCase_ == 7
-            && values_ != com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance()) {
-          values_ =
-              com.google.cloud.contentwarehouse.v1.DateTimeArray.newBuilder(
-                      (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (valuesCase_ == 7 &&
+            values_ != com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance()) {
+          values_ = com.google.cloud.contentwarehouse.v1.DateTimeArray.newBuilder((com.google.cloud.contentwarehouse.v1.DateTimeArray) values_)
+              .mergeFrom(value).buildPartial();
         } else {
           values_ = value;
         }
@@ -2513,8 +2221,6 @@ public Builder mergeDateTimeValues(com.google.cloud.contentwarehouse.v1.DateTime
       return this;
     }
     /**
-     *
-     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2539,8 +2245,6 @@ public Builder clearDateTimeValues() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2552,8 +2256,6 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder getDateTimeVal
       return getDateTimeValuesFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2562,8 +2264,7 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder getDateTimeVal
      * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;
      */
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder
-        getDateTimeValuesOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder getDateTimeValuesOrBuilder() {
       if ((valuesCase_ == 7) && (dateTimeValuesBuilder_ != null)) {
         return dateTimeValuesBuilder_.getMessageOrBuilder();
       } else {
@@ -2574,8 +2275,6 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder getDateTimeVal
       }
     }
     /**
-     *
-     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2584,19 +2283,14 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder getDateTimeVal
      * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.DateTimeArray,
-            com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder,
-            com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder>
+        com.google.cloud.contentwarehouse.v1.DateTimeArray, com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder, com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder> 
         getDateTimeValuesFieldBuilder() {
       if (dateTimeValuesBuilder_ == null) {
         if (!(valuesCase_ == 7)) {
           values_ = com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance();
         }
-        dateTimeValuesBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.DateTimeArray,
-                com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder,
-                com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder>(
+        dateTimeValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.DateTimeArray, com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder, com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder>(
                 (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_,
                 getParentForChildren(),
                 isClean());
@@ -2608,19 +2302,13 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder getDateTimeVal
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.MapProperty,
-            com.google.cloud.contentwarehouse.v1.MapProperty.Builder,
-            com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder>
-        mapPropertyBuilder_;
+        com.google.cloud.contentwarehouse.v1.MapProperty, com.google.cloud.contentwarehouse.v1.MapProperty.Builder, com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder> mapPropertyBuilder_;
     /**
-     *
-     *
      * 
      * Map property values.
      * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; - * * @return Whether the mapProperty field is set. */ @java.lang.Override @@ -2628,14 +2316,11 @@ public boolean hasMapProperty() { return valuesCase_ == 8; } /** - * - * *
      * Map property values.
      * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; - * * @return The mapProperty. */ @java.lang.Override @@ -2653,8 +2338,6 @@ public com.google.cloud.contentwarehouse.v1.MapProperty getMapProperty() { } } /** - * - * *
      * Map property values.
      * 
@@ -2675,8 +2358,6 @@ public Builder setMapProperty(com.google.cloud.contentwarehouse.v1.MapProperty v return this; } /** - * - * *
      * Map property values.
      * 
@@ -2695,8 +2376,6 @@ public Builder setMapProperty( return this; } /** - * - * *
      * Map property values.
      * 
@@ -2705,13 +2384,10 @@ public Builder setMapProperty( */ public Builder mergeMapProperty(com.google.cloud.contentwarehouse.v1.MapProperty value) { if (mapPropertyBuilder_ == null) { - if (valuesCase_ == 8 - && values_ != com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance()) { - values_ = - com.google.cloud.contentwarehouse.v1.MapProperty.newBuilder( - (com.google.cloud.contentwarehouse.v1.MapProperty) values_) - .mergeFrom(value) - .buildPartial(); + if (valuesCase_ == 8 && + values_ != com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance()) { + values_ = com.google.cloud.contentwarehouse.v1.MapProperty.newBuilder((com.google.cloud.contentwarehouse.v1.MapProperty) values_) + .mergeFrom(value).buildPartial(); } else { values_ = value; } @@ -2727,8 +2403,6 @@ public Builder mergeMapProperty(com.google.cloud.contentwarehouse.v1.MapProperty return this; } /** - * - * *
      * Map property values.
      * 
@@ -2752,8 +2426,6 @@ public Builder clearMapProperty() { return this; } /** - * - * *
      * Map property values.
      * 
@@ -2764,8 +2436,6 @@ public com.google.cloud.contentwarehouse.v1.MapProperty.Builder getMapPropertyBu return getMapPropertyFieldBuilder().getBuilder(); } /** - * - * *
      * Map property values.
      * 
@@ -2784,8 +2454,6 @@ public com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder getMapPropertyO } } /** - * - * *
      * Map property values.
      * 
@@ -2793,19 +2461,14 @@ public com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder getMapPropertyO * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MapProperty, - com.google.cloud.contentwarehouse.v1.MapProperty.Builder, - com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder> + com.google.cloud.contentwarehouse.v1.MapProperty, com.google.cloud.contentwarehouse.v1.MapProperty.Builder, com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder> getMapPropertyFieldBuilder() { if (mapPropertyBuilder_ == null) { if (!(valuesCase_ == 8)) { values_ = com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance(); } - mapPropertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MapProperty, - com.google.cloud.contentwarehouse.v1.MapProperty.Builder, - com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder>( + mapPropertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.MapProperty, com.google.cloud.contentwarehouse.v1.MapProperty.Builder, com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder>( (com.google.cloud.contentwarehouse.v1.MapProperty) values_, getParentForChildren(), isClean()); @@ -2817,20 +2480,14 @@ public com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder getMapPropertyO } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampArray, - com.google.cloud.contentwarehouse.v1.TimestampArray.Builder, - com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder> - timestampValuesBuilder_; + com.google.cloud.contentwarehouse.v1.TimestampArray, com.google.cloud.contentwarehouse.v1.TimestampArray.Builder, com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder> timestampValuesBuilder_; /** - * - * *
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
      * 
* * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9; - * * @return Whether the timestampValues field is set. */ @java.lang.Override @@ -2838,15 +2495,12 @@ public boolean hasTimestampValues() { return valuesCase_ == 9; } /** - * - * *
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
      * 
* * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9; - * * @return The timestampValues. */ @java.lang.Override @@ -2864,8 +2518,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray getTimestampValues() } } /** - * - * *
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2887,8 +2539,6 @@ public Builder setTimestampValues(com.google.cloud.contentwarehouse.v1.Timestamp
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2908,8 +2558,6 @@ public Builder setTimestampValues(
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2919,14 +2567,10 @@ public Builder setTimestampValues(
      */
     public Builder mergeTimestampValues(com.google.cloud.contentwarehouse.v1.TimestampArray value) {
       if (timestampValuesBuilder_ == null) {
-        if (valuesCase_ == 9
-            && values_
-                != com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance()) {
-          values_ =
-              com.google.cloud.contentwarehouse.v1.TimestampArray.newBuilder(
-                      (com.google.cloud.contentwarehouse.v1.TimestampArray) values_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (valuesCase_ == 9 &&
+            values_ != com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance()) {
+          values_ = com.google.cloud.contentwarehouse.v1.TimestampArray.newBuilder((com.google.cloud.contentwarehouse.v1.TimestampArray) values_)
+              .mergeFrom(value).buildPartial();
         } else {
           values_ = value;
         }
@@ -2942,8 +2586,6 @@ public Builder mergeTimestampValues(com.google.cloud.contentwarehouse.v1.Timesta
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2968,8 +2610,6 @@ public Builder clearTimestampValues() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2981,8 +2621,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray.Builder getTimestampV
       return getTimestampValuesFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2991,8 +2629,7 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray.Builder getTimestampV
      * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;
      */
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder
-        getTimestampValuesOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder getTimestampValuesOrBuilder() {
       if ((valuesCase_ == 9) && (timestampValuesBuilder_ != null)) {
         return timestampValuesBuilder_.getMessageOrBuilder();
       } else {
@@ -3003,8 +2640,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray.Builder getTimestampV
       }
     }
     /**
-     *
-     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -3013,19 +2648,14 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray.Builder getTimestampV
      * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.TimestampArray,
-            com.google.cloud.contentwarehouse.v1.TimestampArray.Builder,
-            com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder>
+        com.google.cloud.contentwarehouse.v1.TimestampArray, com.google.cloud.contentwarehouse.v1.TimestampArray.Builder, com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder> 
         getTimestampValuesFieldBuilder() {
       if (timestampValuesBuilder_ == null) {
         if (!(valuesCase_ == 9)) {
           values_ = com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance();
         }
-        timestampValuesBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.TimestampArray,
-                com.google.cloud.contentwarehouse.v1.TimestampArray.Builder,
-                com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder>(
+        timestampValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.TimestampArray, com.google.cloud.contentwarehouse.v1.TimestampArray.Builder, com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder>(
                 (com.google.cloud.contentwarehouse.v1.TimestampArray) values_,
                 getParentForChildren(),
                 isClean());
@@ -3035,9 +2665,9 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray.Builder getTimestampV
       onChanged();
       return timestampValuesBuilder_;
     }
-
     @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);
     }
 
@@ -3047,12 +2677,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.Property)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.Property)
   private static final com.google.cloud.contentwarehouse.v1.Property DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.Property();
   }
@@ -3061,27 +2691,27 @@ public static com.google.cloud.contentwarehouse.v1.Property getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Property parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 Property parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3096,4 +2726,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.Property getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java
similarity index 70%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java
index e559d1405fc6..aad8a9bad77f 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java
@@ -1,74 +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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Property values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyArray} */ -public final class PropertyArray extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PropertyArray extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PropertyArray) PropertyArrayOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PropertyArray.newBuilder() to construct. private PropertyArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PropertyArray() { properties_ = 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 PropertyArray(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyArray.class, - com.google.cloud.contentwarehouse.v1.PropertyArray.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyArray.class, com.google.cloud.contentwarehouse.v1.PropertyArray.Builder.class); } public static final int PROPERTIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List properties_; /** - * - * *
    * List of property values.
    * 
@@ -80,8 +58,6 @@ public java.util.List getProperti return properties_; } /** - * - * *
    * List of property values.
    * 
@@ -89,13 +65,11 @@ public java.util.List getProperti * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPropertiesOrBuilderList() { return properties_; } /** - * - * *
    * List of property values.
    * 
@@ -107,8 +81,6 @@ public int getPropertiesCount() { return properties_.size(); } /** - * - * *
    * List of property values.
    * 
@@ -120,8 +92,6 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { return properties_.get(index); } /** - * - * *
    * List of property values.
    * 
@@ -129,12 +99,12 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder( + int index) { return properties_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,7 +116,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 < properties_.size(); i++) { output.writeMessage(1, properties_.get(i)); } @@ -160,7 +131,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, properties_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -170,15 +142,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.contentwarehouse.v1.PropertyArray)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.PropertyArray other = - (com.google.cloud.contentwarehouse.v1.PropertyArray) obj; + com.google.cloud.contentwarehouse.v1.PropertyArray other = (com.google.cloud.contentwarehouse.v1.PropertyArray) obj; - if (!getPropertiesList().equals(other.getPropertiesList())) return false; + if (!getPropertiesList() + .equals(other.getPropertiesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -200,135 +172,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.PropertyArray 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.contentwarehouse.v1.PropertyArray parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyArray parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.PropertyArray 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.contentwarehouse.v1.PropertyArray parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.PropertyArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Property values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyArray} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PropertyArray) com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyArray.class, - com.google.cloud.contentwarehouse.v1.PropertyArray.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyArray.class, com.google.cloud.contentwarehouse.v1.PropertyArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.PropertyArray.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(); @@ -344,9 +312,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; } @java.lang.Override @@ -365,18 +333,14 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyArray buildPartial() { - com.google.cloud.contentwarehouse.v1.PropertyArray result = - new com.google.cloud.contentwarehouse.v1.PropertyArray(this); + com.google.cloud.contentwarehouse.v1.PropertyArray result = new com.google.cloud.contentwarehouse.v1.PropertyArray(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.PropertyArray result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.PropertyArray result) { if (propertiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { properties_ = java.util.Collections.unmodifiableList(properties_); @@ -396,39 +360,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.PropertyArray 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.contentwarehouse.v1.PropertyArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyArray) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyArray)other); } else { super.mergeFrom(other); return this; @@ -436,8 +399,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyArray other) { - if (other == com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance()) return this; if (propertiesBuilder_ == null) { if (!other.properties_.isEmpty()) { if (properties_.isEmpty()) { @@ -456,10 +418,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyArray othe propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000001); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPropertiesFieldBuilder() - : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertiesFieldBuilder() : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -491,26 +452,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.Property m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.Property.parser(), extensionRegistry); - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(m); - } else { - propertiesBuilder_.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.contentwarehouse.v1.Property m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.Property.parser(), + extensionRegistry); + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(m); + } else { + propertiesBuilder_.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) { @@ -520,29 +480,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List properties_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePropertiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - properties_ = - new java.util.ArrayList(properties_); + properties_ = new java.util.ArrayList(properties_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Property, - com.google.cloud.contentwarehouse.v1.Property.Builder, - com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> - propertiesBuilder_; + com.google.cloud.contentwarehouse.v1.Property, com.google.cloud.contentwarehouse.v1.Property.Builder, com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> propertiesBuilder_; /** - * - * *
      * List of property values.
      * 
@@ -557,8 +509,6 @@ public java.util.List getProperti } } /** - * - * *
      * List of property values.
      * 
@@ -573,8 +523,6 @@ public int getPropertiesCount() { } } /** - * - * *
      * List of property values.
      * 
@@ -589,15 +537,14 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { } } /** - * - * *
      * List of property values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - public Builder setProperties(int index, com.google.cloud.contentwarehouse.v1.Property value) { + public Builder setProperties( + int index, com.google.cloud.contentwarehouse.v1.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -611,8 +558,6 @@ public Builder setProperties(int index, com.google.cloud.contentwarehouse.v1.Pro return this; } /** - * - * *
      * List of property values.
      * 
@@ -631,8 +576,6 @@ public Builder setProperties( return this; } /** - * - * *
      * List of property values.
      * 
@@ -653,15 +596,14 @@ public Builder addProperties(com.google.cloud.contentwarehouse.v1.Property value return this; } /** - * - * *
      * List of property values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - public Builder addProperties(int index, com.google.cloud.contentwarehouse.v1.Property value) { + public Builder addProperties( + int index, com.google.cloud.contentwarehouse.v1.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -675,8 +617,6 @@ public Builder addProperties(int index, com.google.cloud.contentwarehouse.v1.Pro return this; } /** - * - * *
      * List of property values.
      * 
@@ -695,8 +635,6 @@ public Builder addProperties( return this; } /** - * - * *
      * List of property values.
      * 
@@ -715,8 +653,6 @@ public Builder addProperties( return this; } /** - * - * *
      * List of property values.
      * 
@@ -727,7 +663,8 @@ public Builder addAllProperties( java.lang.Iterable values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); @@ -735,8 +672,6 @@ public Builder addAllProperties( return this; } /** - * - * *
      * List of property values.
      * 
@@ -754,8 +689,6 @@ public Builder clearProperties() { return this; } /** - * - * *
      * List of property values.
      * 
@@ -773,20 +706,17 @@ public Builder removeProperties(int index) { return this; } /** - * - * *
      * List of property values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - public com.google.cloud.contentwarehouse.v1.Property.Builder getPropertiesBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.Property.Builder getPropertiesBuilder( + int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of property values.
      * 
@@ -796,22 +726,19 @@ public com.google.cloud.contentwarehouse.v1.Property.Builder getPropertiesBuilde public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder( int index) { if (propertiesBuilder_ == null) { - return properties_.get(index); - } else { + return properties_.get(index); } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of property values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - public java.util.List - getPropertiesOrBuilderList() { + public java.util.List + getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { @@ -819,8 +746,6 @@ public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBui } } /** - * - * *
      * List of property values.
      * 
@@ -828,55 +753,49 @@ public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBui * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilder() { - return getPropertiesFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); + return getPropertiesFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); } /** - * - * *
      * List of property values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilder(int index) { - return getPropertiesFieldBuilder() - .addBuilder(index, com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilder( + int index) { + return getPropertiesFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); } /** - * - * *
      * List of property values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - public java.util.List - getPropertiesBuilderList() { + public java.util.List + getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Property, - com.google.cloud.contentwarehouse.v1.Property.Builder, - com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> + com.google.cloud.contentwarehouse.v1.Property, com.google.cloud.contentwarehouse.v1.Property.Builder, com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { - propertiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Property, - com.google.cloud.contentwarehouse.v1.Property.Builder, - com.google.cloud.contentwarehouse.v1.PropertyOrBuilder>( - properties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Property, com.google.cloud.contentwarehouse.v1.Property.Builder, com.google.cloud.contentwarehouse.v1.PropertyOrBuilder>( + properties_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); properties_ = null; } return propertiesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -886,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.PropertyArray) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PropertyArray) private static final com.google.cloud.contentwarehouse.v1.PropertyArray DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PropertyArray(); } @@ -900,27 +819,27 @@ public static com.google.cloud.contentwarehouse.v1.PropertyArray getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PropertyArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -935,4 +854,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.PropertyArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java similarity index 65% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java index a34851a4e1a9..cd574911adf8 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface PropertyArrayOrBuilder - extends +public interface PropertyArrayOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PropertyArray) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of property values.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - java.util.List getPropertiesList(); + java.util.List + getPropertiesList(); /** - * - * *
    * List of property values.
    * 
@@ -44,8 +25,6 @@ public interface PropertyArrayOrBuilder */ com.google.cloud.contentwarehouse.v1.Property getProperties(int index); /** - * - * *
    * List of property values.
    * 
@@ -54,24 +33,21 @@ public interface PropertyArrayOrBuilder */ int getPropertiesCount(); /** - * - * *
    * List of property values.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - java.util.List + java.util.List getPropertiesOrBuilderList(); /** - * - * *
    * List of property values.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder( + int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java index dd49ea275e0a..d5b776ec0db8 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.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/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Defines the metadata for a schema property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyDefinition} */ -public final class PropertyDefinition extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PropertyDefinition extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PropertyDefinition) PropertyDefinitionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PropertyDefinition.newBuilder() to construct. private PropertyDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PropertyDefinition() { name_ = ""; displayName_ = ""; @@ -46,38 +28,34 @@ private PropertyDefinition() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PropertyDefinition(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.class, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.class, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder.class); } /** - * - * *
    * Stores the retrieval importance.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance} */ - public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEnum { + public enum RetrievalImportance + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * No importance specified. Default medium importance.
      * 
@@ -86,8 +64,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ RETRIEVAL_IMPORTANCE_UNSPECIFIED(0), /** - * - * *
      * Highest importance.
      * 
@@ -96,8 +72,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ HIGHEST(1), /** - * - * *
      * Higher importance.
      * 
@@ -106,8 +80,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ HIGHER(2), /** - * - * *
      * High importance.
      * 
@@ -116,8 +88,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ HIGH(3), /** - * - * *
      * Medium importance.
      * 
@@ -126,8 +96,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ MEDIUM(4), /** - * - * *
      * Low importance (negative).
      * 
@@ -136,8 +104,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ LOW(5), /** - * - * *
      * Lowest importance (negative).
      * 
@@ -149,8 +115,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * No importance specified. Default medium importance.
      * 
@@ -159,8 +123,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ public static final int RETRIEVAL_IMPORTANCE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Highest importance.
      * 
@@ -169,8 +131,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ public static final int HIGHEST_VALUE = 1; /** - * - * *
      * Higher importance.
      * 
@@ -179,8 +139,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ public static final int HIGHER_VALUE = 2; /** - * - * *
      * High importance.
      * 
@@ -189,8 +147,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ public static final int HIGH_VALUE = 3; /** - * - * *
      * Medium importance.
      * 
@@ -199,8 +155,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ public static final int MEDIUM_VALUE = 4; /** - * - * *
      * Low importance (negative).
      * 
@@ -209,8 +163,6 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ public static final int LOW_VALUE = 5; /** - * - * *
      * Lowest importance (negative).
      * 
@@ -219,6 +171,7 @@ public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEn */ public static final int LOWEST_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -243,22 +196,14 @@ public static RetrievalImportance valueOf(int value) { */ public static RetrievalImportance forNumber(int value) { switch (value) { - case 0: - return RETRIEVAL_IMPORTANCE_UNSPECIFIED; - case 1: - return HIGHEST; - case 2: - return HIGHER; - case 3: - return HIGH; - case 4: - return MEDIUM; - case 5: - return LOW; - case 6: - return LOWEST; - default: - return null; + case 0: return RETRIEVAL_IMPORTANCE_UNSPECIFIED; + case 1: return HIGHEST; + case 2: return HIGHER; + case 3: return HIGH; + case 4: return MEDIUM; + case 5: return LOW; + case 6: return LOWEST; + default: return null; } } @@ -266,31 +211,29 @@ public static RetrievalImportance forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + RetrievalImportance> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RetrievalImportance findValueByNumber(int number) { + return RetrievalImportance.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RetrievalImportance findValueByNumber(int number) { - return RetrievalImportance.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.contentwarehouse.v1.PropertyDefinition.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDescriptor().getEnumTypes().get(0); } private static final RetrievalImportance[] VALUES = values(); @@ -298,7 +241,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static RetrievalImportance 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; @@ -315,80 +259,66 @@ private RetrievalImportance(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance) } - public interface SchemaSourceOrBuilder - extends + public interface SchemaSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The schema name in the source.
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * The schema name in the source.
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * The Doc AI processor type name.
      * 
* * string processor_type = 2; - * * @return The processorType. */ java.lang.String getProcessorType(); /** - * - * *
      * The Doc AI processor type name.
      * 
* * string processor_type = 2; - * * @return The bytes for processorType. */ - com.google.protobuf.ByteString getProcessorTypeBytes(); + com.google.protobuf.ByteString + getProcessorTypeBytes(); } /** - * - * *
    * The schema source information.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource} */ - public static final class SchemaSource extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SchemaSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) SchemaSourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SchemaSource.newBuilder() to construct. private SchemaSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SchemaSource() { name_ = ""; processorType_ = ""; @@ -396,38 +326,33 @@ private SchemaSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SchemaSource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.class, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.class, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
      * The schema name in the source.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -436,29 +361,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * The schema name in the source.
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -467,18 +392,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PROCESSOR_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object processorType_ = ""; /** - * - * *
      * The Doc AI processor type name.
      * 
* * string processor_type = 2; - * * @return The processorType. */ @java.lang.Override @@ -487,29 +408,29 @@ public java.lang.String getProcessorType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorType_ = s; return s; } } /** - * - * *
      * The Doc AI processor type name.
      * 
* * string processor_type = 2; - * * @return The bytes for processorType. */ @java.lang.Override - public com.google.protobuf.ByteString getProcessorTypeBytes() { + public com.google.protobuf.ByteString + getProcessorTypeBytes() { java.lang.Object ref = processorType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); processorType_ = b; return b; } else { @@ -518,7 +439,6 @@ public com.google.protobuf.ByteString getProcessorTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -530,7 +450,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_); } @@ -560,16 +481,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.contentwarehouse.v1.PropertyDefinition.SchemaSource)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource other = - (com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) obj; + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource other = (com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) obj; - if (!getName().equals(other.getName())) return false; - if (!getProcessorType().equals(other.getProcessorType())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getProcessorType() + .equals(other.getProcessorType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -591,95 +513,89 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource 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.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -689,42 +605,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The schema source information.
      * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.class, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.class, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder.class); } - // Construct using - // com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.newBuilder() - private Builder() {} + // Construct using com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.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(); @@ -735,22 +648,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource - getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource - .getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.getDefaultInstance(); } @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource build() { - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result = - buildPartial(); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -759,17 +669,13 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource buil @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource buildPartial() { - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result = - new com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result = new com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -783,53 +689,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.contentwarehouse.v1.PropertyDefinition.SchemaSource) { - return mergeFrom( - (com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource other) { - if (other - == com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource other) { + if (other == com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -866,25 +765,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - processorType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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: { + processorType_ = 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) { @@ -894,25 +790,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
        * The schema name in the source.
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -921,21 +814,20 @@ public java.lang.String getName() { } } /** - * - * *
        * The schema name in the source.
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -943,35 +835,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * The schema name in the source.
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The schema name in the source.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -981,21 +866,17 @@ public Builder clearName() { return this; } /** - * - * *
        * The schema name in the source.
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1005,20 +886,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object processorType_ = ""; /** - * - * *
        * The Doc AI processor type name.
        * 
* * string processor_type = 2; - * * @return The processorType. */ public java.lang.String getProcessorType() { java.lang.Object ref = processorType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorType_ = s; return s; @@ -1027,21 +906,20 @@ public java.lang.String getProcessorType() { } } /** - * - * *
        * The Doc AI processor type name.
        * 
* * string processor_type = 2; - * * @return The bytes for processorType. */ - public com.google.protobuf.ByteString getProcessorTypeBytes() { + public com.google.protobuf.ByteString + getProcessorTypeBytes() { java.lang.Object ref = processorType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); processorType_ = b; return b; } else { @@ -1049,35 +927,28 @@ public com.google.protobuf.ByteString getProcessorTypeBytes() { } } /** - * - * *
        * The Doc AI processor type name.
        * 
* * string processor_type = 2; - * * @param value The processorType to set. * @return This builder for chaining. */ - public Builder setProcessorType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProcessorType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } processorType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The Doc AI processor type name.
        * 
* * string processor_type = 2; - * * @return This builder for chaining. */ public Builder clearProcessorType() { @@ -1087,28 +958,23 @@ public Builder clearProcessorType() { return this; } /** - * - * *
        * The Doc AI processor type name.
        * 
* * string processor_type = 2; - * * @param value The bytes for processorType to set. * @return This builder for chaining. */ - public Builder setProcessorTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProcessorTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); processorType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1121,44 +987,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) - private static final com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource(); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 SchemaSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1170,20 +1033,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int valueTypeOptionsCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object valueTypeOptions_; - public enum ValueTypeOptionsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INTEGER_TYPE_OPTIONS(7), FLOAT_TYPE_OPTIONS(8), @@ -1195,7 +1055,6 @@ public enum ValueTypeOptionsCase TIMESTAMP_TYPE_OPTIONS(16), VALUETYPEOPTIONS_NOT_SET(0); private final int value; - private ValueTypeOptionsCase(int value) { this.value = value; } @@ -1211,45 +1070,33 @@ public static ValueTypeOptionsCase valueOf(int value) { public static ValueTypeOptionsCase forNumber(int value) { switch (value) { - case 7: - return INTEGER_TYPE_OPTIONS; - case 8: - return FLOAT_TYPE_OPTIONS; - case 9: - return TEXT_TYPE_OPTIONS; - case 10: - return PROPERTY_TYPE_OPTIONS; - case 11: - return ENUM_TYPE_OPTIONS; - case 13: - return DATE_TIME_TYPE_OPTIONS; - case 15: - return MAP_TYPE_OPTIONS; - case 16: - return TIMESTAMP_TYPE_OPTIONS; - case 0: - return VALUETYPEOPTIONS_NOT_SET; - default: - return null; + case 7: return INTEGER_TYPE_OPTIONS; + case 8: return FLOAT_TYPE_OPTIONS; + case 9: return TEXT_TYPE_OPTIONS; + case 10: return PROPERTY_TYPE_OPTIONS; + case 11: return ENUM_TYPE_OPTIONS; + case 13: return DATE_TIME_TYPE_OPTIONS; + case 15: return MAP_TYPE_OPTIONS; + case 16: return TIMESTAMP_TYPE_OPTIONS; + case 0: return VALUETYPEOPTIONS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ValueTypeOptionsCase getValueTypeOptionsCase() { - return ValueTypeOptionsCase.forNumber(valueTypeOptionsCase_); + public ValueTypeOptionsCase + getValueTypeOptionsCase() { + return ValueTypeOptionsCase.forNumber( + valueTypeOptionsCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the metadata property.
    * Must be unique within a document schema and is case insensitive.
@@ -1258,7 +1105,6 @@ public ValueTypeOptionsCase getValueTypeOptionsCase() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -1267,15 +1113,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 name of the metadata property.
    * Must be unique within a document schema and is case insensitive.
@@ -1284,15 +1129,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1301,18 +1147,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * The display-name for the property, used for front-end.
    * 
* * string display_name = 12; - * * @return The displayName. */ @java.lang.Override @@ -1321,29 +1163,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 for the property, used for front-end.
    * 
* * string display_name = 12; - * * @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 { @@ -1354,14 +1196,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int IS_REPEATABLE_FIELD_NUMBER = 2; private boolean isRepeatable_ = false; /** - * - * *
    * Whether the property can have multiple values.
    * 
* * bool is_repeatable = 2; - * * @return The isRepeatable. */ @java.lang.Override @@ -1372,15 +1211,12 @@ public boolean getIsRepeatable() { public static final int IS_FILTERABLE_FIELD_NUMBER = 3; private boolean isFilterable_ = false; /** - * - * *
    * Whether the property can be filtered. If this is a sub-property, all the
    * parent properties must be marked filterable.
    * 
* * bool is_filterable = 3; - * * @return The isFilterable. */ @java.lang.Override @@ -1391,14 +1227,11 @@ public boolean getIsFilterable() { public static final int IS_SEARCHABLE_FIELD_NUMBER = 4; private boolean isSearchable_ = false; /** - * - * *
    * Indicates that the property should be included in a global search.
    * 
* * bool is_searchable = 4; - * * @return The isSearchable. */ @java.lang.Override @@ -1409,8 +1242,6 @@ public boolean getIsSearchable() { public static final int IS_METADATA_FIELD_NUMBER = 5; private boolean isMetadata_ = false; /** - * - * *
    * Whether the property is user supplied metadata.
    * This out-of-the box placeholder setting can be used to tag derived
@@ -1419,7 +1250,6 @@ public boolean getIsSearchable() {
    * 
* * bool is_metadata = 5; - * * @return The isMetadata. */ @java.lang.Override @@ -1430,8 +1260,6 @@ public boolean getIsMetadata() { public static final int IS_REQUIRED_FIELD_NUMBER = 14; private boolean isRequired_ = false; /** - * - * *
    * Whether the property is mandatory.
    * Default is 'false', i.e. populating property value can be skipped.
@@ -1439,7 +1267,6 @@ public boolean getIsMetadata() {
    * 
* * bool is_required = 14; - * * @return The isRequired. */ @java.lang.Override @@ -1450,56 +1277,36 @@ public boolean getIsRequired() { public static final int RETRIEVAL_IMPORTANCE_FIELD_NUMBER = 18; private int retrievalImportance_ = 0; /** - * - * *
    * The retrieval importance of the property during search.
    * 
* - * - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; - * - * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; * @return The enum numeric value on the wire for retrievalImportance. */ - @java.lang.Override - public int getRetrievalImportanceValue() { + @java.lang.Override public int getRetrievalImportanceValue() { return retrievalImportance_; } /** - * - * *
    * The retrieval importance of the property during search.
    * 
* - * - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; - * - * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; * @return The retrievalImportance. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance - getRetrievalImportance() { - com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance result = - com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.forNumber( - retrievalImportance_); - return result == null - ? com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance getRetrievalImportance() { + com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance result = com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.forNumber(retrievalImportance_); + return result == null ? com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.UNRECOGNIZED : result; } public static final int INTEGER_TYPE_OPTIONS_FIELD_NUMBER = 7; /** - * - * *
    * Integer property.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; - * * @return Whether the integerTypeOptions field is set. */ @java.lang.Override @@ -1507,26 +1314,21 @@ public boolean hasIntegerTypeOptions() { return valueTypeOptionsCase_ == 7; } /** - * - * *
    * Integer property.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; - * * @return The integerTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getIntegerTypeOptions() { if (valueTypeOptionsCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance(); } /** - * - * *
    * Integer property.
    * 
@@ -1534,24 +1336,20 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getIntegerTypeOpt * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder - getIntegerTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder getIntegerTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance(); } public static final int FLOAT_TYPE_OPTIONS_FIELD_NUMBER = 8; /** - * - * *
    * Float property.
    * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; - * * @return Whether the floatTypeOptions field is set. */ @java.lang.Override @@ -1559,26 +1357,21 @@ public boolean hasFloatTypeOptions() { return valueTypeOptionsCase_ == 8; } /** - * - * *
    * Float property.
    * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; - * * @return The floatTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.FloatTypeOptions getFloatTypeOptions() { if (valueTypeOptionsCase_ == 8) { - return (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance(); } /** - * - * *
    * Float property.
    * 
@@ -1586,24 +1379,20 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptions getFloatTypeOptions * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder - getFloatTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder getFloatTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 8) { - return (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance(); } public static final int TEXT_TYPE_OPTIONS_FIELD_NUMBER = 9; /** - * - * *
    * Text/string property.
    * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; - * * @return Whether the textTypeOptions field is set. */ @java.lang.Override @@ -1611,26 +1400,21 @@ public boolean hasTextTypeOptions() { return valueTypeOptionsCase_ == 9; } /** - * - * *
    * Text/string property.
    * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; - * * @return The textTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions() { if (valueTypeOptionsCase_ == 9) { - return (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance(); } /** - * - * *
    * Text/string property.
    * 
@@ -1638,24 +1422,20 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions() * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder - getTextTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder getTextTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 9) { - return (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance(); } public static final int PROPERTY_TYPE_OPTIONS_FIELD_NUMBER = 10; /** - * - * *
    * Nested structured data property.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * * @return Whether the propertyTypeOptions field is set. */ @java.lang.Override @@ -1663,26 +1443,21 @@ public boolean hasPropertyTypeOptions() { return valueTypeOptionsCase_ == 10; } /** - * - * *
    * Nested structured data property.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * * @return The propertyTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getPropertyTypeOptions() { if (valueTypeOptionsCase_ == 10) { - return (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance(); } /** - * - * *
    * Nested structured data property.
    * 
@@ -1690,24 +1465,20 @@ public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getPropertyTypeO * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder - getPropertyTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder getPropertyTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 10) { - return (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance(); } public static final int ENUM_TYPE_OPTIONS_FIELD_NUMBER = 11; /** - * - * *
    * Enum/categorical property.
    * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; - * * @return Whether the enumTypeOptions field is set. */ @java.lang.Override @@ -1715,26 +1486,21 @@ public boolean hasEnumTypeOptions() { return valueTypeOptionsCase_ == 11; } /** - * - * *
    * Enum/categorical property.
    * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; - * * @return The enumTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions() { if (valueTypeOptionsCase_ == 11) { - return (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance(); } /** - * - * *
    * Enum/categorical property.
    * 
@@ -1742,25 +1508,21 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions() * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder - getEnumTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder getEnumTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 11) { - return (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance(); } public static final int DATE_TIME_TYPE_OPTIONS_FIELD_NUMBER = 13; /** - * - * *
    * Date time property.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * * @return Whether the dateTimeTypeOptions field is set. */ @java.lang.Override @@ -1768,27 +1530,22 @@ public boolean hasDateTimeTypeOptions() { return valueTypeOptionsCase_ == 13; } /** - * - * *
    * Date time property.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * * @return The dateTimeTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDateTimeTypeOptions() { if (valueTypeOptionsCase_ == 13) { - return (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance(); } /** - * - * *
    * Date time property.
    * It is not supported by CMEK compliant deployment.
@@ -1797,24 +1554,20 @@ public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDateTimeTypeO
    * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder
-      getDateTimeTypeOptionsOrBuilder() {
+  public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder getDateTimeTypeOptionsOrBuilder() {
     if (valueTypeOptionsCase_ == 13) {
-      return (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_;
+       return (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_;
     }
     return com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance();
   }
 
   public static final int MAP_TYPE_OPTIONS_FIELD_NUMBER = 15;
   /**
-   *
-   *
    * 
    * Map property.
    * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; - * * @return Whether the mapTypeOptions field is set. */ @java.lang.Override @@ -1822,26 +1575,21 @@ public boolean hasMapTypeOptions() { return valueTypeOptionsCase_ == 15; } /** - * - * *
    * Map property.
    * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; - * * @return The mapTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions() { if (valueTypeOptionsCase_ == 15) { - return (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance(); } /** - * - * *
    * Map property.
    * 
@@ -1851,23 +1599,19 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder getMapTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 15) { - return (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance(); } public static final int TIMESTAMP_TYPE_OPTIONS_FIELD_NUMBER = 16; /** - * - * *
    * Timestamp property.
    * It is not supported by CMEK compliant deployment.
    * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; * @return Whether the timestampTypeOptions field is set. */ @java.lang.Override @@ -1875,133 +1619,99 @@ public boolean hasTimestampTypeOptions() { return valueTypeOptionsCase_ == 16; } /** - * - * *
    * Timestamp property.
    * It is not supported by CMEK compliant deployment.
    * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; * @return The timestampTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getTimestampTypeOptions() { if (valueTypeOptionsCase_ == 16) { - return (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance(); } /** - * - * *
    * Timestamp property.
    * It is not supported by CMEK compliant deployment.
    * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder - getTimestampTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder getTimestampTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 16) { - return (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance(); } public static final int SCHEMA_SOURCES_FIELD_NUMBER = 19; - @SuppressWarnings("serial") - private java.util.List - schemaSources_; + private java.util.List schemaSources_; /** - * - * *
    * The mapping information between this property to another schema source.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ @java.lang.Override - public java.util.List - getSchemaSourcesList() { + public java.util.List getSchemaSourcesList() { return schemaSources_; } /** - * - * *
    * The mapping information between this property to another schema source.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> + public java.util.List getSchemaSourcesOrBuilderList() { return schemaSources_; } /** - * - * *
    * The mapping information between this property to another schema source.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ @java.lang.Override public int getSchemaSourcesCount() { return schemaSources_.size(); } /** - * - * *
    * The mapping information between this property to another schema source.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources(int index) { return schemaSources_.get(index); } /** - * - * *
    * The mapping information between this property to another schema source.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder - getSchemaSourcesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder getSchemaSourcesOrBuilder( + int index) { return schemaSources_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2013,7 +1723,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_); } @@ -2030,47 +1741,36 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeBool(5, isMetadata_); } if (valueTypeOptionsCase_ == 7) { - output.writeMessage( - 7, (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_); + output.writeMessage(7, (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 8) { - output.writeMessage( - 8, (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_); + output.writeMessage(8, (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 9) { - output.writeMessage( - 9, (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_); + output.writeMessage(9, (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 10) { - output.writeMessage( - 10, (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_); + output.writeMessage(10, (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 11) { - output.writeMessage( - 11, (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_); + output.writeMessage(11, (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, displayName_); } if (valueTypeOptionsCase_ == 13) { - output.writeMessage( - 13, (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_); + output.writeMessage(13, (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_); } if (isRequired_ != false) { output.writeBool(14, isRequired_); } if (valueTypeOptionsCase_ == 15) { - output.writeMessage( - 15, (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_); + output.writeMessage(15, (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 16) { - output.writeMessage( - 16, (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_); + output.writeMessage(16, (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_); } - if (retrievalImportance_ - != com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance - .RETRIEVAL_IMPORTANCE_UNSPECIFIED - .getNumber()) { + if (retrievalImportance_ != com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.RETRIEVAL_IMPORTANCE_UNSPECIFIED.getNumber()) { output.writeEnum(18, retrievalImportance_); } for (int i = 0; i < schemaSources_.size(); i++) { @@ -2089,71 +1789,67 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (isRepeatable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isRepeatable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isRepeatable_); } if (isFilterable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isFilterable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isFilterable_); } if (isSearchable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isSearchable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, isSearchable_); } if (isMetadata_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, isMetadata_); } if (valueTypeOptionsCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, displayName_); } if (valueTypeOptionsCase_ == 13) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_); } if (isRequired_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, isRequired_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, isRequired_); } if (valueTypeOptionsCase_ == 15) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 16) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 16, (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_); } - if (retrievalImportance_ - != com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance - .RETRIEVAL_IMPORTANCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, retrievalImportance_); + if (retrievalImportance_ != com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.RETRIEVAL_IMPORTANCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(18, retrievalImportance_); } for (int i = 0; i < schemaSources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, schemaSources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, schemaSources_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2163,48 +1859,63 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.PropertyDefinition)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.PropertyDefinition other = - (com.google.cloud.contentwarehouse.v1.PropertyDefinition) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getIsRepeatable() != other.getIsRepeatable()) return false; - if (getIsFilterable() != other.getIsFilterable()) return false; - if (getIsSearchable() != other.getIsSearchable()) return false; - if (getIsMetadata() != other.getIsMetadata()) return false; - if (getIsRequired() != other.getIsRequired()) return false; + com.google.cloud.contentwarehouse.v1.PropertyDefinition other = (com.google.cloud.contentwarehouse.v1.PropertyDefinition) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getIsRepeatable() + != other.getIsRepeatable()) return false; + if (getIsFilterable() + != other.getIsFilterable()) return false; + if (getIsSearchable() + != other.getIsSearchable()) return false; + if (getIsMetadata() + != other.getIsMetadata()) return false; + if (getIsRequired() + != other.getIsRequired()) return false; if (retrievalImportance_ != other.retrievalImportance_) return false; - if (!getSchemaSourcesList().equals(other.getSchemaSourcesList())) return false; + if (!getSchemaSourcesList() + .equals(other.getSchemaSourcesList())) return false; if (!getValueTypeOptionsCase().equals(other.getValueTypeOptionsCase())) return false; switch (valueTypeOptionsCase_) { case 7: - if (!getIntegerTypeOptions().equals(other.getIntegerTypeOptions())) return false; + if (!getIntegerTypeOptions() + .equals(other.getIntegerTypeOptions())) return false; break; case 8: - if (!getFloatTypeOptions().equals(other.getFloatTypeOptions())) return false; + if (!getFloatTypeOptions() + .equals(other.getFloatTypeOptions())) return false; break; case 9: - if (!getTextTypeOptions().equals(other.getTextTypeOptions())) return false; + if (!getTextTypeOptions() + .equals(other.getTextTypeOptions())) return false; break; case 10: - if (!getPropertyTypeOptions().equals(other.getPropertyTypeOptions())) return false; + if (!getPropertyTypeOptions() + .equals(other.getPropertyTypeOptions())) return false; break; case 11: - if (!getEnumTypeOptions().equals(other.getEnumTypeOptions())) return false; + if (!getEnumTypeOptions() + .equals(other.getEnumTypeOptions())) return false; break; case 13: - if (!getDateTimeTypeOptions().equals(other.getDateTimeTypeOptions())) return false; + if (!getDateTimeTypeOptions() + .equals(other.getDateTimeTypeOptions())) return false; break; case 15: - if (!getMapTypeOptions().equals(other.getMapTypeOptions())) return false; + if (!getMapTypeOptions() + .equals(other.getMapTypeOptions())) return false; break; case 16: - if (!getTimestampTypeOptions().equals(other.getTimestampTypeOptions())) return false; + if (!getTimestampTypeOptions() + .equals(other.getTimestampTypeOptions())) return false; break; case 0: default: @@ -2225,15 +1936,20 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + IS_REPEATABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRepeatable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRepeatable()); hash = (37 * hash) + IS_FILTERABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsFilterable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFilterable()); hash = (37 * hash) + IS_SEARCHABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsSearchable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsSearchable()); hash = (37 * hash) + IS_METADATA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsMetadata()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsMetadata()); hash = (37 * hash) + IS_REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRequired()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRequired()); hash = (37 * hash) + RETRIEVAL_IMPORTANCE_FIELD_NUMBER; hash = (53 * hash) + retrievalImportance_; if (getSchemaSourcesCount() > 0) { @@ -2282,136 +1998,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.PropertyDefinition 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.contentwarehouse.v1.PropertyDefinition parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.PropertyDefinition 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.contentwarehouse.v1.PropertyDefinition parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.PropertyDefinition prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.PropertyDefinition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 metadata for a schema property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyDefinition} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PropertyDefinition) com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.class, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.class, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.PropertyDefinition.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(); @@ -2461,9 +2172,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; } @java.lang.Override @@ -2482,19 +2193,15 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyDefinition buildPartial() { - com.google.cloud.contentwarehouse.v1.PropertyDefinition result = - new com.google.cloud.contentwarehouse.v1.PropertyDefinition(this); + com.google.cloud.contentwarehouse.v1.PropertyDefinition result = new com.google.cloud.contentwarehouse.v1.PropertyDefinition(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.PropertyDefinition result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.PropertyDefinition result) { if (schemaSourcesBuilder_ == null) { if (((bitField0_ & 0x00010000) != 0)) { schemaSources_ = java.util.Collections.unmodifiableList(schemaSources_); @@ -2534,32 +2241,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.PropertyDefiniti } } - private void buildPartialOneofs( - com.google.cloud.contentwarehouse.v1.PropertyDefinition result) { + private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.PropertyDefinition result) { result.valueTypeOptionsCase_ = valueTypeOptionsCase_; result.valueTypeOptions_ = this.valueTypeOptions_; - if (valueTypeOptionsCase_ == 7 && integerTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 7 && + integerTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = integerTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 8 && floatTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 8 && + floatTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = floatTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 9 && textTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 9 && + textTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = textTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 10 && propertyTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 10 && + propertyTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = propertyTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 11 && enumTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 11 && + enumTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = enumTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 13 && dateTimeTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 13 && + dateTimeTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = dateTimeTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 15 && mapTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 15 && + mapTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = mapTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 16 && timestampTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 16 && + timestampTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = timestampTypeOptionsBuilder_.build(); } } @@ -2568,39 +2282,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.contentwarehouse.v1.PropertyDefinition) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyDefinition) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyDefinition)other); } else { super.mergeFrom(other); return this; @@ -2608,8 +2321,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyDefinition other) { - if (other == com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -2656,60 +2368,50 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyDefinition schemaSourcesBuilder_ = null; schemaSources_ = other.schemaSources_; bitField0_ = (bitField0_ & ~0x00010000); - schemaSourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSchemaSourcesFieldBuilder() - : null; + schemaSourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSchemaSourcesFieldBuilder() : null; } else { schemaSourcesBuilder_.addAllMessages(other.schemaSources_); } } } switch (other.getValueTypeOptionsCase()) { - case INTEGER_TYPE_OPTIONS: - { - mergeIntegerTypeOptions(other.getIntegerTypeOptions()); - break; - } - case FLOAT_TYPE_OPTIONS: - { - mergeFloatTypeOptions(other.getFloatTypeOptions()); - break; - } - case TEXT_TYPE_OPTIONS: - { - mergeTextTypeOptions(other.getTextTypeOptions()); - break; - } - case PROPERTY_TYPE_OPTIONS: - { - mergePropertyTypeOptions(other.getPropertyTypeOptions()); - break; - } - case ENUM_TYPE_OPTIONS: - { - mergeEnumTypeOptions(other.getEnumTypeOptions()); - break; - } - case DATE_TIME_TYPE_OPTIONS: - { - mergeDateTimeTypeOptions(other.getDateTimeTypeOptions()); - break; - } - case MAP_TYPE_OPTIONS: - { - mergeMapTypeOptions(other.getMapTypeOptions()); - break; - } - case TIMESTAMP_TYPE_OPTIONS: - { - mergeTimestampTypeOptions(other.getTimestampTypeOptions()); - break; - } - case VALUETYPEOPTIONS_NOT_SET: - { - break; - } + case INTEGER_TYPE_OPTIONS: { + mergeIntegerTypeOptions(other.getIntegerTypeOptions()); + break; + } + case FLOAT_TYPE_OPTIONS: { + mergeFloatTypeOptions(other.getFloatTypeOptions()); + break; + } + case TEXT_TYPE_OPTIONS: { + mergeTextTypeOptions(other.getTextTypeOptions()); + break; + } + case PROPERTY_TYPE_OPTIONS: { + mergePropertyTypeOptions(other.getPropertyTypeOptions()); + break; + } + case ENUM_TYPE_OPTIONS: { + mergeEnumTypeOptions(other.getEnumTypeOptions()); + break; + } + case DATE_TIME_TYPE_OPTIONS: { + mergeDateTimeTypeOptions(other.getDateTimeTypeOptions()); + break; + } + case MAP_TYPE_OPTIONS: { + mergeMapTypeOptions(other.getMapTypeOptions()); + break; + } + case TIMESTAMP_TYPE_OPTIONS: { + mergeTimestampTypeOptions(other.getTimestampTypeOptions()); + break; + } + case VALUETYPEOPTIONS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2737,129 +2439,121 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - isRepeatable_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 24: - { - isFilterable_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 32: - { - isSearchable_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 40: - { - isMetadata_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 58: - { - input.readMessage( - getIntegerTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); - valueTypeOptionsCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage( - getFloatTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); - valueTypeOptionsCase_ = 8; - break; - } // case 66 - case 74: - { - input.readMessage(getTextTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); - valueTypeOptionsCase_ = 9; - break; - } // case 74 - case 82: - { - input.readMessage( - getPropertyTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); - valueTypeOptionsCase_ = 10; - break; - } // case 82 - case 90: - { - input.readMessage(getEnumTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); - valueTypeOptionsCase_ = 11; - break; - } // case 90 - case 98: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 98 - case 106: - { - input.readMessage( - getDateTimeTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); - valueTypeOptionsCase_ = 13; - break; - } // case 106 - case 112: - { - isRequired_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 112 - case 122: - { - input.readMessage(getMapTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); - valueTypeOptionsCase_ = 15; - break; - } // case 122 - case 130: - { - input.readMessage( - getTimestampTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); - valueTypeOptionsCase_ = 16; - break; - } // case 130 - case 144: - { - retrievalImportance_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 144 - case 154: - { - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource - .parser(), - extensionRegistry); - if (schemaSourcesBuilder_ == null) { - ensureSchemaSourcesIsMutable(); - schemaSources_.add(m); - } else { - schemaSourcesBuilder_.addMessage(m); - } - break; - } // case 154 - 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: { + isRepeatable_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 24: { + isFilterable_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 32: { + isSearchable_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 40: { + isMetadata_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 58: { + input.readMessage( + getIntegerTypeOptionsFieldBuilder().getBuilder(), + extensionRegistry); + valueTypeOptionsCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getFloatTypeOptionsFieldBuilder().getBuilder(), + extensionRegistry); + valueTypeOptionsCase_ = 8; + break; + } // case 66 + case 74: { + input.readMessage( + getTextTypeOptionsFieldBuilder().getBuilder(), + extensionRegistry); + valueTypeOptionsCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getPropertyTypeOptionsFieldBuilder().getBuilder(), + extensionRegistry); + valueTypeOptionsCase_ = 10; + break; + } // case 82 + case 90: { + input.readMessage( + getEnumTypeOptionsFieldBuilder().getBuilder(), + extensionRegistry); + valueTypeOptionsCase_ = 11; + break; + } // case 90 + case 98: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 98 + case 106: { + input.readMessage( + getDateTimeTypeOptionsFieldBuilder().getBuilder(), + extensionRegistry); + valueTypeOptionsCase_ = 13; + break; + } // case 106 + case 112: { + isRequired_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 112 + case 122: { + input.readMessage( + getMapTypeOptionsFieldBuilder().getBuilder(), + extensionRegistry); + valueTypeOptionsCase_ = 15; + break; + } // case 122 + case 130: { + input.readMessage( + getTimestampTypeOptionsFieldBuilder().getBuilder(), + extensionRegistry); + valueTypeOptionsCase_ = 16; + break; + } // case 130 + case 144: { + retrievalImportance_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 144 + case 154: { + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.parser(), + extensionRegistry); + if (schemaSourcesBuilder_ == null) { + ensureSchemaSourcesIsMutable(); + schemaSources_.add(m); + } else { + schemaSourcesBuilder_.addMessage(m); + } + break; + } // case 154 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2869,12 +2563,12 @@ public Builder mergeFrom( } // finally return this; } - private int valueTypeOptionsCase_ = 0; private java.lang.Object valueTypeOptions_; - - public ValueTypeOptionsCase getValueTypeOptionsCase() { - return ValueTypeOptionsCase.forNumber(valueTypeOptionsCase_); + public ValueTypeOptionsCase + getValueTypeOptionsCase() { + return ValueTypeOptionsCase.forNumber( + valueTypeOptionsCase_); } public Builder clearValueTypeOptions() { @@ -2888,8 +2582,6 @@ public Builder clearValueTypeOptions() { private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -2898,13 +2590,13 @@ public Builder clearValueTypeOptions() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -2913,8 +2605,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -2923,14 +2613,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -2938,8 +2629,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -2948,22 +2637,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -2972,7 +2657,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2982,8 +2666,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -2992,14 +2674,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -3009,20 +2689,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The display-name for the property, used for front-end.
      * 
* * string display_name = 12; - * * @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; @@ -3031,21 +2709,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The display-name for the property, used for front-end.
      * 
* * string display_name = 12; - * * @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 { @@ -3053,35 +2730,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The display-name for the property, used for front-end.
      * 
* * string display_name = 12; - * * @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 for the property, used for front-end.
      * 
* * string display_name = 12; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3091,21 +2761,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * The display-name for the property, used for front-end.
      * 
* * string display_name = 12; - * * @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; @@ -3113,16 +2779,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean isRepeatable_; + private boolean isRepeatable_ ; /** - * - * *
      * Whether the property can have multiple values.
      * 
* * bool is_repeatable = 2; - * * @return The isRepeatable. */ @java.lang.Override @@ -3130,14 +2793,11 @@ public boolean getIsRepeatable() { return isRepeatable_; } /** - * - * *
      * Whether the property can have multiple values.
      * 
* * bool is_repeatable = 2; - * * @param value The isRepeatable to set. * @return This builder for chaining. */ @@ -3149,14 +2809,11 @@ public Builder setIsRepeatable(boolean value) { return this; } /** - * - * *
      * Whether the property can have multiple values.
      * 
* * bool is_repeatable = 2; - * * @return This builder for chaining. */ public Builder clearIsRepeatable() { @@ -3166,17 +2823,14 @@ public Builder clearIsRepeatable() { return this; } - private boolean isFilterable_; + private boolean isFilterable_ ; /** - * - * *
      * Whether the property can be filtered. If this is a sub-property, all the
      * parent properties must be marked filterable.
      * 
* * bool is_filterable = 3; - * * @return The isFilterable. */ @java.lang.Override @@ -3184,15 +2838,12 @@ public boolean getIsFilterable() { return isFilterable_; } /** - * - * *
      * Whether the property can be filtered. If this is a sub-property, all the
      * parent properties must be marked filterable.
      * 
* * bool is_filterable = 3; - * * @param value The isFilterable to set. * @return This builder for chaining. */ @@ -3204,15 +2855,12 @@ public Builder setIsFilterable(boolean value) { return this; } /** - * - * *
      * Whether the property can be filtered. If this is a sub-property, all the
      * parent properties must be marked filterable.
      * 
* * bool is_filterable = 3; - * * @return This builder for chaining. */ public Builder clearIsFilterable() { @@ -3222,16 +2870,13 @@ public Builder clearIsFilterable() { return this; } - private boolean isSearchable_; + private boolean isSearchable_ ; /** - * - * *
      * Indicates that the property should be included in a global search.
      * 
* * bool is_searchable = 4; - * * @return The isSearchable. */ @java.lang.Override @@ -3239,14 +2884,11 @@ public boolean getIsSearchable() { return isSearchable_; } /** - * - * *
      * Indicates that the property should be included in a global search.
      * 
* * bool is_searchable = 4; - * * @param value The isSearchable to set. * @return This builder for chaining. */ @@ -3258,14 +2900,11 @@ public Builder setIsSearchable(boolean value) { return this; } /** - * - * *
      * Indicates that the property should be included in a global search.
      * 
* * bool is_searchable = 4; - * * @return This builder for chaining. */ public Builder clearIsSearchable() { @@ -3275,10 +2914,8 @@ public Builder clearIsSearchable() { return this; } - private boolean isMetadata_; + private boolean isMetadata_ ; /** - * - * *
      * Whether the property is user supplied metadata.
      * This out-of-the box placeholder setting can be used to tag derived
@@ -3287,7 +2924,6 @@ public Builder clearIsSearchable() {
      * 
* * bool is_metadata = 5; - * * @return The isMetadata. */ @java.lang.Override @@ -3295,8 +2931,6 @@ public boolean getIsMetadata() { return isMetadata_; } /** - * - * *
      * Whether the property is user supplied metadata.
      * This out-of-the box placeholder setting can be used to tag derived
@@ -3305,7 +2939,6 @@ public boolean getIsMetadata() {
      * 
* * bool is_metadata = 5; - * * @param value The isMetadata to set. * @return This builder for chaining. */ @@ -3316,9 +2949,7 @@ public Builder setIsMetadata(boolean value) { onChanged(); return this; } - /** - * - * + /** *
      * Whether the property is user supplied metadata.
      * This out-of-the box placeholder setting can be used to tag derived
@@ -3327,7 +2958,6 @@ public Builder setIsMetadata(boolean value) {
      * 
* * bool is_metadata = 5; - * * @return This builder for chaining. */ public Builder clearIsMetadata() { @@ -3337,10 +2967,8 @@ public Builder clearIsMetadata() { return this; } - private boolean isRequired_; + private boolean isRequired_ ; /** - * - * *
      * Whether the property is mandatory.
      * Default is 'false', i.e. populating property value can be skipped.
@@ -3348,7 +2976,6 @@ public Builder clearIsMetadata() {
      * 
* * bool is_required = 14; - * * @return The isRequired. */ @java.lang.Override @@ -3356,8 +2983,6 @@ public boolean getIsRequired() { return isRequired_; } /** - * - * *
      * Whether the property is mandatory.
      * Default is 'false', i.e. populating property value can be skipped.
@@ -3365,7 +2990,6 @@ public boolean getIsRequired() {
      * 
* * bool is_required = 14; - * * @param value The isRequired to set. * @return This builder for chaining. */ @@ -3377,8 +3001,6 @@ public Builder setIsRequired(boolean value) { return this; } /** - * - * *
      * Whether the property is mandatory.
      * Default is 'false', i.e. populating property value can be skipped.
@@ -3386,7 +3008,6 @@ public Builder setIsRequired(boolean value) {
      * 
* * bool is_required = 14; - * * @return This builder for chaining. */ public Builder clearIsRequired() { @@ -3398,33 +3019,22 @@ public Builder clearIsRequired() { private int retrievalImportance_ = 0; /** - * - * *
      * The retrieval importance of the property during search.
      * 
* - * - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; - * - * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; * @return The enum numeric value on the wire for retrievalImportance. */ - @java.lang.Override - public int getRetrievalImportanceValue() { + @java.lang.Override public int getRetrievalImportanceValue() { return retrievalImportance_; } /** - * - * *
      * The retrieval importance of the property during search.
      * 
* - * - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; - * - * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; * @param value The enum numeric value on the wire for retrievalImportance to set. * @return This builder for chaining. */ @@ -3435,44 +3045,28 @@ public Builder setRetrievalImportanceValue(int value) { return this; } /** - * - * *
      * The retrieval importance of the property during search.
      * 
* - * - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; - * - * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; * @return The retrievalImportance. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance - getRetrievalImportance() { - com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance result = - com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.forNumber( - retrievalImportance_); - return result == null - ? com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.UNRECOGNIZED - : result; + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance getRetrievalImportance() { + com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance result = com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.forNumber(retrievalImportance_); + return result == null ? com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.UNRECOGNIZED : result; } /** - * - * *
      * The retrieval importance of the property during search.
      * 
* - * - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; - * - * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; * @param value The retrievalImportance to set. * @return This builder for chaining. */ - public Builder setRetrievalImportance( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance value) { + public Builder setRetrievalImportance(com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance value) { if (value == null) { throw new NullPointerException(); } @@ -3482,16 +3076,11 @@ public Builder setRetrievalImportance( return this; } /** - * - * *
      * The retrieval importance of the property during search.
      * 
* - * - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; - * - * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; * @return This builder for chaining. */ public Builder clearRetrievalImportance() { @@ -3502,19 +3091,13 @@ public Builder clearRetrievalImportance() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions, - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder> - integerTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions, com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder> integerTypeOptionsBuilder_; /** - * - * *
      * Integer property.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; - * * @return Whether the integerTypeOptions field is set. */ @java.lang.Override @@ -3522,14 +3105,11 @@ public boolean hasIntegerTypeOptions() { return valueTypeOptionsCase_ == 7; } /** - * - * *
      * Integer property.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; - * * @return The integerTypeOptions. */ @java.lang.Override @@ -3547,16 +3127,13 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getIntegerTypeOpt } } /** - * - * *
      * Integer property.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; */ - public Builder setIntegerTypeOptions( - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions value) { + public Builder setIntegerTypeOptions(com.google.cloud.contentwarehouse.v1.IntegerTypeOptions value) { if (integerTypeOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3570,8 +3147,6 @@ public Builder setIntegerTypeOptions( return this; } /** - * - * *
      * Integer property.
      * 
@@ -3590,25 +3165,18 @@ public Builder setIntegerTypeOptions( return this; } /** - * - * *
      * Integer property.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; */ - public Builder mergeIntegerTypeOptions( - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions value) { + public Builder mergeIntegerTypeOptions(com.google.cloud.contentwarehouse.v1.IntegerTypeOptions value) { if (integerTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 7 - && valueTypeOptions_ - != com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.newBuilder( - (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeOptionsCase_ == 7 && + valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_) + .mergeFrom(value).buildPartial(); } else { valueTypeOptions_ = value; } @@ -3624,8 +3192,6 @@ public Builder mergeIntegerTypeOptions( return this; } /** - * - * *
      * Integer property.
      * 
@@ -3649,21 +3215,16 @@ public Builder clearIntegerTypeOptions() { return this; } /** - * - * *
      * Integer property.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; */ - public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder - getIntegerTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder getIntegerTypeOptionsBuilder() { return getIntegerTypeOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Integer property.
      * 
@@ -3671,8 +3232,7 @@ public Builder clearIntegerTypeOptions() { * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder - getIntegerTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder getIntegerTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 7) && (integerTypeOptionsBuilder_ != null)) { return integerTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -3683,8 +3243,6 @@ public Builder clearIntegerTypeOptions() { } } /** - * - * *
      * Integer property.
      * 
@@ -3692,20 +3250,14 @@ public Builder clearIntegerTypeOptions() { * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions, - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions, com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder> getIntegerTypeOptionsFieldBuilder() { if (integerTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 7)) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance(); + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance(); } - integerTypeOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions, - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder>( + integerTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions, com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -3717,19 +3269,13 @@ public Builder clearIntegerTypeOptions() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.FloatTypeOptions, - com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder> - floatTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.FloatTypeOptions, com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder> floatTypeOptionsBuilder_; /** - * - * *
      * Float property.
      * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; - * * @return Whether the floatTypeOptions field is set. */ @java.lang.Override @@ -3737,14 +3283,11 @@ public boolean hasFloatTypeOptions() { return valueTypeOptionsCase_ == 8; } /** - * - * *
      * Float property.
      * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; - * * @return The floatTypeOptions. */ @java.lang.Override @@ -3762,16 +3305,13 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptions getFloatTypeOptions } } /** - * - * *
      * Float property.
      * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; */ - public Builder setFloatTypeOptions( - com.google.cloud.contentwarehouse.v1.FloatTypeOptions value) { + public Builder setFloatTypeOptions(com.google.cloud.contentwarehouse.v1.FloatTypeOptions value) { if (floatTypeOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3785,8 +3325,6 @@ public Builder setFloatTypeOptions( return this; } /** - * - * *
      * Float property.
      * 
@@ -3805,25 +3343,18 @@ public Builder setFloatTypeOptions( return this; } /** - * - * *
      * Float property.
      * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; */ - public Builder mergeFloatTypeOptions( - com.google.cloud.contentwarehouse.v1.FloatTypeOptions value) { + public Builder mergeFloatTypeOptions(com.google.cloud.contentwarehouse.v1.FloatTypeOptions value) { if (floatTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 8 - && valueTypeOptions_ - != com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.FloatTypeOptions.newBuilder( - (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeOptionsCase_ == 8 && + valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.FloatTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_) + .mergeFrom(value).buildPartial(); } else { valueTypeOptions_ = value; } @@ -3839,8 +3370,6 @@ public Builder mergeFloatTypeOptions( return this; } /** - * - * *
      * Float property.
      * 
@@ -3864,21 +3393,16 @@ public Builder clearFloatTypeOptions() { return this; } /** - * - * *
      * Float property.
      * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; */ - public com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder - getFloatTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder getFloatTypeOptionsBuilder() { return getFloatTypeOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Float property.
      * 
@@ -3886,8 +3410,7 @@ public Builder clearFloatTypeOptions() { * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder - getFloatTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder getFloatTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 8) && (floatTypeOptionsBuilder_ != null)) { return floatTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -3898,8 +3421,6 @@ public Builder clearFloatTypeOptions() { } } /** - * - * *
      * Float property.
      * 
@@ -3907,20 +3428,14 @@ public Builder clearFloatTypeOptions() { * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.FloatTypeOptions, - com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.FloatTypeOptions, com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder> getFloatTypeOptionsFieldBuilder() { if (floatTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 8)) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance(); + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance(); } - floatTypeOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.FloatTypeOptions, - com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder>( + floatTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.FloatTypeOptions, com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -3932,19 +3447,13 @@ public Builder clearFloatTypeOptions() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TextTypeOptions, - com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder> - textTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.TextTypeOptions, com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder> textTypeOptionsBuilder_; /** - * - * *
      * Text/string property.
      * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; - * * @return Whether the textTypeOptions field is set. */ @java.lang.Override @@ -3952,14 +3461,11 @@ public boolean hasTextTypeOptions() { return valueTypeOptionsCase_ == 9; } /** - * - * *
      * Text/string property.
      * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; - * * @return The textTypeOptions. */ @java.lang.Override @@ -3977,8 +3483,6 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions() } } /** - * - * *
      * Text/string property.
      * 
@@ -3999,8 +3503,6 @@ public Builder setTextTypeOptions(com.google.cloud.contentwarehouse.v1.TextTypeO return this; } /** - * - * *
      * Text/string property.
      * 
@@ -4019,25 +3521,18 @@ public Builder setTextTypeOptions( return this; } /** - * - * *
      * Text/string property.
      * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; */ - public Builder mergeTextTypeOptions( - com.google.cloud.contentwarehouse.v1.TextTypeOptions value) { + public Builder mergeTextTypeOptions(com.google.cloud.contentwarehouse.v1.TextTypeOptions value) { if (textTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 9 - && valueTypeOptions_ - != com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.TextTypeOptions.newBuilder( - (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeOptionsCase_ == 9 && + valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.TextTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_) + .mergeFrom(value).buildPartial(); } else { valueTypeOptions_ = value; } @@ -4053,8 +3548,6 @@ public Builder mergeTextTypeOptions( return this; } /** - * - * *
      * Text/string property.
      * 
@@ -4078,21 +3571,16 @@ public Builder clearTextTypeOptions() { return this; } /** - * - * *
      * Text/string property.
      * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; */ - public com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder - getTextTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder getTextTypeOptionsBuilder() { return getTextTypeOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Text/string property.
      * 
@@ -4100,8 +3588,7 @@ public Builder clearTextTypeOptions() { * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder - getTextTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder getTextTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 9) && (textTypeOptionsBuilder_ != null)) { return textTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -4112,8 +3599,6 @@ public Builder clearTextTypeOptions() { } } /** - * - * *
      * Text/string property.
      * 
@@ -4121,20 +3606,14 @@ public Builder clearTextTypeOptions() { * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TextTypeOptions, - com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.TextTypeOptions, com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder> getTextTypeOptionsFieldBuilder() { if (textTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 9)) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance(); + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance(); } - textTypeOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TextTypeOptions, - com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder>( + textTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.TextTypeOptions, com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -4146,20 +3625,13 @@ public Builder clearTextTypeOptions() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions, - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder> - propertyTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions, com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder> propertyTypeOptionsBuilder_; /** - * - * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * - * + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; * @return Whether the propertyTypeOptions field is set. */ @java.lang.Override @@ -4167,15 +3639,11 @@ public boolean hasPropertyTypeOptions() { return valueTypeOptionsCase_ == 10; } /** - * - * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * - * + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; * @return The propertyTypeOptions. */ @java.lang.Override @@ -4193,17 +3661,13 @@ public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getPropertyTypeO } } /** - * - * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; */ - public Builder setPropertyTypeOptions( - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions value) { + public Builder setPropertyTypeOptions(com.google.cloud.contentwarehouse.v1.PropertyTypeOptions value) { if (propertyTypeOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4217,14 +3681,11 @@ public Builder setPropertyTypeOptions( return this; } /** - * - * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; */ public Builder setPropertyTypeOptions( com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder builderForValue) { @@ -4238,26 +3699,18 @@ public Builder setPropertyTypeOptions( return this; } /** - * - * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; */ - public Builder mergePropertyTypeOptions( - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions value) { + public Builder mergePropertyTypeOptions(com.google.cloud.contentwarehouse.v1.PropertyTypeOptions value) { if (propertyTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 10 - && valueTypeOptions_ - != com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.newBuilder( - (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeOptionsCase_ == 10 && + valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_) + .mergeFrom(value).buildPartial(); } else { valueTypeOptions_ = value; } @@ -4273,14 +3726,11 @@ public Builder mergePropertyTypeOptions( return this; } /** - * - * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; */ public Builder clearPropertyTypeOptions() { if (propertyTypeOptionsBuilder_ == null) { @@ -4299,32 +3749,24 @@ public Builder clearPropertyTypeOptions() { return this; } /** - * - * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; */ - public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder - getPropertyTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder getPropertyTypeOptionsBuilder() { return getPropertyTypeOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder - getPropertyTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder getPropertyTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 10) && (propertyTypeOptionsBuilder_ != null)) { return propertyTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -4335,30 +3777,21 @@ public Builder clearPropertyTypeOptions() { } } /** - * - * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions, - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions, com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder> getPropertyTypeOptionsFieldBuilder() { if (propertyTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 10)) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance(); + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance(); } - propertyTypeOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions, - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder>( + propertyTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions, com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -4370,19 +3803,13 @@ public Builder clearPropertyTypeOptions() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumTypeOptions, - com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder> - enumTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.EnumTypeOptions, com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder> enumTypeOptionsBuilder_; /** - * - * *
      * Enum/categorical property.
      * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; - * * @return Whether the enumTypeOptions field is set. */ @java.lang.Override @@ -4390,14 +3817,11 @@ public boolean hasEnumTypeOptions() { return valueTypeOptionsCase_ == 11; } /** - * - * *
      * Enum/categorical property.
      * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; - * * @return The enumTypeOptions. */ @java.lang.Override @@ -4415,8 +3839,6 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions() } } /** - * - * *
      * Enum/categorical property.
      * 
@@ -4437,8 +3859,6 @@ public Builder setEnumTypeOptions(com.google.cloud.contentwarehouse.v1.EnumTypeO return this; } /** - * - * *
      * Enum/categorical property.
      * 
@@ -4457,25 +3877,18 @@ public Builder setEnumTypeOptions( return this; } /** - * - * *
      * Enum/categorical property.
      * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; */ - public Builder mergeEnumTypeOptions( - com.google.cloud.contentwarehouse.v1.EnumTypeOptions value) { + public Builder mergeEnumTypeOptions(com.google.cloud.contentwarehouse.v1.EnumTypeOptions value) { if (enumTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 11 - && valueTypeOptions_ - != com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.EnumTypeOptions.newBuilder( - (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeOptionsCase_ == 11 && + valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.EnumTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_) + .mergeFrom(value).buildPartial(); } else { valueTypeOptions_ = value; } @@ -4491,8 +3904,6 @@ public Builder mergeEnumTypeOptions( return this; } /** - * - * *
      * Enum/categorical property.
      * 
@@ -4516,21 +3927,16 @@ public Builder clearEnumTypeOptions() { return this; } /** - * - * *
      * Enum/categorical property.
      * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; */ - public com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder - getEnumTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder getEnumTypeOptionsBuilder() { return getEnumTypeOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Enum/categorical property.
      * 
@@ -4538,8 +3944,7 @@ public Builder clearEnumTypeOptions() { * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder - getEnumTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder getEnumTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 11) && (enumTypeOptionsBuilder_ != null)) { return enumTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -4550,8 +3955,6 @@ public Builder clearEnumTypeOptions() { } } /** - * - * *
      * Enum/categorical property.
      * 
@@ -4559,20 +3962,14 @@ public Builder clearEnumTypeOptions() { * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumTypeOptions, - com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.EnumTypeOptions, com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder> getEnumTypeOptionsFieldBuilder() { if (enumTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 11)) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance(); + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance(); } - enumTypeOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumTypeOptions, - com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder>( + enumTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.EnumTypeOptions, com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -4584,21 +3981,14 @@ public Builder clearEnumTypeOptions() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions, - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder> - dateTimeTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder> dateTimeTypeOptionsBuilder_; /** - * - * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * - * + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; * @return Whether the dateTimeTypeOptions field is set. */ @java.lang.Override @@ -4606,16 +3996,12 @@ public boolean hasDateTimeTypeOptions() { return valueTypeOptionsCase_ == 13; } /** - * - * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * - * + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; * @return The dateTimeTypeOptions. */ @java.lang.Override @@ -4633,18 +4019,14 @@ public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDateTimeTypeO } } /** - * - * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; */ - public Builder setDateTimeTypeOptions( - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions value) { + public Builder setDateTimeTypeOptions(com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions value) { if (dateTimeTypeOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4658,15 +4040,12 @@ public Builder setDateTimeTypeOptions( return this; } /** - * - * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; */ public Builder setDateTimeTypeOptions( com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder builderForValue) { @@ -4680,27 +4059,19 @@ public Builder setDateTimeTypeOptions( return this; } /** - * - * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; */ - public Builder mergeDateTimeTypeOptions( - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions value) { + public Builder mergeDateTimeTypeOptions(com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions value) { if (dateTimeTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 13 - && valueTypeOptions_ - != com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.newBuilder( - (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeOptionsCase_ == 13 && + valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_) + .mergeFrom(value).buildPartial(); } else { valueTypeOptions_ = value; } @@ -4716,15 +4087,12 @@ public Builder mergeDateTimeTypeOptions( return this; } /** - * - * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; */ public Builder clearDateTimeTypeOptions() { if (dateTimeTypeOptionsBuilder_ == null) { @@ -4743,34 +4111,26 @@ public Builder clearDateTimeTypeOptions() { return this; } /** - * - * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; */ - public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder - getDateTimeTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder getDateTimeTypeOptionsBuilder() { return getDateTimeTypeOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder - getDateTimeTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder getDateTimeTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 13) && (dateTimeTypeOptionsBuilder_ != null)) { return dateTimeTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -4781,31 +4141,22 @@ public Builder clearDateTimeTypeOptions() { } } /** - * - * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions, - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder> getDateTimeTypeOptionsFieldBuilder() { if (dateTimeTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 13)) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance(); + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance(); } - dateTimeTypeOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions, - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder>( + dateTimeTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -4817,19 +4168,13 @@ public Builder clearDateTimeTypeOptions() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MapTypeOptions, - com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder> - mapTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.MapTypeOptions, com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder> mapTypeOptionsBuilder_; /** - * - * *
      * Map property.
      * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; - * * @return Whether the mapTypeOptions field is set. */ @java.lang.Override @@ -4837,14 +4182,11 @@ public boolean hasMapTypeOptions() { return valueTypeOptionsCase_ == 15; } /** - * - * *
      * Map property.
      * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; - * * @return The mapTypeOptions. */ @java.lang.Override @@ -4862,8 +4204,6 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions() { } } /** - * - * *
      * Map property.
      * 
@@ -4884,8 +4224,6 @@ public Builder setMapTypeOptions(com.google.cloud.contentwarehouse.v1.MapTypeOpt return this; } /** - * - * *
      * Map property.
      * 
@@ -4904,8 +4242,6 @@ public Builder setMapTypeOptions( return this; } /** - * - * *
      * Map property.
      * 
@@ -4914,14 +4250,10 @@ public Builder setMapTypeOptions( */ public Builder mergeMapTypeOptions(com.google.cloud.contentwarehouse.v1.MapTypeOptions value) { if (mapTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 15 - && valueTypeOptions_ - != com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.MapTypeOptions.newBuilder( - (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeOptionsCase_ == 15 && + valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.MapTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_) + .mergeFrom(value).buildPartial(); } else { valueTypeOptions_ = value; } @@ -4937,8 +4269,6 @@ public Builder mergeMapTypeOptions(com.google.cloud.contentwarehouse.v1.MapTypeO return this; } /** - * - * *
      * Map property.
      * 
@@ -4962,8 +4292,6 @@ public Builder clearMapTypeOptions() { return this; } /** - * - * *
      * Map property.
      * 
@@ -4974,8 +4302,6 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder getMapTypeOpt return getMapTypeOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Map property.
      * 
@@ -4983,8 +4309,7 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder getMapTypeOpt * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder - getMapTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder getMapTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 15) && (mapTypeOptionsBuilder_ != null)) { return mapTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -4995,8 +4320,6 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder getMapTypeOpt } } /** - * - * *
      * Map property.
      * 
@@ -5004,20 +4327,14 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder getMapTypeOpt * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MapTypeOptions, - com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.MapTypeOptions, com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder> getMapTypeOptionsFieldBuilder() { if (mapTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 15)) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance(); + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance(); } - mapTypeOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MapTypeOptions, - com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder>( + mapTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.MapTypeOptions, com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -5029,21 +4346,14 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder getMapTypeOpt } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions, - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder> - timestampTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions, com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder> timestampTypeOptionsBuilder_; /** - * - * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; * @return Whether the timestampTypeOptions field is set. */ @java.lang.Override @@ -5051,16 +4361,12 @@ public boolean hasTimestampTypeOptions() { return valueTypeOptionsCase_ == 16; } /** - * - * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; * @return The timestampTypeOptions. */ @java.lang.Override @@ -5078,18 +4384,14 @@ public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getTimestampTyp } } /** - * - * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; */ - public Builder setTimestampTypeOptions( - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions value) { + public Builder setTimestampTypeOptions(com.google.cloud.contentwarehouse.v1.TimestampTypeOptions value) { if (timestampTypeOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5103,15 +4405,12 @@ public Builder setTimestampTypeOptions( return this; } /** - * - * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; */ public Builder setTimestampTypeOptions( com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder builderForValue) { @@ -5125,27 +4424,19 @@ public Builder setTimestampTypeOptions( return this; } /** - * - * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; */ - public Builder mergeTimestampTypeOptions( - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions value) { + public Builder mergeTimestampTypeOptions(com.google.cloud.contentwarehouse.v1.TimestampTypeOptions value) { if (timestampTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 16 - && valueTypeOptions_ - != com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.newBuilder( - (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeOptionsCase_ == 16 && + valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_) + .mergeFrom(value).buildPartial(); } else { valueTypeOptions_ = value; } @@ -5161,15 +4452,12 @@ public Builder mergeTimestampTypeOptions( return this; } /** - * - * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; */ public Builder clearTimestampTypeOptions() { if (timestampTypeOptionsBuilder_ == null) { @@ -5188,34 +4476,26 @@ public Builder clearTimestampTypeOptions() { return this; } /** - * - * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; */ - public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder - getTimestampTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder getTimestampTypeOptionsBuilder() { return getTimestampTypeOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder - getTimestampTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder getTimestampTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 16) && (timestampTypeOptionsBuilder_ != null)) { return timestampTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -5226,31 +4506,22 @@ public Builder clearTimestampTypeOptions() { } } /** - * - * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions, - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions, com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder> getTimestampTypeOptionsFieldBuilder() { if (timestampTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 16)) { - valueTypeOptions_ = - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance(); + valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance(); } - timestampTypeOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions, - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder, - com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder>( + timestampTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions, com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -5261,38 +4532,26 @@ public Builder clearTimestampTypeOptions() { return timestampTypeOptionsBuilder_; } - private java.util.List - schemaSources_ = java.util.Collections.emptyList(); - + private java.util.List schemaSources_ = + java.util.Collections.emptyList(); private void ensureSchemaSourcesIsMutable() { if (!((bitField0_ & 0x00010000) != 0)) { - schemaSources_ = - new java.util.ArrayList< - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource>( - schemaSources_); + schemaSources_ = new java.util.ArrayList(schemaSources_); bitField0_ |= 0x00010000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> - schemaSourcesBuilder_; + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> schemaSourcesBuilder_; /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ - public java.util.List - getSchemaSourcesList() { + public java.util.List getSchemaSourcesList() { if (schemaSourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(schemaSources_); } else { @@ -5300,15 +4559,11 @@ private void ensureSchemaSourcesIsMutable() { } } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ public int getSchemaSourcesCount() { if (schemaSourcesBuilder_ == null) { @@ -5318,18 +4573,13 @@ public int getSchemaSourcesCount() { } } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources(int index) { if (schemaSourcesBuilder_ == null) { return schemaSources_.get(index); } else { @@ -5337,15 +4587,11 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getS } } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ public Builder setSchemaSources( int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource value) { @@ -5362,20 +4608,14 @@ public Builder setSchemaSources( return this; } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ public Builder setSchemaSources( - int index, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder - builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder builderForValue) { if (schemaSourcesBuilder_ == null) { ensureSchemaSourcesIsMutable(); schemaSources_.set(index, builderForValue.build()); @@ -5386,18 +4626,13 @@ public Builder setSchemaSources( return this; } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ - public Builder addSchemaSources( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource value) { + public Builder addSchemaSources(com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource value) { if (schemaSourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5411,15 +4646,11 @@ public Builder addSchemaSources( return this; } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ public Builder addSchemaSources( int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource value) { @@ -5436,19 +4667,14 @@ public Builder addSchemaSources( return this; } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ public Builder addSchemaSources( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder - builderForValue) { + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder builderForValue) { if (schemaSourcesBuilder_ == null) { ensureSchemaSourcesIsMutable(); schemaSources_.add(builderForValue.build()); @@ -5459,20 +4685,14 @@ public Builder addSchemaSources( return this; } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ public Builder addSchemaSources( - int index, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder - builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder builderForValue) { if (schemaSourcesBuilder_ == null) { ensureSchemaSourcesIsMutable(); schemaSources_.add(index, builderForValue.build()); @@ -5483,23 +4703,18 @@ public Builder addSchemaSources( return this; } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ public Builder addAllSchemaSources( - java.lang.Iterable< - ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource> - values) { + java.lang.Iterable values) { if (schemaSourcesBuilder_ == null) { ensureSchemaSourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemaSources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, schemaSources_); onChanged(); } else { schemaSourcesBuilder_.addAllMessages(values); @@ -5507,15 +4722,11 @@ public Builder addAllSchemaSources( return this; } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ public Builder clearSchemaSources() { if (schemaSourcesBuilder_ == null) { @@ -5528,15 +4739,11 @@ public Builder clearSchemaSources() { return this; } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ public Builder removeSchemaSources(int index) { if (schemaSourcesBuilder_ == null) { @@ -5549,53 +4756,39 @@ public Builder removeSchemaSources(int index) { return this; } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder - getSchemaSourcesBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder getSchemaSourcesBuilder( + int index) { return getSchemaSourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder - getSchemaSourcesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder getSchemaSourcesOrBuilder( + int index) { if (schemaSourcesBuilder_ == null) { - return schemaSources_.get(index); - } else { + return schemaSources_.get(index); } else { return schemaSourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ - public java.util.List< - ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> - getSchemaSourcesOrBuilderList() { + public java.util.List + getSchemaSourcesOrBuilderList() { if (schemaSourcesBuilder_ != null) { return schemaSourcesBuilder_.getMessageOrBuilderList(); } else { @@ -5603,70 +4796,45 @@ public Builder removeSchemaSources(int index) { } } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder - addSchemaSourcesBuilder() { - return getSchemaSourcesFieldBuilder() - .addBuilder( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource - .getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder addSchemaSourcesBuilder() { + return getSchemaSourcesFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.getDefaultInstance()); } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder - addSchemaSourcesBuilder(int index) { - return getSchemaSourcesFieldBuilder() - .addBuilder( - index, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource - .getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder addSchemaSourcesBuilder( + int index) { + return getSchemaSourcesFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.getDefaultInstance()); } /** - * - * *
      * The mapping information between this property to another schema source.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ - public java.util.List< - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder> - getSchemaSourcesBuilderList() { + public java.util.List + getSchemaSourcesBuilderList() { return getSchemaSourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> getSchemaSourcesFieldBuilder() { if (schemaSourcesBuilder_ == null) { - schemaSourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder>( + schemaSourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder>( schemaSources_, ((bitField0_ & 0x00010000) != 0), getParentForChildren(), @@ -5675,9 +4843,9 @@ public Builder removeSchemaSources(int index) { } return schemaSourcesBuilder_; } - @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); } @@ -5687,12 +4855,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.PropertyDefinition) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PropertyDefinition) private static final com.google.cloud.contentwarehouse.v1.PropertyDefinition DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PropertyDefinition(); } @@ -5701,27 +4869,27 @@ public static com.google.cloud.contentwarehouse.v1.PropertyDefinition getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PropertyDefinition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5736,4 +4904,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.PropertyDefinition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java similarity index 79% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java index 8cbf417ec74b..47a8faf2c8ef 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.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/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; -public interface PropertyDefinitionOrBuilder - extends +public interface PropertyDefinitionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PropertyDefinition) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the metadata property.
    * Must be unique within a document schema and is case insensitive.
@@ -34,13 +16,10 @@ public interface PropertyDefinitionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the metadata property.
    * Must be unique within a document schema and is case insensitive.
@@ -49,79 +28,63 @@ public interface PropertyDefinitionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The display-name for the property, used for front-end.
    * 
* * string display_name = 12; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The display-name for the property, used for front-end.
    * 
* * string display_name = 12; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Whether the property can have multiple values.
    * 
* * bool is_repeatable = 2; - * * @return The isRepeatable. */ boolean getIsRepeatable(); /** - * - * *
    * Whether the property can be filtered. If this is a sub-property, all the
    * parent properties must be marked filterable.
    * 
* * bool is_filterable = 3; - * * @return The isFilterable. */ boolean getIsFilterable(); /** - * - * *
    * Indicates that the property should be included in a global search.
    * 
* * bool is_searchable = 4; - * * @return The isSearchable. */ boolean getIsSearchable(); /** - * - * *
    * Whether the property is user supplied metadata.
    * This out-of-the box placeholder setting can be used to tag derived
@@ -130,14 +93,11 @@ public interface PropertyDefinitionOrBuilder
    * 
* * bool is_metadata = 5; - * * @return The isMetadata. */ boolean getIsMetadata(); /** - * - * *
    * Whether the property is mandatory.
    * Default is 'false', i.e. populating property value can be skipped.
@@ -145,68 +105,48 @@ public interface PropertyDefinitionOrBuilder
    * 
* * bool is_required = 14; - * * @return The isRequired. */ boolean getIsRequired(); /** - * - * *
    * The retrieval importance of the property during search.
    * 
* - * - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; - * - * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; * @return The enum numeric value on the wire for retrievalImportance. */ int getRetrievalImportanceValue(); /** - * - * *
    * The retrieval importance of the property during search.
    * 
* - * - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; - * - * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; * @return The retrievalImportance. */ - com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance - getRetrievalImportance(); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance getRetrievalImportance(); /** - * - * *
    * Integer property.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; - * * @return Whether the integerTypeOptions field is set. */ boolean hasIntegerTypeOptions(); /** - * - * *
    * Integer property.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; - * * @return The integerTypeOptions. */ com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getIntegerTypeOptions(); /** - * - * *
    * Integer property.
    * 
@@ -216,32 +156,24 @@ public interface PropertyDefinitionOrBuilder com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder getIntegerTypeOptionsOrBuilder(); /** - * - * *
    * Float property.
    * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; - * * @return Whether the floatTypeOptions field is set. */ boolean hasFloatTypeOptions(); /** - * - * *
    * Float property.
    * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; - * * @return The floatTypeOptions. */ com.google.cloud.contentwarehouse.v1.FloatTypeOptions getFloatTypeOptions(); /** - * - * *
    * Float property.
    * 
@@ -251,32 +183,24 @@ public interface PropertyDefinitionOrBuilder com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder getFloatTypeOptionsOrBuilder(); /** - * - * *
    * Text/string property.
    * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; - * * @return Whether the textTypeOptions field is set. */ boolean hasTextTypeOptions(); /** - * - * *
    * Text/string property.
    * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; - * * @return The textTypeOptions. */ com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions(); /** - * - * *
    * Text/string property.
    * 
@@ -286,68 +210,51 @@ public interface PropertyDefinitionOrBuilder com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder getTextTypeOptionsOrBuilder(); /** - * - * *
    * Nested structured data property.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * * @return Whether the propertyTypeOptions field is set. */ boolean hasPropertyTypeOptions(); /** - * - * *
    * Nested structured data property.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; - * * @return The propertyTypeOptions. */ com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getPropertyTypeOptions(); /** - * - * *
    * Nested structured data property.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; */ - com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder - getPropertyTypeOptionsOrBuilder(); + com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder getPropertyTypeOptionsOrBuilder(); /** - * - * *
    * Enum/categorical property.
    * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; - * * @return Whether the enumTypeOptions field is set. */ boolean hasEnumTypeOptions(); /** - * - * *
    * Enum/categorical property.
    * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; - * * @return The enumTypeOptions. */ com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions(); /** - * - * *
    * Enum/categorical property.
    * 
@@ -357,34 +264,26 @@ public interface PropertyDefinitionOrBuilder com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder getEnumTypeOptionsOrBuilder(); /** - * - * *
    * Date time property.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * * @return Whether the dateTimeTypeOptions field is set. */ boolean hasDateTimeTypeOptions(); /** - * - * *
    * Date time property.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; - * * @return The dateTimeTypeOptions. */ com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDateTimeTypeOptions(); /** - * - * *
    * Date time property.
    * It is not supported by CMEK compliant deployment.
@@ -392,36 +291,27 @@ public interface PropertyDefinitionOrBuilder
    *
    * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
    */
-  com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder
-      getDateTimeTypeOptionsOrBuilder();
+  com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder getDateTimeTypeOptionsOrBuilder();
 
   /**
-   *
-   *
    * 
    * Map property.
    * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; - * * @return Whether the mapTypeOptions field is set. */ boolean hasMapTypeOptions(); /** - * - * *
    * Map property.
    * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; - * * @return The mapTypeOptions. */ com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions(); /** - * - * *
    * Map property.
    * 
@@ -431,112 +321,78 @@ public interface PropertyDefinitionOrBuilder com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder getMapTypeOptionsOrBuilder(); /** - * - * *
    * Timestamp property.
    * It is not supported by CMEK compliant deployment.
    * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; * @return Whether the timestampTypeOptions field is set. */ boolean hasTimestampTypeOptions(); /** - * - * *
    * Timestamp property.
    * It is not supported by CMEK compliant deployment.
    * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; * @return The timestampTypeOptions. */ com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getTimestampTypeOptions(); /** - * - * *
    * Timestamp property.
    * It is not supported by CMEK compliant deployment.
    * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; - * + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; */ - com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder - getTimestampTypeOptionsOrBuilder(); + com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder getTimestampTypeOptionsOrBuilder(); /** - * - * *
    * The mapping information between this property to another schema source.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ - java.util.List + java.util.List getSchemaSourcesList(); /** - * - * *
    * The mapping information between this property to another schema source.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources(int index); /** - * - * *
    * The mapping information between this property to another schema source.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ int getSchemaSourcesCount(); /** - * - * *
    * The mapping information between this property to another schema source.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ - java.util.List< - ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> + java.util.List getSchemaSourcesOrBuilderList(); /** - * - * *
    * The mapping information between this property to another schema source.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; */ - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder - getSchemaSourcesOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder getSchemaSourcesOrBuilder( + int index); - com.google.cloud.contentwarehouse.v1.PropertyDefinition.ValueTypeOptionsCase - getValueTypeOptionsCase(); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.ValueTypeOptionsCase getValueTypeOptionsCase(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java similarity index 79% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java index 1e8006f06e8b..efb6ac6adf9c 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java @@ -1,34 +1,20 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -/** Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyFilter} */ -public final class PropertyFilter extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyFilter} + */ +public final class PropertyFilter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PropertyFilter) PropertyFilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PropertyFilter.newBuilder() to construct. private PropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PropertyFilter() { documentSchemaName_ = ""; condition_ = ""; @@ -36,32 +22,28 @@ private PropertyFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PropertyFilter(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyFilter.class, - com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyFilter.class, com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder.class); } public static final int DOCUMENT_SCHEMA_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object documentSchemaName_ = ""; /** - * - * *
    * The Document schema name
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -70,7 +52,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return The documentSchemaName. */ @java.lang.Override @@ -79,15 +60,14 @@ public java.lang.String getDocumentSchemaName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentSchemaName_ = s; return s; } } /** - * - * *
    * The Document schema name
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -96,15 +76,16 @@ public java.lang.String getDocumentSchemaName() {
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for documentSchemaName. */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { + public com.google.protobuf.ByteString + getDocumentSchemaNameBytes() { java.lang.Object ref = documentSchemaName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentSchemaName_ = b; return b; } else { @@ -113,12 +94,9 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { } public static final int CONDITION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object condition_ = ""; /** - * - * *
    * The filter condition.
    * The syntax for this expression is a subset of SQL syntax.
@@ -165,7 +143,6 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() {
    * 
* * string condition = 2; - * * @return The condition. */ @java.lang.Override @@ -174,15 +151,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; } } /** - * - * *
    * The filter condition.
    * The syntax for this expression is a subset of SQL syntax.
@@ -229,15 +205,16 @@ public java.lang.String getCondition() {
    * 
* * string condition = 2; - * * @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 { @@ -246,7 +223,6 @@ public com.google.protobuf.ByteString getConditionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,7 +234,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(documentSchemaName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentSchemaName_); } @@ -288,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.contentwarehouse.v1.PropertyFilter)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.PropertyFilter other = - (com.google.cloud.contentwarehouse.v1.PropertyFilter) obj; + com.google.cloud.contentwarehouse.v1.PropertyFilter other = (com.google.cloud.contentwarehouse.v1.PropertyFilter) obj; - if (!getDocumentSchemaName().equals(other.getDocumentSchemaName())) return false; - if (!getCondition().equals(other.getCondition())) return false; + if (!getDocumentSchemaName() + .equals(other.getDocumentSchemaName())) return false; + if (!getCondition() + .equals(other.getCondition())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,127 +297,127 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.PropertyFilter 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.contentwarehouse.v1.PropertyFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.PropertyFilter 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.contentwarehouse.v1.PropertyFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.PropertyFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyFilter} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PropertyFilter) com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyFilter.class, - com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyFilter.class, com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.PropertyFilter.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(); @@ -450,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; } @java.lang.Override @@ -471,11 +449,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyFilter buildPartial() { - com.google.cloud.contentwarehouse.v1.PropertyFilter result = - new com.google.cloud.contentwarehouse.v1.PropertyFilter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.PropertyFilter result = new com.google.cloud.contentwarehouse.v1.PropertyFilter(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -494,39 +469,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.PropertyFilter 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.contentwarehouse.v1.PropertyFilter) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyFilter) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyFilter)other); } else { super.mergeFrom(other); return this; @@ -534,8 +508,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyFilter other) { - if (other == com.google.cloud.contentwarehouse.v1.PropertyFilter.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.PropertyFilter.getDefaultInstance()) return this; if (!other.getDocumentSchemaName().isEmpty()) { documentSchemaName_ = other.documentSchemaName_; bitField0_ |= 0x00000001; @@ -572,25 +545,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - documentSchemaName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - condition_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + documentSchemaName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + condition_ = 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) { @@ -600,13 +570,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object documentSchemaName_ = ""; /** - * - * *
      * The Document schema name
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -615,13 +582,13 @@ public Builder mergeFrom(
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return The documentSchemaName. */ public java.lang.String getDocumentSchemaName() { java.lang.Object ref = documentSchemaName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentSchemaName_ = s; return s; @@ -630,8 +597,6 @@ public java.lang.String getDocumentSchemaName() { } } /** - * - * *
      * The Document schema name
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -640,14 +605,15 @@ public java.lang.String getDocumentSchemaName() {
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for documentSchemaName. */ - public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { + public com.google.protobuf.ByteString + getDocumentSchemaNameBytes() { java.lang.Object ref = documentSchemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentSchemaName_ = b; return b; } else { @@ -655,8 +621,6 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { } } /** - * - * *
      * The Document schema name
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -665,22 +629,18 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() {
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The documentSchemaName to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentSchemaName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentSchemaName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The Document schema name
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -689,7 +649,6 @@ public Builder setDocumentSchemaName(java.lang.String value) {
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDocumentSchemaName() { @@ -699,8 +658,6 @@ public Builder clearDocumentSchemaName() { return this; } /** - * - * *
      * The Document schema name
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -709,14 +666,12 @@ public Builder clearDocumentSchemaName() {
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for documentSchemaName to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentSchemaNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentSchemaName_ = value; bitField0_ |= 0x00000001; @@ -726,8 +681,6 @@ public Builder setDocumentSchemaNameBytes(com.google.protobuf.ByteString value) private java.lang.Object condition_ = ""; /** - * - * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -774,13 +727,13 @@ public Builder setDocumentSchemaNameBytes(com.google.protobuf.ByteString value)
      * 
* * string condition = 2; - * * @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; @@ -789,8 +742,6 @@ public java.lang.String getCondition() { } } /** - * - * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -837,14 +788,15 @@ public java.lang.String getCondition() {
      * 
* * string condition = 2; - * * @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 { @@ -852,8 +804,6 @@ public com.google.protobuf.ByteString getConditionBytes() { } } /** - * - * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -900,22 +850,18 @@ public com.google.protobuf.ByteString getConditionBytes() {
      * 
* * string condition = 2; - * * @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_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -962,7 +908,6 @@ public Builder setCondition(java.lang.String value) {
      * 
* * string condition = 2; - * * @return This builder for chaining. */ public Builder clearCondition() { @@ -972,8 +917,6 @@ public Builder clearCondition() { return this; } /** - * - * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -1020,23 +963,21 @@ public Builder clearCondition() {
      * 
* * string condition = 2; - * * @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_ |= 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); } @@ -1046,12 +987,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.PropertyFilter) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PropertyFilter) private static final com.google.cloud.contentwarehouse.v1.PropertyFilter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PropertyFilter(); } @@ -1060,27 +1001,27 @@ public static com.google.cloud.contentwarehouse.v1.PropertyFilter getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1095,4 +1036,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.PropertyFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java similarity index 87% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java index 8df044361130..0841145e261e 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.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/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -public interface PropertyFilterOrBuilder - extends +public interface PropertyFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PropertyFilter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Document schema name
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -34,13 +16,10 @@ public interface PropertyFilterOrBuilder
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return The documentSchemaName. */ java.lang.String getDocumentSchemaName(); /** - * - * *
    * The Document schema name
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -49,14 +28,12 @@ public interface PropertyFilterOrBuilder
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for documentSchemaName. */ - com.google.protobuf.ByteString getDocumentSchemaNameBytes(); + com.google.protobuf.ByteString + getDocumentSchemaNameBytes(); /** - * - * *
    * The filter condition.
    * The syntax for this expression is a subset of SQL syntax.
@@ -103,13 +80,10 @@ public interface PropertyFilterOrBuilder
    * 
* * string condition = 2; - * * @return The condition. */ java.lang.String getCondition(); /** - * - * *
    * The filter condition.
    * The syntax for this expression is a subset of SQL syntax.
@@ -156,8 +130,8 @@ public interface PropertyFilterOrBuilder
    * 
* * string condition = 2; - * * @return The bytes for condition. */ - com.google.protobuf.ByteString getConditionBytes(); + com.google.protobuf.ByteString + getConditionBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java similarity index 87% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java index 256ebcfee0a4..a60544bbf31b 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java @@ -1,82 +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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface PropertyOrBuilder - extends +public interface PropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.Property) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Must match the name of a PropertyDefinition in the
    * DocumentSchema.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Must match the name of a PropertyDefinition in the
    * DocumentSchema.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Integer property values.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; - * * @return Whether the integerValues field is set. */ boolean hasIntegerValues(); /** - * - * *
    * Integer property values.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; - * * @return The integerValues. */ com.google.cloud.contentwarehouse.v1.IntegerArray getIntegerValues(); /** - * - * *
    * Integer property values.
    * 
@@ -86,32 +57,24 @@ public interface PropertyOrBuilder com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder getIntegerValuesOrBuilder(); /** - * - * *
    * Float property values.
    * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; - * * @return Whether the floatValues field is set. */ boolean hasFloatValues(); /** - * - * *
    * Float property values.
    * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; - * * @return The floatValues. */ com.google.cloud.contentwarehouse.v1.FloatArray getFloatValues(); /** - * - * *
    * Float property values.
    * 
@@ -121,32 +84,24 @@ public interface PropertyOrBuilder com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder getFloatValuesOrBuilder(); /** - * - * *
    * String/text property values.
    * 
* * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; - * * @return Whether the textValues field is set. */ boolean hasTextValues(); /** - * - * *
    * String/text property values.
    * 
* * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; - * * @return The textValues. */ com.google.cloud.contentwarehouse.v1.TextArray getTextValues(); /** - * - * *
    * String/text property values.
    * 
@@ -156,32 +111,24 @@ public interface PropertyOrBuilder com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder getTextValuesOrBuilder(); /** - * - * *
    * Enum property values.
    * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; - * * @return Whether the enumValues field is set. */ boolean hasEnumValues(); /** - * - * *
    * Enum property values.
    * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; - * * @return The enumValues. */ com.google.cloud.contentwarehouse.v1.EnumArray getEnumValues(); /** - * - * *
    * Enum property values.
    * 
@@ -191,32 +138,24 @@ public interface PropertyOrBuilder com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder getEnumValuesOrBuilder(); /** - * - * *
    * Nested structured data property values.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; - * * @return Whether the propertyValues field is set. */ boolean hasPropertyValues(); /** - * - * *
    * Nested structured data property values.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; - * * @return The propertyValues. */ com.google.cloud.contentwarehouse.v1.PropertyArray getPropertyValues(); /** - * - * *
    * Nested structured data property values.
    * 
@@ -226,34 +165,26 @@ public interface PropertyOrBuilder com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder getPropertyValuesOrBuilder(); /** - * - * *
    * Date time property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7; - * * @return Whether the dateTimeValues field is set. */ boolean hasDateTimeValues(); /** - * - * *
    * Date time property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7; - * * @return The dateTimeValues. */ com.google.cloud.contentwarehouse.v1.DateTimeArray getDateTimeValues(); /** - * - * *
    * Date time property values.
    * It is not supported by CMEK compliant deployment.
@@ -264,32 +195,24 @@ public interface PropertyOrBuilder
   com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder getDateTimeValuesOrBuilder();
 
   /**
-   *
-   *
    * 
    * Map property values.
    * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; - * * @return Whether the mapProperty field is set. */ boolean hasMapProperty(); /** - * - * *
    * Map property values.
    * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; - * * @return The mapProperty. */ com.google.cloud.contentwarehouse.v1.MapProperty getMapProperty(); /** - * - * *
    * Map property values.
    * 
@@ -299,34 +222,26 @@ public interface PropertyOrBuilder com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder getMapPropertyOrBuilder(); /** - * - * *
    * Timestamp property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9; - * * @return Whether the timestampValues field is set. */ boolean hasTimestampValues(); /** - * - * *
    * Timestamp property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9; - * * @return The timestampValues. */ com.google.cloud.contentwarehouse.v1.TimestampArray getTimestampValues(); /** - * - * *
    * Timestamp property values.
    * It is not supported by CMEK compliant deployment.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java
similarity index 60%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java
index 78f338d00c3f..28a67e701039 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java
@@ -1,153 +1,110 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_schema.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Configurations for a nested structured data property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyTypeOptions} */ -public final class PropertyTypeOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PropertyTypeOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PropertyTypeOptions) PropertyTypeOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PropertyTypeOptions.newBuilder() to construct. private PropertyTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PropertyTypeOptions() { propertyDefinitions_ = 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 PropertyTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.class, - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.class, com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder.class); } public static final int PROPERTY_DEFINITIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - propertyDefinitions_; + private java.util.List propertyDefinitions_; /** - * - * *
    * Required. List of property definitions.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getPropertyDefinitionsList() { + public java.util.List getPropertyDefinitionsList() { return propertyDefinitions_; } /** - * - * *
    * Required. List of property definitions.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getPropertyDefinitionsOrBuilderList() { return propertyDefinitions_; } /** - * - * *
    * Required. List of property definitions.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getPropertyDefinitionsCount() { return propertyDefinitions_.size(); } /** - * - * *
    * Required. List of property definitions.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index) { return propertyDefinitions_.get(index); } /** - * - * *
    * Required. List of property definitions.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder - getPropertyDefinitionsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( + int index) { return propertyDefinitions_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,7 +116,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 < propertyDefinitions_.size(); i++) { output.writeMessage(1, propertyDefinitions_.get(i)); } @@ -173,8 +131,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < propertyDefinitions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, propertyDefinitions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, propertyDefinitions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -184,15 +142,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.contentwarehouse.v1.PropertyTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions other = - (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions other = (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) obj; - if (!getPropertyDefinitionsList().equals(other.getPropertyDefinitionsList())) return false; + if (!getPropertyDefinitionsList() + .equals(other.getPropertyDefinitionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,136 +172,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions 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.contentwarehouse.v1.PropertyTypeOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions 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.contentwarehouse.v1.PropertyTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.PropertyTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Configurations for a nested structured data property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyTypeOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PropertyTypeOptions) com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.class, - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.class, com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.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(); @@ -359,9 +312,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; } @java.lang.Override @@ -380,18 +333,14 @@ public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions result = - new com.google.cloud.contentwarehouse.v1.PropertyTypeOptions(this); + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions result = new com.google.cloud.contentwarehouse.v1.PropertyTypeOptions(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.PropertyTypeOptions result) { if (propertyDefinitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { propertyDefinitions_ = java.util.Collections.unmodifiableList(propertyDefinitions_); @@ -411,39 +360,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.PropertyTypeOpti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.PropertyTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyTypeOptions)other); } else { super.mergeFrom(other); return this; @@ -451,8 +399,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance()) return this; if (propertyDefinitionsBuilder_ == null) { if (!other.propertyDefinitions_.isEmpty()) { if (propertyDefinitions_.isEmpty()) { @@ -471,10 +418,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyTypeOption propertyDefinitionsBuilder_ = null; propertyDefinitions_ = other.propertyDefinitions_; bitField0_ = (bitField0_ & ~0x00000001); - propertyDefinitionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPropertyDefinitionsFieldBuilder() - : null; + propertyDefinitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertyDefinitionsFieldBuilder() : null; } else { propertyDefinitionsBuilder_.addAllMessages(other.propertyDefinitions_); } @@ -506,27 +452,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.PropertyDefinition m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.parser(), - extensionRegistry); - if (propertyDefinitionsBuilder_ == null) { - ensurePropertyDefinitionsIsMutable(); - propertyDefinitions_.add(m); - } else { - propertyDefinitionsBuilder_.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.contentwarehouse.v1.PropertyDefinition m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.parser(), + extensionRegistry); + if (propertyDefinitionsBuilder_ == null) { + ensurePropertyDefinitionsIsMutable(); + propertyDefinitions_.add(m); + } else { + propertyDefinitionsBuilder_.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) { @@ -536,40 +480,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - propertyDefinitions_ = java.util.Collections.emptyList(); - + private java.util.List propertyDefinitions_ = + java.util.Collections.emptyList(); private void ensurePropertyDefinitionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - propertyDefinitions_ = - new java.util.ArrayList( - propertyDefinitions_); + propertyDefinitions_ = new java.util.ArrayList(propertyDefinitions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, - com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> - propertyDefinitionsBuilder_; + com.google.cloud.contentwarehouse.v1.PropertyDefinition, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> propertyDefinitionsBuilder_; /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getPropertyDefinitionsList() { + public java.util.List getPropertyDefinitionsList() { if (propertyDefinitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(propertyDefinitions_); } else { @@ -577,15 +509,11 @@ private void ensurePropertyDefinitionsIsMutable() { } } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getPropertyDefinitionsCount() { if (propertyDefinitionsBuilder_ == null) { @@ -595,18 +523,13 @@ public int getPropertyDefinitionsCount() { } } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index) { if (propertyDefinitionsBuilder_ == null) { return propertyDefinitions_.get(index); } else { @@ -614,15 +537,11 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefini } } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPropertyDefinitions( int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { @@ -639,19 +558,14 @@ public Builder setPropertyDefinitions( return this; } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPropertyDefinitions( - int index, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { if (propertyDefinitionsBuilder_ == null) { ensurePropertyDefinitionsIsMutable(); propertyDefinitions_.set(index, builderForValue.build()); @@ -662,18 +576,13 @@ public Builder setPropertyDefinitions( return this; } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addPropertyDefinitions( - com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { + public Builder addPropertyDefinitions(com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { if (propertyDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -687,15 +596,11 @@ public Builder addPropertyDefinitions( return this; } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addPropertyDefinitions( int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { @@ -712,15 +617,11 @@ public Builder addPropertyDefinitions( return this; } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addPropertyDefinitions( com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { @@ -734,19 +635,14 @@ public Builder addPropertyDefinitions( return this; } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addPropertyDefinitions( - int index, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { if (propertyDefinitionsBuilder_ == null) { ensurePropertyDefinitionsIsMutable(); propertyDefinitions_.add(index, builderForValue.build()); @@ -757,22 +653,18 @@ public Builder addPropertyDefinitions( return this; } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllPropertyDefinitions( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (propertyDefinitionsBuilder_ == null) { ensurePropertyDefinitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyDefinitions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, propertyDefinitions_); onChanged(); } else { propertyDefinitionsBuilder_.addAllMessages(values); @@ -780,15 +672,11 @@ public Builder addAllPropertyDefinitions( return this; } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPropertyDefinitions() { if (propertyDefinitionsBuilder_ == null) { @@ -801,15 +689,11 @@ public Builder clearPropertyDefinitions() { return this; } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removePropertyDefinitions(int index) { if (propertyDefinitionsBuilder_ == null) { @@ -822,53 +706,39 @@ public Builder removePropertyDefinitions(int index) { return this; } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder - getPropertyDefinitionsBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder getPropertyDefinitionsBuilder( + int index) { return getPropertyDefinitionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder - getPropertyDefinitionsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( + int index) { if (propertyDefinitionsBuilder_ == null) { - return propertyDefinitions_.get(index); - } else { + return propertyDefinitions_.get(index); } else { return propertyDefinitionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> - getPropertyDefinitionsOrBuilderList() { + public java.util.List + getPropertyDefinitionsOrBuilderList() { if (propertyDefinitionsBuilder_ != null) { return propertyDefinitionsBuilder_.getMessageOrBuilderList(); } else { @@ -876,65 +746,45 @@ public Builder removePropertyDefinitions(int index) { } } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder - addPropertyDefinitionsBuilder() { - return getPropertyDefinitionsFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder addPropertyDefinitionsBuilder() { + return getPropertyDefinitionsFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder - addPropertyDefinitionsBuilder(int index) { - return getPropertyDefinitionsFieldBuilder() - .addBuilder( - index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder addPropertyDefinitionsBuilder( + int index) { + return getPropertyDefinitionsFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); } /** - * - * *
      * Required. List of property definitions.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getPropertyDefinitionsBuilderList() { + public java.util.List + getPropertyDefinitionsBuilderList() { return getPropertyDefinitionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, - com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> + com.google.cloud.contentwarehouse.v1.PropertyDefinition, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> getPropertyDefinitionsFieldBuilder() { if (propertyDefinitionsBuilder_ == null) { - propertyDefinitionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition, - com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, - com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder>( + propertyDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.PropertyDefinition, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder>( propertyDefinitions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -943,9 +793,9 @@ public Builder removePropertyDefinitions(int index) { } return propertyDefinitionsBuilder_; } - @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); } @@ -955,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.PropertyTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PropertyTypeOptions) private static final com.google.cloud.contentwarehouse.v1.PropertyTypeOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PropertyTypeOptions(); } @@ -969,27 +819,27 @@ public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PropertyTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1004,4 +854,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..69e9d438a906 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface PropertyTypeOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PropertyTypeOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. List of property definitions.
+   * 
+ * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getPropertyDefinitionsList(); + /** + *
+   * Required. List of property definitions.
+   * 
+ * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index); + /** + *
+   * Required. List of property definitions.
+   * 
+ * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getPropertyDefinitionsCount(); + /** + *
+   * Required. List of property definitions.
+   * 
+ * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getPropertyDefinitionsOrBuilderList(); + /** + *
+   * Required. List of property definitions.
+   * 
+ * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( + int index); +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java similarity index 68% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java index 2f2c7cc8563f..23ecd51f0ce7 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java @@ -1,82 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents the action responsible for publishing messages to a Pub/Sub topic.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PublishAction} */ -public final class PublishAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PublishAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PublishAction) PublishActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PublishAction.newBuilder() to construct. private PublishAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PublishAction() { topicId_ = ""; - messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + messages_ = + 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 PublishAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PublishAction.class, - com.google.cloud.contentwarehouse.v1.PublishAction.Builder.class); + com.google.cloud.contentwarehouse.v1.PublishAction.class, com.google.cloud.contentwarehouse.v1.PublishAction.Builder.class); } public static final int TOPIC_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object topicId_ = ""; /** - * - * *
    * The topic id in the Pub/Sub service for which messages will be published
    * to.
    * 
* * string topic_id = 1; - * * @return The topicId. */ @java.lang.Override @@ -85,30 +63,30 @@ public java.lang.String getTopicId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topicId_ = s; return s; } } /** - * - * *
    * The topic id in the Pub/Sub service for which messages will be published
    * to.
    * 
* * string topic_id = 1; - * * @return The bytes for topicId. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicIdBytes() { + public com.google.protobuf.ByteString + getTopicIdBytes() { java.lang.Object ref = topicId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topicId_ = b; return b; } else { @@ -117,47 +95,38 @@ public com.google.protobuf.ByteString getTopicIdBytes() { } public static final int MESSAGES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Messages to be published.
    * 
* * repeated string messages = 2; - * * @return A list containing the messages. */ - public com.google.protobuf.ProtocolStringList getMessagesList() { + public com.google.protobuf.ProtocolStringList + getMessagesList() { return messages_; } /** - * - * *
    * Messages to be published.
    * 
* * repeated string messages = 2; - * * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); } /** - * - * *
    * Messages to be published.
    * 
* * repeated string messages = 2; - * * @param index The index of the element to return. * @return The messages at the given index. */ @@ -165,23 +134,20 @@ public java.lang.String getMessages(int index) { return messages_.get(index); } /** - * - * *
    * Messages to be published.
    * 
* * repeated string messages = 2; - * * @param index The index of the value to return. * @return The bytes of the messages at the given index. */ - public com.google.protobuf.ByteString getMessagesBytes(int index) { + public com.google.protobuf.ByteString + getMessagesBytes(int index) { return messages_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,7 +159,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(topicId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topicId_); } @@ -228,16 +195,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.contentwarehouse.v1.PublishAction)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.PublishAction other = - (com.google.cloud.contentwarehouse.v1.PublishAction) obj; + com.google.cloud.contentwarehouse.v1.PublishAction other = (com.google.cloud.contentwarehouse.v1.PublishAction) obj; - if (!getTopicId().equals(other.getTopicId())) return false; - if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!getTopicId() + .equals(other.getTopicId())) return false; + if (!getMessagesList() + .equals(other.getMessagesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -261,148 +229,145 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.PublishAction 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.contentwarehouse.v1.PublishAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PublishAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PublishAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.PublishAction 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.contentwarehouse.v1.PublishAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.PublishAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the action responsible for publishing messages to a Pub/Sub topic.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PublishAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PublishAction) com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PublishAction.class, - com.google.cloud.contentwarehouse.v1.PublishAction.Builder.class); + com.google.cloud.contentwarehouse.v1.PublishAction.class, com.google.cloud.contentwarehouse.v1.PublishAction.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.PublishAction.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; topicId_ = ""; - messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + messages_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; } @java.lang.Override @@ -421,11 +386,8 @@ public com.google.cloud.contentwarehouse.v1.PublishAction build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PublishAction buildPartial() { - com.google.cloud.contentwarehouse.v1.PublishAction result = - new com.google.cloud.contentwarehouse.v1.PublishAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.PublishAction result = new com.google.cloud.contentwarehouse.v1.PublishAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -445,39 +407,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.PublishAction 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.contentwarehouse.v1.PublishAction) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.PublishAction) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.PublishAction)other); } else { super.mergeFrom(other); return this; @@ -485,8 +446,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PublishAction other) { - if (other == com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance()) return this; if (!other.getTopicId().isEmpty()) { topicId_ = other.topicId_; bitField0_ |= 0x00000001; @@ -528,26 +488,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - topicId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMessagesIsMutable(); - messages_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + topicId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMessagesIsMutable(); + messages_.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) { @@ -557,26 +514,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object topicId_ = ""; /** - * - * *
      * The topic id in the Pub/Sub service for which messages will be published
      * to.
      * 
* * string topic_id = 1; - * * @return The topicId. */ public java.lang.String getTopicId() { java.lang.Object ref = topicId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topicId_ = s; return s; @@ -585,22 +539,21 @@ public java.lang.String getTopicId() { } } /** - * - * *
      * The topic id in the Pub/Sub service for which messages will be published
      * to.
      * 
* * string topic_id = 1; - * * @return The bytes for topicId. */ - public com.google.protobuf.ByteString getTopicIdBytes() { + public com.google.protobuf.ByteString + getTopicIdBytes() { java.lang.Object ref = topicId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topicId_ = b; return b; } else { @@ -608,37 +561,30 @@ public com.google.protobuf.ByteString getTopicIdBytes() { } } /** - * - * *
      * The topic id in the Pub/Sub service for which messages will be published
      * to.
      * 
* * string topic_id = 1; - * * @param value The topicId to set. * @return This builder for chaining. */ - public Builder setTopicId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topicId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The topic id in the Pub/Sub service for which messages will be published
      * to.
      * 
* * string topic_id = 1; - * * @return This builder for chaining. */ public Builder clearTopicId() { @@ -648,22 +594,18 @@ public Builder clearTopicId() { return this; } /** - * - * *
      * The topic id in the Pub/Sub service for which messages will be published
      * to.
      * 
* * string topic_id = 1; - * * @param value The bytes for topicId to set. * @return This builder for chaining. */ - public Builder setTopicIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topicId_ = value; bitField0_ |= 0x00000001; @@ -673,7 +615,6 @@ public Builder setTopicIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMessagesIsMutable() { if (!messages_.isModifiable()) { messages_ = new com.google.protobuf.LazyStringArrayList(messages_); @@ -681,43 +622,35 @@ private void ensureMessagesIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * Messages to be published.
      * 
* * repeated string messages = 2; - * * @return A list containing the messages. */ - public com.google.protobuf.ProtocolStringList getMessagesList() { + public com.google.protobuf.ProtocolStringList + getMessagesList() { messages_.makeImmutable(); return messages_; } /** - * - * *
      * Messages to be published.
      * 
* * repeated string messages = 2; - * * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); } /** - * - * *
      * Messages to be published.
      * 
* * repeated string messages = 2; - * * @param index The index of the element to return. * @return The messages at the given index. */ @@ -725,37 +658,31 @@ public java.lang.String getMessages(int index) { return messages_.get(index); } /** - * - * *
      * Messages to be published.
      * 
* * repeated string messages = 2; - * * @param index The index of the value to return. * @return The bytes of the messages at the given index. */ - public com.google.protobuf.ByteString getMessagesBytes(int index) { + public com.google.protobuf.ByteString + getMessagesBytes(int index) { return messages_.getByteString(index); } /** - * - * *
      * Messages to be published.
      * 
* * repeated string messages = 2; - * * @param index The index to set the value at. * @param value The messages to set. * @return This builder for chaining. */ - public Builder setMessages(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessages( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.set(index, value); bitField0_ |= 0x00000002; @@ -763,21 +690,17 @@ public Builder setMessages(int index, java.lang.String value) { return this; } /** - * - * *
      * Messages to be published.
      * 
* * repeated string messages = 2; - * * @param value The messages to add. * @return This builder for chaining. */ - public Builder addMessages(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMessages( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.add(value); bitField0_ |= 0x00000002; @@ -785,58 +708,50 @@ public Builder addMessages(java.lang.String value) { return this; } /** - * - * *
      * Messages to be published.
      * 
* * repeated string messages = 2; - * * @param values The messages to add. * @return This builder for chaining. */ - public Builder addAllMessages(java.lang.Iterable values) { + public Builder addAllMessages( + java.lang.Iterable values) { ensureMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, messages_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Messages to be published.
      * 
* * repeated string messages = 2; - * * @return This builder for chaining. */ public Builder clearMessages() { - messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + messages_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * Messages to be published.
      * 
* * repeated string messages = 2; - * * @param value The bytes of the messages to add. * @return This builder for chaining. */ - public Builder addMessagesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMessagesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMessagesIsMutable(); messages_.add(value); @@ -844,9 +759,9 @@ public Builder addMessagesBytes(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); } @@ -856,12 +771,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.PublishAction) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PublishAction) private static final com.google.cloud.contentwarehouse.v1.PublishAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PublishAction(); } @@ -870,27 +785,27 @@ public static com.google.cloud.contentwarehouse.v1.PublishAction getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PublishAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -905,4 +820,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.PublishAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java index f49585deb8cd..a63198e9c1e6 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java @@ -1,103 +1,72 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface PublishActionOrBuilder - extends +public interface PublishActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PublishAction) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The topic id in the Pub/Sub service for which messages will be published
    * to.
    * 
* * string topic_id = 1; - * * @return The topicId. */ java.lang.String getTopicId(); /** - * - * *
    * The topic id in the Pub/Sub service for which messages will be published
    * to.
    * 
* * string topic_id = 1; - * * @return The bytes for topicId. */ - com.google.protobuf.ByteString getTopicIdBytes(); + com.google.protobuf.ByteString + getTopicIdBytes(); /** - * - * *
    * Messages to be published.
    * 
* * repeated string messages = 2; - * * @return A list containing the messages. */ - java.util.List getMessagesList(); + java.util.List + getMessagesList(); /** - * - * *
    * Messages to be published.
    * 
* * repeated string messages = 2; - * * @return The count of messages. */ int getMessagesCount(); /** - * - * *
    * Messages to be published.
    * 
* * repeated string messages = 2; - * * @param index The index of the element to return. * @return The messages at the given index. */ java.lang.String getMessages(int index); /** - * - * *
    * Messages to be published.
    * 
* * repeated string messages = 2; - * * @param index The index of the value to return. * @return The bytes of the messages at the given index. */ - com.google.protobuf.ByteString getMessagesBytes(int index); + com.google.protobuf.ByteString + getMessagesBytes(int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java similarity index 72% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java index 20f18586dafe..8db7f99fb674 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java @@ -1,101 +1,73 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Additional result info for the question-answering feature.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.QAResult} */ -public final class QAResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QAResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.QAResult) QAResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QAResult.newBuilder() to construct. private QAResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QAResult() { highlights_ = 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 QAResult(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.QAResult.class, - com.google.cloud.contentwarehouse.v1.QAResult.Builder.class); + com.google.cloud.contentwarehouse.v1.QAResult.class, com.google.cloud.contentwarehouse.v1.QAResult.Builder.class); } - public interface HighlightOrBuilder - extends + public interface HighlightOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.QAResult.Highlight) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Start index of the highlight.
      * 
* * int32 start_index = 1; - * * @return The startIndex. */ int getStartIndex(); /** - * - * *
      * End index of the highlight, exclusive.
      * 
* * int32 end_index = 2; - * * @return The endIndex. */ int getEndIndex(); } /** - * - * *
    * A text span in the search text snippet that represents a highlighted
    * section (answer context, highly relevant sentence, etc.).
@@ -103,50 +75,46 @@ public interface HighlightOrBuilder
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.QAResult.Highlight}
    */
-  public static final class Highlight extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Highlight extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.QAResult.Highlight)
       HighlightOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Highlight.newBuilder() to construct.
     private Highlight(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private Highlight() {}
+    private Highlight() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Highlight();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
-          .internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
-          .internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.QAResult.Highlight.class,
-              com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder.class);
+              com.google.cloud.contentwarehouse.v1.QAResult.Highlight.class, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder.class);
     }
 
     public static final int START_INDEX_FIELD_NUMBER = 1;
     private int startIndex_ = 0;
     /**
-     *
-     *
      * 
      * Start index of the highlight.
      * 
* * int32 start_index = 1; - * * @return The startIndex. */ @java.lang.Override @@ -157,14 +125,11 @@ public int getStartIndex() { public static final int END_INDEX_FIELD_NUMBER = 2; private int endIndex_ = 0; /** - * - * *
      * End index of the highlight, exclusive.
      * 
* * int32 end_index = 2; - * * @return The endIndex. */ @java.lang.Override @@ -173,7 +138,6 @@ public int getEndIndex() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +149,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 (startIndex_ != 0) { output.writeInt32(1, startIndex_); } @@ -202,10 +167,12 @@ public int getSerializedSize() { size = 0; if (startIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, startIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, startIndex_); } if (endIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, endIndex_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -215,16 +182,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.contentwarehouse.v1.QAResult.Highlight)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.QAResult.Highlight other = - (com.google.cloud.contentwarehouse.v1.QAResult.Highlight) obj; + com.google.cloud.contentwarehouse.v1.QAResult.Highlight other = (com.google.cloud.contentwarehouse.v1.QAResult.Highlight) obj; - if (getStartIndex() != other.getStartIndex()) return false; - if (getEndIndex() != other.getEndIndex()) return false; + if (getStartIndex() + != other.getStartIndex()) return false; + if (getEndIndex() + != other.getEndIndex()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,94 +214,89 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight 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.contentwarehouse.v1.QAResult.Highlight parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight 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.contentwarehouse.v1.QAResult.Highlight parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.QAResult.Highlight prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.QAResult.Highlight prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -343,8 +306,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A text span in the search text snippet that represents a highlighted
      * section (answer context, highly relevant sentence, etc.).
@@ -352,33 +313,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.contentwarehouse.v1.QAResult.Highlight}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.QAResult.Highlight)
         com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
-            .internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
-            .internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable
+        return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.contentwarehouse.v1.QAResult.Highlight.class,
-                com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder.class);
+                com.google.cloud.contentwarehouse.v1.QAResult.Highlight.class, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder.class);
       }
 
       // Construct using com.google.cloud.contentwarehouse.v1.QAResult.Highlight.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();
@@ -389,9 +350,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
-            .internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor;
       }
 
       @java.lang.Override
@@ -410,11 +371,8 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight build() {
 
       @java.lang.Override
       public com.google.cloud.contentwarehouse.v1.QAResult.Highlight buildPartial() {
-        com.google.cloud.contentwarehouse.v1.QAResult.Highlight result =
-            new com.google.cloud.contentwarehouse.v1.QAResult.Highlight(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.contentwarehouse.v1.QAResult.Highlight result = new com.google.cloud.contentwarehouse.v1.QAResult.Highlight(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -433,41 +391,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.QAResult.Highlig
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.contentwarehouse.v1.QAResult.Highlight) {
-          return mergeFrom((com.google.cloud.contentwarehouse.v1.QAResult.Highlight) other);
+          return mergeFrom((com.google.cloud.contentwarehouse.v1.QAResult.Highlight)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -475,8 +430,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.QAResult.Highlight other) {
-        if (other == com.google.cloud.contentwarehouse.v1.QAResult.Highlight.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.contentwarehouse.v1.QAResult.Highlight.getDefaultInstance()) return this;
         if (other.getStartIndex() != 0) {
           setStartIndex(other.getStartIndex());
         }
@@ -509,25 +463,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  startIndex_ = input.readInt32();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              case 16:
-                {
-                  endIndex_ = input.readInt32();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                startIndex_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 16: {
+                endIndex_ = 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) {
@@ -537,19 +488,15 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private int startIndex_;
+      private int startIndex_ ;
       /**
-       *
-       *
        * 
        * Start index of the highlight.
        * 
* * int32 start_index = 1; - * * @return The startIndex. */ @java.lang.Override @@ -557,14 +504,11 @@ public int getStartIndex() { return startIndex_; } /** - * - * *
        * Start index of the highlight.
        * 
* * int32 start_index = 1; - * * @param value The startIndex to set. * @return This builder for chaining. */ @@ -576,14 +520,11 @@ public Builder setStartIndex(int value) { return this; } /** - * - * *
        * Start index of the highlight.
        * 
* * int32 start_index = 1; - * * @return This builder for chaining. */ public Builder clearStartIndex() { @@ -593,16 +534,13 @@ public Builder clearStartIndex() { return this; } - private int endIndex_; + private int endIndex_ ; /** - * - * *
        * End index of the highlight, exclusive.
        * 
* * int32 end_index = 2; - * * @return The endIndex. */ @java.lang.Override @@ -610,14 +548,11 @@ public int getEndIndex() { return endIndex_; } /** - * - * *
        * End index of the highlight, exclusive.
        * 
* * int32 end_index = 2; - * * @param value The endIndex to set. * @return This builder for chaining. */ @@ -629,14 +564,11 @@ public Builder setEndIndex(int value) { return this; } /** - * - * *
        * End index of the highlight, exclusive.
        * 
* * int32 end_index = 2; - * * @return This builder for chaining. */ public Builder clearEndIndex() { @@ -645,7 +577,6 @@ public Builder clearEndIndex() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -658,12 +589,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.QAResult.Highlight) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.QAResult.Highlight) private static final com.google.cloud.contentwarehouse.v1.QAResult.Highlight DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.QAResult.Highlight(); } @@ -672,28 +603,27 @@ public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Highlight parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Highlight parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -708,15 +638,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int HIGHLIGHTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List highlights_; /** - * - * *
    * Highlighted sections in the snippet.
    * 
@@ -724,13 +652,10 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getDefaultInstanc * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ @java.lang.Override - public java.util.List - getHighlightsList() { + public java.util.List getHighlightsList() { return highlights_; } /** - * - * *
    * Highlighted sections in the snippet.
    * 
@@ -738,13 +663,11 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getDefaultInstanc * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHighlightsOrBuilderList() { return highlights_; } /** - * - * *
    * Highlighted sections in the snippet.
    * 
@@ -756,8 +679,6 @@ public int getHighlightsCount() { return highlights_.size(); } /** - * - * *
    * Highlighted sections in the snippet.
    * 
@@ -769,8 +690,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getHighlights(int return highlights_.get(index); } /** - * - * *
    * Highlighted sections in the snippet.
    * 
@@ -786,8 +705,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 2; private float confidenceScore_ = 0F; /** - * - * *
    * The calibrated confidence score for this document, in the range
    * [0., 1.]. This represents the confidence level for whether the returned
@@ -795,7 +712,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl
    * 
* * float confidence_score = 2; - * * @return The confidenceScore. */ @java.lang.Override @@ -804,7 +720,6 @@ public float getConfidenceScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -816,7 +731,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < highlights_.size(); i++) { output.writeMessage(1, highlights_.get(i)); } @@ -833,10 +749,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < highlights_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, highlights_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, highlights_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidenceScore_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidenceScore_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidenceScore_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -846,17 +764,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.contentwarehouse.v1.QAResult)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.QAResult other = - (com.google.cloud.contentwarehouse.v1.QAResult) obj; + com.google.cloud.contentwarehouse.v1.QAResult other = (com.google.cloud.contentwarehouse.v1.QAResult) obj; - if (!getHighlightsList().equals(other.getHighlightsList())) return false; + if (!getHighlightsList() + .equals(other.getHighlightsList())) return false; if (java.lang.Float.floatToIntBits(getConfidenceScore()) - != java.lang.Float.floatToIntBits(other.getConfidenceScore())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidenceScore())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -873,142 +792,139 @@ public int hashCode() { hash = (53 * hash) + getHighlightsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidenceScore()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.QAResult 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.contentwarehouse.v1.QAResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.QAResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.QAResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.QAResult 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.contentwarehouse.v1.QAResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.QAResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Additional result info for the question-answering feature.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.QAResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.QAResult) com.google.cloud.contentwarehouse.v1.QAResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.QAResult.class, - com.google.cloud.contentwarehouse.v1.QAResult.Builder.class); + com.google.cloud.contentwarehouse.v1.QAResult.class, com.google.cloud.contentwarehouse.v1.QAResult.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.QAResult.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(); @@ -1025,9 +941,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; } @java.lang.Override @@ -1046,12 +962,9 @@ public com.google.cloud.contentwarehouse.v1.QAResult build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.QAResult buildPartial() { - com.google.cloud.contentwarehouse.v1.QAResult result = - new com.google.cloud.contentwarehouse.v1.QAResult(this); + com.google.cloud.contentwarehouse.v1.QAResult result = new com.google.cloud.contentwarehouse.v1.QAResult(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1079,39 +992,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.QAResult 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.contentwarehouse.v1.QAResult) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.QAResult) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.QAResult)other); } else { super.mergeFrom(other); return this; @@ -1138,10 +1050,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.QAResult other) { highlightsBuilder_ = null; highlights_ = other.highlights_; bitField0_ = (bitField0_ & ~0x00000001); - highlightsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHighlightsFieldBuilder() - : null; + highlightsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHighlightsFieldBuilder() : null; } else { highlightsBuilder_.addAllMessages(other.highlights_); } @@ -1176,33 +1087,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.QAResult.Highlight m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.QAResult.Highlight.parser(), - extensionRegistry); - if (highlightsBuilder_ == null) { - ensureHighlightsIsMutable(); - highlights_.add(m); - } else { - highlightsBuilder_.addMessage(m); - } - break; - } // case 10 - case 21: - { - confidenceScore_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.contentwarehouse.v1.QAResult.Highlight m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.QAResult.Highlight.parser(), + extensionRegistry); + if (highlightsBuilder_ == null) { + ensureHighlightsIsMutable(); + highlights_.add(m); + } else { + highlightsBuilder_.addMessage(m); + } + break; + } // case 10 + case 21: { + confidenceScore_ = 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) { @@ -1212,38 +1120,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List highlights_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHighlightsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - highlights_ = - new java.util.ArrayList( - highlights_); + highlights_ = new java.util.ArrayList(highlights_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.QAResult.Highlight, - com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder, - com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder> - highlightsBuilder_; + com.google.cloud.contentwarehouse.v1.QAResult.Highlight, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder, com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder> highlightsBuilder_; /** - * - * *
      * Highlighted sections in the snippet.
      * 
* * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ - public java.util.List - getHighlightsList() { + public java.util.List getHighlightsList() { if (highlightsBuilder_ == null) { return java.util.Collections.unmodifiableList(highlights_); } else { @@ -1251,8 +1149,6 @@ private void ensureHighlightsIsMutable() { } } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1267,8 +1163,6 @@ public int getHighlightsCount() { } } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1283,8 +1177,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getHighlights(int } } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1306,8 +1198,6 @@ public Builder setHighlights( return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1315,8 +1205,7 @@ public Builder setHighlights( * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ public Builder setHighlights( - int index, - com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder builderForValue) { if (highlightsBuilder_ == null) { ensureHighlightsIsMutable(); highlights_.set(index, builderForValue.build()); @@ -1327,8 +1216,6 @@ public Builder setHighlights( return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1349,8 +1236,6 @@ public Builder addHighlights(com.google.cloud.contentwarehouse.v1.QAResult.Highl return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1372,8 +1257,6 @@ public Builder addHighlights( return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1392,8 +1275,6 @@ public Builder addHighlights( return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1401,8 +1282,7 @@ public Builder addHighlights( * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ public Builder addHighlights( - int index, - com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder builderForValue) { if (highlightsBuilder_ == null) { ensureHighlightsIsMutable(); highlights_.add(index, builderForValue.build()); @@ -1413,8 +1293,6 @@ public Builder addHighlights( return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1422,11 +1300,11 @@ public Builder addHighlights( * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ public Builder addAllHighlights( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (highlightsBuilder_ == null) { ensureHighlightsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, highlights_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, highlights_); onChanged(); } else { highlightsBuilder_.addAllMessages(values); @@ -1434,8 +1312,6 @@ public Builder addAllHighlights( return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1453,8 +1329,6 @@ public Builder clearHighlights() { return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1472,8 +1346,6 @@ public Builder removeHighlights(int index) { return this; } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1485,8 +1357,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder getHighli return getHighlightsFieldBuilder().getBuilder(index); } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1496,23 +1366,19 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder getHighli public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighlightsOrBuilder( int index) { if (highlightsBuilder_ == null) { - return highlights_.get(index); - } else { + return highlights_.get(index); } else { return highlightsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Highlighted sections in the snippet.
      * 
* * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ - public java.util.List< - ? extends com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder> - getHighlightsOrBuilderList() { + public java.util.List + getHighlightsOrBuilderList() { if (highlightsBuilder_ != null) { return highlightsBuilder_.getMessageOrBuilderList(); } else { @@ -1520,8 +1386,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl } } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1529,12 +1393,10 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder addHighlightsBuilder() { - return getHighlightsFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.QAResult.Highlight.getDefaultInstance()); + return getHighlightsFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.QAResult.Highlight.getDefaultInstance()); } /** - * - * *
      * Highlighted sections in the snippet.
      * 
@@ -1543,45 +1405,37 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder addHighli */ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder addHighlightsBuilder( int index) { - return getHighlightsFieldBuilder() - .addBuilder( - index, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.getDefaultInstance()); + return getHighlightsFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.getDefaultInstance()); } /** - * - * *
      * Highlighted sections in the snippet.
      * 
* * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ - public java.util.List - getHighlightsBuilderList() { + public java.util.List + getHighlightsBuilderList() { return getHighlightsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.QAResult.Highlight, - com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder, - com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder> + com.google.cloud.contentwarehouse.v1.QAResult.Highlight, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder, com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder> getHighlightsFieldBuilder() { if (highlightsBuilder_ == null) { - highlightsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.QAResult.Highlight, - com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder, - com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder>( - highlights_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + highlightsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.QAResult.Highlight, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder, com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder>( + highlights_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); highlights_ = null; } return highlightsBuilder_; } - private float confidenceScore_; + private float confidenceScore_ ; /** - * - * *
      * The calibrated confidence score for this document, in the range
      * [0., 1.]. This represents the confidence level for whether the returned
@@ -1589,7 +1443,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder addHighli
      * 
* * float confidence_score = 2; - * * @return The confidenceScore. */ @java.lang.Override @@ -1597,8 +1450,6 @@ public float getConfidenceScore() { return confidenceScore_; } /** - * - * *
      * The calibrated confidence score for this document, in the range
      * [0., 1.]. This represents the confidence level for whether the returned
@@ -1606,7 +1457,6 @@ public float getConfidenceScore() {
      * 
* * float confidence_score = 2; - * * @param value The confidenceScore to set. * @return This builder for chaining. */ @@ -1618,8 +1468,6 @@ public Builder setConfidenceScore(float value) { return this; } /** - * - * *
      * The calibrated confidence score for this document, in the range
      * [0., 1.]. This represents the confidence level for whether the returned
@@ -1627,7 +1475,6 @@ public Builder setConfidenceScore(float value) {
      * 
* * float confidence_score = 2; - * * @return This builder for chaining. */ public Builder clearConfidenceScore() { @@ -1636,9 +1483,9 @@ public Builder clearConfidenceScore() { 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); } @@ -1648,12 +1495,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.QAResult) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.QAResult) private static final com.google.cloud.contentwarehouse.v1.QAResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.QAResult(); } @@ -1662,27 +1509,27 @@ public static com.google.cloud.contentwarehouse.v1.QAResult getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QAResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 QAResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1697,4 +1544,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.QAResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java similarity index 71% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java index 952f89319705..a9d1471d747a 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.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/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; -public interface QAResultOrBuilder - extends +public interface QAResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.QAResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Highlighted sections in the snippet.
    * 
* * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ - java.util.List getHighlightsList(); + java.util.List + getHighlightsList(); /** - * - * *
    * Highlighted sections in the snippet.
    * 
@@ -44,8 +25,6 @@ public interface QAResultOrBuilder */ com.google.cloud.contentwarehouse.v1.QAResult.Highlight getHighlights(int index); /** - * - * *
    * Highlighted sections in the snippet.
    * 
@@ -54,19 +33,15 @@ public interface QAResultOrBuilder */ int getHighlightsCount(); /** - * - * *
    * Highlighted sections in the snippet.
    * 
* * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ - java.util.List + java.util.List getHighlightsOrBuilderList(); /** - * - * *
    * Highlighted sections in the snippet.
    * 
@@ -77,8 +52,6 @@ com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighlightsOr int index); /** - * - * *
    * The calibrated confidence score for this document, in the range
    * [0., 1.]. This represents the confidence level for whether the returned
@@ -86,7 +59,6 @@ com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighlightsOr
    * 
* * float confidence_score = 2; - * * @return The confidenceScore. */ float getConfidenceScore(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java similarity index 72% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java index 4df731d9fb29..27196f070e96 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java @@ -1,36 +1,18 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * When a raw document is supplied, this indicates the file format
  * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.RawDocumentFileType} */ -public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEnum { +public enum RawDocumentFileType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * No raw document specified or it is non-parsable
    * 
@@ -39,8 +21,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED(0), /** - * - * *
    * Adobe PDF format
    * 
@@ -49,8 +29,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ RAW_DOCUMENT_FILE_TYPE_PDF(1), /** - * - * *
    * Microsoft Word format
    * 
@@ -59,8 +37,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ RAW_DOCUMENT_FILE_TYPE_DOCX(2), /** - * - * *
    * Microsoft Excel format
    * 
@@ -69,8 +45,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ RAW_DOCUMENT_FILE_TYPE_XLSX(3), /** - * - * *
    * Microsoft Powerpoint format
    * 
@@ -79,8 +53,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ RAW_DOCUMENT_FILE_TYPE_PPTX(4), /** - * - * *
    * UTF-8 encoded text format
    * 
@@ -89,8 +61,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ RAW_DOCUMENT_FILE_TYPE_TEXT(5), /** - * - * *
    * TIFF or TIF image file format
    * 
@@ -102,8 +72,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
    * No raw document specified or it is non-parsable
    * 
@@ -112,8 +80,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ public static final int RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Adobe PDF format
    * 
@@ -122,8 +88,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ public static final int RAW_DOCUMENT_FILE_TYPE_PDF_VALUE = 1; /** - * - * *
    * Microsoft Word format
    * 
@@ -132,8 +96,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ public static final int RAW_DOCUMENT_FILE_TYPE_DOCX_VALUE = 2; /** - * - * *
    * Microsoft Excel format
    * 
@@ -142,8 +104,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ public static final int RAW_DOCUMENT_FILE_TYPE_XLSX_VALUE = 3; /** - * - * *
    * Microsoft Powerpoint format
    * 
@@ -152,8 +112,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ public static final int RAW_DOCUMENT_FILE_TYPE_PPTX_VALUE = 4; /** - * - * *
    * UTF-8 encoded text format
    * 
@@ -162,8 +120,6 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ public static final int RAW_DOCUMENT_FILE_TYPE_TEXT_VALUE = 5; /** - * - * *
    * TIFF or TIF image file format
    * 
@@ -172,6 +128,7 @@ public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEn */ public static final int RAW_DOCUMENT_FILE_TYPE_TIFF_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -196,22 +153,14 @@ public static RawDocumentFileType valueOf(int value) { */ public static RawDocumentFileType forNumber(int value) { switch (value) { - case 0: - return RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED; - case 1: - return RAW_DOCUMENT_FILE_TYPE_PDF; - case 2: - return RAW_DOCUMENT_FILE_TYPE_DOCX; - case 3: - return RAW_DOCUMENT_FILE_TYPE_XLSX; - case 4: - return RAW_DOCUMENT_FILE_TYPE_PPTX; - case 5: - return RAW_DOCUMENT_FILE_TYPE_TEXT; - case 6: - return RAW_DOCUMENT_FILE_TYPE_TIFF; - default: - return null; + case 0: return RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED; + case 1: return RAW_DOCUMENT_FILE_TYPE_PDF; + case 2: return RAW_DOCUMENT_FILE_TYPE_DOCX; + case 3: return RAW_DOCUMENT_FILE_TYPE_XLSX; + case 4: return RAW_DOCUMENT_FILE_TYPE_PPTX; + case 5: return RAW_DOCUMENT_FILE_TYPE_TEXT; + case 6: return RAW_DOCUMENT_FILE_TYPE_TIFF; + default: return null; } } @@ -219,28 +168,28 @@ public static RawDocumentFileType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RawDocumentFileType findValueByNumber(int number) { - return RawDocumentFileType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + RawDocumentFileType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RawDocumentFileType findValueByNumber(int number) { + return RawDocumentFileType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor().getEnumTypes().get(0); } @@ -249,7 +198,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static RawDocumentFileType 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; @@ -265,3 +215,4 @@ private RawDocumentFileType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.RawDocumentFileType) } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java index e64699011e6b..1cc897ab38ce 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents the action responsible for remove a document from a specific
  * folder.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.RemoveFromFolderAction}
  */
-public final class RemoveFromFolderAction extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RemoveFromFolderAction extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RemoveFromFolderAction)
     RemoveFromFolderActionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RemoveFromFolderAction.newBuilder() to construct.
   private RemoveFromFolderAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RemoveFromFolderAction() {
     condition_ = "";
     folder_ = "";
@@ -45,38 +27,33 @@ private RemoveFromFolderAction() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RemoveFromFolderAction();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-        .internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-        .internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.class,
-            com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder.class);
+            com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.class, com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder.class);
   }
 
   public static final int CONDITION_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object condition_ = "";
   /**
-   *
-   *
    * 
    * Condition of the action to be executed.
    * 
* * string condition = 1; - * * @return The condition. */ @java.lang.Override @@ -85,29 +62,29 @@ 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; } } /** - * - * *
    * Condition of the action to be executed.
    * 
* * 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 { @@ -116,12 +93,9 @@ public com.google.protobuf.ByteString getConditionBytes() { } public static final int FOLDER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object folder_ = ""; /** - * - * *
    * Name of the folder under which new document is to be added.
    * Format:
@@ -129,7 +103,6 @@ public com.google.protobuf.ByteString getConditionBytes() {
    * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } - * * @return The folder. */ @java.lang.Override @@ -138,15 +111,14 @@ public java.lang.String getFolder() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folder_ = s; return s; } } /** - * - * *
    * Name of the folder under which new document is to be added.
    * Format:
@@ -154,15 +126,16 @@ public java.lang.String getFolder() {
    * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for folder. */ @java.lang.Override - public com.google.protobuf.ByteString getFolderBytes() { + public com.google.protobuf.ByteString + getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); folder_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getFolderBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, condition_); } @@ -213,16 +186,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.contentwarehouse.v1.RemoveFromFolderAction)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction other = - (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) obj; + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction other = (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) obj; - if (!getCondition().equals(other.getCondition())) return false; - if (!getFolder().equals(other.getFolder())) return false; + if (!getCondition() + .equals(other.getCondition())) return false; + if (!getFolder() + .equals(other.getFolder())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,104 +218,98 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction 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.contentwarehouse.v1.RemoveFromFolderAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction 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.contentwarehouse.v1.RemoveFromFolderAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the action responsible for remove a document from a specific
    * folder.
@@ -349,32 +317,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.RemoveFromFolderAction}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RemoveFromFolderAction)
       com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-          .internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-          .internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.class,
-              com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder.class);
+              com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.class, com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.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 +354,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-          .internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
     }
 
     @java.lang.Override
@@ -406,11 +375,8 @@ public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction buildPartial() {
-      com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction result =
-          new com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction result = new com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -429,39 +395,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RemoveFromFolder
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.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.contentwarehouse.v1.RemoveFromFolderAction) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -469,8 +434,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction other) {
-      if (other == com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance()) return this;
       if (!other.getCondition().isEmpty()) {
         condition_ = other.condition_;
         bitField0_ |= 0x00000001;
@@ -507,25 +471,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                condition_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                folder_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            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 18: {
+              folder_ = 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) {
@@ -535,25 +496,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object condition_ = "";
     /**
-     *
-     *
      * 
      * Condition of the action to be executed.
      * 
* * 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; @@ -562,21 +520,20 @@ public java.lang.String getCondition() { } } /** - * - * *
      * Condition of the action to be executed.
      * 
* * 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 { @@ -584,35 +541,28 @@ public com.google.protobuf.ByteString getConditionBytes() { } } /** - * - * *
      * Condition of the action to be executed.
      * 
* * 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; } /** - * - * *
      * Condition of the action to be executed.
      * 
* * string condition = 1; - * * @return This builder for chaining. */ public Builder clearCondition() { @@ -622,21 +572,17 @@ public Builder clearCondition() { return this; } /** - * - * *
      * Condition of the action to be executed.
      * 
* * 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; @@ -646,8 +592,6 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { private java.lang.Object folder_ = ""; /** - * - * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -655,13 +599,13 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) {
      * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } - * * @return The folder. */ public java.lang.String getFolder() { java.lang.Object ref = folder_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folder_ = s; return s; @@ -670,8 +614,6 @@ public java.lang.String getFolder() { } } /** - * - * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -679,14 +621,15 @@ public java.lang.String getFolder() {
      * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for folder. */ - public com.google.protobuf.ByteString getFolderBytes() { + public com.google.protobuf.ByteString + getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); folder_ = b; return b; } else { @@ -694,8 +637,6 @@ public com.google.protobuf.ByteString getFolderBytes() { } } /** - * - * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -703,22 +644,18 @@ public com.google.protobuf.ByteString getFolderBytes() {
      * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } - * * @param value The folder to set. * @return This builder for chaining. */ - public Builder setFolder(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFolder( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } folder_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -726,7 +663,6 @@ public Builder setFolder(java.lang.String value) {
      * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearFolder() { @@ -736,8 +672,6 @@ public Builder clearFolder() { return this; } /** - * - * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -745,23 +679,21 @@ public Builder clearFolder() {
      * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for folder to set. * @return This builder for chaining. */ - public Builder setFolderBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFolderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folder_ = 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); } @@ -771,12 +703,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RemoveFromFolderAction) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RemoveFromFolderAction) private static final com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction(); } @@ -785,27 +717,27 @@ public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RemoveFromFolderAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RemoveFromFolderAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -820,4 +752,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java similarity index 61% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java index 1720d2e9fd30..be0e4fb9cbf0 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface RemoveFromFolderActionOrBuilder - extends +public interface RemoveFromFolderActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RemoveFromFolderAction) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Condition of the action to be executed.
    * 
* * string condition = 1; - * * @return The condition. */ java.lang.String getCondition(); /** - * - * *
    * Condition of the action to be executed.
    * 
* * string condition = 1; - * * @return The bytes for condition. */ - com.google.protobuf.ByteString getConditionBytes(); + com.google.protobuf.ByteString + getConditionBytes(); /** - * - * *
    * Name of the folder under which new document is to be added.
    * Format:
@@ -58,13 +35,10 @@ public interface RemoveFromFolderActionOrBuilder
    * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } - * * @return The folder. */ java.lang.String getFolder(); /** - * - * *
    * Name of the folder under which new document is to be added.
    * Format:
@@ -72,8 +46,8 @@ public interface RemoveFromFolderActionOrBuilder
    * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for folder. */ - com.google.protobuf.ByteString getFolderBytes(); + com.google.protobuf.ByteString + getFolderBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java similarity index 66% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java index 3dc52c8739bf..fecc118fdb90 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Meta information is used to improve the performance of the service.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RequestMetadata} */ -public final class RequestMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RequestMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RequestMetadata) RequestMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RequestMetadata.newBuilder() to construct. private RequestMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RequestMetadata() {} + private RequestMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RequestMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RequestMetadata.class, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RequestMetadata.class, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder.class); } public static final int USER_INFO_FIELD_NUMBER = 1; private com.google.cloud.contentwarehouse.v1.UserInfo userInfo_; /** - * - * *
    * Provides user unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; - * * @return Whether the userInfo field is set. */ @java.lang.Override @@ -78,25 +57,18 @@ public boolean hasUserInfo() { return userInfo_ != null; } /** - * - * *
    * Provides user unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; - * * @return The userInfo. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() { - return userInfo_ == null - ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; } /** - * - * *
    * Provides user unique identification and groups information.
    * 
@@ -105,13 +77,10 @@ public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuilder() { - return userInfo_ == null - ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; } 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 (userInfo_ != null) { output.writeMessage(1, getUserInfo()); } @@ -137,7 +107,8 @@ public int getSerializedSize() { size = 0; if (userInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUserInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUserInfo()); } 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.contentwarehouse.v1.RequestMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RequestMetadata other = - (com.google.cloud.contentwarehouse.v1.RequestMetadata) obj; + com.google.cloud.contentwarehouse.v1.RequestMetadata other = (com.google.cloud.contentwarehouse.v1.RequestMetadata) obj; if (hasUserInfo() != other.hasUserInfo()) return false; if (hasUserInfo()) { - if (!getUserInfo().equals(other.getUserInfo())) return false; + if (!getUserInfo() + .equals(other.getUserInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -180,135 +151,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.RequestMetadata 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.contentwarehouse.v1.RequestMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.RequestMetadata 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.contentwarehouse.v1.RequestMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RequestMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Meta information is used to improve the performance of the service.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RequestMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RequestMetadata) com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RequestMetadata.class, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RequestMetadata.class, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RequestMetadata.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.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor; } @java.lang.Override @@ -343,11 +310,8 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.RequestMetadata result = - new com.google.cloud.contentwarehouse.v1.RequestMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.RequestMetadata result = new com.google.cloud.contentwarehouse.v1.RequestMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -355,7 +319,9 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata buildPartial() { private void buildPartial0(com.google.cloud.contentwarehouse.v1.RequestMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); + result.userInfo_ = userInfoBuilder_ == null + ? userInfo_ + : userInfoBuilder_.build(); } } @@ -363,39 +329,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RequestMetadata public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.RequestMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RequestMetadata) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RequestMetadata)other); } else { super.mergeFrom(other); return this; @@ -403,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RequestMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) return this; if (other.hasUserInfo()) { mergeUserInfo(other.getUserInfo()); } @@ -434,19 +398,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUserInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -456,52 +420,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.contentwarehouse.v1.UserInfo userInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, - com.google.cloud.contentwarehouse.v1.UserInfo.Builder, - com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> - userInfoBuilder_; + com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> userInfoBuilder_; /** - * - * *
      * Provides user unique identification and groups information.
      * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; - * * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Provides user unique identification and groups information.
      * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; - * * @return The userInfo. */ public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() { if (userInfoBuilder_ == null) { - return userInfo_ == null - ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; } else { return userInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides user unique identification and groups information.
      * 
@@ -522,8 +472,6 @@ public Builder setUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value) return this; } /** - * - * *
      * Provides user unique identification and groups information.
      * 
@@ -542,8 +490,6 @@ public Builder setUserInfo( return this; } /** - * - * *
      * Provides user unique identification and groups information.
      * 
@@ -552,9 +498,9 @@ public Builder setUserInfo( */ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value) { if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && userInfo_ != null - && userInfo_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + userInfo_ != null && + userInfo_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) { getUserInfoBuilder().mergeFrom(value); } else { userInfo_ = value; @@ -567,8 +513,6 @@ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value return this; } /** - * - * *
      * Provides user unique identification and groups information.
      * 
@@ -586,8 +530,6 @@ public Builder clearUserInfo() { return this; } /** - * - * *
      * Provides user unique identification and groups information.
      * 
@@ -600,8 +542,6 @@ public com.google.cloud.contentwarehouse.v1.UserInfo.Builder getUserInfoBuilder( return getUserInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides user unique identification and groups information.
      * 
@@ -612,14 +552,11 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuild if (userInfoBuilder_ != null) { return userInfoBuilder_.getMessageOrBuilder(); } else { - return userInfo_ == null - ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? + com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; } } /** - * - * *
      * Provides user unique identification and groups information.
      * 
@@ -627,24 +564,21 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuild * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, - com.google.cloud.contentwarehouse.v1.UserInfo.Builder, - com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> getUserInfoFieldBuilder() { if (userInfoBuilder_ == null) { - userInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, - com.google.cloud.contentwarehouse.v1.UserInfo.Builder, - com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>( - getUserInfo(), getParentForChildren(), isClean()); + userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>( + getUserInfo(), + getParentForChildren(), + isClean()); userInfo_ = null; } return userInfoBuilder_; } - @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 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RequestMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RequestMetadata) private static final com.google.cloud.contentwarehouse.v1.RequestMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RequestMetadata(); } @@ -668,27 +602,27 @@ public static com.google.cloud.contentwarehouse.v1.RequestMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RequestMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +637,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RequestMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java similarity index 61% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java index 9373ebf6c4f5..1f0f03a81275 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; -public interface RequestMetadataOrBuilder - extends +public interface RequestMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RequestMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Provides user unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; - * * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** - * - * *
    * Provides user unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; - * * @return The userInfo. */ com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo(); /** - * - * *
    * Provides user unique identification and groups information.
    * 
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java similarity index 65% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java index c9b37cd3853d..51fc9cab388b 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Additional information returned to client, such as debugging information.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ResponseMetadata} */ -public final class ResponseMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResponseMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ResponseMetadata) ResponseMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResponseMetadata.newBuilder() to construct. private ResponseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResponseMetadata() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResponseMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ResponseMetadata.class, - com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.ResponseMetadata.class, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder.class); } public static final int REQUEST_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * A unique id associated with this call. This id is logged for tracking
    * purpose.
    * 
* * string request_id = 1; - * * @return The requestId. */ @java.lang.Override @@ -84,30 +61,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * A unique id associated with this call. This id is logged for tracking
    * purpose.
    * 
* * string request_id = 1; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -116,7 +93,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,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(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); } @@ -152,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.contentwarehouse.v1.ResponseMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ResponseMetadata other = - (com.google.cloud.contentwarehouse.v1.ResponseMetadata) obj; + com.google.cloud.contentwarehouse.v1.ResponseMetadata other = (com.google.cloud.contentwarehouse.v1.ResponseMetadata) obj; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,136 +157,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ResponseMetadata 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.contentwarehouse.v1.ResponseMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ResponseMetadata 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.contentwarehouse.v1.ResponseMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.ResponseMetadata prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ResponseMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Additional information returned to client, such as debugging information.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ResponseMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ResponseMetadata) com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ResponseMetadata.class, - com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.ResponseMetadata.class, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ResponseMetadata.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(); @@ -319,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; } @java.lang.Override @@ -340,11 +312,8 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ResponseMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.ResponseMetadata result = - new com.google.cloud.contentwarehouse.v1.ResponseMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.ResponseMetadata result = new com.google.cloud.contentwarehouse.v1.ResponseMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -360,39 +329,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ResponseMetadata public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.ResponseMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ResponseMetadata) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ResponseMetadata)other); } else { super.mergeFrom(other); return this; @@ -400,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ResponseMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) return this; if (!other.getRequestId().isEmpty()) { requestId_ = other.requestId_; bitField0_ |= 0x00000001; @@ -433,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + requestId_ = 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) { @@ -455,26 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object requestId_ = ""; /** - * - * *
      * A unique id associated with this call. This id is logged for tracking
      * purpose.
      * 
* * string request_id = 1; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -483,22 +445,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * A unique id associated with this call. This id is logged for tracking
      * purpose.
      * 
* * string request_id = 1; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -506,37 +467,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * A unique id associated with this call. This id is logged for tracking
      * purpose.
      * 
* * string request_id = 1; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A unique id associated with this call. This id is logged for tracking
      * purpose.
      * 
* * string request_id = 1; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -546,31 +500,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * A unique id associated with this call. This id is logged for tracking
      * purpose.
      * 
* * string request_id = 1; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = 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); } @@ -580,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ResponseMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ResponseMetadata) private static final com.google.cloud.contentwarehouse.v1.ResponseMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ResponseMetadata(); } @@ -594,27 +544,27 @@ public static com.google.cloud.contentwarehouse.v1.ResponseMetadata getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ResponseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -629,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ResponseMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java similarity index 50% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java index e28acd818059..7a9e0e127b90 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java @@ -1,52 +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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; -public interface ResponseMetadataOrBuilder - extends +public interface ResponseMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ResponseMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A unique id associated with this call. This id is logged for tracking
    * purpose.
    * 
* * string request_id = 1; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * A unique id associated with this call. This id is logged for tracking
    * purpose.
    * 
* * string request_id = 1; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java similarity index 74% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java index 7cbdc0cda73e..89f88eae6db0 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents the rule for a content warehouse trigger.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.Rule} */ -public final class Rule extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Rule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.Rule) RuleOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Rule.newBuilder() to construct. private Rule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Rule() { description_ = ""; ruleId_ = ""; @@ -47,38 +29,34 @@ private Rule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Rule(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Rule.class, - com.google.cloud.contentwarehouse.v1.Rule.Builder.class); + com.google.cloud.contentwarehouse.v1.Rule.class, com.google.cloud.contentwarehouse.v1.Rule.Builder.class); } /** - * - * *
    * The trigger types for actions.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.Rule.TriggerType} */ - public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { + public enum TriggerType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Trigger for unknown action.
      * 
@@ -87,8 +65,6 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
      * Trigger for create document action.
      * 
@@ -97,8 +73,6 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { */ ON_CREATE(1), /** - * - * *
      * Trigger for update document action.
      * 
@@ -107,8 +81,6 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { */ ON_UPDATE(4), /** - * - * *
      * Trigger for create link action.
      * 
@@ -117,8 +89,6 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { */ ON_CREATE_LINK(7), /** - * - * *
      * Trigger for delete link action.
      * 
@@ -130,8 +100,6 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Trigger for unknown action.
      * 
@@ -140,8 +108,6 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * Trigger for create document action.
      * 
@@ -150,8 +116,6 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ON_CREATE_VALUE = 1; /** - * - * *
      * Trigger for update document action.
      * 
@@ -160,8 +124,6 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ON_UPDATE_VALUE = 4; /** - * - * *
      * Trigger for create link action.
      * 
@@ -170,8 +132,6 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ON_CREATE_LINK_VALUE = 7; /** - * - * *
      * Trigger for delete link action.
      * 
@@ -180,6 +140,7 @@ public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ON_DELETE_LINK_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -204,53 +165,51 @@ public static TriggerType valueOf(int value) { */ public static TriggerType forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return ON_CREATE; - case 4: - return ON_UPDATE; - case 7: - return ON_CREATE_LINK; - case 8: - return ON_DELETE_LINK; - default: - return null; + case 0: return UNKNOWN; + case 1: return ON_CREATE; + case 4: return ON_UPDATE; + case 7: return ON_CREATE_LINK; + case 8: return ON_DELETE_LINK; + 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< + TriggerType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TriggerType findValueByNumber(int number) { + return TriggerType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TriggerType findValueByNumber(int number) { - return TriggerType.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.contentwarehouse.v1.Rule.getDescriptor().getEnumTypes().get(0); } private static final TriggerType[] VALUES = values(); - public static TriggerType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TriggerType 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; @@ -268,18 +227,14 @@ private TriggerType(int value) { } public static final int DESCRIPTION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Short description of the rule and its context.
    * 
* * string description = 1; - * * @return The description. */ @java.lang.Override @@ -288,29 +243,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Short description of the rule and its context.
    * 
* * string description = 1; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -319,19 +274,15 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int RULE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object ruleId_ = ""; /** - * - * *
    * ID of the rule. It has to be unique across all the examples.
    * This is managed internally.
    * 
* * string rule_id = 2; - * * @return The ruleId. */ @java.lang.Override @@ -340,30 +291,30 @@ public java.lang.String getRuleId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleId_ = s; return s; } } /** - * - * *
    * ID of the rule. It has to be unique across all the examples.
    * This is managed internally.
    * 
* * string rule_id = 2; - * * @return The bytes for ruleId. */ @java.lang.Override - public com.google.protobuf.ByteString getRuleIdBytes() { + public com.google.protobuf.ByteString + getRuleIdBytes() { java.lang.Object ref = ruleId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleId_ = b; return b; } else { @@ -374,47 +325,33 @@ public com.google.protobuf.ByteString getRuleIdBytes() { public static final int TRIGGER_TYPE_FIELD_NUMBER = 3; private int triggerType_ = 0; /** - * - * *
    * Identifies the trigger type for running the policy.
    * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; - * * @return The enum numeric value on the wire for triggerType. */ - @java.lang.Override - public int getTriggerTypeValue() { + @java.lang.Override public int getTriggerTypeValue() { return triggerType_; } /** - * - * *
    * Identifies the trigger type for running the policy.
    * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; - * * @return The triggerType. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.Rule.TriggerType getTriggerType() { - com.google.cloud.contentwarehouse.v1.Rule.TriggerType result = - com.google.cloud.contentwarehouse.v1.Rule.TriggerType.forNumber(triggerType_); - return result == null - ? com.google.cloud.contentwarehouse.v1.Rule.TriggerType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.contentwarehouse.v1.Rule.TriggerType getTriggerType() { + com.google.cloud.contentwarehouse.v1.Rule.TriggerType result = com.google.cloud.contentwarehouse.v1.Rule.TriggerType.forNumber(triggerType_); + return result == null ? com.google.cloud.contentwarehouse.v1.Rule.TriggerType.UNRECOGNIZED : result; } public static final int CONDITION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object condition_ = ""; /** - * - * *
    * Represents the conditional expression to be evaluated.
    * Expression should evaluate to a boolean result.
@@ -423,7 +360,6 @@ public com.google.cloud.contentwarehouse.v1.Rule.TriggerType getTriggerType() {
    * 
* * string condition = 4; - * * @return The condition. */ @java.lang.Override @@ -432,15 +368,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; } } /** - * - * *
    * Represents the conditional expression to be evaluated.
    * Expression should evaluate to a boolean result.
@@ -449,15 +384,16 @@ public java.lang.String getCondition() {
    * 
* * string condition = 4; - * * @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 { @@ -466,12 +402,9 @@ public com.google.protobuf.ByteString getConditionBytes() { } public static final int ACTIONS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List actions_; /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -483,8 +416,6 @@ public java.util.List getActionsLis return actions_; } /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -492,13 +423,11 @@ public java.util.List getActionsLis * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ @java.lang.Override - public java.util.List + public java.util.List getActionsOrBuilderList() { return actions_; } /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -510,8 +439,6 @@ public int getActionsCount() { return actions_.size(); } /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -523,8 +450,6 @@ public com.google.cloud.contentwarehouse.v1.Action getActions(int index) { return actions_.get(index); } /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -532,12 +457,12 @@ public com.google.cloud.contentwarehouse.v1.Action getActions(int index) { * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder( + int index) { return actions_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -549,7 +474,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(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -581,13 +507,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ruleId_); } if (triggerType_ != com.google.cloud.contentwarehouse.v1.Rule.TriggerType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, triggerType_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, triggerType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, condition_); } for (int i = 0; i < actions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, actions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, actions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -597,19 +525,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.contentwarehouse.v1.Rule)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.Rule other = - (com.google.cloud.contentwarehouse.v1.Rule) obj; + com.google.cloud.contentwarehouse.v1.Rule other = (com.google.cloud.contentwarehouse.v1.Rule) obj; - if (!getDescription().equals(other.getDescription())) return false; - if (!getRuleId().equals(other.getRuleId())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getRuleId() + .equals(other.getRuleId())) return false; if (triggerType_ != other.triggerType_) return false; - if (!getCondition().equals(other.getCondition())) return false; - if (!getActionsList().equals(other.getActionsList())) return false; + if (!getCondition() + .equals(other.getCondition())) return false; + if (!getActionsList() + .equals(other.getActionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -638,136 +569,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.Rule parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.Rule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.Rule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Rule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.Rule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.Rule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Rule 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.contentwarehouse.v1.Rule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Rule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.Rule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.Rule 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.contentwarehouse.v1.Rule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.Rule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.Rule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the rule for a content warehouse trigger.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.Rule} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.Rule) com.google.cloud.contentwarehouse.v1.RuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Rule.class, - com.google.cloud.contentwarehouse.v1.Rule.Builder.class); + com.google.cloud.contentwarehouse.v1.Rule.class, com.google.cloud.contentwarehouse.v1.Rule.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.Rule.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(); @@ -787,9 +714,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; } @java.lang.Override @@ -808,12 +735,9 @@ public com.google.cloud.contentwarehouse.v1.Rule build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.Rule buildPartial() { - com.google.cloud.contentwarehouse.v1.Rule result = - new com.google.cloud.contentwarehouse.v1.Rule(this); + com.google.cloud.contentwarehouse.v1.Rule result = new com.google.cloud.contentwarehouse.v1.Rule(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -850,39 +774,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Rule 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.contentwarehouse.v1.Rule) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.Rule) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.Rule)other); } else { super.mergeFrom(other); return this; @@ -927,10 +850,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Rule other) { actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000010); - actionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getActionsFieldBuilder() - : null; + actionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getActionsFieldBuilder() : null; } else { actionsBuilder_.addAllMessages(other.actions_); } @@ -962,50 +884,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - ruleId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - triggerType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - condition_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - com.google.cloud.contentwarehouse.v1.Action m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.Action.parser(), extensionRegistry); - if (actionsBuilder_ == null) { - ensureActionsIsMutable(); - actions_.add(m); - } else { - actionsBuilder_.addMessage(m); - } - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + ruleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + triggerType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + condition_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + com.google.cloud.contentwarehouse.v1.Action m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.Action.parser(), + extensionRegistry); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(m); + } else { + actionsBuilder_.addMessage(m); + } + 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) { @@ -1015,25 +932,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object description_ = ""; /** - * - * *
      * Short description of the rule and its context.
      * 
* * string description = 1; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1042,21 +956,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Short description of the rule and its context.
      * 
* * string description = 1; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1064,35 +977,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Short description of the rule and its context.
      * 
* * string description = 1; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Short description of the rule and its context.
      * 
* * string description = 1; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1102,21 +1008,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Short description of the rule and its context.
      * 
* * string description = 1; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000001; @@ -1126,21 +1028,19 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object ruleId_ = ""; /** - * - * *
      * ID of the rule. It has to be unique across all the examples.
      * This is managed internally.
      * 
* * string rule_id = 2; - * * @return The ruleId. */ public java.lang.String getRuleId() { java.lang.Object ref = ruleId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleId_ = s; return s; @@ -1149,22 +1049,21 @@ public java.lang.String getRuleId() { } } /** - * - * *
      * ID of the rule. It has to be unique across all the examples.
      * This is managed internally.
      * 
* * string rule_id = 2; - * * @return The bytes for ruleId. */ - public com.google.protobuf.ByteString getRuleIdBytes() { + public com.google.protobuf.ByteString + getRuleIdBytes() { java.lang.Object ref = ruleId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ruleId_ = b; return b; } else { @@ -1172,37 +1071,30 @@ public com.google.protobuf.ByteString getRuleIdBytes() { } } /** - * - * *
      * ID of the rule. It has to be unique across all the examples.
      * This is managed internally.
      * 
* * string rule_id = 2; - * * @param value The ruleId to set. * @return This builder for chaining. */ - public Builder setRuleId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRuleId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ruleId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * ID of the rule. It has to be unique across all the examples.
      * This is managed internally.
      * 
* * string rule_id = 2; - * * @return This builder for chaining. */ public Builder clearRuleId() { @@ -1212,22 +1104,18 @@ public Builder clearRuleId() { return this; } /** - * - * *
      * ID of the rule. It has to be unique across all the examples.
      * This is managed internally.
      * 
* * string rule_id = 2; - * * @param value The bytes for ruleId to set. * @return This builder for chaining. */ - public Builder setRuleIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRuleIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ruleId_ = value; bitField0_ |= 0x00000002; @@ -1237,29 +1125,22 @@ public Builder setRuleIdBytes(com.google.protobuf.ByteString value) { private int triggerType_ = 0; /** - * - * *
      * Identifies the trigger type for running the policy.
      * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; - * * @return The enum numeric value on the wire for triggerType. */ - @java.lang.Override - public int getTriggerTypeValue() { + @java.lang.Override public int getTriggerTypeValue() { return triggerType_; } /** - * - * *
      * Identifies the trigger type for running the policy.
      * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; - * * @param value The enum numeric value on the wire for triggerType to set. * @return This builder for chaining. */ @@ -1270,33 +1151,24 @@ public Builder setTriggerTypeValue(int value) { return this; } /** - * - * *
      * Identifies the trigger type for running the policy.
      * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; - * * @return The triggerType. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.Rule.TriggerType getTriggerType() { - com.google.cloud.contentwarehouse.v1.Rule.TriggerType result = - com.google.cloud.contentwarehouse.v1.Rule.TriggerType.forNumber(triggerType_); - return result == null - ? com.google.cloud.contentwarehouse.v1.Rule.TriggerType.UNRECOGNIZED - : result; + com.google.cloud.contentwarehouse.v1.Rule.TriggerType result = com.google.cloud.contentwarehouse.v1.Rule.TriggerType.forNumber(triggerType_); + return result == null ? com.google.cloud.contentwarehouse.v1.Rule.TriggerType.UNRECOGNIZED : result; } /** - * - * *
      * Identifies the trigger type for running the policy.
      * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; - * * @param value The triggerType to set. * @return This builder for chaining. */ @@ -1310,14 +1182,11 @@ public Builder setTriggerType(com.google.cloud.contentwarehouse.v1.Rule.TriggerT return this; } /** - * - * *
      * Identifies the trigger type for running the policy.
      * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; - * * @return This builder for chaining. */ public Builder clearTriggerType() { @@ -1329,8 +1198,6 @@ public Builder clearTriggerType() { private java.lang.Object condition_ = ""; /** - * - * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1339,13 +1206,13 @@ public Builder clearTriggerType() {
      * 
* * string condition = 4; - * * @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; @@ -1354,8 +1221,6 @@ public java.lang.String getCondition() { } } /** - * - * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1364,14 +1229,15 @@ public java.lang.String getCondition() {
      * 
* * string condition = 4; - * * @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 { @@ -1379,8 +1245,6 @@ public com.google.protobuf.ByteString getConditionBytes() { } } /** - * - * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1389,22 +1253,18 @@ public com.google.protobuf.ByteString getConditionBytes() {
      * 
* * string condition = 4; - * * @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_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1413,7 +1273,6 @@ public Builder setCondition(java.lang.String value) {
      * 
* * string condition = 4; - * * @return This builder for chaining. */ public Builder clearCondition() { @@ -1423,8 +1282,6 @@ public Builder clearCondition() { return this; } /** - * - * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1433,14 +1290,12 @@ public Builder clearCondition() {
      * 
* * string condition = 4; - * * @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_ |= 0x00000008; @@ -1449,24 +1304,18 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { } private java.util.List actions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Action, - com.google.cloud.contentwarehouse.v1.Action.Builder, - com.google.cloud.contentwarehouse.v1.ActionOrBuilder> - actionsBuilder_; + com.google.cloud.contentwarehouse.v1.Action, com.google.cloud.contentwarehouse.v1.Action.Builder, com.google.cloud.contentwarehouse.v1.ActionOrBuilder> actionsBuilder_; /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1481,8 +1330,6 @@ public java.util.List getActionsLis } } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1497,8 +1344,6 @@ public int getActionsCount() { } } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1513,15 +1358,14 @@ public com.google.cloud.contentwarehouse.v1.Action getActions(int index) { } } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public Builder setActions(int index, com.google.cloud.contentwarehouse.v1.Action value) { + public Builder setActions( + int index, com.google.cloud.contentwarehouse.v1.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1535,8 +1379,6 @@ public Builder setActions(int index, com.google.cloud.contentwarehouse.v1.Action return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1555,8 +1397,6 @@ public Builder setActions( return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1577,15 +1417,14 @@ public Builder addActions(com.google.cloud.contentwarehouse.v1.Action value) { return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public Builder addActions(int index, com.google.cloud.contentwarehouse.v1.Action value) { + public Builder addActions( + int index, com.google.cloud.contentwarehouse.v1.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1599,15 +1438,14 @@ public Builder addActions(int index, com.google.cloud.contentwarehouse.v1.Action return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public Builder addActions(com.google.cloud.contentwarehouse.v1.Action.Builder builderForValue) { + public Builder addActions( + com.google.cloud.contentwarehouse.v1.Action.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(builderForValue.build()); @@ -1618,8 +1456,6 @@ public Builder addActions(com.google.cloud.contentwarehouse.v1.Action.Builder bu return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1638,8 +1474,6 @@ public Builder addActions( return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1650,7 +1484,8 @@ public Builder addAllActions( java.lang.Iterable values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); @@ -1658,8 +1493,6 @@ public Builder addAllActions( return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1677,8 +1510,6 @@ public Builder clearActions() { return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1696,44 +1527,39 @@ public Builder removeActions(int index) { return this; } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public com.google.cloud.contentwarehouse.v1.Action.Builder getActionsBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.Action.Builder getActionsBuilder( + int index) { return getActionsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder( + int index) { if (actionsBuilder_ == null) { - return actions_.get(index); - } else { + return actions_.get(index); } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public java.util.List - getActionsOrBuilderList() { + public java.util.List + getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { @@ -1741,8 +1567,6 @@ public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder( } } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1750,55 +1574,49 @@ public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder( * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ public com.google.cloud.contentwarehouse.v1.Action.Builder addActionsBuilder() { - return getActionsFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.Action.getDefaultInstance()); + return getActionsFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.Action.getDefaultInstance()); } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public com.google.cloud.contentwarehouse.v1.Action.Builder addActionsBuilder(int index) { - return getActionsFieldBuilder() - .addBuilder(index, com.google.cloud.contentwarehouse.v1.Action.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.Action.Builder addActionsBuilder( + int index) { + return getActionsFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.Action.getDefaultInstance()); } /** - * - * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public java.util.List - getActionsBuilderList() { + public java.util.List + getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Action, - com.google.cloud.contentwarehouse.v1.Action.Builder, - com.google.cloud.contentwarehouse.v1.ActionOrBuilder> + com.google.cloud.contentwarehouse.v1.Action, com.google.cloud.contentwarehouse.v1.Action.Builder, com.google.cloud.contentwarehouse.v1.ActionOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { - actionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Action, - com.google.cloud.contentwarehouse.v1.Action.Builder, - com.google.cloud.contentwarehouse.v1.ActionOrBuilder>( - actions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Action, com.google.cloud.contentwarehouse.v1.Action.Builder, com.google.cloud.contentwarehouse.v1.ActionOrBuilder>( + actions_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); actions_ = null; } return actionsBuilder_; } - @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); } @@ -1808,12 +1626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.Rule) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.Rule) private static final com.google.cloud.contentwarehouse.v1.Rule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.Rule(); } @@ -1822,27 +1640,27 @@ public static com.google.cloud.contentwarehouse.v1.Rule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Rule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Rule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1857,4 +1675,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.Rule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java similarity index 73% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java index 5156d9e31745..cd6a2842e085 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents a rule and outputs of associated actions.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleActionsPair} */ -public final class RuleActionsPair extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RuleActionsPair extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RuleActionsPair) RuleActionsPairOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RuleActionsPair.newBuilder() to construct. private RuleActionsPair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RuleActionsPair() { actionOutputs_ = 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 RuleActionsPair(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RuleActionsPair.class, - com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder.class); + com.google.cloud.contentwarehouse.v1.RuleActionsPair.class, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder.class); } public static final int RULE_FIELD_NUMBER = 1; private com.google.cloud.contentwarehouse.v1.Rule rule_; /** - * - * *
    * Represents the rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return Whether the rule field is set. */ @java.lang.Override @@ -80,14 +58,11 @@ public boolean hasRule() { return rule_ != null; } /** - * - * *
    * Represents the rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return The rule. */ @java.lang.Override @@ -95,8 +70,6 @@ public com.google.cloud.contentwarehouse.v1.Rule getRule() { return rule_ == null ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; } /** - * - * *
    * Represents the rule.
    * 
@@ -109,12 +82,9 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { } public static final int ACTION_OUTPUTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List actionOutputs_; /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -126,8 +96,6 @@ public java.util.List getActi return actionOutputs_; } /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -135,13 +103,11 @@ public java.util.List getActi * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ @java.lang.Override - public java.util.List + public java.util.List getActionOutputsOrBuilderList() { return actionOutputs_; } /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -153,8 +119,6 @@ public int getActionOutputsCount() { return actionOutputs_.size(); } /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -166,8 +130,6 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput getActionOutputs(int in return actionOutputs_.get(index); } /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -181,7 +143,6 @@ public com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutpu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,7 +154,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 (rule_ != null) { output.writeMessage(1, getRule()); } @@ -210,10 +172,12 @@ public int getSerializedSize() { size = 0; if (rule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRule()); } for (int i = 0; i < actionOutputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, actionOutputs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, actionOutputs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,19 +187,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.contentwarehouse.v1.RuleActionsPair)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RuleActionsPair other = - (com.google.cloud.contentwarehouse.v1.RuleActionsPair) obj; + com.google.cloud.contentwarehouse.v1.RuleActionsPair other = (com.google.cloud.contentwarehouse.v1.RuleActionsPair) obj; if (hasRule() != other.hasRule()) return false; if (hasRule()) { - if (!getRule().equals(other.getRule())) return false; + if (!getRule() + .equals(other.getRule())) return false; } - if (!getActionOutputsList().equals(other.getActionOutputsList())) return false; + if (!getActionOutputsList() + .equals(other.getActionOutputsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -261,135 +226,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.RuleActionsPair 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.contentwarehouse.v1.RuleActionsPair parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.RuleActionsPair 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.contentwarehouse.v1.RuleActionsPair parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RuleActionsPair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a rule and outputs of associated actions.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleActionsPair} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RuleActionsPair) com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RuleActionsPair.class, - com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder.class); + com.google.cloud.contentwarehouse.v1.RuleActionsPair.class, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RuleActionsPair.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(); @@ -410,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; } @java.lang.Override @@ -431,18 +392,14 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleActionsPair buildPartial() { - com.google.cloud.contentwarehouse.v1.RuleActionsPair result = - new com.google.cloud.contentwarehouse.v1.RuleActionsPair(this); + com.google.cloud.contentwarehouse.v1.RuleActionsPair result = new com.google.cloud.contentwarehouse.v1.RuleActionsPair(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.RuleActionsPair result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.RuleActionsPair result) { if (actionOutputsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { actionOutputs_ = java.util.Collections.unmodifiableList(actionOutputs_); @@ -457,7 +414,9 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.contentwarehouse.v1.RuleActionsPair result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.rule_ = ruleBuilder_ == null ? rule_ : ruleBuilder_.build(); + result.rule_ = ruleBuilder_ == null + ? rule_ + : ruleBuilder_.build(); } } @@ -465,39 +424,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RuleActionsPair public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.RuleActionsPair) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleActionsPair) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleActionsPair)other); } else { super.mergeFrom(other); return this; @@ -505,8 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleActionsPair other) { - if (other == com.google.cloud.contentwarehouse.v1.RuleActionsPair.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.RuleActionsPair.getDefaultInstance()) return this; if (other.hasRule()) { mergeRule(other.getRule()); } @@ -528,10 +485,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleActionsPair ot actionOutputsBuilder_ = null; actionOutputs_ = other.actionOutputs_; bitField0_ = (bitField0_ & ~0x00000002); - actionOutputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getActionOutputsFieldBuilder() - : null; + actionOutputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getActionOutputsFieldBuilder() : null; } else { actionOutputsBuilder_.addAllMessages(other.actionOutputs_); } @@ -563,33 +519,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getRuleFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.contentwarehouse.v1.ActionOutput m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.ActionOutput.parser(), - extensionRegistry); - if (actionOutputsBuilder_ == null) { - ensureActionOutputsIsMutable(); - actionOutputs_.add(m); - } else { - actionOutputsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getRuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.contentwarehouse.v1.ActionOutput m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.ActionOutput.parser(), + extensionRegistry); + if (actionOutputsBuilder_ == null) { + ensureActionOutputsIsMutable(); + actionOutputs_.add(m); + } else { + actionOutputsBuilder_.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) { @@ -599,52 +554,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.contentwarehouse.v1.Rule rule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder> - ruleBuilder_; + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> ruleBuilder_; /** - * - * *
      * Represents the rule.
      * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return Whether the rule field is set. */ public boolean hasRule() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Represents the rule.
      * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return The rule. */ public com.google.cloud.contentwarehouse.v1.Rule getRule() { if (ruleBuilder_ == null) { - return rule_ == null - ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() - : rule_; + return rule_ == null ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; } else { return ruleBuilder_.getMessage(); } } /** - * - * *
      * Represents the rule.
      * 
@@ -665,15 +606,14 @@ public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** - * - * *
      * Represents the rule.
      * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; */ - public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule.Builder builderForValue) { + public Builder setRule( + com.google.cloud.contentwarehouse.v1.Rule.Builder builderForValue) { if (ruleBuilder_ == null) { rule_ = builderForValue.build(); } else { @@ -684,8 +624,6 @@ public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule.Builder builder return this; } /** - * - * *
      * Represents the rule.
      * 
@@ -694,9 +632,9 @@ public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule.Builder builder */ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { if (ruleBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && rule_ != null - && rule_ != com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + rule_ != null && + rule_ != com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()) { getRuleBuilder().mergeFrom(value); } else { rule_ = value; @@ -709,8 +647,6 @@ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** - * - * *
      * Represents the rule.
      * 
@@ -728,8 +664,6 @@ public Builder clearRule() { return this; } /** - * - * *
      * Represents the rule.
      * 
@@ -742,8 +676,6 @@ public com.google.cloud.contentwarehouse.v1.Rule.Builder getRuleBuilder() { return getRuleFieldBuilder().getBuilder(); } /** - * - * *
      * Represents the rule.
      * 
@@ -754,14 +686,11 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { if (ruleBuilder_ != null) { return ruleBuilder_.getMessageOrBuilder(); } else { - return rule_ == null - ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() - : rule_; + return rule_ == null ? + com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; } } /** - * - * *
      * Represents the rule.
      * 
@@ -769,51 +698,39 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { * .google.cloud.contentwarehouse.v1.Rule rule = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> getRuleFieldBuilder() { if (ruleBuilder_ == null) { - ruleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( - getRule(), getParentForChildren(), isClean()); + ruleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( + getRule(), + getParentForChildren(), + isClean()); rule_ = null; } return ruleBuilder_; } private java.util.List actionOutputs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureActionOutputsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - actionOutputs_ = - new java.util.ArrayList( - actionOutputs_); + actionOutputs_ = new java.util.ArrayList(actionOutputs_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ActionOutput, - com.google.cloud.contentwarehouse.v1.ActionOutput.Builder, - com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder> - actionOutputsBuilder_; + com.google.cloud.contentwarehouse.v1.ActionOutput, com.google.cloud.contentwarehouse.v1.ActionOutput.Builder, com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder> actionOutputsBuilder_; /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
* * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ - public java.util.List - getActionOutputsList() { + public java.util.List getActionOutputsList() { if (actionOutputsBuilder_ == null) { return java.util.Collections.unmodifiableList(actionOutputs_); } else { @@ -821,8 +738,6 @@ private void ensureActionOutputsIsMutable() { } } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -837,8 +752,6 @@ public int getActionOutputsCount() { } } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -853,8 +766,6 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput getActionOutputs(int in } } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -876,8 +787,6 @@ public Builder setActionOutputs( return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -896,8 +805,6 @@ public Builder setActionOutputs( return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -918,8 +825,6 @@ public Builder addActionOutputs(com.google.cloud.contentwarehouse.v1.ActionOutpu return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -941,8 +846,6 @@ public Builder addActionOutputs( return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -961,8 +864,6 @@ public Builder addActionOutputs( return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -981,8 +882,6 @@ public Builder addActionOutputs( return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -993,7 +892,8 @@ public Builder addAllActionOutputs( java.lang.Iterable values) { if (actionOutputsBuilder_ == null) { ensureActionOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actionOutputs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, actionOutputs_); onChanged(); } else { actionOutputsBuilder_.addAllMessages(values); @@ -1001,8 +901,6 @@ public Builder addAllActionOutputs( return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -1020,8 +918,6 @@ public Builder clearActionOutputs() { return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -1039,8 +935,6 @@ public Builder removeActionOutputs(int index) { return this; } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -1052,8 +946,6 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder getActionOutput return getActionOutputsFieldBuilder().getBuilder(index); } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -1063,22 +955,19 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder getActionOutput public com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutputsOrBuilder( int index) { if (actionOutputsBuilder_ == null) { - return actionOutputs_.get(index); - } else { + return actionOutputs_.get(index); } else { return actionOutputsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
* * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ - public java.util.List - getActionOutputsOrBuilderList() { + public java.util.List + getActionOutputsOrBuilderList() { if (actionOutputsBuilder_ != null) { return actionOutputsBuilder_.getMessageOrBuilderList(); } else { @@ -1086,8 +975,6 @@ public com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutpu } } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -1095,12 +982,10 @@ public com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutpu * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder addActionOutputsBuilder() { - return getActionOutputsFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.ActionOutput.getDefaultInstance()); + return getActionOutputsFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.ActionOutput.getDefaultInstance()); } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -1109,35 +994,26 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder addActionOutput */ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder addActionOutputsBuilder( int index) { - return getActionOutputsFieldBuilder() - .addBuilder( - index, com.google.cloud.contentwarehouse.v1.ActionOutput.getDefaultInstance()); + return getActionOutputsFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.ActionOutput.getDefaultInstance()); } /** - * - * *
      * Outputs of executing the actions associated with the above rule.
      * 
* * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ - public java.util.List - getActionOutputsBuilderList() { + public java.util.List + getActionOutputsBuilderList() { return getActionOutputsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ActionOutput, - com.google.cloud.contentwarehouse.v1.ActionOutput.Builder, - com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder> + com.google.cloud.contentwarehouse.v1.ActionOutput, com.google.cloud.contentwarehouse.v1.ActionOutput.Builder, com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder> getActionOutputsFieldBuilder() { if (actionOutputsBuilder_ == null) { - actionOutputsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ActionOutput, - com.google.cloud.contentwarehouse.v1.ActionOutput.Builder, - com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder>( + actionOutputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ActionOutput, com.google.cloud.contentwarehouse.v1.ActionOutput.Builder, com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder>( actionOutputs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1146,9 +1022,9 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder addActionOutput } return actionOutputsBuilder_; } - @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); } @@ -1158,12 +1034,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RuleActionsPair) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RuleActionsPair) private static final com.google.cloud.contentwarehouse.v1.RuleActionsPair DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RuleActionsPair(); } @@ -1172,27 +1048,27 @@ public static com.google.cloud.contentwarehouse.v1.RuleActionsPair getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuleActionsPair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RuleActionsPair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1207,4 +1083,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RuleActionsPair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java similarity index 73% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java index 7ed32145d4ff..e1e598b15bf1 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface RuleActionsPairOrBuilder - extends +public interface RuleActionsPairOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RuleActionsPair) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Represents the rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return Whether the rule field is set. */ boolean hasRule(); /** - * - * *
    * Represents the rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; - * * @return The rule. */ com.google.cloud.contentwarehouse.v1.Rule getRule(); /** - * - * *
    * Represents the rule.
    * 
@@ -59,18 +35,15 @@ public interface RuleActionsPairOrBuilder com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder(); /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
* * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ - java.util.List getActionOutputsList(); + java.util.List + getActionOutputsList(); /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -79,8 +52,6 @@ public interface RuleActionsPairOrBuilder */ com.google.cloud.contentwarehouse.v1.ActionOutput getActionOutputs(int index); /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -89,24 +60,21 @@ public interface RuleActionsPairOrBuilder */ int getActionOutputsCount(); /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
* * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ - java.util.List + java.util.List getActionOutputsOrBuilderList(); /** - * - * *
    * Outputs of executing the actions associated with the above rule.
    * 
* * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ - com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutputsOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutputsOrBuilder( + int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java similarity index 68% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java index 8284b527fe61..913050e83802 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Records the output of Rule Engine including rule evaluation and actions
  * result.
@@ -28,54 +11,48 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleEngineOutput}
  */
-public final class RuleEngineOutput extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RuleEngineOutput extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RuleEngineOutput)
     RuleEngineOutputOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RuleEngineOutput.newBuilder() to construct.
   private RuleEngineOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RuleEngineOutput() {
     documentName_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RuleEngineOutput();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-        .internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-        .internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.class,
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder.class);
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.class, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder.class);
   }
 
   public static final int DOCUMENT_NAME_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object documentName_ = "";
   /**
-   *
-   *
    * 
    * Name of the document against which the rules and actions were evaluated.
    * 
* * string document_name = 3; - * * @return The documentName. */ @java.lang.Override @@ -84,29 +61,29 @@ public java.lang.String getDocumentName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentName_ = s; return s; } } /** - * - * *
    * Name of the document against which the rules and actions were evaluated.
    * 
* * string document_name = 3; - * * @return The bytes for documentName. */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentNameBytes() { + public com.google.protobuf.ByteString + getDocumentNameBytes() { java.lang.Object ref = documentName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentName_ = b; return b; } else { @@ -117,14 +94,11 @@ public com.google.protobuf.ByteString getDocumentNameBytes() { public static final int RULE_EVALUATOR_OUTPUT_FIELD_NUMBER = 1; private com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput ruleEvaluatorOutput_; /** - * - * *
    * Output from Rule Evaluator containing matched, unmatched and invalid rules.
    * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; - * * @return Whether the ruleEvaluatorOutput field is set. */ @java.lang.Override @@ -132,25 +106,18 @@ public boolean hasRuleEvaluatorOutput() { return ruleEvaluatorOutput_ != null; } /** - * - * *
    * Output from Rule Evaluator containing matched, unmatched and invalid rules.
    * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; - * * @return The ruleEvaluatorOutput. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput getRuleEvaluatorOutput() { - return ruleEvaluatorOutput_ == null - ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() - : ruleEvaluatorOutput_; + return ruleEvaluatorOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() : ruleEvaluatorOutput_; } /** - * - * *
    * Output from Rule Evaluator containing matched, unmatched and invalid rules.
    * 
@@ -158,25 +125,19 @@ public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput getRuleEvaluator * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder - getRuleEvaluatorOutputOrBuilder() { - return ruleEvaluatorOutput_ == null - ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() - : ruleEvaluatorOutput_; + public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder getRuleEvaluatorOutputOrBuilder() { + return ruleEvaluatorOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() : ruleEvaluatorOutput_; } public static final int ACTION_EXECUTOR_OUTPUT_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.ActionExecutorOutput actionExecutorOutput_; /** - * - * *
    * Output from Action Executor containing rule and corresponding actions
    * execution result.
    * 
* * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * * @return Whether the actionExecutorOutput field is set. */ @java.lang.Override @@ -184,26 +145,19 @@ public boolean hasActionExecutorOutput() { return actionExecutorOutput_ != null; } /** - * - * *
    * Output from Action Executor containing rule and corresponding actions
    * execution result.
    * 
* * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * * @return The actionExecutorOutput. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput getActionExecutorOutput() { - return actionExecutorOutput_ == null - ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() - : actionExecutorOutput_; + return actionExecutorOutput_ == null ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() : actionExecutorOutput_; } /** - * - * *
    * Output from Action Executor containing rule and corresponding actions
    * execution result.
@@ -212,15 +166,11 @@ public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput getActionExecut
    * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder
-      getActionExecutorOutputOrBuilder() {
-    return actionExecutorOutput_ == null
-        ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance()
-        : actionExecutorOutput_;
+  public com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder getActionExecutorOutputOrBuilder() {
+    return actionExecutorOutput_ == null ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() : actionExecutorOutput_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -232,7 +182,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 (ruleEvaluatorOutput_ != null) {
       output.writeMessage(1, getRuleEvaluatorOutput());
     }
@@ -252,11 +203,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (ruleEvaluatorOutput_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRuleEvaluatorOutput());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getRuleEvaluatorOutput());
     }
     if (actionExecutorOutput_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(2, getActionExecutorOutput());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getActionExecutorOutput());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, documentName_);
@@ -269,22 +221,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.contentwarehouse.v1.RuleEngineOutput)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.RuleEngineOutput other =
-        (com.google.cloud.contentwarehouse.v1.RuleEngineOutput) obj;
+    com.google.cloud.contentwarehouse.v1.RuleEngineOutput other = (com.google.cloud.contentwarehouse.v1.RuleEngineOutput) obj;
 
-    if (!getDocumentName().equals(other.getDocumentName())) return false;
+    if (!getDocumentName()
+        .equals(other.getDocumentName())) return false;
     if (hasRuleEvaluatorOutput() != other.hasRuleEvaluatorOutput()) return false;
     if (hasRuleEvaluatorOutput()) {
-      if (!getRuleEvaluatorOutput().equals(other.getRuleEvaluatorOutput())) return false;
+      if (!getRuleEvaluatorOutput()
+          .equals(other.getRuleEvaluatorOutput())) return false;
     }
     if (hasActionExecutorOutput() != other.hasActionExecutorOutput()) return false;
     if (hasActionExecutorOutput()) {
-      if (!getActionExecutorOutput().equals(other.getActionExecutorOutput())) return false;
+      if (!getActionExecutorOutput()
+          .equals(other.getActionExecutorOutput())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -313,104 +267,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput 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.contentwarehouse.v1.RuleEngineOutput parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput 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.contentwarehouse.v1.RuleEngineOutput parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.RuleEngineOutput prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RuleEngineOutput prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder 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;
   }
   /**
-   *
-   *
    * 
    * Records the output of Rule Engine including rule evaluation and actions
    * result.
@@ -418,32 +366,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleEngineOutput}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RuleEngineOutput)
       com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-          .internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-          .internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.RuleEngineOutput.class,
-              com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder.class);
+              com.google.cloud.contentwarehouse.v1.RuleEngineOutput.class, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.RuleEngineOutput.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();
@@ -463,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
-          .internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
     }
 
     @java.lang.Override
@@ -484,11 +433,8 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.RuleEngineOutput buildPartial() {
-      com.google.cloud.contentwarehouse.v1.RuleEngineOutput result =
-          new com.google.cloud.contentwarehouse.v1.RuleEngineOutput(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.contentwarehouse.v1.RuleEngineOutput result = new com.google.cloud.contentwarehouse.v1.RuleEngineOutput(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -499,16 +445,14 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RuleEngineOutput
         result.documentName_ = documentName_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.ruleEvaluatorOutput_ =
-            ruleEvaluatorOutputBuilder_ == null
-                ? ruleEvaluatorOutput_
-                : ruleEvaluatorOutputBuilder_.build();
+        result.ruleEvaluatorOutput_ = ruleEvaluatorOutputBuilder_ == null
+            ? ruleEvaluatorOutput_
+            : ruleEvaluatorOutputBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.actionExecutorOutput_ =
-            actionExecutorOutputBuilder_ == null
-                ? actionExecutorOutput_
-                : actionExecutorOutputBuilder_.build();
+        result.actionExecutorOutput_ = actionExecutorOutputBuilder_ == null
+            ? actionExecutorOutput_
+            : actionExecutorOutputBuilder_.build();
       }
     }
 
@@ -516,39 +460,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RuleEngineOutput
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.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.contentwarehouse.v1.RuleEngineOutput) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleEngineOutput) other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleEngineOutput)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -556,8 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleEngineOutput other) {
-      if (other == com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()) return this;
       if (!other.getDocumentName().isEmpty()) {
         documentName_ = other.documentName_;
         bitField0_ |= 0x00000001;
@@ -595,33 +537,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(
-                    getRuleEvaluatorOutputFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(
-                    getActionExecutorOutputFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 18
-            case 26:
-              {
-                documentName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getRuleEvaluatorOutputFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getActionExecutorOutputFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 18
+            case 26: {
+              documentName_ = input.readStringRequireUtf8();
+              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) {
@@ -631,25 +571,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object documentName_ = "";
     /**
-     *
-     *
      * 
      * Name of the document against which the rules and actions were evaluated.
      * 
* * string document_name = 3; - * * @return The documentName. */ public java.lang.String getDocumentName() { java.lang.Object ref = documentName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentName_ = s; return s; @@ -658,21 +595,20 @@ public java.lang.String getDocumentName() { } } /** - * - * *
      * Name of the document against which the rules and actions were evaluated.
      * 
* * string document_name = 3; - * * @return The bytes for documentName. */ - public com.google.protobuf.ByteString getDocumentNameBytes() { + public com.google.protobuf.ByteString + getDocumentNameBytes() { java.lang.Object ref = documentName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentName_ = b; return b; } else { @@ -680,35 +616,28 @@ public com.google.protobuf.ByteString getDocumentNameBytes() { } } /** - * - * *
      * Name of the document against which the rules and actions were evaluated.
      * 
* * string document_name = 3; - * * @param value The documentName to set. * @return This builder for chaining. */ - public Builder setDocumentName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Name of the document against which the rules and actions were evaluated.
      * 
* * string document_name = 3; - * * @return This builder for chaining. */ public Builder clearDocumentName() { @@ -718,21 +647,17 @@ public Builder clearDocumentName() { return this; } /** - * - * *
      * Name of the document against which the rules and actions were evaluated.
      * 
* * string document_name = 3; - * * @param value The bytes for documentName to set. * @return This builder for chaining. */ - public Builder setDocumentNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentName_ = value; bitField0_ |= 0x00000001; @@ -742,55 +667,41 @@ public Builder setDocumentNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput ruleEvaluatorOutput_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder, - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder> - ruleEvaluatorOutputBuilder_; + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder> ruleEvaluatorOutputBuilder_; /** - * - * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; - * * @return Whether the ruleEvaluatorOutput field is set. */ public boolean hasRuleEvaluatorOutput() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; - * * @return The ruleEvaluatorOutput. */ public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput getRuleEvaluatorOutput() { if (ruleEvaluatorOutputBuilder_ == null) { - return ruleEvaluatorOutput_ == null - ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() - : ruleEvaluatorOutput_; + return ruleEvaluatorOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() : ruleEvaluatorOutput_; } else { return ruleEvaluatorOutputBuilder_.getMessage(); } } /** - * - * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ - public Builder setRuleEvaluatorOutput( - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput value) { + public Builder setRuleEvaluatorOutput(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput value) { if (ruleEvaluatorOutputBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -804,8 +715,6 @@ public Builder setRuleEvaluatorOutput( return this; } /** - * - * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
@@ -824,21 +733,17 @@ public Builder setRuleEvaluatorOutput( return this; } /** - * - * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ - public Builder mergeRuleEvaluatorOutput( - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput value) { + public Builder mergeRuleEvaluatorOutput(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput value) { if (ruleEvaluatorOutputBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && ruleEvaluatorOutput_ != null - && ruleEvaluatorOutput_ - != com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + ruleEvaluatorOutput_ != null && + ruleEvaluatorOutput_ != com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance()) { getRuleEvaluatorOutputBuilder().mergeFrom(value); } else { ruleEvaluatorOutput_ = value; @@ -851,8 +756,6 @@ public Builder mergeRuleEvaluatorOutput( return this; } /** - * - * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
@@ -870,42 +773,33 @@ public Builder clearRuleEvaluatorOutput() { return this; } /** - * - * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ - public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder - getRuleEvaluatorOutputBuilder() { + public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder getRuleEvaluatorOutputBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRuleEvaluatorOutputFieldBuilder().getBuilder(); } /** - * - * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ - public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder - getRuleEvaluatorOutputOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder getRuleEvaluatorOutputOrBuilder() { if (ruleEvaluatorOutputBuilder_ != null) { return ruleEvaluatorOutputBuilder_.getMessageOrBuilder(); } else { - return ruleEvaluatorOutput_ == null - ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() - : ruleEvaluatorOutput_; + return ruleEvaluatorOutput_ == null ? + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() : ruleEvaluatorOutput_; } } /** - * - * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
@@ -913,17 +807,14 @@ public Builder clearRuleEvaluatorOutput() { * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder, - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder> + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder> getRuleEvaluatorOutputFieldBuilder() { if (ruleEvaluatorOutputBuilder_ == null) { - ruleEvaluatorOutputBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder, - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder>( - getRuleEvaluatorOutput(), getParentForChildren(), isClean()); + ruleEvaluatorOutputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder>( + getRuleEvaluatorOutput(), + getParentForChildren(), + isClean()); ruleEvaluatorOutput_ = null; } return ruleEvaluatorOutputBuilder_; @@ -931,61 +822,44 @@ public Builder clearRuleEvaluatorOutput() { private com.google.cloud.contentwarehouse.v1.ActionExecutorOutput actionExecutorOutput_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput, - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder, - com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder> - actionExecutorOutputBuilder_; + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput, com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder, com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder> actionExecutorOutputBuilder_; /** - * - * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * - * + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; * @return Whether the actionExecutorOutput field is set. */ public boolean hasActionExecutorOutput() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * - * + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; * @return The actionExecutorOutput. */ public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput getActionExecutorOutput() { if (actionExecutorOutputBuilder_ == null) { - return actionExecutorOutput_ == null - ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() - : actionExecutorOutput_; + return actionExecutorOutput_ == null ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() : actionExecutorOutput_; } else { return actionExecutorOutputBuilder_.getMessage(); } } /** - * - * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; */ - public Builder setActionExecutorOutput( - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput value) { + public Builder setActionExecutorOutput(com.google.cloud.contentwarehouse.v1.ActionExecutorOutput value) { if (actionExecutorOutputBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -999,15 +873,12 @@ public Builder setActionExecutorOutput( return this; } /** - * - * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; */ public Builder setActionExecutorOutput( com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder builderForValue) { @@ -1021,23 +892,18 @@ public Builder setActionExecutorOutput( return this; } /** - * - * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; */ - public Builder mergeActionExecutorOutput( - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput value) { + public Builder mergeActionExecutorOutput(com.google.cloud.contentwarehouse.v1.ActionExecutorOutput value) { if (actionExecutorOutputBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && actionExecutorOutput_ != null - && actionExecutorOutput_ - != com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + actionExecutorOutput_ != null && + actionExecutorOutput_ != com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance()) { getActionExecutorOutputBuilder().mergeFrom(value); } else { actionExecutorOutput_ = value; @@ -1050,15 +916,12 @@ public Builder mergeActionExecutorOutput( return this; } /** - * - * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; */ public Builder clearActionExecutorOutput() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1071,73 +934,58 @@ public Builder clearActionExecutorOutput() { return this; } /** - * - * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; */ - public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder - getActionExecutorOutputBuilder() { + public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder getActionExecutorOutputBuilder() { bitField0_ |= 0x00000004; onChanged(); return getActionExecutorOutputFieldBuilder().getBuilder(); } /** - * - * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; */ - public com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder - getActionExecutorOutputOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder getActionExecutorOutputOrBuilder() { if (actionExecutorOutputBuilder_ != null) { return actionExecutorOutputBuilder_.getMessageOrBuilder(); } else { - return actionExecutorOutput_ == null - ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() - : actionExecutorOutput_; + return actionExecutorOutput_ == null ? + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() : actionExecutorOutput_; } } /** - * - * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput, - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder, - com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder> + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput, com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder, com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder> getActionExecutorOutputFieldBuilder() { if (actionExecutorOutputBuilder_ == null) { - actionExecutorOutputBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput, - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder, - com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder>( - getActionExecutorOutput(), getParentForChildren(), isClean()); + actionExecutorOutputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput, com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder, com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder>( + getActionExecutorOutput(), + getParentForChildren(), + isClean()); actionExecutorOutput_ = null; } return actionExecutorOutputBuilder_; } - @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); } @@ -1147,12 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RuleEngineOutput) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RuleEngineOutput) private static final com.google.cloud.contentwarehouse.v1.RuleEngineOutput DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RuleEngineOutput(); } @@ -1161,27 +1009,27 @@ public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuleEngineOutput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RuleEngineOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1196,4 +1044,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java similarity index 74% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java index 449b63c91526..dc4173093c64 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java @@ -1,118 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface RuleEngineOutputOrBuilder - extends +public interface RuleEngineOutputOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RuleEngineOutput) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the document against which the rules and actions were evaluated.
    * 
* * string document_name = 3; - * * @return The documentName. */ java.lang.String getDocumentName(); /** - * - * *
    * Name of the document against which the rules and actions were evaluated.
    * 
* * string document_name = 3; - * * @return The bytes for documentName. */ - com.google.protobuf.ByteString getDocumentNameBytes(); + com.google.protobuf.ByteString + getDocumentNameBytes(); /** - * - * *
    * Output from Rule Evaluator containing matched, unmatched and invalid rules.
    * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; - * * @return Whether the ruleEvaluatorOutput field is set. */ boolean hasRuleEvaluatorOutput(); /** - * - * *
    * Output from Rule Evaluator containing matched, unmatched and invalid rules.
    * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; - * * @return The ruleEvaluatorOutput. */ com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput getRuleEvaluatorOutput(); /** - * - * *
    * Output from Rule Evaluator containing matched, unmatched and invalid rules.
    * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder - getRuleEvaluatorOutputOrBuilder(); + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder getRuleEvaluatorOutputOrBuilder(); /** - * - * *
    * Output from Action Executor containing rule and corresponding actions
    * execution result.
    * 
* * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * * @return Whether the actionExecutorOutput field is set. */ boolean hasActionExecutorOutput(); /** - * - * *
    * Output from Action Executor containing rule and corresponding actions
    * execution result.
    * 
* * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; - * * @return The actionExecutorOutput. */ com.google.cloud.contentwarehouse.v1.ActionExecutorOutput getActionExecutorOutput(); /** - * - * *
    * Output from Action Executor containing rule and corresponding actions
    * execution result.
@@ -120,6 +82,5 @@ public interface RuleEngineOutputOrBuilder
    *
    * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2;
    */
-  com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder
-      getActionExecutorOutputOrBuilder();
+  com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder getActionExecutorOutputOrBuilder();
 }
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java
new file mode 100644
index 000000000000..e75a0f921214
--- /dev/null
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java
@@ -0,0 +1,331 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/contentwarehouse/v1/rule_engine.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public final class RuleEngineProto {
+  private RuleEngineProto() {}
+  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_contentwarehouse_v1_RuleSet_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_Action_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_ActionOutput_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/contentwarehouse/v1/rule_" +
+      "engine.proto\022 google.cloud.contentwareho" +
+      "use.v1\032\037google/api/field_behavior.proto\032" +
+      "\031google/api/resource.proto\032\032google/iam/v" +
+      "1/policy.proto\"\336\001\n\007RuleSet\022\014\n\004name\030\006 \001(\t" +
+      "\022\023\n\013description\030\001 \001(\t\022\016\n\006source\030\002 \001(\t\0225\n" +
+      "\005rules\030\003 \003(\0132&.google.cloud.contentwareh" +
+      "ouse.v1.Rule:i\352Af\n\'contentwarehouse.goog" +
+      "leapis.com/RuleSet\022;projects/{project}/l" +
+      "ocations/{location}/ruleSets/{rule_set}\"" +
+      "\246\002\n\004Rule\022\023\n\013description\030\001 \001(\t\022\017\n\007rule_id" +
+      "\030\002 \001(\t\022H\n\014trigger_type\030\003 \001(\01622.google.cl" +
+      "oud.contentwarehouse.v1.Rule.TriggerType" +
+      "\022\021\n\tcondition\030\004 \001(\t\0229\n\007actions\030\005 \003(\0132(.g" +
+      "oogle.cloud.contentwarehouse.v1.Action\"`" +
+      "\n\013TriggerType\022\013\n\007UNKNOWN\020\000\022\r\n\tON_CREATE\020" +
+      "\001\022\r\n\tON_UPDATE\020\004\022\022\n\016ON_CREATE_LINK\020\007\022\022\n\016" +
+      "ON_DELETE_LINK\020\010\"\352\004\n\006Action\022\021\n\taction_id" +
+      "\030\001 \001(\t\022O\n\016access_control\030\002 \001(\01325.google." +
+      "cloud.contentwarehouse.v1.AccessControlA" +
+      "ctionH\000\022Q\n\017data_validation\030\003 \001(\01326.googl" +
+      "e.cloud.contentwarehouse.v1.DataValidati" +
+      "onActionH\000\022I\n\013data_update\030\004 \001(\01322.google" +
+      ".cloud.contentwarehouse.v1.DataUpdateAct" +
+      "ionH\000\022L\n\radd_to_folder\030\005 \001(\01323.google.cl" +
+      "oud.contentwarehouse.v1.AddToFolderActio" +
+      "nH\000\022M\n\022publish_to_pub_sub\030\006 \001(\0132/.google" +
+      ".cloud.contentwarehouse.v1.PublishAction" +
+      "H\000\022]\n\031remove_from_folder_action\030\t \001(\01328." +
+      "google.cloud.contentwarehouse.v1.RemoveF" +
+      "romFolderActionH\000\022X\n\026delete_document_act" +
+      "ion\030\n \001(\01326.google.cloud.contentwarehous" +
+      "e.v1.DeleteDocumentActionH\000B\010\n\006action\"\206\002" +
+      "\n\023AccessControlAction\022[\n\016operation_type\030" +
+      "\001 \001(\0162C.google.cloud.contentwarehouse.v1" +
+      ".AccessControlAction.OperationType\022%\n\006po" +
+      "licy\030\002 \001(\0132\025.google.iam.v1.Policy\"k\n\rOpe" +
+      "rationType\022\013\n\007UNKNOWN\020\000\022\026\n\022ADD_POLICY_BI" +
+      "NDING\020\001\022\031\n\025REMOVE_POLICY_BINDING\020\002\022\032\n\026RE" +
+      "PLACE_POLICY_BINDING\020\003\"\245\001\n\024DataValidatio" +
+      "nAction\022Z\n\nconditions\030\001 \003(\0132F.google.clo" +
+      "ud.contentwarehouse.v1.DataValidationAct" +
+      "ion.ConditionsEntry\0321\n\017ConditionsEntry\022\013" +
+      "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\224\001\n\020DataU" +
+      "pdateAction\022P\n\007entries\030\001 \003(\0132?.google.cl" +
+      "oud.contentwarehouse.v1.DataUpdateAction" +
+      ".EntriesEntry\032.\n\014EntriesEntry\022\013\n\003key\030\001 \001" +
+      "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\021AddToFolderActi" +
+      "on\022>\n\007folders\030\001 \003(\tB-\372A*\n(contentwarehou" +
+      "se.googleapis.com/Document\"j\n\026RemoveFrom" +
+      "FolderAction\022\021\n\tcondition\030\001 \001(\t\022=\n\006folde" +
+      "r\030\002 \001(\tB-\372A*\n(contentwarehouse.googleapi" +
+      "s.com/Document\"3\n\rPublishAction\022\020\n\010topic" +
+      "_id\030\001 \001(\t\022\020\n\010messages\030\002 \003(\t\"2\n\024DeleteDoc" +
+      "umentAction\022\032\n\022enable_hard_delete\030\001 \001(\010\"" +
+      "\327\001\n\020RuleEngineOutput\022\025\n\rdocument_name\030\003 " +
+      "\001(\t\022T\n\025rule_evaluator_output\030\001 \001(\01325.goo" +
+      "gle.cloud.contentwarehouse.v1.RuleEvalua" +
+      "torOutput\022V\n\026action_executor_output\030\002 \001(" +
+      "\01326.google.cloud.contentwarehouse.v1.Act" +
+      "ionExecutorOutput\"\333\001\n\023RuleEvaluatorOutpu" +
+      "t\022?\n\017triggered_rules\030\001 \003(\0132&.google.clou" +
+      "d.contentwarehouse.v1.Rule\022=\n\rmatched_ru" +
+      "les\030\002 \003(\0132&.google.cloud.contentwarehous" +
+      "e.v1.Rule\022D\n\rinvalid_rules\030\003 \003(\0132-.googl" +
+      "e.cloud.contentwarehouse.v1.InvalidRule\"" +
+      "R\n\013InvalidRule\0224\n\004rule\030\001 \001(\0132&.google.cl" +
+      "oud.contentwarehouse.v1.Rule\022\r\n\005error\030\002 " +
+      "\001(\t\"e\n\024ActionExecutorOutput\022M\n\022rule_acti" +
+      "ons_pairs\030\001 \003(\01321.google.cloud.contentwa" +
+      "rehouse.v1.RuleActionsPair\"\217\001\n\017RuleActio" +
+      "nsPair\0224\n\004rule\030\001 \001(\0132&.google.cloud.cont" +
+      "entwarehouse.v1.Rule\022F\n\016action_outputs\030\002" +
+      " \003(\0132..google.cloud.contentwarehouse.v1." +
+      "ActionOutput\"\356\001\n\014ActionOutput\022\021\n\taction_" +
+      "id\030\001 \001(\t\022J\n\014action_state\030\002 \001(\01624.google." +
+      "cloud.contentwarehouse.v1.ActionOutput.S" +
+      "tate\022\026\n\016output_message\030\003 \001(\t\"g\n\005State\022\013\n" +
+      "\007UNKNOWN\020\000\022\024\n\020ACTION_SUCCEEDED\020\001\022\021\n\rACTI" +
+      "ON_FAILED\020\002\022\024\n\020ACTION_TIMED_OUT\020\003\022\022\n\016ACT" +
+      "ION_PENDING\020\004B\367\001\n$com.google.cloud.conte" +
+      "ntwarehouse.v1B\017RuleEngineProtoP\001ZPcloud" +
+      ".google.com/go/contentwarehouse/apiv1/co" +
+      "ntentwarehousepb;contentwarehousepb\252\002 Go" +
+      "ogle.Cloud.ContentWarehouse.V1\312\002 Google\\" +
+      "Cloud\\ContentWarehouse\\V1\352\002#Google::Clou" +
+      "d::ContentWarehouse::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.iam.v1.PolicyProto.getDescriptor(),
+        });
+    internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor,
+        new java.lang.String[] { "Name", "Description", "Source", "Rules", });
+    internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor,
+        new java.lang.String[] { "Description", "RuleId", "TriggerType", "Condition", "Actions", });
+    internal_static_google_cloud_contentwarehouse_v1_Action_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_Action_descriptor,
+        new java.lang.String[] { "ActionId", "AccessControl", "DataValidation", "DataUpdate", "AddToFolder", "PublishToPubSub", "RemoveFromFolderAction", "DeleteDocumentAction", "Action", });
+    internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor,
+        new java.lang.String[] { "OperationType", "Policy", });
+    internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor,
+        new java.lang.String[] { "Conditions", });
+    internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor =
+      internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor,
+        new java.lang.String[] { "Entries", });
+    internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor =
+      internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor,
+        new java.lang.String[] { "Folders", });
+    internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor,
+        new java.lang.String[] { "Condition", "Folder", });
+    internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor,
+        new java.lang.String[] { "TopicId", "Messages", });
+    internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor =
+      getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor,
+        new java.lang.String[] { "EnableHardDelete", });
+    internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor =
+      getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor,
+        new java.lang.String[] { "DocumentName", "RuleEvaluatorOutput", "ActionExecutorOutput", });
+    internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor =
+      getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor,
+        new java.lang.String[] { "TriggeredRules", "MatchedRules", "InvalidRules", });
+    internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor =
+      getDescriptor().getMessageTypes().get(12);
+    internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor,
+        new java.lang.String[] { "Rule", "Error", });
+    internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor =
+      getDescriptor().getMessageTypes().get(13);
+    internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor,
+        new java.lang.String[] { "RuleActionsPairs", });
+    internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor =
+      getDescriptor().getMessageTypes().get(14);
+    internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor,
+        new java.lang.String[] { "Rule", "ActionOutputs", });
+    internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor =
+      getDescriptor().getMessageTypes().get(15);
+    internal_static_google_cloud_contentwarehouse_v1_ActionOutput_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor,
+        new java.lang.String[] { "ActionId", "ActionState", "OutputMessage", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ResourceProto.resource);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.iam.v1.PolicyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java
similarity index 77%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java
index 1db0cc245254..5815914ce7fa 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.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/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Represents the output of the Rule Evaluator.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleEvaluatorOutput} */ -public final class RuleEvaluatorOutput extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RuleEvaluatorOutput extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RuleEvaluatorOutput) RuleEvaluatorOutputOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RuleEvaluatorOutput.newBuilder() to construct. private RuleEvaluatorOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RuleEvaluatorOutput() { triggeredRules_ = java.util.Collections.emptyList(); matchedRules_ = java.util.Collections.emptyList(); @@ -45,32 +27,28 @@ private RuleEvaluatorOutput() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RuleEvaluatorOutput(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.class, - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder.class); + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.class, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder.class); } public static final int TRIGGERED_RULES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List triggeredRules_; /** - * - * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -82,8 +60,6 @@ public java.util.List getTriggeredRul return triggeredRules_; } /** - * - * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -91,13 +67,11 @@ public java.util.List getTriggeredRul * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ @java.lang.Override - public java.util.List + public java.util.List getTriggeredRulesOrBuilderList() { return triggeredRules_; } /** - * - * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -109,8 +83,6 @@ public int getTriggeredRulesCount() { return triggeredRules_.size(); } /** - * - * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -122,8 +94,6 @@ public com.google.cloud.contentwarehouse.v1.Rule getTriggeredRules(int index) { return triggeredRules_.get(index); } /** - * - * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -131,17 +101,15 @@ public com.google.cloud.contentwarehouse.v1.Rule getTriggeredRules(int index) { * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBuilder( + int index) { return triggeredRules_.get(index); } public static final int MATCHED_RULES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List matchedRules_; /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -153,8 +121,6 @@ public java.util.List getMatchedRules return matchedRules_; } /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -162,13 +128,11 @@ public java.util.List getMatchedRules * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ @java.lang.Override - public java.util.List + public java.util.List getMatchedRulesOrBuilderList() { return matchedRules_; } /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -180,8 +144,6 @@ public int getMatchedRulesCount() { return matchedRules_.size(); } /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -193,8 +155,6 @@ public com.google.cloud.contentwarehouse.v1.Rule getMatchedRules(int index) { return matchedRules_.get(index); } /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -202,17 +162,15 @@ public com.google.cloud.contentwarehouse.v1.Rule getMatchedRules(int index) { * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder( + int index) { return matchedRules_.get(index); } public static final int INVALID_RULES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List invalidRules_; /** - * - * *
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -225,8 +183,6 @@ public java.util.List getInval
     return invalidRules_;
   }
   /**
-   *
-   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -235,13 +191,11 @@ public java.util.List getInval
    * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getInvalidRulesOrBuilderList() {
     return invalidRules_;
   }
   /**
-   *
-   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -254,8 +208,6 @@ public int getInvalidRulesCount() {
     return invalidRules_.size();
   }
   /**
-   *
-   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -268,8 +220,6 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule getInvalidRules(int inde
     return invalidRules_.get(index);
   }
   /**
-   *
-   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -284,7 +234,6 @@ public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRules
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -296,7 +245,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 < triggeredRules_.size(); i++) {
       output.writeMessage(1, triggeredRules_.get(i));
     }
@@ -316,13 +266,16 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < triggeredRules_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, triggeredRules_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, triggeredRules_.get(i));
     }
     for (int i = 0; i < matchedRules_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, matchedRules_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, matchedRules_.get(i));
     }
     for (int i = 0; i < invalidRules_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, invalidRules_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, invalidRules_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -332,17 +285,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.contentwarehouse.v1.RuleEvaluatorOutput)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput other =
-        (com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput) obj;
+    com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput other = (com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput) obj;
 
-    if (!getTriggeredRulesList().equals(other.getTriggeredRulesList())) return false;
-    if (!getMatchedRulesList().equals(other.getMatchedRulesList())) return false;
-    if (!getInvalidRulesList().equals(other.getInvalidRulesList())) return false;
+    if (!getTriggeredRulesList()
+        .equals(other.getTriggeredRulesList())) return false;
+    if (!getMatchedRulesList()
+        .equals(other.getMatchedRulesList())) return false;
+    if (!getInvalidRulesList()
+        .equals(other.getInvalidRulesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -372,136 +327,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput 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.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput 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.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Represents the output of the Rule Evaluator.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleEvaluatorOutput} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RuleEvaluatorOutput) com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.class, - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder.class); + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.class, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.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 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; } @java.lang.Override @@ -552,18 +502,14 @@ public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput buildPartial() { - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput result = - new com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput(this); + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput result = new com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput result) { if (triggeredRulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { triggeredRules_ = java.util.Collections.unmodifiableList(triggeredRules_); @@ -601,39 +547,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOut public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.RuleEvaluatorOutput) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput)other); } else { super.mergeFrom(other); return this; @@ -641,8 +586,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput other) { - if (other == com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance()) return this; if (triggeredRulesBuilder_ == null) { if (!other.triggeredRules_.isEmpty()) { if (triggeredRules_.isEmpty()) { @@ -661,10 +605,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutpu triggeredRulesBuilder_ = null; triggeredRules_ = other.triggeredRules_; bitField0_ = (bitField0_ & ~0x00000001); - triggeredRulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTriggeredRulesFieldBuilder() - : null; + triggeredRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTriggeredRulesFieldBuilder() : null; } else { triggeredRulesBuilder_.addAllMessages(other.triggeredRules_); } @@ -688,10 +631,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutpu matchedRulesBuilder_ = null; matchedRules_ = other.matchedRules_; bitField0_ = (bitField0_ & ~0x00000002); - matchedRulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMatchedRulesFieldBuilder() - : null; + matchedRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMatchedRulesFieldBuilder() : null; } else { matchedRulesBuilder_.addAllMessages(other.matchedRules_); } @@ -715,10 +657,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutpu invalidRulesBuilder_ = null; invalidRules_ = other.invalidRules_; bitField0_ = (bitField0_ & ~0x00000004); - invalidRulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInvalidRulesFieldBuilder() - : null; + invalidRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInvalidRulesFieldBuilder() : null; } else { invalidRulesBuilder_.addAllMessages(other.invalidRules_); } @@ -750,53 +691,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.Rule m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.Rule.parser(), extensionRegistry); - if (triggeredRulesBuilder_ == null) { - ensureTriggeredRulesIsMutable(); - triggeredRules_.add(m); - } else { - triggeredRulesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.cloud.contentwarehouse.v1.Rule m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.Rule.parser(), extensionRegistry); - if (matchedRulesBuilder_ == null) { - ensureMatchedRulesIsMutable(); - matchedRules_.add(m); - } else { - matchedRulesBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.cloud.contentwarehouse.v1.InvalidRule m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.InvalidRule.parser(), - extensionRegistry); - if (invalidRulesBuilder_ == null) { - ensureInvalidRulesIsMutable(); - invalidRules_.add(m); - } else { - invalidRulesBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.contentwarehouse.v1.Rule m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.Rule.parser(), + extensionRegistry); + if (triggeredRulesBuilder_ == null) { + ensureTriggeredRulesIsMutable(); + triggeredRules_.add(m); + } else { + triggeredRulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.cloud.contentwarehouse.v1.Rule m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.Rule.parser(), + extensionRegistry); + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(m); + } else { + matchedRulesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + com.google.cloud.contentwarehouse.v1.InvalidRule m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.InvalidRule.parser(), + extensionRegistry); + if (invalidRulesBuilder_ == null) { + ensureInvalidRulesIsMutable(); + invalidRules_.add(m); + } else { + invalidRulesBuilder_.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) { @@ -806,29 +745,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List triggeredRules_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTriggeredRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - triggeredRules_ = - new java.util.ArrayList(triggeredRules_); + triggeredRules_ = new java.util.ArrayList(triggeredRules_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder> - triggeredRulesBuilder_; + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> triggeredRulesBuilder_; /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -843,8 +774,6 @@ public java.util.List getTriggeredRul } } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -859,8 +788,6 @@ public int getTriggeredRulesCount() { } } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -875,15 +802,14 @@ public com.google.cloud.contentwarehouse.v1.Rule getTriggeredRules(int index) { } } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - public Builder setTriggeredRules(int index, com.google.cloud.contentwarehouse.v1.Rule value) { + public Builder setTriggeredRules( + int index, com.google.cloud.contentwarehouse.v1.Rule value) { if (triggeredRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -897,8 +823,6 @@ public Builder setTriggeredRules(int index, com.google.cloud.contentwarehouse.v1 return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -917,8 +841,6 @@ public Builder setTriggeredRules( return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -939,15 +861,14 @@ public Builder addTriggeredRules(com.google.cloud.contentwarehouse.v1.Rule value return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - public Builder addTriggeredRules(int index, com.google.cloud.contentwarehouse.v1.Rule value) { + public Builder addTriggeredRules( + int index, com.google.cloud.contentwarehouse.v1.Rule value) { if (triggeredRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -961,8 +882,6 @@ public Builder addTriggeredRules(int index, com.google.cloud.contentwarehouse.v1 return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -981,8 +900,6 @@ public Builder addTriggeredRules( return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -1001,8 +918,6 @@ public Builder addTriggeredRules( return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -1013,7 +928,8 @@ public Builder addAllTriggeredRules( java.lang.Iterable values) { if (triggeredRulesBuilder_ == null) { ensureTriggeredRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, triggeredRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, triggeredRules_); onChanged(); } else { triggeredRulesBuilder_.addAllMessages(values); @@ -1021,8 +937,6 @@ public Builder addAllTriggeredRules( return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -1040,8 +954,6 @@ public Builder clearTriggeredRules() { return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -1059,20 +971,17 @@ public Builder removeTriggeredRules(int index) { return this; } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - public com.google.cloud.contentwarehouse.v1.Rule.Builder getTriggeredRulesBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.Rule.Builder getTriggeredRulesBuilder( + int index) { return getTriggeredRulesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -1082,22 +991,19 @@ public com.google.cloud.contentwarehouse.v1.Rule.Builder getTriggeredRulesBuilde public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBuilder( int index) { if (triggeredRulesBuilder_ == null) { - return triggeredRules_.get(index); - } else { + return triggeredRules_.get(index); } else { return triggeredRulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - public java.util.List - getTriggeredRulesOrBuilderList() { + public java.util.List + getTriggeredRulesOrBuilderList() { if (triggeredRulesBuilder_ != null) { return triggeredRulesBuilder_.getMessageOrBuilderList(); } else { @@ -1105,8 +1011,6 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBui } } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -1114,47 +1018,38 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBui * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ public com.google.cloud.contentwarehouse.v1.Rule.Builder addTriggeredRulesBuilder() { - return getTriggeredRulesFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); + return getTriggeredRulesFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - public com.google.cloud.contentwarehouse.v1.Rule.Builder addTriggeredRulesBuilder(int index) { - return getTriggeredRulesFieldBuilder() - .addBuilder(index, com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.Rule.Builder addTriggeredRulesBuilder( + int index) { + return getTriggeredRulesFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); } /** - * - * *
      * List of rules fetched from database for the given request trigger type.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - public java.util.List - getTriggeredRulesBuilderList() { + public java.util.List + getTriggeredRulesBuilderList() { return getTriggeredRulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> getTriggeredRulesFieldBuilder() { if (triggeredRulesBuilder_ == null) { - triggeredRulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( + triggeredRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( triggeredRules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1165,25 +1060,18 @@ public com.google.cloud.contentwarehouse.v1.Rule.Builder addTriggeredRulesBuilde } private java.util.List matchedRules_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMatchedRulesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - matchedRules_ = - new java.util.ArrayList(matchedRules_); + matchedRules_ = new java.util.ArrayList(matchedRules_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder> - matchedRulesBuilder_; + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> matchedRulesBuilder_; /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1198,8 +1086,6 @@ public java.util.List getMatchedRules } } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1214,8 +1100,6 @@ public int getMatchedRulesCount() { } } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1230,15 +1114,14 @@ public com.google.cloud.contentwarehouse.v1.Rule getMatchedRules(int index) { } } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public Builder setMatchedRules(int index, com.google.cloud.contentwarehouse.v1.Rule value) { + public Builder setMatchedRules( + int index, com.google.cloud.contentwarehouse.v1.Rule value) { if (matchedRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1252,8 +1135,6 @@ public Builder setMatchedRules(int index, com.google.cloud.contentwarehouse.v1.R return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1272,8 +1153,6 @@ public Builder setMatchedRules( return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1294,15 +1173,14 @@ public Builder addMatchedRules(com.google.cloud.contentwarehouse.v1.Rule value) return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public Builder addMatchedRules(int index, com.google.cloud.contentwarehouse.v1.Rule value) { + public Builder addMatchedRules( + int index, com.google.cloud.contentwarehouse.v1.Rule value) { if (matchedRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1316,8 +1194,6 @@ public Builder addMatchedRules(int index, com.google.cloud.contentwarehouse.v1.R return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1336,8 +1212,6 @@ public Builder addMatchedRules( return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1356,8 +1230,6 @@ public Builder addMatchedRules( return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1368,7 +1240,8 @@ public Builder addAllMatchedRules( java.lang.Iterable values) { if (matchedRulesBuilder_ == null) { ensureMatchedRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchedRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchedRules_); onChanged(); } else { matchedRulesBuilder_.addAllMessages(values); @@ -1376,8 +1249,6 @@ public Builder addAllMatchedRules( return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1395,8 +1266,6 @@ public Builder clearMatchedRules() { return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1414,44 +1283,39 @@ public Builder removeMatchedRules(int index) { return this; } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public com.google.cloud.contentwarehouse.v1.Rule.Builder getMatchedRulesBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.Rule.Builder getMatchedRulesBuilder( + int index) { return getMatchedRulesFieldBuilder().getBuilder(index); } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder( + int index) { if (matchedRulesBuilder_ == null) { - return matchedRules_.get(index); - } else { + return matchedRules_.get(index); } else { return matchedRulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public java.util.List - getMatchedRulesOrBuilderList() { + public java.util.List + getMatchedRulesOrBuilderList() { if (matchedRulesBuilder_ != null) { return matchedRulesBuilder_.getMessageOrBuilderList(); } else { @@ -1459,8 +1323,6 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuild } } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1468,74 +1330,60 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuild * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ public com.google.cloud.contentwarehouse.v1.Rule.Builder addMatchedRulesBuilder() { - return getMatchedRulesFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); + return getMatchedRulesFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public com.google.cloud.contentwarehouse.v1.Rule.Builder addMatchedRulesBuilder(int index) { - return getMatchedRulesFieldBuilder() - .addBuilder(index, com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.Rule.Builder addMatchedRulesBuilder( + int index) { + return getMatchedRulesFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); } /** - * - * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public java.util.List - getMatchedRulesBuilderList() { + public java.util.List + getMatchedRulesBuilderList() { return getMatchedRulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> getMatchedRulesFieldBuilder() { if (matchedRulesBuilder_ == null) { - matchedRulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( - matchedRules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + matchedRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( + matchedRules_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); matchedRules_ = null; } return matchedRulesBuilder_; } private java.util.List invalidRules_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInvalidRulesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - invalidRules_ = - new java.util.ArrayList( - invalidRules_); + invalidRules_ = new java.util.ArrayList(invalidRules_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.InvalidRule, - com.google.cloud.contentwarehouse.v1.InvalidRule.Builder, - com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder> - invalidRulesBuilder_; + com.google.cloud.contentwarehouse.v1.InvalidRule, com.google.cloud.contentwarehouse.v1.InvalidRule.Builder, com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder> invalidRulesBuilder_; /** - * - * *
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1551,8 +1399,6 @@ public java.util.List getInval
       }
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1568,8 +1414,6 @@ public int getInvalidRulesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1585,8 +1429,6 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule getInvalidRules(int inde
       }
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1609,8 +1451,6 @@ public Builder setInvalidRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1630,8 +1470,6 @@ public Builder setInvalidRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1653,8 +1491,6 @@ public Builder addInvalidRules(com.google.cloud.contentwarehouse.v1.InvalidRule
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1677,8 +1513,6 @@ public Builder addInvalidRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1698,8 +1532,6 @@ public Builder addInvalidRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1719,8 +1551,6 @@ public Builder addInvalidRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1732,7 +1562,8 @@ public Builder addAllInvalidRules(
         java.lang.Iterable values) {
       if (invalidRulesBuilder_ == null) {
         ensureInvalidRulesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invalidRules_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, invalidRules_);
         onChanged();
       } else {
         invalidRulesBuilder_.addAllMessages(values);
@@ -1740,8 +1571,6 @@ public Builder addAllInvalidRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1760,8 +1589,6 @@ public Builder clearInvalidRules() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1780,8 +1607,6 @@ public Builder removeInvalidRules(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1794,8 +1619,6 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule.Builder getInvalidRulesB
       return getInvalidRulesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1806,14 +1629,11 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule.Builder getInvalidRulesB
     public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRulesOrBuilder(
         int index) {
       if (invalidRulesBuilder_ == null) {
-        return invalidRules_.get(index);
-      } else {
+        return invalidRules_.get(index);  } else {
         return invalidRulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1821,8 +1641,8 @@ public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRules
      *
      * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
      */
-    public java.util.List
-        getInvalidRulesOrBuilderList() {
+    public java.util.List 
+         getInvalidRulesOrBuilderList() {
       if (invalidRulesBuilder_ != null) {
         return invalidRulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1830,8 +1650,6 @@ public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRules
       }
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1840,12 +1658,10 @@ public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRules
      * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
      */
     public com.google.cloud.contentwarehouse.v1.InvalidRule.Builder addInvalidRulesBuilder() {
-      return getInvalidRulesFieldBuilder()
-          .addBuilder(com.google.cloud.contentwarehouse.v1.InvalidRule.getDefaultInstance());
+      return getInvalidRulesFieldBuilder().addBuilder(
+          com.google.cloud.contentwarehouse.v1.InvalidRule.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1855,12 +1671,10 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule.Builder addInvalidRulesB
      */
     public com.google.cloud.contentwarehouse.v1.InvalidRule.Builder addInvalidRulesBuilder(
         int index) {
-      return getInvalidRulesFieldBuilder()
-          .addBuilder(index, com.google.cloud.contentwarehouse.v1.InvalidRule.getDefaultInstance());
+      return getInvalidRulesFieldBuilder().addBuilder(
+          index, com.google.cloud.contentwarehouse.v1.InvalidRule.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1868,30 +1682,27 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule.Builder addInvalidRulesB
      *
      * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
      */
-    public java.util.List
-        getInvalidRulesBuilderList() {
+    public java.util.List 
+         getInvalidRulesBuilderList() {
       return getInvalidRulesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.InvalidRule,
-            com.google.cloud.contentwarehouse.v1.InvalidRule.Builder,
-            com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder>
+        com.google.cloud.contentwarehouse.v1.InvalidRule, com.google.cloud.contentwarehouse.v1.InvalidRule.Builder, com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder> 
         getInvalidRulesFieldBuilder() {
       if (invalidRulesBuilder_ == null) {
-        invalidRulesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.InvalidRule,
-                com.google.cloud.contentwarehouse.v1.InvalidRule.Builder,
-                com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder>(
-                invalidRules_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        invalidRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.InvalidRule, com.google.cloud.contentwarehouse.v1.InvalidRule.Builder, com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder>(
+                invalidRules_,
+                ((bitField0_ & 0x00000004) != 0),
+                getParentForChildren(),
+                isClean());
         invalidRules_ = null;
       }
       return invalidRulesBuilder_;
     }
-
     @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);
     }
 
@@ -1901,12 +1712,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RuleEvaluatorOutput)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RuleEvaluatorOutput)
   private static final com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput();
   }
@@ -1915,27 +1726,27 @@ public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public RuleEvaluatorOutput parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 RuleEvaluatorOutput parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1950,4 +1761,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java
similarity index 79%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java
index 16c7d86cf67f..ac31978b5c29 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.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/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface RuleEvaluatorOutputOrBuilder
-    extends
+public interface RuleEvaluatorOutputOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RuleEvaluatorOutput)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * List of rules fetched from database for the given request trigger type.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - java.util.List getTriggeredRulesList(); + java.util.List + getTriggeredRulesList(); /** - * - * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -44,8 +25,6 @@ public interface RuleEvaluatorOutputOrBuilder */ com.google.cloud.contentwarehouse.v1.Rule getTriggeredRules(int index); /** - * - * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -54,40 +33,34 @@ public interface RuleEvaluatorOutputOrBuilder */ int getTriggeredRulesCount(); /** - * - * *
    * List of rules fetched from database for the given request trigger type.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - java.util.List + java.util.List getTriggeredRulesOrBuilderList(); /** - * - * *
    * List of rules fetched from database for the given request trigger type.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBuilder( + int index); /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - java.util.List getMatchedRulesList(); + java.util.List + getMatchedRulesList(); /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -96,8 +69,6 @@ public interface RuleEvaluatorOutputOrBuilder */ com.google.cloud.contentwarehouse.v1.Rule getMatchedRules(int index); /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -106,30 +77,25 @@ public interface RuleEvaluatorOutputOrBuilder */ int getMatchedRulesCount(); /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - java.util.List + java.util.List getMatchedRulesOrBuilderList(); /** - * - * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder( + int index); /** - * - * *
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -137,10 +103,9 @@ public interface RuleEvaluatorOutputOrBuilder
    *
    * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
    */
-  java.util.List getInvalidRulesList();
+  java.util.List 
+      getInvalidRulesList();
   /**
-   *
-   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -150,8 +115,6 @@ public interface RuleEvaluatorOutputOrBuilder
    */
   com.google.cloud.contentwarehouse.v1.InvalidRule getInvalidRules(int index);
   /**
-   *
-   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -161,8 +124,6 @@ public interface RuleEvaluatorOutputOrBuilder
    */
   int getInvalidRulesCount();
   /**
-   *
-   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -170,11 +131,9 @@ public interface RuleEvaluatorOutputOrBuilder
    *
    * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
    */
-  java.util.List
+  java.util.List 
       getInvalidRulesOrBuilderList();
   /**
-   *
-   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -182,5 +141,6 @@ public interface RuleEvaluatorOutputOrBuilder
    *
    * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
    */
-  com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRulesOrBuilder(int index);
+  com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRulesOrBuilder(
+      int index);
 }
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java
similarity index 76%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java
index 3235c8702590..98fc71b01be0 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java
@@ -1,108 +1,74 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface RuleOrBuilder
-    extends
+public interface RuleOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.Rule)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Short description of the rule and its context.
    * 
* * string description = 1; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Short description of the rule and its context.
    * 
* * string description = 1; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * ID of the rule. It has to be unique across all the examples.
    * This is managed internally.
    * 
* * string rule_id = 2; - * * @return The ruleId. */ java.lang.String getRuleId(); /** - * - * *
    * ID of the rule. It has to be unique across all the examples.
    * This is managed internally.
    * 
* * string rule_id = 2; - * * @return The bytes for ruleId. */ - com.google.protobuf.ByteString getRuleIdBytes(); + com.google.protobuf.ByteString + getRuleIdBytes(); /** - * - * *
    * Identifies the trigger type for running the policy.
    * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; - * * @return The enum numeric value on the wire for triggerType. */ int getTriggerTypeValue(); /** - * - * *
    * Identifies the trigger type for running the policy.
    * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; - * * @return The triggerType. */ com.google.cloud.contentwarehouse.v1.Rule.TriggerType getTriggerType(); /** - * - * *
    * Represents the conditional expression to be evaluated.
    * Expression should evaluate to a boolean result.
@@ -111,13 +77,10 @@ public interface RuleOrBuilder
    * 
* * string condition = 4; - * * @return The condition. */ java.lang.String getCondition(); /** - * - * *
    * Represents the conditional expression to be evaluated.
    * Expression should evaluate to a boolean result.
@@ -126,24 +89,21 @@ public interface RuleOrBuilder
    * 
* * string condition = 4; - * * @return The bytes for condition. */ - com.google.protobuf.ByteString getConditionBytes(); + com.google.protobuf.ByteString + getConditionBytes(); /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - java.util.List getActionsList(); + java.util.List + getActionsList(); /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -152,8 +112,6 @@ public interface RuleOrBuilder */ com.google.cloud.contentwarehouse.v1.Action getActions(int index); /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -162,24 +120,21 @@ public interface RuleOrBuilder */ int getActionsCount(); /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - java.util.List + java.util.List getActionsOrBuilderList(); /** - * - * *
    * List of actions that are executed when the rule is satisfied.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder( + int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java similarity index 73% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java index 0930740a26f2..c2e539565207 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Represents a set of rules from a single customer.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleSet} */ -public final class RuleSet extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RuleSet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RuleSet) RuleSetOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RuleSet.newBuilder() to construct. private RuleSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RuleSet() { name_ = ""; description_ = ""; @@ -46,32 +28,28 @@ private RuleSet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RuleSet(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RuleSet.class, - com.google.cloud.contentwarehouse.v1.RuleSet.Builder.class); + com.google.cloud.contentwarehouse.v1.RuleSet.class, com.google.cloud.contentwarehouse.v1.RuleSet.Builder.class); } public static final int NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the rule set. Managed internally.
    * Format:
@@ -81,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 6; - * * @return The name. */ @java.lang.Override @@ -90,15 +67,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the rule set. Managed internally.
    * Format:
@@ -108,15 +84,16 @@ public java.lang.String getName() {
    * 
* * string name = 6; - * * @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 { @@ -125,18 +102,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Short description of the rule-set.
    * 
* * string description = 1; - * * @return The description. */ @java.lang.Override @@ -145,29 +118,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Short description of the rule-set.
    * 
* * string description = 1; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -176,18 +149,14 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int SOURCE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object source_ = ""; /** - * - * *
    * Source of the rules i.e., customer name.
    * 
* * string source = 2; - * * @return The source. */ @java.lang.Override @@ -196,29 +165,29 @@ public java.lang.String getSource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } } /** - * - * *
    * Source of the rules i.e., customer name.
    * 
* * string source = 2; - * * @return The bytes for source. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBytes() { + public com.google.protobuf.ByteString + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { @@ -227,12 +196,9 @@ public com.google.protobuf.ByteString getSourceBytes() { } public static final int RULES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List rules_; /** - * - * *
    * List of rules given by the customer.
    * 
@@ -244,8 +210,6 @@ public java.util.List getRulesList() return rules_; } /** - * - * *
    * List of rules given by the customer.
    * 
@@ -253,13 +217,11 @@ public java.util.List getRulesList() * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ @java.lang.Override - public java.util.List + public java.util.List getRulesOrBuilderList() { return rules_; } /** - * - * *
    * List of rules given by the customer.
    * 
@@ -271,8 +233,6 @@ public int getRulesCount() { return rules_.size(); } /** - * - * *
    * List of rules given by the customer.
    * 
@@ -284,8 +244,6 @@ public com.google.cloud.contentwarehouse.v1.Rule getRules(int index) { return rules_.get(index); } /** - * - * *
    * List of rules given by the customer.
    * 
@@ -293,12 +251,12 @@ public com.google.cloud.contentwarehouse.v1.Rule getRules(int index) { * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder( + int index) { return rules_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,7 +268,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(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -339,7 +298,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_); } for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, rules_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); @@ -352,18 +312,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.contentwarehouse.v1.RuleSet)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RuleSet other = - (com.google.cloud.contentwarehouse.v1.RuleSet) obj; + com.google.cloud.contentwarehouse.v1.RuleSet other = (com.google.cloud.contentwarehouse.v1.RuleSet) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getSource().equals(other.getSource())) return false; - if (!getRulesList().equals(other.getRulesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getSource() + .equals(other.getSource())) return false; + if (!getRulesList() + .equals(other.getRulesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -390,136 +353,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RuleSet 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.contentwarehouse.v1.RuleSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RuleSet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RuleSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.RuleSet 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.contentwarehouse.v1.RuleSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RuleSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a set of rules from a single customer.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleSet} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RuleSet) com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RuleSet.class, - com.google.cloud.contentwarehouse.v1.RuleSet.Builder.class); + com.google.cloud.contentwarehouse.v1.RuleSet.class, com.google.cloud.contentwarehouse.v1.RuleSet.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RuleSet.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(); @@ -538,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto - .internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor; } @java.lang.Override @@ -559,12 +518,9 @@ public com.google.cloud.contentwarehouse.v1.RuleSet build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleSet buildPartial() { - com.google.cloud.contentwarehouse.v1.RuleSet result = - new com.google.cloud.contentwarehouse.v1.RuleSet(this); + com.google.cloud.contentwarehouse.v1.RuleSet result = new com.google.cloud.contentwarehouse.v1.RuleSet(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -598,39 +554,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RuleSet 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.contentwarehouse.v1.RuleSet) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleSet) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleSet)other); } else { super.mergeFrom(other); return this; @@ -672,10 +627,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleSet other) { rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000008); - rulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRulesFieldBuilder() - : null; + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } @@ -707,44 +661,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - source_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - com.google.cloud.contentwarehouse.v1.Rule m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.Rule.parser(), extensionRegistry); - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(m); - } else { - rulesBuilder_.addMessage(m); - } - break; - } // case 26 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + com.google.cloud.contentwarehouse.v1.Rule m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.Rule.parser(), + extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 26 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -754,13 +704,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -770,13 +717,13 @@ public Builder mergeFrom(
      * 
* * string name = 6; - * * @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; @@ -785,8 +732,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -796,14 +741,15 @@ public java.lang.String getName() {
      * 
* * string name = 6; - * * @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 { @@ -811,8 +757,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -822,22 +766,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 6; - * * @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; } /** - * - * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -847,7 +787,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 6; - * * @return This builder for chaining. */ public Builder clearName() { @@ -857,8 +796,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -868,14 +805,12 @@ public Builder clearName() {
      * 
* * string name = 6; - * * @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; @@ -885,20 +820,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Short description of the rule-set.
      * 
* * string description = 1; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -907,21 +840,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Short description of the rule-set.
      * 
* * string description = 1; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -929,35 +861,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Short description of the rule-set.
      * 
* * string description = 1; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Short description of the rule-set.
      * 
* * string description = 1; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -967,21 +892,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Short description of the rule-set.
      * 
* * string description = 1; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -991,20 +912,18 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object source_ = ""; /** - * - * *
      * Source of the rules i.e., customer name.
      * 
* * string source = 2; - * * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; @@ -1013,21 +932,20 @@ public java.lang.String getSource() { } } /** - * - * *
      * Source of the rules i.e., customer name.
      * 
* * string source = 2; - * * @return The bytes for source. */ - public com.google.protobuf.ByteString getSourceBytes() { + public com.google.protobuf.ByteString + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { @@ -1035,35 +953,28 @@ public com.google.protobuf.ByteString getSourceBytes() { } } /** - * - * *
      * Source of the rules i.e., customer name.
      * 
* * string source = 2; - * * @param value The source to set. * @return This builder for chaining. */ - public Builder setSource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } source_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Source of the rules i.e., customer name.
      * 
* * string source = 2; - * * @return This builder for chaining. */ public Builder clearSource() { @@ -1073,21 +984,17 @@ public Builder clearSource() { return this; } /** - * - * *
      * Source of the rules i.e., customer name.
      * 
* * string source = 2; - * * @param value The bytes for source to set. * @return This builder for chaining. */ - public Builder setSourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); source_ = value; bitField0_ |= 0x00000004; @@ -1096,24 +1003,18 @@ public Builder setSourceBytes(com.google.protobuf.ByteString value) { } private java.util.List rules_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder> - rulesBuilder_; + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> rulesBuilder_; /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1128,8 +1029,6 @@ public java.util.List getRulesList() } } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1144,8 +1043,6 @@ public int getRulesCount() { } } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1160,15 +1057,14 @@ public com.google.cloud.contentwarehouse.v1.Rule getRules(int index) { } } /** - * - * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public Builder setRules(int index, com.google.cloud.contentwarehouse.v1.Rule value) { + public Builder setRules( + int index, com.google.cloud.contentwarehouse.v1.Rule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1182,8 +1078,6 @@ public Builder setRules(int index, com.google.cloud.contentwarehouse.v1.Rule val return this; } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1202,8 +1096,6 @@ public Builder setRules( return this; } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1224,15 +1116,14 @@ public Builder addRules(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** - * - * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public Builder addRules(int index, com.google.cloud.contentwarehouse.v1.Rule value) { + public Builder addRules( + int index, com.google.cloud.contentwarehouse.v1.Rule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1246,15 +1137,14 @@ public Builder addRules(int index, com.google.cloud.contentwarehouse.v1.Rule val return this; } /** - * - * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public Builder addRules(com.google.cloud.contentwarehouse.v1.Rule.Builder builderForValue) { + public Builder addRules( + com.google.cloud.contentwarehouse.v1.Rule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); @@ -1265,8 +1155,6 @@ public Builder addRules(com.google.cloud.contentwarehouse.v1.Rule.Builder builde return this; } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1285,8 +1173,6 @@ public Builder addRules( return this; } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1297,7 +1183,8 @@ public Builder addAllRules( java.lang.Iterable values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); @@ -1305,8 +1192,6 @@ public Builder addAllRules( return this; } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1324,8 +1209,6 @@ public Builder clearRules() { return this; } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1343,44 +1226,39 @@ public Builder removeRules(int index) { return this; } /** - * - * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public com.google.cloud.contentwarehouse.v1.Rule.Builder getRulesBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.Rule.Builder getRulesBuilder( + int index) { return getRulesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder( + int index) { if (rulesBuilder_ == null) { - return rules_.get(index); - } else { + return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public java.util.List - getRulesOrBuilderList() { + public java.util.List + getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { @@ -1388,8 +1266,6 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder(int } } /** - * - * *
      * List of rules given by the customer.
      * 
@@ -1397,54 +1273,49 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder(int * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ public com.google.cloud.contentwarehouse.v1.Rule.Builder addRulesBuilder() { - return getRulesFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); + return getRulesFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); } /** - * - * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public com.google.cloud.contentwarehouse.v1.Rule.Builder addRulesBuilder(int index) { - return getRulesFieldBuilder() - .addBuilder(index, com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.Rule.Builder addRulesBuilder( + int index) { + return getRulesFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); } /** - * - * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public java.util.List getRulesBuilderList() { + public java.util.List + getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { - rulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, - com.google.cloud.contentwarehouse.v1.Rule.Builder, - com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( - rules_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( + rules_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); rules_ = null; } return rulesBuilder_; } - @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); } @@ -1454,12 +1325,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RuleSet) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RuleSet) private static final com.google.cloud.contentwarehouse.v1.RuleSet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RuleSet(); } @@ -1468,27 +1339,27 @@ public static com.google.cloud.contentwarehouse.v1.RuleSet getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuleSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RuleSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1503,4 +1374,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RuleSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java similarity index 71% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java index 3bc55d2fd013..0addc79d19b2 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface RuleSetOrBuilder - extends +public interface RuleSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RuleSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the rule set. Managed internally.
    * Format:
@@ -35,13 +17,10 @@ public interface RuleSetOrBuilder
    * 
* * string name = 6; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the rule set. Managed internally.
    * Format:
@@ -51,74 +30,61 @@ public interface RuleSetOrBuilder
    * 
* * string name = 6; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Short description of the rule-set.
    * 
* * string description = 1; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Short description of the rule-set.
    * 
* * string description = 1; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Source of the rules i.e., customer name.
    * 
* * string source = 2; - * * @return The source. */ java.lang.String getSource(); /** - * - * *
    * Source of the rules i.e., customer name.
    * 
* * string source = 2; - * * @return The bytes for source. */ - com.google.protobuf.ByteString getSourceBytes(); + com.google.protobuf.ByteString + getSourceBytes(); /** - * - * *
    * List of rules given by the customer.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - java.util.List getRulesList(); + java.util.List + getRulesList(); /** - * - * *
    * List of rules given by the customer.
    * 
@@ -127,8 +93,6 @@ public interface RuleSetOrBuilder */ com.google.cloud.contentwarehouse.v1.Rule getRules(int index); /** - * - * *
    * List of rules given by the customer.
    * 
@@ -137,24 +101,21 @@ public interface RuleSetOrBuilder */ int getRulesCount(); /** - * - * *
    * List of rules given by the customer.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - java.util.List + java.util.List getRulesOrBuilderList(); /** - * - * *
    * List of rules given by the customer.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder( + int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java new file mode 100644 index 000000000000..2bc7d0904e85 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/ruleset_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class RuleSetServiceProto { + private RuleSetServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/contentwarehouse/v1/rules" + + "et_service.proto\022 google.cloud.contentwa" + + "rehouse.v1\032\034google/api/annotations.proto" + + "\032\027google/api/client.proto\0322google/cloud/" + + "contentwarehouse/v1/rule_engine.proto\032>g" + + "oogle/cloud/contentwarehouse/v1/ruleset_" + + "service_request.proto\032\033google/protobuf/e" + + "mpty.proto2\364\007\n\016RuleSetService\022\304\001\n\rCreate" + + "RuleSet\0226.google.cloud.contentwarehouse." + + "v1.CreateRuleSetRequest\032).google.cloud.c" + + "ontentwarehouse.v1.RuleSet\"P\332A\017parent,ru" + + "le_set\202\323\344\223\0028\",/v1/{parent=projects/*/loc" + + "ations/*}/ruleSets:\010rule_set\022\251\001\n\nGetRule" + + "Set\0223.google.cloud.contentwarehouse.v1.G" + + "etRuleSetRequest\032).google.cloud.contentw" + + "arehouse.v1.RuleSet\";\332A\004name\202\323\344\223\002.\022,/v1/" + + "{name=projects/*/locations/*/ruleSets/*}" + + "\022\273\001\n\rUpdateRuleSet\0226.google.cloud.conten" + + "twarehouse.v1.UpdateRuleSetRequest\032).goo" + + "gle.cloud.contentwarehouse.v1.RuleSet\"G\332" + + "A\rname,rule_set\202\323\344\223\00212,/v1/{name=project" + + "s/*/locations/*/ruleSets/*}:\001*\022\234\001\n\rDelet" + + "eRuleSet\0226.google.cloud.contentwarehouse" + + ".v1.DeleteRuleSetRequest\032\026.google.protob" + + "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1/{name=proje" + + "cts/*/locations/*/ruleSets/*}\022\274\001\n\014ListRu" + + "leSets\0225.google.cloud.contentwarehouse.v" + + "1.ListRuleSetsRequest\0326.google.cloud.con" + + "tentwarehouse.v1.ListRuleSetsResponse\"=\332" + + "A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/l" + + "ocations/*}/ruleSets\032S\312A\037contentwarehous" + + "e.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\373\001\n$com.google" + + ".cloud.contentwarehouse.v1B\023RuleSetServi" + + "ceProtoP\001ZPcloud.google.com/go/contentwa" + + "rehouse/apiv1/contentwarehousepb;content" + + "warehousepb\252\002 Google.Cloud.ContentWareho" + + "use.V1\312\002 Google\\Cloud\\ContentWarehouse\\V" + + "1\352\002#Google::Cloud::ContentWarehouse::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.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java new file mode 100644 index 000000000000..a644d43b891e --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java @@ -0,0 +1,143 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class RuleSetServiceRequestProto { + private RuleSetServiceRequestProto() {} + 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_contentwarehouse_v1_CreateRuleSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_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/contentwarehouse/v1/rules" + + "et_service_request.proto\022 google.cloud.c" + + "ontentwarehouse.v1\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\0322" + + "google/cloud/contentwarehouse/v1/rule_en" + + "gine.proto\"\234\001\n\024CreateRuleSetRequest\022A\n\006p" + + "arent\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehouse.g" + + "oogleapis.com/Location\022A\n\010rule_set\030\002 \001(\013" + + "2).google.cloud.contentwarehouse.v1.Rule" + + "SetB\004\342A\001\002\"S\n\021GetRuleSetRequest\022>\n\004name\030\001" + + " \001(\tB0\342A\001\002\372A)\n\'contentwarehouse.googleap" + + "is.com/RuleSet\"\231\001\n\024UpdateRuleSetRequest\022" + + ">\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'contentwarehouse" + + ".googleapis.com/RuleSet\022A\n\010rule_set\030\002 \001(" + + "\0132).google.cloud.contentwarehouse.v1.Rul" + + "eSetB\004\342A\001\002\"V\n\024DeleteRuleSetRequest\022>\n\004na" + + "me\030\001 \001(\tB0\342A\001\002\372A)\n\'contentwarehouse.goog" + + "leapis.com/RuleSet\"\177\n\023ListRuleSetsReques" + + "t\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareh" + + "ouse.googleapis.com/Location\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"m\n\024ListRuleS" + + "etsResponse\022<\n\trule_sets\030\001 \003(\0132).google." + + "cloud.contentwarehouse.v1.RuleSet\022\027\n\017nex" + + "t_page_token\030\002 \001(\tB\202\002\n$com.google.cloud." + + "contentwarehouse.v1B\032RuleSetServiceReque" + + "stProtoP\001ZPcloud.google.com/go/contentwa" + + "rehouse/apiv1/contentwarehousepb;content" + + "warehousepb\252\002 Google.Cloud.ContentWareho" + + "use.V1\312\002 Google\\Cloud\\ContentWarehouse\\V" + + "1\352\002#Google::Cloud::ContentWarehouse::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.contentwarehouse.v1.RuleEngineProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor, + new java.lang.String[] { "Parent", "RuleSet", }); + internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor, + new java.lang.String[] { "Name", "RuleSet", }); + internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor, + new java.lang.String[] { "RuleSets", "NextPageToken", }); + 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.contentwarehouse.v1.RuleEngineProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java similarity index 60% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java index 513a98269f6a..d3cbe8c87432 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java @@ -1,160 +1,124 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Metadata message of RunPipeline method.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata} */ -public final class RunPipelineMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RunPipelineMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata) RunPipelineMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RunPipelineMetadata.newBuilder() to construct. private RunPipelineMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RunPipelineMetadata() { individualDocumentStatuses_ = 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 RunPipelineMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.class, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.Builder.class); } - public interface GcsIngestPipelineMetadataOrBuilder - extends + public interface GcsIngestPipelineMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The input Cloud Storage folder in this pipeline.
      * Format: `gs://<bucket-name>/<folder-name>`.
      * 
* * string input_path = 1; - * * @return The inputPath. */ java.lang.String getInputPath(); /** - * - * *
      * The input Cloud Storage folder in this pipeline.
      * Format: `gs://<bucket-name>/<folder-name>`.
      * 
* * string input_path = 1; - * * @return The bytes for inputPath. */ - com.google.protobuf.ByteString getInputPathBytes(); + com.google.protobuf.ByteString + getInputPathBytes(); } /** - * - * *
    * The metadata message for GcsIngest pipeline.
    * 
* - * Protobuf type {@code - * google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata} + * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata} */ - public static final class GcsIngestPipelineMetadata extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GcsIngestPipelineMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) GcsIngestPipelineMetadataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsIngestPipelineMetadata.newBuilder() to construct. private GcsIngestPipelineMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsIngestPipelineMetadata() { inputPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsIngestPipelineMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .class, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder.class); } public static final int INPUT_PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object inputPath_ = ""; /** - * - * *
      * The input Cloud Storage folder in this pipeline.
      * Format: `gs://<bucket-name>/<folder-name>`.
      * 
* * string input_path = 1; - * * @return The inputPath. */ @java.lang.Override @@ -163,30 +127,30 @@ public java.lang.String getInputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; } } /** - * - * *
      * The input Cloud Storage folder in this pipeline.
      * Format: `gs://<bucket-name>/<folder-name>`.
      * 
* * string input_path = 1; - * * @return The bytes for inputPath. */ @java.lang.Override - public com.google.protobuf.ByteString getInputPathBytes() { + public com.google.protobuf.ByteString + getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputPath_ = b; return b; } else { @@ -195,7 +159,6 @@ public com.google.protobuf.ByteString getInputPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +170,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(inputPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputPath_); } @@ -231,17 +195,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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)) { + if (!(obj instanceof com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata other = - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) obj; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata other = (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) obj; - if (!getInputPath().equals(other.getInputPath())) return false; + if (!getInputPath() + .equals(other.getInputPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,102 +222,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - parseFrom( - java.io.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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( + java.io.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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -365,46 +315,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The metadata message for GcsIngest pipeline.
      * 
* - * Protobuf type {@code - * google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata} + * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .GcsIngestPipelineMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .class, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder.class); } - // Construct using - // com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.newBuilder() - private Builder() {} + // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.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,23 +357,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - build() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata result = - buildPartial(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata build() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -438,21 +377,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata result = - new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata buildPartial() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata result = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.inputPath_ = inputPath_; @@ -463,57 +395,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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) { - return mergeFrom( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) - other); + if (other instanceof com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) { + return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - other) { - if (other - == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata other) { + if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance()) return this; if (!other.getInputPath().isEmpty()) { inputPath_ = other.inputPath_; bitField0_ |= 0x00000001; @@ -545,19 +466,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - inputPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + inputPath_ = 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) { @@ -567,26 +486,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object inputPath_ = ""; /** - * - * *
        * The input Cloud Storage folder in this pipeline.
        * Format: `gs://<bucket-name>/<folder-name>`.
        * 
* * string input_path = 1; - * * @return The inputPath. */ public java.lang.String getInputPath() { java.lang.Object ref = inputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; @@ -595,22 +511,21 @@ public java.lang.String getInputPath() { } } /** - * - * *
        * The input Cloud Storage folder in this pipeline.
        * Format: `gs://<bucket-name>/<folder-name>`.
        * 
* * string input_path = 1; - * * @return The bytes for inputPath. */ - public com.google.protobuf.ByteString getInputPathBytes() { + public com.google.protobuf.ByteString + getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputPath_ = b; return b; } else { @@ -618,37 +533,30 @@ public com.google.protobuf.ByteString getInputPathBytes() { } } /** - * - * *
        * The input Cloud Storage folder in this pipeline.
        * Format: `gs://<bucket-name>/<folder-name>`.
        * 
* * string input_path = 1; - * * @param value The inputPath to set. * @return This builder for chaining. */ - public Builder setInputPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } inputPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The input Cloud Storage folder in this pipeline.
        * Format: `gs://<bucket-name>/<folder-name>`.
        * 
* * string input_path = 1; - * * @return This builder for chaining. */ public Builder clearInputPath() { @@ -658,29 +566,24 @@ public Builder clearInputPath() { return this; } /** - * - * *
        * The input Cloud Storage folder in this pipeline.
        * Format: `gs://<bucket-name>/<folder-name>`.
        * 
* * string input_path = 1; - * * @param value The bytes for inputPath to set. * @return This builder for chaining. */ - public Builder setInputPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); inputPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -693,46 +596,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) - private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .GcsIngestPipelineMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata(); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsIngestPipelineMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GcsIngestPipelineMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -744,210 +642,173 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ExportToCdwPipelineMetadataOrBuilder - extends + public interface ExportToCdwPipelineMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; - * * @return A list containing the documents. */ - java.util.List getDocumentsList(); + java.util.List + getDocumentsList(); /** - * - * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; - * * @return The count of documents. */ int getDocumentsCount(); /** - * - * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; - * * @param index The index of the element to return. * @return The documents at the given index. */ java.lang.String getDocuments(int index); /** - * - * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; - * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - com.google.protobuf.ByteString getDocumentsBytes(int index); + com.google.protobuf.ByteString + getDocumentsBytes(int index); /** - * - * *
      * The output CDW dataset resource name.
      * 
* * string doc_ai_dataset = 2; - * * @return The docAiDataset. */ java.lang.String getDocAiDataset(); /** - * - * *
      * The output CDW dataset resource name.
      * 
* * string doc_ai_dataset = 2; - * * @return The bytes for docAiDataset. */ - com.google.protobuf.ByteString getDocAiDatasetBytes(); + com.google.protobuf.ByteString + getDocAiDatasetBytes(); /** - * - * *
      * The output Cloud Storage folder in this pipeline.
      * 
* * string output_path = 3; - * * @return The outputPath. */ java.lang.String getOutputPath(); /** - * - * *
      * The output Cloud Storage folder in this pipeline.
      * 
* * string output_path = 3; - * * @return The bytes for outputPath. */ - com.google.protobuf.ByteString getOutputPathBytes(); + com.google.protobuf.ByteString + getOutputPathBytes(); } /** - * - * *
    * The metadata message for Export-to-CDW pipeline.
    * 
* - * Protobuf type {@code - * google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata} + * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata} */ - public static final class ExportToCdwPipelineMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ExportToCdwPipelineMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) ExportToCdwPipelineMetadataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExportToCdwPipelineMetadata.newBuilder() to construct. private ExportToCdwPipelineMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportToCdwPipelineMetadata() { - documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); docAiDataset_ = ""; outputPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportToCdwPipelineMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .class, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder.class); } public static final int DOCUMENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; - * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList getDocumentsList() { + public com.google.protobuf.ProtocolStringList + getDocumentsList() { return documents_; } /** - * - * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; - * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** - * - * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; - * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -955,34 +816,28 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** - * - * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; - * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString getDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getDocumentsBytes(int index) { return documents_.getByteString(index); } public static final int DOC_AI_DATASET_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object docAiDataset_ = ""; /** - * - * *
      * The output CDW dataset resource name.
      * 
* * string doc_ai_dataset = 2; - * * @return The docAiDataset. */ @java.lang.Override @@ -991,29 +846,29 @@ public java.lang.String getDocAiDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docAiDataset_ = s; return s; } } /** - * - * *
      * The output CDW dataset resource name.
      * 
* * string doc_ai_dataset = 2; - * * @return The bytes for docAiDataset. */ @java.lang.Override - public com.google.protobuf.ByteString getDocAiDatasetBytes() { + public com.google.protobuf.ByteString + getDocAiDatasetBytes() { java.lang.Object ref = docAiDataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); docAiDataset_ = b; return b; } else { @@ -1022,18 +877,14 @@ public com.google.protobuf.ByteString getDocAiDatasetBytes() { } public static final int OUTPUT_PATH_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object outputPath_ = ""; /** - * - * *
      * The output Cloud Storage folder in this pipeline.
      * 
* * string output_path = 3; - * * @return The outputPath. */ @java.lang.Override @@ -1042,29 +893,29 @@ public java.lang.String getOutputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputPath_ = s; return s; } } /** - * - * *
      * The output Cloud Storage folder in this pipeline.
      * 
* * string output_path = 3; - * * @return The bytes for outputPath. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputPathBytes() { + public com.google.protobuf.ByteString + getOutputPathBytes() { java.lang.Object ref = outputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputPath_ = b; return b; } else { @@ -1073,7 +924,6 @@ public com.google.protobuf.ByteString getOutputPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1085,7 +935,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++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i)); } @@ -1126,20 +977,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.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)) { + if (!(obj instanceof com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata other = - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) - obj; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata other = (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) obj; - if (!getDocumentsList().equals(other.getDocumentsList())) return false; - if (!getDocAiDataset().equals(other.getDocAiDataset())) return false; - if (!getOutputPath().equals(other.getOutputPath())) return false; + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (!getDocAiDataset() + .equals(other.getDocAiDataset())) return false; + if (!getOutputPath() + .equals(other.getOutputPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1164,114 +1014,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - parseFrom( - java.io.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.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( + java.io.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.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - 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.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1281,74 +1107,64 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The metadata message for Export-to-CDW pipeline.
      * 
* - * Protobuf type {@code - * google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata} + * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .class, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder.class); } - // Construct using - // com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.newBuilder() - private Builder() {} + // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.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; - documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); docAiDataset_ = ""; outputPath_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - build() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - result = buildPartial(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata build() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1356,22 +1172,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - result = - new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata buildPartial() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata result = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { documents_.makeImmutable(); @@ -1389,57 +1197,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.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) { - return mergeFrom( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) - other); + if (other instanceof com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) { + return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - other) { - if (other - == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata other) { + if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance()) return this; if (!other.documents_.isEmpty()) { if (documents_.isEmpty()) { documents_ = other.documents_; @@ -1486,32 +1283,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDocumentsIsMutable(); - documents_.add(s); - break; - } // case 10 - case 18: - { - docAiDataset_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - outputPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDocumentsIsMutable(); + documents_.add(s); + break; + } // case 10 + case 18: { + docAiDataset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + outputPath_ = 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) { @@ -1521,12 +1314,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureDocumentsIsMutable() { if (!documents_.isModifiable()) { documents_ = new com.google.protobuf.LazyStringArrayList(documents_); @@ -1534,43 +1325,35 @@ private void ensureDocumentsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; - * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList getDocumentsList() { + public com.google.protobuf.ProtocolStringList + getDocumentsList() { documents_.makeImmutable(); return documents_; } /** - * - * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; - * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** - * - * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; - * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -1578,37 +1361,31 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** - * - * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; - * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString getDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getDocumentsBytes(int index) { return documents_.getByteString(index); } /** - * - * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; - * * @param index The index to set the value at. * @param value The documents to set. * @return This builder for chaining. */ - public Builder setDocuments(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocuments( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentsIsMutable(); documents_.set(index, value); bitField0_ |= 0x00000001; @@ -1616,21 +1393,17 @@ public Builder setDocuments(int index, java.lang.String value) { return this; } /** - * - * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; - * * @param value The documents to add. * @return This builder for chaining. */ - public Builder addDocuments(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocuments( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentsIsMutable(); documents_.add(value); bitField0_ |= 0x00000001; @@ -1638,58 +1411,50 @@ public Builder addDocuments(java.lang.String value) { return this; } /** - * - * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; - * * @param values The documents to add. * @return This builder for chaining. */ - public Builder addAllDocuments(java.lang.Iterable values) { + public Builder addAllDocuments( + java.lang.Iterable values) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; - * * @return This builder for chaining. */ public Builder clearDocuments() { - documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + documents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; - * * @param value The bytes of the documents to add. * @return This builder for chaining. */ - public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocumentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDocumentsIsMutable(); documents_.add(value); @@ -1700,20 +1465,18 @@ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { private java.lang.Object docAiDataset_ = ""; /** - * - * *
        * The output CDW dataset resource name.
        * 
* * string doc_ai_dataset = 2; - * * @return The docAiDataset. */ public java.lang.String getDocAiDataset() { java.lang.Object ref = docAiDataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docAiDataset_ = s; return s; @@ -1722,21 +1485,20 @@ public java.lang.String getDocAiDataset() { } } /** - * - * *
        * The output CDW dataset resource name.
        * 
* * string doc_ai_dataset = 2; - * * @return The bytes for docAiDataset. */ - public com.google.protobuf.ByteString getDocAiDatasetBytes() { + public com.google.protobuf.ByteString + getDocAiDatasetBytes() { java.lang.Object ref = docAiDataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); docAiDataset_ = b; return b; } else { @@ -1744,35 +1506,28 @@ public com.google.protobuf.ByteString getDocAiDatasetBytes() { } } /** - * - * *
        * The output CDW dataset resource name.
        * 
* * string doc_ai_dataset = 2; - * * @param value The docAiDataset to set. * @return This builder for chaining. */ - public Builder setDocAiDataset(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocAiDataset( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } docAiDataset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The output CDW dataset resource name.
        * 
* * string doc_ai_dataset = 2; - * * @return This builder for chaining. */ public Builder clearDocAiDataset() { @@ -1782,21 +1537,17 @@ public Builder clearDocAiDataset() { return this; } /** - * - * *
        * The output CDW dataset resource name.
        * 
* * string doc_ai_dataset = 2; - * * @param value The bytes for docAiDataset to set. * @return This builder for chaining. */ - public Builder setDocAiDatasetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocAiDatasetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docAiDataset_ = value; bitField0_ |= 0x00000002; @@ -1806,20 +1557,18 @@ public Builder setDocAiDatasetBytes(com.google.protobuf.ByteString value) { private java.lang.Object outputPath_ = ""; /** - * - * *
        * The output Cloud Storage folder in this pipeline.
        * 
* * string output_path = 3; - * * @return The outputPath. */ public java.lang.String getOutputPath() { java.lang.Object ref = outputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputPath_ = s; return s; @@ -1828,21 +1577,20 @@ public java.lang.String getOutputPath() { } } /** - * - * *
        * The output Cloud Storage folder in this pipeline.
        * 
* * string output_path = 3; - * * @return The bytes for outputPath. */ - public com.google.protobuf.ByteString getOutputPathBytes() { + public com.google.protobuf.ByteString + getOutputPathBytes() { java.lang.Object ref = outputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputPath_ = b; return b; } else { @@ -1850,35 +1598,28 @@ public com.google.protobuf.ByteString getOutputPathBytes() { } } /** - * - * *
        * The output Cloud Storage folder in this pipeline.
        * 
* * string output_path = 3; - * * @param value The outputPath to set. * @return This builder for chaining. */ - public Builder setOutputPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOutputPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } outputPath_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * The output Cloud Storage folder in this pipeline.
        * 
* * string output_path = 3; - * * @return This builder for chaining. */ public Builder clearOutputPath() { @@ -1888,28 +1629,23 @@ public Builder clearOutputPath() { return this; } /** - * - * *
        * The output Cloud Storage folder in this pipeline.
        * 
* * string output_path = 3; - * * @param value The bytes for outputPath to set. * @return This builder for chaining. */ - public Builder setOutputPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOutputPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); outputPath_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1922,48 +1658,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) - private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata(); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportToCdwPipelineMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ExportToCdwPipelineMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1975,99 +1704,80 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ProcessWithDocAiPipelineMetadataOrBuilder - extends + public interface ProcessWithDocAiPipelineMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; - * * @return A list containing the documents. */ - java.util.List getDocumentsList(); + java.util.List + getDocumentsList(); /** - * - * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; - * * @return The count of documents. */ int getDocumentsCount(); /** - * - * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; - * * @param index The index of the element to return. * @return The documents at the given index. */ java.lang.String getDocuments(int index); /** - * - * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; - * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - com.google.protobuf.ByteString getDocumentsBytes(int index); + com.google.protobuf.ByteString + getDocumentsBytes(int index); /** - * - * *
      * The DocAI processor to process the documents with.
      * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; - * * @return Whether the processorInfo field is set. */ boolean hasProcessorInfo(); /** - * - * *
      * The DocAI processor to process the documents with.
      * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; - * * @return The processorInfo. */ com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo(); /** - * - * *
      * The DocAI processor to process the documents with.
      * 
@@ -2077,99 +1787,82 @@ public interface ProcessWithDocAiPipelineMetadataOrBuilder com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder(); } /** - * - * *
    * The metadata message for Process-with-DocAi pipeline.
    * 
* - * Protobuf type {@code - * google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata} + * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata} */ - public static final class ProcessWithDocAiPipelineMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ProcessWithDocAiPipelineMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) ProcessWithDocAiPipelineMetadataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProcessWithDocAiPipelineMetadata.newBuilder() to construct. - private ProcessWithDocAiPipelineMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ProcessWithDocAiPipelineMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProcessWithDocAiPipelineMetadata() { - documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documents_ = + 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 ProcessWithDocAiPipelineMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.class, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder.class); } public static final int DOCUMENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; - * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList getDocumentsList() { + public com.google.protobuf.ProtocolStringList + getDocumentsList() { return documents_; } /** - * - * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; - * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** - * - * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; - * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -2177,33 +1870,28 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** - * - * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; - * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString getDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getDocumentsBytes(int index) { return documents_.getByteString(index); } public static final int PROCESSOR_INFO_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.ProcessorInfo processorInfo_; /** - * - * *
      * The DocAI processor to process the documents with.
      * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; - * * @return Whether the processorInfo field is set. */ @java.lang.Override @@ -2211,25 +1899,18 @@ public boolean hasProcessorInfo() { return processorInfo_ != null; } /** - * - * *
      * The DocAI processor to process the documents with.
      * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; - * * @return The processorInfo. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() { - return processorInfo_ == null - ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() - : processorInfo_; + return processorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; } /** - * - * *
      * The DocAI processor to process the documents with.
      * 
@@ -2238,13 +1919,10 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder() { - return processorInfo_ == null - ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() - : processorInfo_; + return processorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2256,7 +1934,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++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i)); } @@ -2281,7 +1960,8 @@ public int getSerializedSize() { size += 1 * getDocumentsList().size(); } if (processorInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProcessorInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProcessorInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2291,24 +1971,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.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata)) { + if (!(obj instanceof com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - other = - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata) - obj; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata other = (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) obj; - if (!getDocumentsList().equals(other.getDocumentsList())) return false; + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; if (hasProcessorInfo() != other.hasProcessorInfo()) return false; if (hasProcessorInfo()) { - if (!getProcessorInfo().equals(other.getProcessorInfo())) return false; + if (!getProcessorInfo() + .equals(other.getProcessorInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2334,114 +2009,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - parseFrom( - java.io.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.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( + java.io.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.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - 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.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2451,51 +2102,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The metadata message for Process-with-DocAi pipeline.
      * 
* - * Protobuf type {@code - * google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata} + * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.class, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder.class); } - // Construct using - // com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.newBuilder() - private Builder() {} + // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.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; - documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); processorInfo_ = null; if (processorInfoBuilder_ != null) { processorInfoBuilder_.dispose(); @@ -2505,25 +2150,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - build() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - result = buildPartial(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata build() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2531,31 +2170,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - result = - new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata buildPartial() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata result = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { documents_.makeImmutable(); result.documents_ = documents_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.processorInfo_ = - processorInfoBuilder_ == null ? processorInfo_ : processorInfoBuilder_.build(); + result.processorInfo_ = processorInfoBuilder_ == null + ? processorInfo_ + : processorInfoBuilder_.build(); } } @@ -2563,59 +2194,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.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata) { - return mergeFrom( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata) - other); + if (other instanceof com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) { + return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - other) { - if (other - == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata other) { + if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance()) return this; if (!other.documents_.isEmpty()) { if (documents_.isEmpty()) { documents_ = other.documents_; @@ -2655,26 +2273,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDocumentsIsMutable(); - documents_.add(s); - break; - } // case 10 - case 18: - { - input.readMessage(getProcessorInfoFieldBuilder().getBuilder(), extensionRegistry); - 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(); + ensureDocumentsIsMutable(); + documents_.add(s); + break; + } // case 10 + case 18: { + input.readMessage( + getProcessorInfoFieldBuilder().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) { @@ -2684,12 +2301,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureDocumentsIsMutable() { if (!documents_.isModifiable()) { documents_ = new com.google.protobuf.LazyStringArrayList(documents_); @@ -2697,46 +2312,38 @@ private void ensureDocumentsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; - * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList getDocumentsList() { + public com.google.protobuf.ProtocolStringList + getDocumentsList() { documents_.makeImmutable(); return documents_; } /** - * - * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; - * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** - * - * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; - * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -2744,39 +2351,33 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** - * - * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; - * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString getDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getDocumentsBytes(int index) { return documents_.getByteString(index); } /** - * - * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; - * * @param index The index to set the value at. * @param value The documents to set. * @return This builder for chaining. */ - public Builder setDocuments(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocuments( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentsIsMutable(); documents_.set(index, value); bitField0_ |= 0x00000001; @@ -2784,22 +2385,18 @@ public Builder setDocuments(int index, java.lang.String value) { return this; } /** - * - * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; - * * @param value The documents to add. * @return This builder for chaining. */ - public Builder addDocuments(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocuments( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDocumentsIsMutable(); documents_.add(value); bitField0_ |= 0x00000001; @@ -2807,61 +2404,53 @@ public Builder addDocuments(java.lang.String value) { return this; } /** - * - * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; - * * @param values The documents to add. * @return This builder for chaining. */ - public Builder addAllDocuments(java.lang.Iterable values) { + public Builder addAllDocuments( + java.lang.Iterable values) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; - * * @return This builder for chaining. */ public Builder clearDocuments() { - documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + documents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; - * * @param value The bytes of the documents to add. * @return This builder for chaining. */ - public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDocumentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDocumentsIsMutable(); documents_.add(value); @@ -2872,47 +2461,34 @@ public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.ProcessorInfo processorInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, - com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> - processorInfoBuilder_; + com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> processorInfoBuilder_; /** - * - * *
        * The DocAI processor to process the documents with.
        * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; - * * @return Whether the processorInfo field is set. */ public boolean hasProcessorInfo() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * The DocAI processor to process the documents with.
        * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; - * * @return The processorInfo. */ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() { if (processorInfoBuilder_ == null) { - return processorInfo_ == null - ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() - : processorInfo_; + return processorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; } else { return processorInfoBuilder_.getMessage(); } } /** - * - * *
        * The DocAI processor to process the documents with.
        * 
@@ -2933,8 +2509,6 @@ public Builder setProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorIn return this; } /** - * - * *
        * The DocAI processor to process the documents with.
        * 
@@ -2953,8 +2527,6 @@ public Builder setProcessorInfo( return this; } /** - * - * *
        * The DocAI processor to process the documents with.
        * 
@@ -2963,10 +2535,9 @@ public Builder setProcessorInfo( */ public Builder mergeProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { if (processorInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && processorInfo_ != null - && processorInfo_ - != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + processorInfo_ != null && + processorInfo_ != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) { getProcessorInfoBuilder().mergeFrom(value); } else { processorInfo_ = value; @@ -2979,8 +2550,6 @@ public Builder mergeProcessorInfo(com.google.cloud.contentwarehouse.v1.Processor return this; } /** - * - * *
        * The DocAI processor to process the documents with.
        * 
@@ -2998,8 +2567,6 @@ public Builder clearProcessorInfo() { return this; } /** - * - * *
        * The DocAI processor to process the documents with.
        * 
@@ -3012,27 +2579,21 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder getProcessorIn return getProcessorInfoFieldBuilder().getBuilder(); } /** - * - * *
        * The DocAI processor to process the documents with.
        * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder - getProcessorInfoOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder() { if (processorInfoBuilder_ != null) { return processorInfoBuilder_.getMessageOrBuilder(); } else { - return processorInfo_ == null - ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() - : processorInfo_; + return processorInfo_ == null ? + com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; } } /** - * - * *
        * The DocAI processor to process the documents with.
        * 
@@ -3040,22 +2601,18 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder getProcessorIn * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, - com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> getProcessorInfoFieldBuilder() { if (processorInfoBuilder_ == null) { - processorInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, - com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, - com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( - getProcessorInfo(), getParentForChildren(), isClean()); + processorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( + getProcessorInfo(), + getParentForChildren(), + isClean()); processorInfo_ = null; } return processorInfoBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3068,48 +2625,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) - private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata(); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProcessWithDocAiPipelineMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ProcessWithDocAiPipelineMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3121,69 +2671,55 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface IndividualDocumentStatusOrBuilder - extends + public interface IndividualDocumentStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Document identifier of an existing document.
      * 
* * string document_id = 1; - * * @return The documentId. */ java.lang.String getDocumentId(); /** - * - * *
      * Document identifier of an existing document.
      * 
* * string document_id = 1; - * * @return The bytes for documentId. */ - com.google.protobuf.ByteString getDocumentIdBytes(); + com.google.protobuf.ByteString + getDocumentIdBytes(); /** - * - * *
      * The status processing the document.
      * 
* * .google.rpc.Status status = 2; - * * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
      * The status processing the document.
      * 
* * .google.rpc.Status status = 2; - * * @return The status. */ com.google.rpc.Status getStatus(); /** - * - * *
      * The status processing the document.
      * 
@@ -3193,65 +2729,54 @@ public interface IndividualDocumentStatusOrBuilder com.google.rpc.StatusOrBuilder getStatusOrBuilder(); } /** - * - * *
    * The status of processing a document.
    * 
* - * Protobuf type {@code - * google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus} + * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus} */ - public static final class IndividualDocumentStatus extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IndividualDocumentStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) IndividualDocumentStatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IndividualDocumentStatus.newBuilder() to construct. private IndividualDocumentStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IndividualDocumentStatus() { documentId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IndividualDocumentStatus(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - .class, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - .Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder.class); } public static final int DOCUMENT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object documentId_ = ""; /** - * - * *
      * Document identifier of an existing document.
      * 
* * string document_id = 1; - * * @return The documentId. */ @java.lang.Override @@ -3260,29 +2785,29 @@ 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; } } /** - * - * *
      * Document identifier of an existing document.
      * 
* * string document_id = 1; - * * @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 { @@ -3293,14 +2818,11 @@ public com.google.protobuf.ByteString getDocumentIdBytes() { public static final int STATUS_FIELD_NUMBER = 2; private com.google.rpc.Status status_; /** - * - * *
      * The status processing the document.
      * 
* * .google.rpc.Status status = 2; - * * @return Whether the status field is set. */ @java.lang.Override @@ -3308,14 +2830,11 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
      * The status processing the document.
      * 
* * .google.rpc.Status status = 2; - * * @return The status. */ @java.lang.Override @@ -3323,8 +2842,6 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** - * - * *
      * The status processing the document.
      * 
@@ -3337,7 +2854,6 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3349,7 +2865,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(documentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentId_); } @@ -3369,7 +2886,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, documentId_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStatus()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3379,20 +2897,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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)) { + if (!(obj instanceof com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus other = - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) obj; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus other = (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) obj; - if (!getDocumentId().equals(other.getDocumentId())) return false; + if (!getDocumentId() + .equals(other.getDocumentId())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3416,102 +2933,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus 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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - parseFrom( - java.io.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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( + java.io.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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - 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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus 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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3521,45 +3026,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The status of processing a document.
      * 
* - * Protobuf type {@code - * google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus} + * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - .class, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - .Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder.class); } - // Construct using - // com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.newBuilder() - private Builder() {} + // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.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(); @@ -3574,23 +3073,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - .getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - build() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus result = - buildPartial(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus build() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3598,27 +3093,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus result = - new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus buildPartial() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus result = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.documentId_ = documentId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); } } @@ -3626,56 +3116,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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) { - return mergeFrom( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) - other); + if (other instanceof com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) { + return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus other) { - if (other - == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus other) { + if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.getDefaultInstance()) return this; if (!other.getDocumentId().isEmpty()) { documentId_ = other.documentId_; bitField0_ |= 0x00000001; @@ -3710,25 +3190,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - documentId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + documentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStatusFieldBuilder().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) { @@ -3738,25 +3217,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object documentId_ = ""; /** - * - * *
        * Document identifier of an existing document.
        * 
* * string document_id = 1; - * * @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; @@ -3765,21 +3241,20 @@ public java.lang.String getDocumentId() { } } /** - * - * *
        * Document identifier of an existing document.
        * 
* * string document_id = 1; - * * @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 { @@ -3787,35 +3262,28 @@ public com.google.protobuf.ByteString getDocumentIdBytes() { } } /** - * - * *
        * Document identifier of an existing document.
        * 
* * string document_id = 1; - * * @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_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Document identifier of an existing document.
        * 
* * string document_id = 1; - * * @return This builder for chaining. */ public Builder clearDocumentId() { @@ -3825,21 +3293,17 @@ public Builder clearDocumentId() { return this; } /** - * - * *
        * Document identifier of an existing document.
        * 
* * string document_id = 1; - * * @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_ |= 0x00000001; @@ -3849,31 +3313,24 @@ public Builder setDocumentIdBytes(com.google.protobuf.ByteString value) { private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** - * - * *
        * The status processing the document.
        * 
* * .google.rpc.Status status = 2; - * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * The status processing the document.
        * 
* * .google.rpc.Status status = 2; - * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -3884,8 +3341,6 @@ public com.google.rpc.Status getStatus() { } } /** - * - * *
        * The status processing the document.
        * 
@@ -3906,15 +3361,14 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** - * - * *
        * The status processing the document.
        * 
* * .google.rpc.Status status = 2; */ - public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -3925,8 +3379,6 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
        * The status processing the document.
        * 
@@ -3935,9 +3387,9 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && status_ != null - && status_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + status_ != null && + status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -3950,8 +3402,6 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** - * - * *
        * The status processing the document.
        * 
@@ -3969,8 +3419,6 @@ public Builder clearStatus() { return this; } /** - * - * *
        * The status processing the document.
        * 
@@ -3983,8 +3431,6 @@ public com.google.rpc.Status.Builder getStatusBuilder() { return getStatusFieldBuilder().getBuilder(); } /** - * - * *
        * The status processing the document.
        * 
@@ -3995,12 +3441,11 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; } } /** - * - * *
        * The status processing the document.
        * 
@@ -4008,19 +3453,18 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - 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> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4033,46 +3477,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) - private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .IndividualDocumentStatus - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus(); + DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus(); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IndividualDocumentStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 IndividualDocumentStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4084,27 +3523,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int pipelineMetadataCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object pipelineMetadata_; - public enum PipelineMetadataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_INGEST_PIPELINE_METADATA(4), EXPORT_TO_CDW_PIPELINE_METADATA(6), PROCESS_WITH_DOC_AI_PIPELINE_METADATA(7), PIPELINEMETADATA_NOT_SET(0); private final int value; - private PipelineMetadataCase(int value) { this.value = value; } @@ -4120,39 +3555,32 @@ public static PipelineMetadataCase valueOf(int value) { public static PipelineMetadataCase forNumber(int value) { switch (value) { - case 4: - return GCS_INGEST_PIPELINE_METADATA; - case 6: - return EXPORT_TO_CDW_PIPELINE_METADATA; - case 7: - return PROCESS_WITH_DOC_AI_PIPELINE_METADATA; - case 0: - return PIPELINEMETADATA_NOT_SET; - default: - return null; + case 4: return GCS_INGEST_PIPELINE_METADATA; + case 6: return EXPORT_TO_CDW_PIPELINE_METADATA; + case 7: return PROCESS_WITH_DOC_AI_PIPELINE_METADATA; + case 0: return PIPELINEMETADATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public PipelineMetadataCase getPipelineMetadataCase() { - return PipelineMetadataCase.forNumber(pipelineMetadataCase_); + public PipelineMetadataCase + getPipelineMetadataCase() { + return PipelineMetadataCase.forNumber( + pipelineMetadataCase_); } public static final int TOTAL_FILE_COUNT_FIELD_NUMBER = 1; private int totalFileCount_ = 0; /** - * - * *
    * Number of files that were processed by the pipeline.
    * 
* * int32 total_file_count = 1; - * * @return The totalFileCount. */ @java.lang.Override @@ -4163,14 +3591,11 @@ public int getTotalFileCount() { public static final int FAILED_FILE_COUNT_FIELD_NUMBER = 2; private int failedFileCount_ = 0; /** - * - * *
    * Number of files that have failed at some point in the pipeline.
    * 
* * int32 failed_file_count = 2; - * * @return The failedFileCount. */ @java.lang.Override @@ -4181,14 +3606,11 @@ public int getFailedFileCount() { public static final int USER_INFO_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.UserInfo userInfo_; /** - * - * *
    * User unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; - * * @return Whether the userInfo field is set. */ @java.lang.Override @@ -4196,25 +3618,18 @@ public boolean hasUserInfo() { return userInfo_ != null; } /** - * - * *
    * User unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; - * * @return The userInfo. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() { - return userInfo_ == null - ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; } /** - * - * *
    * User unique identification and groups information.
    * 
@@ -4223,23 +3638,16 @@ public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuilder() { - return userInfo_ == null - ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; } public static final int GCS_INGEST_PIPELINE_METADATA_FIELD_NUMBER = 4; /** - * - * *
    * The pipeline metadata for GcsIngest pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; * @return Whether the gcsIngestPipelineMetadata field is set. */ @java.lang.Override @@ -4247,62 +3655,42 @@ public boolean hasGcsIngestPipelineMetadata() { return pipelineMetadataCase_ == 4; } /** - * - * *
    * The pipeline metadata for GcsIngest pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; * @return The gcsIngestPipelineMetadata. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - getGcsIngestPipelineMetadata() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata getGcsIngestPipelineMetadata() { if (pipelineMetadataCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) - pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); } /** - * - * *
    * The pipeline metadata for GcsIngest pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder - getGcsIngestPipelineMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder getGcsIngestPipelineMetadataOrBuilder() { if (pipelineMetadataCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) - pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); } public static final int EXPORT_TO_CDW_PIPELINE_METADATA_FIELD_NUMBER = 6; /** - * - * *
    * The pipeline metadata for Export-to-CDW pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; * @return Whether the exportToCdwPipelineMetadata field is set. */ @java.lang.Override @@ -4310,209 +3698,140 @@ public boolean hasExportToCdwPipelineMetadata() { return pipelineMetadataCase_ == 6; } /** - * - * *
    * The pipeline metadata for Export-to-CDW pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; * @return The exportToCdwPipelineMetadata. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - getExportToCdwPipelineMetadata() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata getExportToCdwPipelineMetadata() { if (pipelineMetadataCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) - pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); } /** - * - * *
    * The pipeline metadata for Export-to-CDW pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadataOrBuilder - getExportToCdwPipelineMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder getExportToCdwPipelineMetadataOrBuilder() { if (pipelineMetadataCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) - pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); } public static final int PROCESS_WITH_DOC_AI_PIPELINE_METADATA_FIELD_NUMBER = 7; /** - * - * *
    * The pipeline metadata for Process-with-DocAi pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; * @return Whether the processWithDocAiPipelineMetadata field is set. */ @java.lang.Override public boolean hasProcessWithDocAiPipelineMetadata() { return pipelineMetadataCase_ == 7; } - /** - * - * + /** *
    * The pipeline metadata for Process-with-DocAi pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; * @return The processWithDocAiPipelineMetadata. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - getProcessWithDocAiPipelineMetadata() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata getProcessWithDocAiPipelineMetadata() { if (pipelineMetadataCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata) - pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); } /** - * - * *
    * The pipeline metadata for Process-with-DocAi pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadataOrBuilder - getProcessWithDocAiPipelineMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder getProcessWithDocAiPipelineMetadataOrBuilder() { if (pipelineMetadataCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata) - pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); } public static final int INDIVIDUAL_DOCUMENT_STATUSES_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus> - individualDocumentStatuses_; + private java.util.List individualDocumentStatuses_; /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ @java.lang.Override - public java.util.List< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus> - getIndividualDocumentStatusesList() { + public java.util.List getIndividualDocumentStatusesList() { return individualDocumentStatuses_; } /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .IndividualDocumentStatusOrBuilder> + public java.util.List getIndividualDocumentStatusesOrBuilderList() { return individualDocumentStatuses_; } /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ @java.lang.Override public int getIndividualDocumentStatusesCount() { return individualDocumentStatuses_.size(); } /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - getIndividualDocumentStatuses(int index) { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus getIndividualDocumentStatuses(int index) { return individualDocumentStatuses_.get(index); } /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder - getIndividualDocumentStatusesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder getIndividualDocumentStatusesOrBuilder( + int index) { return individualDocumentStatuses_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4524,7 +3843,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 (totalFileCount_ != 0) { output.writeInt32(1, totalFileCount_); } @@ -4535,26 +3855,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(3, getUserInfo()); } if (pipelineMetadataCase_ == 4) { - output.writeMessage( - 4, - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) - pipelineMetadata_); + output.writeMessage(4, (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_); } for (int i = 0; i < individualDocumentStatuses_.size(); i++) { output.writeMessage(5, individualDocumentStatuses_.get(i)); } if (pipelineMetadataCase_ == 6) { - output.writeMessage( - 6, - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) - pipelineMetadata_); + output.writeMessage(6, (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_); } if (pipelineMetadataCase_ == 7) { - output.writeMessage( - 7, - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata) - pipelineMetadata_); + output.writeMessage(7, (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_); } getUnknownFields().writeTo(output); } @@ -4566,40 +3876,32 @@ public int getSerializedSize() { size = 0; if (totalFileCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, totalFileCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, totalFileCount_); } if (failedFileCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, failedFileCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, failedFileCount_); } if (userInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUserInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUserInfo()); } if (pipelineMetadataCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) - pipelineMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_); } for (int i = 0; i < individualDocumentStatuses_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, individualDocumentStatuses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, individualDocumentStatuses_.get(i)); } if (pipelineMetadataCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) - pipelineMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_); } if (pipelineMetadataCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata) - pipelineMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4609,31 +3911,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.contentwarehouse.v1.RunPipelineMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata other = - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata) obj; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata other = (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata) obj; - if (getTotalFileCount() != other.getTotalFileCount()) return false; - if (getFailedFileCount() != other.getFailedFileCount()) return false; + if (getTotalFileCount() + != other.getTotalFileCount()) return false; + if (getFailedFileCount() + != other.getFailedFileCount()) 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 (!getIndividualDocumentStatusesList().equals(other.getIndividualDocumentStatusesList())) - return false; + if (!getIndividualDocumentStatusesList() + .equals(other.getIndividualDocumentStatusesList())) return false; if (!getPipelineMetadataCase().equals(other.getPipelineMetadataCase())) return false; switch (pipelineMetadataCase_) { case 4: - if (!getGcsIngestPipelineMetadata().equals(other.getGcsIngestPipelineMetadata())) - return false; + if (!getGcsIngestPipelineMetadata() + .equals(other.getGcsIngestPipelineMetadata())) return false; break; case 6: - if (!getExportToCdwPipelineMetadata().equals(other.getExportToCdwPipelineMetadata())) - return false; + if (!getExportToCdwPipelineMetadata() + .equals(other.getExportToCdwPipelineMetadata())) return false; break; case 7: if (!getProcessWithDocAiPipelineMetadata() @@ -4687,136 +3991,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 message of RunPipeline method.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata) com.google.cloud.contentwarehouse.v1.RunPipelineMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.class, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.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(); @@ -4850,9 +4149,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; } @java.lang.Override @@ -4871,23 +4170,18 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result = - new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata(this); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result) { if (individualDocumentStatusesBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { - individualDocumentStatuses_ = - java.util.Collections.unmodifiableList(individualDocumentStatuses_); + individualDocumentStatuses_ = java.util.Collections.unmodifiableList(individualDocumentStatuses_); bitField0_ = (bitField0_ & ~0x00000040); } result.individualDocumentStatuses_ = individualDocumentStatuses_; @@ -4905,21 +4199,25 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetad result.failedFileCount_ = failedFileCount_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); + result.userInfo_ = userInfoBuilder_ == null + ? userInfo_ + : userInfoBuilder_.build(); } } - private void buildPartialOneofs( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result) { + private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result) { result.pipelineMetadataCase_ = pipelineMetadataCase_; result.pipelineMetadata_ = this.pipelineMetadata_; - if (pipelineMetadataCase_ == 4 && gcsIngestPipelineMetadataBuilder_ != null) { + if (pipelineMetadataCase_ == 4 && + gcsIngestPipelineMetadataBuilder_ != null) { result.pipelineMetadata_ = gcsIngestPipelineMetadataBuilder_.build(); } - if (pipelineMetadataCase_ == 6 && exportToCdwPipelineMetadataBuilder_ != null) { + if (pipelineMetadataCase_ == 6 && + exportToCdwPipelineMetadataBuilder_ != null) { result.pipelineMetadata_ = exportToCdwPipelineMetadataBuilder_.build(); } - if (pipelineMetadataCase_ == 7 && processWithDocAiPipelineMetadataBuilder_ != null) { + if (pipelineMetadataCase_ == 7 && + processWithDocAiPipelineMetadataBuilder_ != null) { result.pipelineMetadata_ = processWithDocAiPipelineMetadataBuilder_.build(); } } @@ -4928,39 +4226,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.contentwarehouse.v1.RunPipelineMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata)other); } else { super.mergeFrom(other); return this; @@ -4968,8 +4265,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.getDefaultInstance()) return this; if (other.getTotalFileCount() != 0) { setTotalFileCount(other.getTotalFileCount()); } @@ -4997,35 +4293,30 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadat individualDocumentStatusesBuilder_ = null; individualDocumentStatuses_ = other.individualDocumentStatuses_; bitField0_ = (bitField0_ & ~0x00000040); - individualDocumentStatusesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIndividualDocumentStatusesFieldBuilder() - : null; + individualDocumentStatusesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIndividualDocumentStatusesFieldBuilder() : null; } else { individualDocumentStatusesBuilder_.addAllMessages(other.individualDocumentStatuses_); } } } switch (other.getPipelineMetadataCase()) { - case GCS_INGEST_PIPELINE_METADATA: - { - mergeGcsIngestPipelineMetadata(other.getGcsIngestPipelineMetadata()); - break; - } - case EXPORT_TO_CDW_PIPELINE_METADATA: - { - mergeExportToCdwPipelineMetadata(other.getExportToCdwPipelineMetadata()); - break; - } - case PROCESS_WITH_DOC_AI_PIPELINE_METADATA: - { - mergeProcessWithDocAiPipelineMetadata(other.getProcessWithDocAiPipelineMetadata()); - break; - } - case PIPELINEMETADATA_NOT_SET: - { - break; - } + case GCS_INGEST_PIPELINE_METADATA: { + mergeGcsIngestPipelineMetadata(other.getGcsIngestPipelineMetadata()); + break; + } + case EXPORT_TO_CDW_PIPELINE_METADATA: { + mergeExportToCdwPipelineMetadata(other.getExportToCdwPipelineMetadata()); + break; + } + case PROCESS_WITH_DOC_AI_PIPELINE_METADATA: { + mergeProcessWithDocAiPipelineMetadata(other.getProcessWithDocAiPipelineMetadata()); + break; + } + case PIPELINEMETADATA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -5053,69 +4344,63 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - totalFileCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - failedFileCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getGcsIngestPipelineMetadataFieldBuilder().getBuilder(), extensionRegistry); - pipelineMetadataCase_ = 4; - break; - } // case 34 - case 42: - { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .IndividualDocumentStatus.parser(), - extensionRegistry); - if (individualDocumentStatusesBuilder_ == null) { - ensureIndividualDocumentStatusesIsMutable(); - individualDocumentStatuses_.add(m); - } else { - individualDocumentStatusesBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - input.readMessage( - getExportToCdwPipelineMetadataFieldBuilder().getBuilder(), extensionRegistry); - pipelineMetadataCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage( - getProcessWithDocAiPipelineMetadataFieldBuilder().getBuilder(), - extensionRegistry); - pipelineMetadataCase_ = 7; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + totalFileCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + failedFileCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getUserInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getGcsIngestPipelineMetadataFieldBuilder().getBuilder(), + extensionRegistry); + pipelineMetadataCase_ = 4; + break; + } // case 34 + case 42: { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.parser(), + extensionRegistry); + if (individualDocumentStatusesBuilder_ == null) { + ensureIndividualDocumentStatusesIsMutable(); + individualDocumentStatuses_.add(m); + } else { + individualDocumentStatusesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + input.readMessage( + getExportToCdwPipelineMetadataFieldBuilder().getBuilder(), + extensionRegistry); + pipelineMetadataCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getProcessWithDocAiPipelineMetadataFieldBuilder().getBuilder(), + extensionRegistry); + pipelineMetadataCase_ = 7; + 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) { @@ -5125,12 +4410,12 @@ public Builder mergeFrom( } // finally return this; } - private int pipelineMetadataCase_ = 0; private java.lang.Object pipelineMetadata_; - - public PipelineMetadataCase getPipelineMetadataCase() { - return PipelineMetadataCase.forNumber(pipelineMetadataCase_); + public PipelineMetadataCase + getPipelineMetadataCase() { + return PipelineMetadataCase.forNumber( + pipelineMetadataCase_); } public Builder clearPipelineMetadata() { @@ -5142,16 +4427,13 @@ public Builder clearPipelineMetadata() { private int bitField0_; - private int totalFileCount_; + private int totalFileCount_ ; /** - * - * *
      * Number of files that were processed by the pipeline.
      * 
* * int32 total_file_count = 1; - * * @return The totalFileCount. */ @java.lang.Override @@ -5159,14 +4441,11 @@ public int getTotalFileCount() { return totalFileCount_; } /** - * - * *
      * Number of files that were processed by the pipeline.
      * 
* * int32 total_file_count = 1; - * * @param value The totalFileCount to set. * @return This builder for chaining. */ @@ -5178,14 +4457,11 @@ public Builder setTotalFileCount(int value) { return this; } /** - * - * *
      * Number of files that were processed by the pipeline.
      * 
* * int32 total_file_count = 1; - * * @return This builder for chaining. */ public Builder clearTotalFileCount() { @@ -5195,16 +4471,13 @@ public Builder clearTotalFileCount() { return this; } - private int failedFileCount_; + private int failedFileCount_ ; /** - * - * *
      * Number of files that have failed at some point in the pipeline.
      * 
* * int32 failed_file_count = 2; - * * @return The failedFileCount. */ @java.lang.Override @@ -5212,14 +4485,11 @@ public int getFailedFileCount() { return failedFileCount_; } /** - * - * *
      * Number of files that have failed at some point in the pipeline.
      * 
* * int32 failed_file_count = 2; - * * @param value The failedFileCount to set. * @return This builder for chaining. */ @@ -5231,14 +4501,11 @@ public Builder setFailedFileCount(int value) { return this; } /** - * - * *
      * Number of files that have failed at some point in the pipeline.
      * 
* * int32 failed_file_count = 2; - * * @return This builder for chaining. */ public Builder clearFailedFileCount() { @@ -5250,47 +4517,34 @@ public Builder clearFailedFileCount() { private com.google.cloud.contentwarehouse.v1.UserInfo userInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, - com.google.cloud.contentwarehouse.v1.UserInfo.Builder, - com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> - userInfoBuilder_; + com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> userInfoBuilder_; /** - * - * *
      * User unique identification and groups information.
      * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; - * * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * User unique identification and groups information.
      * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; - * * @return The userInfo. */ public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() { if (userInfoBuilder_ == null) { - return userInfo_ == null - ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; } else { return userInfoBuilder_.getMessage(); } } /** - * - * *
      * User unique identification and groups information.
      * 
@@ -5311,8 +4565,6 @@ public Builder setUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value) return this; } /** - * - * *
      * User unique identification and groups information.
      * 
@@ -5331,8 +4583,6 @@ public Builder setUserInfo( return this; } /** - * - * *
      * User unique identification and groups information.
      * 
@@ -5341,9 +4591,9 @@ public Builder setUserInfo( */ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value) { if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && userInfo_ != null - && userInfo_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + userInfo_ != null && + userInfo_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) { getUserInfoBuilder().mergeFrom(value); } else { userInfo_ = value; @@ -5356,8 +4606,6 @@ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value return this; } /** - * - * *
      * User unique identification and groups information.
      * 
@@ -5375,8 +4623,6 @@ public Builder clearUserInfo() { return this; } /** - * - * *
      * User unique identification and groups information.
      * 
@@ -5389,8 +4635,6 @@ public com.google.cloud.contentwarehouse.v1.UserInfo.Builder getUserInfoBuilder( return getUserInfoFieldBuilder().getBuilder(); } /** - * - * *
      * User unique identification and groups information.
      * 
@@ -5401,14 +4645,11 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuild if (userInfoBuilder_ != null) { return userInfoBuilder_.getMessageOrBuilder(); } else { - return userInfo_ == null - ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? + com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; } } /** - * - * *
      * User unique identification and groups information.
      * 
@@ -5416,40 +4657,27 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuild * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, - com.google.cloud.contentwarehouse.v1.UserInfo.Builder, - com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> getUserInfoFieldBuilder() { if (userInfoBuilder_ == null) { - userInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, - com.google.cloud.contentwarehouse.v1.UserInfo.Builder, - com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>( - getUserInfo(), getParentForChildren(), isClean()); + userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>( + getUserInfo(), + getParentForChildren(), + isClean()); userInfo_ = null; } return userInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .Builder, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .GcsIngestPipelineMetadataOrBuilder> - gcsIngestPipelineMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder> gcsIngestPipelineMetadataBuilder_; /** - * - * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; * @return Whether the gcsIngestPipelineMetadata field is set. */ @java.lang.Override @@ -5457,50 +4685,35 @@ public boolean hasGcsIngestPipelineMetadata() { return pipelineMetadataCase_ == 4; } /** - * - * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; * @return The gcsIngestPipelineMetadata. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - getGcsIngestPipelineMetadata() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata getGcsIngestPipelineMetadata() { if (gcsIngestPipelineMetadataBuilder_ == null) { if (pipelineMetadataCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .GcsIngestPipelineMetadata) - pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); } else { if (pipelineMetadataCase_ == 4) { return gcsIngestPipelineMetadataBuilder_.getMessage(); } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); } } /** - * - * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; */ - public Builder setGcsIngestPipelineMetadata( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata value) { + public Builder setGcsIngestPipelineMetadata(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata value) { if (gcsIngestPipelineMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5514,19 +4727,14 @@ public Builder setGcsIngestPipelineMetadata( return this; } /** - * - * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; */ public Builder setGcsIngestPipelineMetadata( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder - builderForValue) { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder builderForValue) { if (gcsIngestPipelineMetadataBuilder_ == null) { pipelineMetadata_ = builderForValue.build(); onChanged(); @@ -5537,31 +4745,18 @@ public Builder setGcsIngestPipelineMetadata( return this; } /** - * - * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; */ - public Builder mergeGcsIngestPipelineMetadata( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata value) { + public Builder mergeGcsIngestPipelineMetadata(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata value) { if (gcsIngestPipelineMetadataBuilder_ == null) { - if (pipelineMetadataCase_ == 4 - && pipelineMetadata_ - != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .GcsIngestPipelineMetadata.getDefaultInstance()) { - pipelineMetadata_ = - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .newBuilder( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .GcsIngestPipelineMetadata) - pipelineMetadata_) - .mergeFrom(value) - .buildPartial(); + if (pipelineMetadataCase_ == 4 && + pipelineMetadata_ != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance()) { + pipelineMetadata_ = com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.newBuilder((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_) + .mergeFrom(value).buildPartial(); } else { pipelineMetadata_ = value; } @@ -5577,15 +4772,11 @@ public Builder mergeGcsIngestPipelineMetadata( return this; } /** - * - * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; */ public Builder clearGcsIngestPipelineMetadata() { if (gcsIngestPipelineMetadataBuilder_ == null) { @@ -5604,81 +4795,50 @@ public Builder clearGcsIngestPipelineMetadata() { return this; } /** - * - * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .Builder - getGcsIngestPipelineMetadataBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder getGcsIngestPipelineMetadataBuilder() { return getGcsIngestPipelineMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .GcsIngestPipelineMetadataOrBuilder - getGcsIngestPipelineMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder getGcsIngestPipelineMetadataOrBuilder() { if ((pipelineMetadataCase_ == 4) && (gcsIngestPipelineMetadataBuilder_ != null)) { return gcsIngestPipelineMetadataBuilder_.getMessageOrBuilder(); } else { if (pipelineMetadataCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .GcsIngestPipelineMetadata) - pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); } } /** - * - * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .Builder, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .GcsIngestPipelineMetadataOrBuilder> + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder> getGcsIngestPipelineMetadataFieldBuilder() { if (gcsIngestPipelineMetadataBuilder_ == null) { if (!(pipelineMetadataCase_ == 4)) { - pipelineMetadata_ = - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .getDefaultInstance(); + pipelineMetadata_ = com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); } - gcsIngestPipelineMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - .Builder, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .GcsIngestPipelineMetadataOrBuilder>( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) - pipelineMetadata_, + gcsIngestPipelineMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder>( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_, getParentForChildren(), isClean()); pipelineMetadata_ = null; @@ -5689,23 +4849,13 @@ public Builder clearGcsIngestPipelineMetadata() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .Builder, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadataOrBuilder> - exportToCdwPipelineMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder> exportToCdwPipelineMetadataBuilder_; /** - * - * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; * @return Whether the exportToCdwPipelineMetadata field is set. */ @java.lang.Override @@ -5713,51 +4863,35 @@ public boolean hasExportToCdwPipelineMetadata() { return pipelineMetadataCase_ == 6; } /** - * - * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; * @return The exportToCdwPipelineMetadata. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - getExportToCdwPipelineMetadata() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata getExportToCdwPipelineMetadata() { if (exportToCdwPipelineMetadataBuilder_ == null) { if (pipelineMetadataCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata) - pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); } else { if (pipelineMetadataCase_ == 6) { return exportToCdwPipelineMetadataBuilder_.getMessage(); } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); } } /** - * - * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; */ - public Builder setExportToCdwPipelineMetadata( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - value) { + public Builder setExportToCdwPipelineMetadata(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata value) { if (exportToCdwPipelineMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5771,19 +4905,14 @@ public Builder setExportToCdwPipelineMetadata( return this; } /** - * - * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; */ public Builder setExportToCdwPipelineMetadata( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder - builderForValue) { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder builderForValue) { if (exportToCdwPipelineMetadataBuilder_ == null) { pipelineMetadata_ = builderForValue.build(); onChanged(); @@ -5794,32 +4923,18 @@ public Builder setExportToCdwPipelineMetadata( return this; } /** - * - * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; */ - public Builder mergeExportToCdwPipelineMetadata( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - value) { + public Builder mergeExportToCdwPipelineMetadata(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata value) { if (exportToCdwPipelineMetadataBuilder_ == null) { - if (pipelineMetadataCase_ == 6 - && pipelineMetadata_ - != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata.getDefaultInstance()) { - pipelineMetadata_ = - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .newBuilder( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata) - pipelineMetadata_) - .mergeFrom(value) - .buildPartial(); + if (pipelineMetadataCase_ == 6 && + pipelineMetadata_ != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance()) { + pipelineMetadata_ = com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.newBuilder((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_) + .mergeFrom(value).buildPartial(); } else { pipelineMetadata_ = value; } @@ -5835,15 +4950,11 @@ public Builder mergeExportToCdwPipelineMetadata( return this; } /** - * - * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; */ public Builder clearExportToCdwPipelineMetadata() { if (exportToCdwPipelineMetadataBuilder_ == null) { @@ -5862,83 +4973,50 @@ public Builder clearExportToCdwPipelineMetadata() { return this; } /** - * - * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .Builder - getExportToCdwPipelineMetadataBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder getExportToCdwPipelineMetadataBuilder() { return getExportToCdwPipelineMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadataOrBuilder - getExportToCdwPipelineMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder getExportToCdwPipelineMetadataOrBuilder() { if ((pipelineMetadataCase_ == 6) && (exportToCdwPipelineMetadataBuilder_ != null)) { return exportToCdwPipelineMetadataBuilder_.getMessageOrBuilder(); } else { if (pipelineMetadataCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata) - pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); } } /** - * - * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .Builder, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadataOrBuilder> + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder> getExportToCdwPipelineMetadataFieldBuilder() { if (exportToCdwPipelineMetadataBuilder_ == null) { if (!(pipelineMetadataCase_ == 6)) { - pipelineMetadata_ = - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .getDefaultInstance(); + pipelineMetadata_ = com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); } - exportToCdwPipelineMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - .Builder, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadataOrBuilder>( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ExportToCdwPipelineMetadata) - pipelineMetadata_, + exportToCdwPipelineMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder>( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_, getParentForChildren(), isClean()); pipelineMetadata_ = null; @@ -5949,24 +5027,13 @@ public Builder clearExportToCdwPipelineMetadata() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadataOrBuilder> - processWithDocAiPipelineMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder> processWithDocAiPipelineMetadataBuilder_; /** - * - * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; * @return Whether the processWithDocAiPipelineMetadata field is set. */ @java.lang.Override @@ -5974,51 +5041,35 @@ public boolean hasProcessWithDocAiPipelineMetadata() { return pipelineMetadataCase_ == 7; } /** - * - * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; * @return The processWithDocAiPipelineMetadata. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - getProcessWithDocAiPipelineMetadata() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata getProcessWithDocAiPipelineMetadata() { if (processWithDocAiPipelineMetadataBuilder_ == null) { if (pipelineMetadataCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata) - pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); } else { if (pipelineMetadataCase_ == 7) { return processWithDocAiPipelineMetadataBuilder_.getMessage(); } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); } } /** - * - * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; */ - public Builder setProcessWithDocAiPipelineMetadata( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - value) { + public Builder setProcessWithDocAiPipelineMetadata(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata value) { if (processWithDocAiPipelineMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6032,20 +5083,14 @@ public Builder setProcessWithDocAiPipelineMetadata( return this; } /** - * - * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; */ public Builder setProcessWithDocAiPipelineMetadata( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - .Builder - builderForValue) { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder builderForValue) { if (processWithDocAiPipelineMetadataBuilder_ == null) { pipelineMetadata_ = builderForValue.build(); onChanged(); @@ -6056,32 +5101,18 @@ public Builder setProcessWithDocAiPipelineMetadata( return this; } /** - * - * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; */ - public Builder mergeProcessWithDocAiPipelineMetadata( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - value) { + public Builder mergeProcessWithDocAiPipelineMetadata(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata value) { if (processWithDocAiPipelineMetadataBuilder_ == null) { - if (pipelineMetadataCase_ == 7 - && pipelineMetadata_ - != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.getDefaultInstance()) { - pipelineMetadata_ = - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.newBuilder( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata) - pipelineMetadata_) - .mergeFrom(value) - .buildPartial(); + if (pipelineMetadataCase_ == 7 && + pipelineMetadata_ != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance()) { + pipelineMetadata_ = com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.newBuilder((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_) + .mergeFrom(value).buildPartial(); } else { pipelineMetadata_ = value; } @@ -6097,15 +5128,11 @@ public Builder mergeProcessWithDocAiPipelineMetadata( return this; } /** - * - * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; */ public Builder clearProcessWithDocAiPipelineMetadata() { if (processWithDocAiPipelineMetadataBuilder_ == null) { @@ -6124,84 +5151,50 @@ public Builder clearProcessWithDocAiPipelineMetadata() { return this; } /** - * - * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - .Builder - getProcessWithDocAiPipelineMetadataBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder getProcessWithDocAiPipelineMetadataBuilder() { return getProcessWithDocAiPipelineMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadataOrBuilder - getProcessWithDocAiPipelineMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder getProcessWithDocAiPipelineMetadataOrBuilder() { if ((pipelineMetadataCase_ == 7) && (processWithDocAiPipelineMetadataBuilder_ != null)) { return processWithDocAiPipelineMetadataBuilder_.getMessageOrBuilder(); } else { if (pipelineMetadataCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata) - pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); } } /** - * - * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadataOrBuilder> + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder> getProcessWithDocAiPipelineMetadataFieldBuilder() { if (processWithDocAiPipelineMetadataBuilder_ == null) { if (!(pipelineMetadataCase_ == 7)) { - pipelineMetadata_ = - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.getDefaultInstance(); + pipelineMetadata_ = com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); } - processWithDocAiPipelineMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadataOrBuilder>( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .ProcessWithDocAiPipelineMetadata) - pipelineMetadata_, + processWithDocAiPipelineMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder>( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_, getParentForChildren(), isClean()); pipelineMetadata_ = null; @@ -6211,42 +5204,26 @@ public Builder clearProcessWithDocAiPipelineMetadata() { return processWithDocAiPipelineMetadataBuilder_; } - private java.util.List< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus> - individualDocumentStatuses_ = java.util.Collections.emptyList(); - + private java.util.List individualDocumentStatuses_ = + java.util.Collections.emptyList(); private void ensureIndividualDocumentStatusesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { - individualDocumentStatuses_ = - new java.util.ArrayList< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus>( - individualDocumentStatuses_); + individualDocumentStatuses_ = new java.util.ArrayList(individualDocumentStatuses_); bitField0_ |= 0x00000040; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - .Builder, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .IndividualDocumentStatusOrBuilder> - individualDocumentStatusesBuilder_; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder> individualDocumentStatusesBuilder_; /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - public java.util.List< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus> - getIndividualDocumentStatusesList() { + public java.util.List getIndividualDocumentStatusesList() { if (individualDocumentStatusesBuilder_ == null) { return java.util.Collections.unmodifiableList(individualDocumentStatuses_); } else { @@ -6254,15 +5231,11 @@ private void ensureIndividualDocumentStatusesIsMutable() { } } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ public int getIndividualDocumentStatusesCount() { if (individualDocumentStatusesBuilder_ == null) { @@ -6272,18 +5245,13 @@ public int getIndividualDocumentStatusesCount() { } } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - getIndividualDocumentStatuses(int index) { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus getIndividualDocumentStatuses(int index) { if (individualDocumentStatusesBuilder_ == null) { return individualDocumentStatuses_.get(index); } else { @@ -6291,19 +5259,14 @@ public int getIndividualDocumentStatusesCount() { } } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ public Builder setIndividualDocumentStatuses( - int index, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) { + int index, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) { if (individualDocumentStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6317,20 +5280,14 @@ public Builder setIndividualDocumentStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ public Builder setIndividualDocumentStatuses( - int index, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder - builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder builderForValue) { if (individualDocumentStatusesBuilder_ == null) { ensureIndividualDocumentStatusesIsMutable(); individualDocumentStatuses_.set(index, builderForValue.build()); @@ -6341,18 +5298,13 @@ public Builder setIndividualDocumentStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - public Builder addIndividualDocumentStatuses( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) { + public Builder addIndividualDocumentStatuses(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) { if (individualDocumentStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6366,19 +5318,14 @@ public Builder addIndividualDocumentStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ public Builder addIndividualDocumentStatuses( - int index, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) { + int index, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) { if (individualDocumentStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6392,19 +5339,14 @@ public Builder addIndividualDocumentStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ public Builder addIndividualDocumentStatuses( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder - builderForValue) { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder builderForValue) { if (individualDocumentStatusesBuilder_ == null) { ensureIndividualDocumentStatusesIsMutable(); individualDocumentStatuses_.add(builderForValue.build()); @@ -6415,20 +5357,14 @@ public Builder addIndividualDocumentStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ public Builder addIndividualDocumentStatuses( - int index, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder - builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder builderForValue) { if (individualDocumentStatusesBuilder_ == null) { ensureIndividualDocumentStatusesIsMutable(); individualDocumentStatuses_.add(index, builderForValue.build()); @@ -6439,25 +5375,18 @@ public Builder addIndividualDocumentStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ public Builder addAllIndividualDocumentStatuses( - java.lang.Iterable< - ? extends - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .IndividualDocumentStatus> - values) { + java.lang.Iterable values) { if (individualDocumentStatusesBuilder_ == null) { ensureIndividualDocumentStatusesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, individualDocumentStatuses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, individualDocumentStatuses_); onChanged(); } else { individualDocumentStatusesBuilder_.addAllMessages(values); @@ -6465,15 +5394,11 @@ public Builder addAllIndividualDocumentStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ public Builder clearIndividualDocumentStatuses() { if (individualDocumentStatusesBuilder_ == null) { @@ -6486,15 +5411,11 @@ public Builder clearIndividualDocumentStatuses() { return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ public Builder removeIndividualDocumentStatuses(int index) { if (individualDocumentStatusesBuilder_ == null) { @@ -6507,56 +5428,39 @@ public Builder removeIndividualDocumentStatuses(int index) { return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder - getIndividualDocumentStatusesBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder getIndividualDocumentStatusesBuilder( + int index) { return getIndividualDocumentStatusesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .IndividualDocumentStatusOrBuilder - getIndividualDocumentStatusesOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder getIndividualDocumentStatusesOrBuilder( + int index) { if (individualDocumentStatusesBuilder_ == null) { - return individualDocumentStatuses_.get(index); - } else { + return individualDocumentStatuses_.get(index); } else { return individualDocumentStatusesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - public java.util.List< - ? extends - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .IndividualDocumentStatusOrBuilder> - getIndividualDocumentStatusesOrBuilderList() { + public java.util.List + getIndividualDocumentStatusesOrBuilderList() { if (individualDocumentStatusesBuilder_ != null) { return individualDocumentStatusesBuilder_.getMessageOrBuilderList(); } else { @@ -6564,75 +5468,45 @@ public Builder removeIndividualDocumentStatuses(int index) { } } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder - addIndividualDocumentStatusesBuilder() { - return getIndividualDocumentStatusesFieldBuilder() - .addBuilder( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - .getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder addIndividualDocumentStatusesBuilder() { + return getIndividualDocumentStatusesFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.getDefaultInstance()); } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder - addIndividualDocumentStatusesBuilder(int index) { - return getIndividualDocumentStatusesFieldBuilder() - .addBuilder( - index, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - .getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder addIndividualDocumentStatusesBuilder( + int index) { + return getIndividualDocumentStatusesFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.getDefaultInstance()); } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - public java.util.List< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - .Builder> - getIndividualDocumentStatusesBuilderList() { + public java.util.List + getIndividualDocumentStatusesBuilderList() { return getIndividualDocumentStatusesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - .Builder, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .IndividualDocumentStatusOrBuilder> + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder> getIndividualDocumentStatusesFieldBuilder() { if (individualDocumentStatusesBuilder_ == null) { - individualDocumentStatusesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - .Builder, - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .IndividualDocumentStatusOrBuilder>( + individualDocumentStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder>( individualDocumentStatuses_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), @@ -6641,9 +5515,9 @@ public Builder removeIndividualDocumentStatuses(int index) { } return individualDocumentStatusesBuilder_; } - @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); } @@ -6653,12 +5527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata) private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata(); } @@ -6667,27 +5541,27 @@ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunPipelineMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RunPipelineMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6702,4 +5576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java similarity index 51% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java index 9dfec5393bb6..9506006d1f71 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java @@ -1,81 +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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface RunPipelineMetadataOrBuilder - extends +public interface RunPipelineMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Number of files that were processed by the pipeline.
    * 
* * int32 total_file_count = 1; - * * @return The totalFileCount. */ int getTotalFileCount(); /** - * - * *
    * Number of files that have failed at some point in the pipeline.
    * 
* * int32 failed_file_count = 2; - * * @return The failedFileCount. */ int getFailedFileCount(); /** - * - * *
    * User unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; - * * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** - * - * *
    * User unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; - * * @return The userInfo. */ com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo(); /** - * - * *
    * User unique identification and groups information.
    * 
@@ -85,202 +55,129 @@ public interface RunPipelineMetadataOrBuilder com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuilder(); /** - * - * *
    * The pipeline metadata for GcsIngest pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; * @return Whether the gcsIngestPipelineMetadata field is set. */ boolean hasGcsIngestPipelineMetadata(); /** - * - * *
    * The pipeline metadata for GcsIngest pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; * @return The gcsIngestPipelineMetadata. */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata - getGcsIngestPipelineMetadata(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata getGcsIngestPipelineMetadata(); /** - * - * *
    * The pipeline metadata for GcsIngest pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder - getGcsIngestPipelineMetadataOrBuilder(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder getGcsIngestPipelineMetadataOrBuilder(); /** - * - * *
    * The pipeline metadata for Export-to-CDW pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; * @return Whether the exportToCdwPipelineMetadata field is set. */ boolean hasExportToCdwPipelineMetadata(); /** - * - * *
    * The pipeline metadata for Export-to-CDW pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; * @return The exportToCdwPipelineMetadata. */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata - getExportToCdwPipelineMetadata(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata getExportToCdwPipelineMetadata(); /** - * - * *
    * The pipeline metadata for Export-to-CDW pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder - getExportToCdwPipelineMetadataOrBuilder(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder getExportToCdwPipelineMetadataOrBuilder(); /** - * - * *
    * The pipeline metadata for Process-with-DocAi pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; * @return Whether the processWithDocAiPipelineMetadata field is set. */ boolean hasProcessWithDocAiPipelineMetadata(); /** - * - * *
    * The pipeline metadata for Process-with-DocAi pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; * @return The processWithDocAiPipelineMetadata. */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata - getProcessWithDocAiPipelineMetadata(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata getProcessWithDocAiPipelineMetadata(); /** - * - * *
    * The pipeline metadata for Process-with-DocAi pipeline.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; - * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder - getProcessWithDocAiPipelineMetadataOrBuilder(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder getProcessWithDocAiPipelineMetadataOrBuilder(); /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - java.util.List + java.util.List getIndividualDocumentStatusesList(); /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus - getIndividualDocumentStatuses(int index); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus getIndividualDocumentStatuses(int index); /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ int getIndividualDocumentStatusesCount(); /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - java.util.List< - ? extends - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata - .IndividualDocumentStatusOrBuilder> + java.util.List getIndividualDocumentStatusesOrBuilderList(); /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; - * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder - getIndividualDocumentStatusesOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder getIndividualDocumentStatusesOrBuilder( + int index); - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.PipelineMetadataCase - getPipelineMetadataCase(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.PipelineMetadataCase getPipelineMetadataCase(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java similarity index 65% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java index a734e647111e..171cb17e2ee4 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java @@ -1,75 +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/contentwarehouse/v1/pipeline_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentService.RunPipeline.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineRequest} */ -public final class RunPipelineRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RunPipelineRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineRequest) RunPipelineRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RunPipelineRequest.newBuilder() to construct. private RunPipelineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RunPipelineRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RunPipelineRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelineServiceProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelineServiceProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelineServiceProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelineServiceProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class, - com.google.cloud.contentwarehouse.v1.RunPipelineRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class, com.google.cloud.contentwarehouse.v1.RunPipelineRequest.Builder.class); } private int pipelineCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object pipeline_; - public enum PipelineCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_INGEST_PIPELINE(2), GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE(3), @@ -77,7 +55,6 @@ public enum PipelineCase PROCESS_WITH_DOC_AI_PIPELINE(5), PIPELINE_NOT_SET(0); private final int value; - private PipelineCase(int value) { this.value = value; } @@ -93,46 +70,35 @@ public static PipelineCase valueOf(int value) { public static PipelineCase forNumber(int value) { switch (value) { - case 2: - return GCS_INGEST_PIPELINE; - case 3: - return GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE; - case 4: - return EXPORT_CDW_PIPELINE; - case 5: - return PROCESS_WITH_DOC_AI_PIPELINE; - case 0: - return PIPELINE_NOT_SET; - default: - return null; + case 2: return GCS_INGEST_PIPELINE; + case 3: return GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE; + case 4: return EXPORT_CDW_PIPELINE; + case 5: return PROCESS_WITH_DOC_AI_PIPELINE; + case 0: return PIPELINE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public PipelineCase getPipelineCase() { - return PipelineCase.forNumber(pipelineCase_); + public PipelineCase + getPipelineCase() { + return PipelineCase.forNumber( + pipelineCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name which owns the resources of the pipeline.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * 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 @@ -141,32 +107,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 which owns the resources of the pipeline.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * 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 { @@ -176,14 +140,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int GCS_INGEST_PIPELINE_FIELD_NUMBER = 2; /** - * - * *
    * Cloud Storage ingestion pipeline.
    * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; - * * @return Whether the gcsIngestPipeline field is set. */ @java.lang.Override @@ -191,26 +152,21 @@ public boolean hasGcsIngestPipeline() { return pipelineCase_ == 2; } /** - * - * *
    * Cloud Storage ingestion pipeline.
    * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; - * * @return The gcsIngestPipeline. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getGcsIngestPipeline() { if (pipelineCase_ == 2) { - return (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_; } return com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance(); } /** - * - * *
    * Cloud Storage ingestion pipeline.
    * 
@@ -218,27 +174,21 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getGcsIngestPipeli * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder - getGcsIngestPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder getGcsIngestPipelineOrBuilder() { if (pipelineCase_ == 2) { - return (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_; } return com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance(); } public static final int GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE_FIELD_NUMBER = 3; /** - * - * *
    * Use DocAI processors to process documents in Cloud Storage and ingest
    * them to Document Warehouse.
    * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; * @return Whether the gcsIngestWithDocAiProcessorsPipeline field is set. */ @java.lang.Override @@ -246,60 +196,44 @@ public boolean hasGcsIngestWithDocAiProcessorsPipeline() { return pipelineCase_ == 3; } /** - * - * *
    * Use DocAI processors to process documents in Cloud Storage and ingest
    * them to Document Warehouse.
    * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; * @return The gcsIngestWithDocAiProcessorsPipeline. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - getGcsIngestWithDocAiProcessorsPipeline() { + public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline getGcsIngestWithDocAiProcessorsPipeline() { if (pipelineCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_; } - return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance(); } /** - * - * *
    * Use DocAI processors to process documents in Cloud Storage and ingest
    * them to Document Warehouse.
    * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder - getGcsIngestWithDocAiProcessorsPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder getGcsIngestWithDocAiProcessorsPipelineOrBuilder() { if (pipelineCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_; } - return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance(); } public static final int EXPORT_CDW_PIPELINE_FIELD_NUMBER = 4; /** - * - * *
    * Export docuemnts from Document Warehouse to CDW for training purpose.
    * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; - * * @return Whether the exportCdwPipeline field is set. */ @java.lang.Override @@ -307,26 +241,21 @@ public boolean hasExportCdwPipeline() { return pipelineCase_ == 4; } /** - * - * *
    * Export docuemnts from Document Warehouse to CDW for training purpose.
    * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; - * * @return The exportCdwPipeline. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getExportCdwPipeline() { if (pipelineCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_; } return com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance(); } /** - * - * *
    * Export docuemnts from Document Warehouse to CDW for training purpose.
    * 
@@ -334,27 +263,21 @@ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getExportCdwPipe * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder - getExportCdwPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder getExportCdwPipelineOrBuilder() { if (pipelineCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_; } return com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance(); } public static final int PROCESS_WITH_DOC_AI_PIPELINE_FIELD_NUMBER = 5; /** - * - * *
    * Use a DocAI processor to process documents in Document Warehouse, and
    * re-ingest the updated results into Document Warehouse.
    * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; * @return Whether the processWithDocAiPipeline field is set. */ @java.lang.Override @@ -362,44 +285,33 @@ public boolean hasProcessWithDocAiPipeline() { return pipelineCase_ == 5; } /** - * - * *
    * Use a DocAI processor to process documents in Document Warehouse, and
    * re-ingest the updated results into Document Warehouse.
    * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; * @return The processWithDocAiPipeline. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline - getProcessWithDocAiPipeline() { + public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getProcessWithDocAiPipeline() { if (pipelineCase_ == 5) { - return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_; } return com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance(); } /** - * - * *
    * Use a DocAI processor to process documents in Document Warehouse, and
    * re-ingest the updated results into Document Warehouse.
    * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder - getProcessWithDocAiPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder getProcessWithDocAiPipelineOrBuilder() { if (pipelineCase_ == 5) { - return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_; } return com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance(); } @@ -407,15 +319,12 @@ public boolean hasProcessWithDocAiPipeline() { public static final int REQUEST_METADATA_FIELD_NUMBER = 6; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6; - * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -423,26 +332,19 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6; - * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -451,15 +353,11 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-      getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-        : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -471,7 +369,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_);
     }
@@ -479,15 +378,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
       output.writeMessage(2, (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_);
     }
     if (pipelineCase_ == 3) {
-      output.writeMessage(
-          3, (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_);
+      output.writeMessage(3, (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_);
     }
     if (pipelineCase_ == 4) {
       output.writeMessage(4, (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_);
     }
     if (pipelineCase_ == 5) {
-      output.writeMessage(
-          5, (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_);
+      output.writeMessage(5, (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_);
     }
     if (requestMetadata_ != null) {
       output.writeMessage(6, getRequestMetadata());
@@ -505,29 +402,24 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (pipelineCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_);
     }
     if (pipelineCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3,
-              (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
-                  pipeline_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_);
     }
     if (pipelineCase_ == 4) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              4, (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_);
     }
     if (pipelineCase_ == 5) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              5, (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_);
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getRequestMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -537,34 +429,37 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.contentwarehouse.v1.RunPipelineRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.RunPipelineRequest other =
-        (com.google.cloud.contentwarehouse.v1.RunPipelineRequest) obj;
+    com.google.cloud.contentwarehouse.v1.RunPipelineRequest other = (com.google.cloud.contentwarehouse.v1.RunPipelineRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata()
+          .equals(other.getRequestMetadata())) return false;
     }
     if (!getPipelineCase().equals(other.getPipelineCase())) return false;
     switch (pipelineCase_) {
       case 2:
-        if (!getGcsIngestPipeline().equals(other.getGcsIngestPipeline())) return false;
+        if (!getGcsIngestPipeline()
+            .equals(other.getGcsIngestPipeline())) return false;
         break;
       case 3:
         if (!getGcsIngestWithDocAiProcessorsPipeline()
             .equals(other.getGcsIngestWithDocAiProcessorsPipeline())) return false;
         break;
       case 4:
-        if (!getExportCdwPipeline().equals(other.getExportCdwPipeline())) return false;
+        if (!getExportCdwPipeline()
+            .equals(other.getExportCdwPipeline())) return false;
         break;
       case 5:
-        if (!getProcessWithDocAiPipeline().equals(other.getProcessWithDocAiPipeline()))
-          return false;
+        if (!getProcessWithDocAiPipeline()
+            .equals(other.getProcessWithDocAiPipeline())) return false;
         break;
       case 0:
       default:
@@ -612,136 +507,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest 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.contentwarehouse.v1.RunPipelineRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest 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.contentwarehouse.v1.RunPipelineRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.RunPipelineRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RunPipelineRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder 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.RunPipeline.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineRequest) com.google.cloud.contentwarehouse.v1.RunPipelineRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelineServiceProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelineServiceProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelineServiceProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelineServiceProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class, - com.google.cloud.contentwarehouse.v1.RunPipelineRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class, com.google.cloud.contentwarehouse.v1.RunPipelineRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineRequest.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(); @@ -770,9 +660,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelineServiceProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelineServiceProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor; } @java.lang.Override @@ -791,11 +681,8 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RunPipelineRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineRequest result = - new com.google.cloud.contentwarehouse.v1.RunPipelineRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.RunPipelineRequest result = new com.google.cloud.contentwarehouse.v1.RunPipelineRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -807,25 +694,29 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineReque result.name_ = name_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.requestMetadata_ = - requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + result.requestMetadata_ = requestMetadataBuilder_ == null + ? requestMetadata_ + : requestMetadataBuilder_.build(); } } - private void buildPartialOneofs( - com.google.cloud.contentwarehouse.v1.RunPipelineRequest result) { + private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.RunPipelineRequest result) { result.pipelineCase_ = pipelineCase_; result.pipeline_ = this.pipeline_; - if (pipelineCase_ == 2 && gcsIngestPipelineBuilder_ != null) { + if (pipelineCase_ == 2 && + gcsIngestPipelineBuilder_ != null) { result.pipeline_ = gcsIngestPipelineBuilder_.build(); } - if (pipelineCase_ == 3 && gcsIngestWithDocAiProcessorsPipelineBuilder_ != null) { + if (pipelineCase_ == 3 && + gcsIngestWithDocAiProcessorsPipelineBuilder_ != null) { result.pipeline_ = gcsIngestWithDocAiProcessorsPipelineBuilder_.build(); } - if (pipelineCase_ == 4 && exportCdwPipelineBuilder_ != null) { + if (pipelineCase_ == 4 && + exportCdwPipelineBuilder_ != null) { result.pipeline_ = exportCdwPipelineBuilder_.build(); } - if (pipelineCase_ == 5 && processWithDocAiPipelineBuilder_ != null) { + if (pipelineCase_ == 5 && + processWithDocAiPipelineBuilder_ != null) { result.pipeline_ = processWithDocAiPipelineBuilder_.build(); } } @@ -834,39 +725,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.contentwarehouse.v1.RunPipelineRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineRequest)other); } else { super.mergeFrom(other); return this; @@ -874,8 +764,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.RunPipelineRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.RunPipelineRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -885,31 +774,25 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineRequest mergeRequestMetadata(other.getRequestMetadata()); } switch (other.getPipelineCase()) { - case GCS_INGEST_PIPELINE: - { - mergeGcsIngestPipeline(other.getGcsIngestPipeline()); - break; - } - case GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE: - { - mergeGcsIngestWithDocAiProcessorsPipeline( - other.getGcsIngestWithDocAiProcessorsPipeline()); - break; - } - case EXPORT_CDW_PIPELINE: - { - mergeExportCdwPipeline(other.getExportCdwPipeline()); - break; - } - case PROCESS_WITH_DOC_AI_PIPELINE: - { - mergeProcessWithDocAiPipeline(other.getProcessWithDocAiPipeline()); - break; - } - case PIPELINE_NOT_SET: - { - break; - } + case GCS_INGEST_PIPELINE: { + mergeGcsIngestPipeline(other.getGcsIngestPipeline()); + break; + } + case GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE: { + mergeGcsIngestWithDocAiProcessorsPipeline(other.getGcsIngestWithDocAiProcessorsPipeline()); + break; + } + case EXPORT_CDW_PIPELINE: { + mergeExportCdwPipeline(other.getExportCdwPipeline()); + break; + } + case PROCESS_WITH_DOC_AI_PIPELINE: { + mergeProcessWithDocAiPipeline(other.getProcessWithDocAiPipeline()); + break; + } + case PIPELINE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -937,54 +820,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getGcsIngestPipelineFieldBuilder().getBuilder(), extensionRegistry); - pipelineCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - getGcsIngestWithDocAiProcessorsPipelineFieldBuilder().getBuilder(), - extensionRegistry); - pipelineCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - getExportCdwPipelineFieldBuilder().getBuilder(), extensionRegistry); - pipelineCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage( - getProcessWithDocAiPipelineFieldBuilder().getBuilder(), extensionRegistry); - pipelineCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getRequestMetadataFieldBuilder().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 18: { + input.readMessage( + getGcsIngestPipelineFieldBuilder().getBuilder(), + extensionRegistry); + pipelineCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getGcsIngestWithDocAiProcessorsPipelineFieldBuilder().getBuilder(), + extensionRegistry); + pipelineCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getExportCdwPipelineFieldBuilder().getBuilder(), + extensionRegistry); + pipelineCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getProcessWithDocAiPipelineFieldBuilder().getBuilder(), + extensionRegistry); + pipelineCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getRequestMetadataFieldBuilder().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) { @@ -994,12 +875,12 @@ public Builder mergeFrom( } // finally return this; } - private int pipelineCase_ = 0; private java.lang.Object pipeline_; - - public PipelineCase getPipelineCase() { - return PipelineCase.forNumber(pipelineCase_); + public PipelineCase + getPipelineCase() { + return PipelineCase.forNumber( + pipelineCase_); } public Builder clearPipeline() { @@ -1013,23 +894,19 @@ public Builder clearPipeline() { private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name which owns the resources of the pipeline.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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; @@ -1038,24 +915,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name which owns the resources of the pipeline.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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 { @@ -1063,41 +937,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name which owns the resources of the pipeline.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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 which owns the resources of the pipeline.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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() { @@ -1107,24 +970,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name which owns the resources of the pipeline.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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; @@ -1133,19 +990,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline, - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder, - com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder> - gcsIngestPipelineBuilder_; + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline, com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder, com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder> gcsIngestPipelineBuilder_; /** - * - * *
      * Cloud Storage ingestion pipeline.
      * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; - * * @return Whether the gcsIngestPipeline field is set. */ @java.lang.Override @@ -1153,14 +1004,11 @@ public boolean hasGcsIngestPipeline() { return pipelineCase_ == 2; } /** - * - * *
      * Cloud Storage ingestion pipeline.
      * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; - * * @return The gcsIngestPipeline. */ @java.lang.Override @@ -1178,16 +1026,13 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getGcsIngestPipeli } } /** - * - * *
      * Cloud Storage ingestion pipeline.
      * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; */ - public Builder setGcsIngestPipeline( - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline value) { + public Builder setGcsIngestPipeline(com.google.cloud.contentwarehouse.v1.GcsIngestPipeline value) { if (gcsIngestPipelineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1201,8 +1046,6 @@ public Builder setGcsIngestPipeline( return this; } /** - * - * *
      * Cloud Storage ingestion pipeline.
      * 
@@ -1221,25 +1064,18 @@ public Builder setGcsIngestPipeline( return this; } /** - * - * *
      * Cloud Storage ingestion pipeline.
      * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; */ - public Builder mergeGcsIngestPipeline( - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline value) { + public Builder mergeGcsIngestPipeline(com.google.cloud.contentwarehouse.v1.GcsIngestPipeline value) { if (gcsIngestPipelineBuilder_ == null) { - if (pipelineCase_ == 2 - && pipeline_ - != com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance()) { - pipeline_ = - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.newBuilder( - (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_) - .mergeFrom(value) - .buildPartial(); + if (pipelineCase_ == 2 && + pipeline_ != com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance()) { + pipeline_ = com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.newBuilder((com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_) + .mergeFrom(value).buildPartial(); } else { pipeline_ = value; } @@ -1255,8 +1091,6 @@ public Builder mergeGcsIngestPipeline( return this; } /** - * - * *
      * Cloud Storage ingestion pipeline.
      * 
@@ -1280,21 +1114,16 @@ public Builder clearGcsIngestPipeline() { return this; } /** - * - * *
      * Cloud Storage ingestion pipeline.
      * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; */ - public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder - getGcsIngestPipelineBuilder() { + public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder getGcsIngestPipelineBuilder() { return getGcsIngestPipelineFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Storage ingestion pipeline.
      * 
@@ -1302,8 +1131,7 @@ public Builder clearGcsIngestPipeline() { * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder - getGcsIngestPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder getGcsIngestPipelineOrBuilder() { if ((pipelineCase_ == 2) && (gcsIngestPipelineBuilder_ != null)) { return gcsIngestPipelineBuilder_.getMessageOrBuilder(); } else { @@ -1314,8 +1142,6 @@ public Builder clearGcsIngestPipeline() { } } /** - * - * *
      * Cloud Storage ingestion pipeline.
      * 
@@ -1323,19 +1149,14 @@ public Builder clearGcsIngestPipeline() { * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline, - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder, - com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder> + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline, com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder, com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder> getGcsIngestPipelineFieldBuilder() { if (gcsIngestPipelineBuilder_ == null) { if (!(pipelineCase_ == 2)) { pipeline_ = com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance(); } - gcsIngestPipelineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline, - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder, - com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder>( + gcsIngestPipelineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline, com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder, com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder>( (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_, getParentForChildren(), isClean()); @@ -1347,22 +1168,14 @@ public Builder clearGcsIngestPipeline() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline, - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder, - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder> - gcsIngestWithDocAiProcessorsPipelineBuilder_; + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder> gcsIngestWithDocAiProcessorsPipelineBuilder_; /** - * - * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; * @return Whether the gcsIngestWithDocAiProcessorsPipeline field is set. */ @java.lang.Override @@ -1370,51 +1183,37 @@ public boolean hasGcsIngestWithDocAiProcessorsPipeline() { return pipelineCase_ == 3; } /** - * - * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; * @return The gcsIngestWithDocAiProcessorsPipeline. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - getGcsIngestWithDocAiProcessorsPipeline() { + public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline getGcsIngestWithDocAiProcessorsPipeline() { if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) { if (pipelineCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) - pipeline_; + return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_; } - return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance(); } else { if (pipelineCase_ == 3) { return gcsIngestWithDocAiProcessorsPipelineBuilder_.getMessage(); } - return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance(); } } /** - * - * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; */ - public Builder setGcsIngestWithDocAiProcessorsPipeline( - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline value) { + public Builder setGcsIngestWithDocAiProcessorsPipeline(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline value) { if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1428,20 +1227,15 @@ public Builder setGcsIngestWithDocAiProcessorsPipeline( return this; } /** - * - * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; */ public Builder setGcsIngestWithDocAiProcessorsPipeline( - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder - builderForValue) { + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder builderForValue) { if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) { pipeline_ = builderForValue.build(); onChanged(); @@ -1452,30 +1246,19 @@ public Builder setGcsIngestWithDocAiProcessorsPipeline( return this; } /** - * - * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; */ - public Builder mergeGcsIngestWithDocAiProcessorsPipeline( - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline value) { + public Builder mergeGcsIngestWithDocAiProcessorsPipeline(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline value) { if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) { - if (pipelineCase_ == 3 - && pipeline_ - != com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - .getDefaultInstance()) { - pipeline_ = - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.newBuilder( - (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) - pipeline_) - .mergeFrom(value) - .buildPartial(); + if (pipelineCase_ == 3 && + pipeline_ != com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance()) { + pipeline_ = com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.newBuilder((com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_) + .mergeFrom(value).buildPartial(); } else { pipeline_ = value; } @@ -1491,16 +1274,12 @@ public Builder mergeGcsIngestWithDocAiProcessorsPipeline( return this; } /** - * - * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; */ public Builder clearGcsIngestWithDocAiProcessorsPipeline() { if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) { @@ -1519,77 +1298,53 @@ public Builder clearGcsIngestWithDocAiProcessorsPipeline() { return this; } /** - * - * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; */ - public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder - getGcsIngestWithDocAiProcessorsPipelineBuilder() { + public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder getGcsIngestWithDocAiProcessorsPipelineBuilder() { return getGcsIngestWithDocAiProcessorsPipelineFieldBuilder().getBuilder(); } /** - * - * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder - getGcsIngestWithDocAiProcessorsPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder getGcsIngestWithDocAiProcessorsPipelineOrBuilder() { if ((pipelineCase_ == 3) && (gcsIngestWithDocAiProcessorsPipelineBuilder_ != null)) { return gcsIngestWithDocAiProcessorsPipelineBuilder_.getMessageOrBuilder(); } else { if (pipelineCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) - pipeline_; + return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_; } - return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - .getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance(); } } /** - * - * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline, - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder, - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder> + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder> getGcsIngestWithDocAiProcessorsPipelineFieldBuilder() { if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) { if (!(pipelineCase_ == 3)) { - pipeline_ = - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - .getDefaultInstance(); + pipeline_ = com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance(); } - gcsIngestWithDocAiProcessorsPipelineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline, - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder, - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder>( - (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) - pipeline_, + gcsIngestWithDocAiProcessorsPipelineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder>( + (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_, getParentForChildren(), isClean()); pipeline_ = null; @@ -1600,19 +1355,13 @@ public Builder clearGcsIngestWithDocAiProcessorsPipeline() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline, - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder, - com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder> - exportCdwPipelineBuilder_; + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline, com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder, com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder> exportCdwPipelineBuilder_; /** - * - * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; - * * @return Whether the exportCdwPipeline field is set. */ @java.lang.Override @@ -1620,14 +1369,11 @@ public boolean hasExportCdwPipeline() { return pipelineCase_ == 4; } /** - * - * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; - * * @return The exportCdwPipeline. */ @java.lang.Override @@ -1645,16 +1391,13 @@ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getExportCdwPipe } } /** - * - * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; */ - public Builder setExportCdwPipeline( - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline value) { + public Builder setExportCdwPipeline(com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline value) { if (exportCdwPipelineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1668,8 +1411,6 @@ public Builder setExportCdwPipeline( return this; } /** - * - * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
@@ -1688,25 +1429,18 @@ public Builder setExportCdwPipeline( return this; } /** - * - * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; */ - public Builder mergeExportCdwPipeline( - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline value) { + public Builder mergeExportCdwPipeline(com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline value) { if (exportCdwPipelineBuilder_ == null) { - if (pipelineCase_ == 4 - && pipeline_ - != com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance()) { - pipeline_ = - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.newBuilder( - (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_) - .mergeFrom(value) - .buildPartial(); + if (pipelineCase_ == 4 && + pipeline_ != com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance()) { + pipeline_ = com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.newBuilder((com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_) + .mergeFrom(value).buildPartial(); } else { pipeline_ = value; } @@ -1722,8 +1456,6 @@ public Builder mergeExportCdwPipeline( return this; } /** - * - * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
@@ -1747,21 +1479,16 @@ public Builder clearExportCdwPipeline() { return this; } /** - * - * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; */ - public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder - getExportCdwPipelineBuilder() { + public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder getExportCdwPipelineBuilder() { return getExportCdwPipelineFieldBuilder().getBuilder(); } /** - * - * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
@@ -1769,8 +1496,7 @@ public Builder clearExportCdwPipeline() { * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder - getExportCdwPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder getExportCdwPipelineOrBuilder() { if ((pipelineCase_ == 4) && (exportCdwPipelineBuilder_ != null)) { return exportCdwPipelineBuilder_.getMessageOrBuilder(); } else { @@ -1781,8 +1507,6 @@ public Builder clearExportCdwPipeline() { } } /** - * - * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
@@ -1790,19 +1514,14 @@ public Builder clearExportCdwPipeline() { * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline, - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder, - com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder> + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline, com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder, com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder> getExportCdwPipelineFieldBuilder() { if (exportCdwPipelineBuilder_ == null) { if (!(pipelineCase_ == 4)) { pipeline_ = com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance(); } - exportCdwPipelineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline, - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder, - com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder>( + exportCdwPipelineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline, com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder, com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder>( (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_, getParentForChildren(), isClean()); @@ -1814,22 +1533,14 @@ public Builder clearExportCdwPipeline() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline, - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder, - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder> - processWithDocAiPipelineBuilder_; + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder> processWithDocAiPipelineBuilder_; /** - * - * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; * @return Whether the processWithDocAiPipeline field is set. */ @java.lang.Override @@ -1837,22 +1548,16 @@ public boolean hasProcessWithDocAiPipeline() { return pipelineCase_ == 5; } /** - * - * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; * @return The processWithDocAiPipeline. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline - getProcessWithDocAiPipeline() { + public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getProcessWithDocAiPipeline() { if (processWithDocAiPipelineBuilder_ == null) { if (pipelineCase_ == 5) { return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_; @@ -1866,19 +1571,14 @@ public boolean hasProcessWithDocAiPipeline() { } } /** - * - * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; */ - public Builder setProcessWithDocAiPipeline( - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline value) { + public Builder setProcessWithDocAiPipeline(com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline value) { if (processWithDocAiPipelineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1892,16 +1592,12 @@ public Builder setProcessWithDocAiPipeline( return this; } /** - * - * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; */ public Builder setProcessWithDocAiPipeline( com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder builderForValue) { @@ -1915,29 +1611,19 @@ public Builder setProcessWithDocAiPipeline( return this; } /** - * - * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; */ - public Builder mergeProcessWithDocAiPipeline( - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline value) { + public Builder mergeProcessWithDocAiPipeline(com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline value) { if (processWithDocAiPipelineBuilder_ == null) { - if (pipelineCase_ == 5 - && pipeline_ - != com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline - .getDefaultInstance()) { - pipeline_ = - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.newBuilder( - (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_) - .mergeFrom(value) - .buildPartial(); + if (pipelineCase_ == 5 && + pipeline_ != com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance()) { + pipeline_ = com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.newBuilder((com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_) + .mergeFrom(value).buildPartial(); } else { pipeline_ = value; } @@ -1953,16 +1639,12 @@ public Builder mergeProcessWithDocAiPipeline( return this; } /** - * - * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; */ public Builder clearProcessWithDocAiPipeline() { if (processWithDocAiPipelineBuilder_ == null) { @@ -1981,36 +1663,26 @@ public Builder clearProcessWithDocAiPipeline() { return this; } /** - * - * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; */ - public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder - getProcessWithDocAiPipelineBuilder() { + public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder getProcessWithDocAiPipelineBuilder() { return getProcessWithDocAiPipelineFieldBuilder().getBuilder(); } /** - * - * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder - getProcessWithDocAiPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder getProcessWithDocAiPipelineOrBuilder() { if ((pipelineCase_ == 5) && (processWithDocAiPipelineBuilder_ != null)) { return processWithDocAiPipelineBuilder_.getMessageOrBuilder(); } else { @@ -2021,32 +1693,22 @@ public Builder clearProcessWithDocAiPipeline() { } } /** - * - * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline, - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder, - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder> + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder> getProcessWithDocAiPipelineFieldBuilder() { if (processWithDocAiPipelineBuilder_ == null) { if (!(pipelineCase_ == 5)) { - pipeline_ = - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance(); + pipeline_ = com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance(); } - processWithDocAiPipelineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline, - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder, - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder>( + processWithDocAiPipelineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder>( (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_, getParentForChildren(), isClean()); @@ -2059,49 +1721,36 @@ public Builder clearProcessWithDocAiPipeline() { private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> - requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6; - * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6; - * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -2123,8 +1772,6 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -2144,8 +1791,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -2153,13 +1798,11 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
      */
-    public Builder mergeRequestMetadata(
-        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0)
-            && requestMetadata_ != null
-            && requestMetadata_
-                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0) &&
+          requestMetadata_ != null &&
+          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -2172,8 +1815,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -2192,8 +1833,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -2201,15 +1840,12 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
-        getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
       bitField0_ |= 0x00000020;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -2217,19 +1853,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-        getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-            : requestMetadata_;
+        return requestMetadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -2238,24 +1870,21 @@ public Builder clearRequestMetadata() {
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RequestMetadata,
-                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(), getParentForChildren(), isClean());
+        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(),
+                getParentForChildren(),
+                isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
-
     @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);
     }
 
@@ -2265,12 +1894,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineRequest)
   private static final com.google.cloud.contentwarehouse.v1.RunPipelineRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineRequest();
   }
@@ -2279,27 +1908,27 @@ public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public RunPipelineRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 RunPipelineRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2314,4 +1943,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.RunPipelineRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java
similarity index 70%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java
index 44c58304a5ac..9209a071b649 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java
@@ -1,86 +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/contentwarehouse/v1/pipeline_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface RunPipelineRequestOrBuilder
-    extends
+public interface RunPipelineRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The resource name which owns the resources of the pipeline.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * 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 which owns the resources of the pipeline.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * 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(); /** - * - * *
    * Cloud Storage ingestion pipeline.
    * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; - * * @return Whether the gcsIngestPipeline field is set. */ boolean hasGcsIngestPipeline(); /** - * - * *
    * Cloud Storage ingestion pipeline.
    * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; - * * @return The gcsIngestPipeline. */ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getGcsIngestPipeline(); /** - * - * *
    * Cloud Storage ingestion pipeline.
    * 
@@ -90,78 +57,54 @@ public interface RunPipelineRequestOrBuilder com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder getGcsIngestPipelineOrBuilder(); /** - * - * *
    * Use DocAI processors to process documents in Cloud Storage and ingest
    * them to Document Warehouse.
    * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; * @return Whether the gcsIngestWithDocAiProcessorsPipeline field is set. */ boolean hasGcsIngestWithDocAiProcessorsPipeline(); /** - * - * *
    * Use DocAI processors to process documents in Cloud Storage and ingest
    * them to Document Warehouse.
    * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; * @return The gcsIngestWithDocAiProcessorsPipeline. */ - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline - getGcsIngestWithDocAiProcessorsPipeline(); + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline getGcsIngestWithDocAiProcessorsPipeline(); /** - * - * *
    * Use DocAI processors to process documents in Cloud Storage and ingest
    * them to Document Warehouse.
    * 
* - * - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; - * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; */ - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder - getGcsIngestWithDocAiProcessorsPipelineOrBuilder(); + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder getGcsIngestWithDocAiProcessorsPipelineOrBuilder(); /** - * - * *
    * Export docuemnts from Document Warehouse to CDW for training purpose.
    * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; - * * @return Whether the exportCdwPipeline field is set. */ boolean hasExportCdwPipeline(); /** - * - * *
    * Export docuemnts from Document Warehouse to CDW for training purpose.
    * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; - * * @return The exportCdwPipeline. */ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getExportCdwPipeline(); /** - * - * *
    * Export docuemnts from Document Warehouse to CDW for training purpose.
    * 
@@ -171,79 +114,56 @@ public interface RunPipelineRequestOrBuilder com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder getExportCdwPipelineOrBuilder(); /** - * - * *
    * Use a DocAI processor to process documents in Document Warehouse, and
    * re-ingest the updated results into Document Warehouse.
    * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; * @return Whether the processWithDocAiPipeline field is set. */ boolean hasProcessWithDocAiPipeline(); /** - * - * *
    * Use a DocAI processor to process documents in Document Warehouse, and
    * re-ingest the updated results into Document Warehouse.
    * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; * @return The processWithDocAiPipeline. */ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getProcessWithDocAiPipeline(); /** - * - * *
    * Use a DocAI processor to process documents in Document Warehouse, and
    * re-ingest the updated results into Document Warehouse.
    * 
* - * - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; - * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; */ - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder - getProcessWithDocAiPipelineOrBuilder(); + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder getProcessWithDocAiPipelineOrBuilder(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6; - * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6; - * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java
similarity index 62%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java
index ce2b8886eeb8..6018bcae0646 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java
@@ -1,67 +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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/pipelines.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Response message of RunPipeline method.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineResponse} */ -public final class RunPipelineResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RunPipelineResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineResponse) RunPipelineResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RunPipelineResponse.newBuilder() to construct. private RunPipelineResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RunPipelineResponse() {} + private RunPipelineResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RunPipelineResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineResponse.class, - com.google.cloud.contentwarehouse.v1.RunPipelineResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineResponse.class, com.google.cloud.contentwarehouse.v1.RunPipelineResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -73,7 +54,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 { getUnknownFields().writeTo(output); } @@ -91,13 +73,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.contentwarehouse.v1.RunPipelineResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RunPipelineResponse other = - (com.google.cloud.contentwarehouse.v1.RunPipelineResponse) obj; + com.google.cloud.contentwarehouse.v1.RunPipelineResponse other = (com.google.cloud.contentwarehouse.v1.RunPipelineResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -116,136 +97,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse 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.contentwarehouse.v1.RunPipelineResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse 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.contentwarehouse.v1.RunPipelineResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.RunPipelineResponse prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RunPipelineResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 of RunPipeline method.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineResponse) com.google.cloud.contentwarehouse.v1.RunPipelineResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineResponse.class, - com.google.cloud.contentwarehouse.v1.RunPipelineResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineResponse.class, com.google.cloud.contentwarehouse.v1.RunPipelineResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineResponse.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(); @@ -253,9 +229,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto - .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor; } @java.lang.Override @@ -274,8 +250,7 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RunPipelineResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineResponse result = - new com.google.cloud.contentwarehouse.v1.RunPipelineResponse(this); + com.google.cloud.contentwarehouse.v1.RunPipelineResponse result = new com.google.cloud.contentwarehouse.v1.RunPipelineResponse(this); onBuilt(); return result; } @@ -284,39 +259,38 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.RunPipelineResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineResponse) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineResponse)other); } else { super.mergeFrom(other); return this; @@ -324,8 +298,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.RunPipelineResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.RunPipelineResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -352,13 +325,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -368,9 +340,9 @@ public Builder mergeFrom( } // finally 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); } @@ -380,12 +352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineResponse) private static final com.google.cloud.contentwarehouse.v1.RunPipelineResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineResponse(); } @@ -394,27 +366,27 @@ public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunPipelineResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RunPipelineResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -429,4 +401,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RunPipelineResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java new file mode 100644 index 000000000000..430f96472c5d --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/pipelines.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface RunPipelineResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java similarity index 81% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java index e42e0b17e1ea..ea558303c7f2 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentService.SearchDocuments.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SearchDocumentsRequest} */ -public final class SearchDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchDocumentsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SearchDocumentsRequest) SearchDocumentsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchDocumentsRequest.newBuilder() to construct. private SearchDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchDocumentsRequest() { parent_ = ""; pageToken_ = ""; @@ -47,38 +29,34 @@ private SearchDocumentsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchDocumentsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.class, - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.class, com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.Builder.class); } /** - * - * *
    * The total number of matching documents.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize} */ - public enum TotalResultSize implements com.google.protobuf.ProtocolMessageEnum { + public enum TotalResultSize + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Total number calculation will be skipped.
      * 
@@ -87,8 +65,6 @@ public enum TotalResultSize implements com.google.protobuf.ProtocolMessageEnum { */ TOTAL_RESULT_SIZE_UNSPECIFIED(0), /** - * - * *
      * Estimate total number. The total result size will be accurated up to
      * 10,000. This option will add cost and latency to your request.
@@ -98,8 +74,6 @@ public enum TotalResultSize implements com.google.protobuf.ProtocolMessageEnum {
      */
     ESTIMATED_SIZE(1),
     /**
-     *
-     *
      * 
      * It may adversely impact performance. The limit is 1000,000.
      * 
@@ -111,8 +85,6 @@ public enum TotalResultSize implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Total number calculation will be skipped.
      * 
@@ -121,8 +93,6 @@ public enum TotalResultSize implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TOTAL_RESULT_SIZE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Estimate total number. The total result size will be accurated up to
      * 10,000. This option will add cost and latency to your request.
@@ -132,8 +102,6 @@ public enum TotalResultSize implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ESTIMATED_SIZE_VALUE = 1;
     /**
-     *
-     *
      * 
      * It may adversely impact performance. The limit is 1000,000.
      * 
@@ -142,6 +110,7 @@ public enum TotalResultSize implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTUAL_SIZE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -166,45 +135,40 @@ public static TotalResultSize valueOf(int value) { */ public static TotalResultSize forNumber(int value) { switch (value) { - case 0: - return TOTAL_RESULT_SIZE_UNSPECIFIED; - case 1: - return ESTIMATED_SIZE; - case 2: - return ACTUAL_SIZE; - default: - return null; + case 0: return TOTAL_RESULT_SIZE_UNSPECIFIED; + case 1: return ESTIMATED_SIZE; + case 2: return ACTUAL_SIZE; + 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< + TotalResultSize> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TotalResultSize findValueByNumber(int number) { + return TotalResultSize.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TotalResultSize findValueByNumber(int number) { - return TotalResultSize.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.contentwarehouse.v1.SearchDocumentsRequest.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.getDescriptor().getEnumTypes().get(0); } private static final TotalResultSize[] VALUES = values(); @@ -212,7 +176,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static TotalResultSize 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,21 +195,15 @@ private TotalResultSize(int value) { } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent, which owns this collection of documents.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 @@ -253,32 +212,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, which owns this collection of documents.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 { @@ -289,15 +246,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int REQUEST_METADATA_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control and improve the search quality of the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -305,26 +259,19 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control and improve the search quality of the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control and improve the search quality of the service.
@@ -333,24 +280,18 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-      getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-        : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
   }
 
   public static final int DOCUMENT_QUERY_FIELD_NUMBER = 4;
   private com.google.cloud.contentwarehouse.v1.DocumentQuery documentQuery_;
   /**
-   *
-   *
    * 
    * Query used to search against documents (keyword, filters, etc.).
    * 
* * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; - * * @return Whether the documentQuery field is set. */ @java.lang.Override @@ -358,25 +299,18 @@ public boolean hasDocumentQuery() { return documentQuery_ != null; } /** - * - * *
    * Query used to search against documents (keyword, filters, etc.).
    * 
* * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; - * * @return The documentQuery. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentQuery getDocumentQuery() { - return documentQuery_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() - : documentQuery_; + return documentQuery_ == null ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() : documentQuery_; } /** - * - * *
    * Query used to search against documents (keyword, filters, etc.).
    * 
@@ -385,16 +319,12 @@ public com.google.cloud.contentwarehouse.v1.DocumentQuery getDocumentQuery() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQueryOrBuilder() { - return documentQuery_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() - : documentQuery_; + return documentQuery_ == null ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() : documentQuery_; } public static final int OFFSET_FIELD_NUMBER = 5; private int offset_ = 0; /** - * - * *
    * An integer that specifies the current offset (that is, starting result
    * location, amongst the documents deemed by the API as relevant) in search
@@ -411,7 +341,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu
    * 
* * int32 offset = 5; - * * @return The offset. */ @java.lang.Override @@ -422,8 +351,6 @@ public int getOffset() { public static final int PAGE_SIZE_FIELD_NUMBER = 6; private int pageSize_ = 0; /** - * - * *
    * A limit on the number of documents returned in the search results.
    * Increasing this value above the default value of 10 can increase search
@@ -431,7 +358,6 @@ public int getOffset() {
    * 
* * int32 page_size = 6; - * * @return The pageSize. */ @java.lang.Override @@ -440,12 +366,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The token specifying the current offset within search results.
    * See
@@ -454,7 +377,6 @@ public int getPageSize() {
    * 
* * string page_token = 7; - * * @return The pageToken. */ @java.lang.Override @@ -463,15 +385,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; } } /** - * - * *
    * The token specifying the current offset within search results.
    * See
@@ -480,15 +401,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 7; - * * @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 { @@ -497,12 +419,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * The criteria determining how search results are sorted. For non-empty
    * query, default is `"relevance desc"`. For empty query, default is
@@ -522,7 +441,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string order_by = 8; - * * @return The orderBy. */ @java.lang.Override @@ -531,15 +449,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 criteria determining how search results are sorted. For non-empty
    * query, default is `"relevance desc"`. For empty query, default is
@@ -559,15 +476,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 { @@ -576,12 +494,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { } public static final int HISTOGRAM_QUERIES_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private java.util.List histogramQueries_; /** - * - * *
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -618,13 +533,10 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
    */
   @java.lang.Override
-  public java.util.List
-      getHistogramQueriesList() {
+  public java.util.List getHistogramQueriesList() {
     return histogramQueries_;
   }
   /**
-   *
-   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -661,13 +573,11 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getHistogramQueriesOrBuilderList() {
     return histogramQueries_;
   }
   /**
-   *
-   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -708,8 +618,6 @@ public int getHistogramQueriesCount() {
     return histogramQueries_.size();
   }
   /**
-   *
-   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -750,8 +658,6 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery getHistogramQueries(i
     return histogramQueries_.get(index);
   }
   /**
-   *
-   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -796,8 +702,6 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogram
   public static final int REQUIRE_TOTAL_SIZE_FIELD_NUMBER = 10;
   private boolean requireTotalSize_ = false;
   /**
-   *
-   *
    * 
    * Controls if the search document request requires the return of a total size
    * of matched documents. See
@@ -811,7 +715,6 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogram
    * 
* * bool require_total_size = 10; - * * @return The requireTotalSize. */ @java.lang.Override @@ -822,55 +725,36 @@ public boolean getRequireTotalSize() { public static final int TOTAL_RESULT_SIZE_FIELD_NUMBER = 12; private int totalResultSize_ = 0; /** - * - * *
    * Controls if the search document request requires the return of a total size
    * of matched documents. See
    * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
    * 
* - * - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; - * - * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; * @return The enum numeric value on the wire for totalResultSize. */ - @java.lang.Override - public int getTotalResultSizeValue() { + @java.lang.Override public int getTotalResultSizeValue() { return totalResultSize_; } /** - * - * *
    * Controls if the search document request requires the return of a total size
    * of matched documents. See
    * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
    * 
* - * - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; - * - * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; * @return The totalResultSize. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize - getTotalResultSize() { - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize result = - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.forNumber( - totalResultSize_); - return result == null - ? com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize getTotalResultSize() { + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize result = com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.forNumber(totalResultSize_); + return result == null ? com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.UNRECOGNIZED : result; } public static final int QA_SIZE_LIMIT_FIELD_NUMBER = 11; private int qaSizeLimit_ = 0; /** - * - * *
    * Experimental, do not use.
    * The limit on the number of documents returned for the question-answering
@@ -879,7 +763,6 @@ public int getTotalResultSizeValue() {
    * 
* * int32 qa_size_limit = 11; - * * @return The qaSizeLimit. */ @java.lang.Override @@ -888,7 +771,6 @@ public int getQaSizeLimit() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -900,7 +782,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_); } @@ -931,10 +814,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (qaSizeLimit_ != 0) { output.writeInt32(11, qaSizeLimit_); } - if (totalResultSize_ - != com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize - .TOTAL_RESULT_SIZE_UNSPECIFIED - .getNumber()) { + if (totalResultSize_ != com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.TOTAL_RESULT_SIZE_UNSPECIFIED.getNumber()) { output.writeEnum(12, totalResultSize_); } getUnknownFields().writeTo(output); @@ -950,16 +830,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (requestMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRequestMetadata()); } if (documentQuery_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentQuery()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDocumentQuery()); } if (offset_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, offset_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, offset_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); @@ -968,19 +852,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, orderBy_); } for (int i = 0; i < histogramQueries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, histogramQueries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, histogramQueries_.get(i)); } if (requireTotalSize_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, requireTotalSize_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, requireTotalSize_); } if (qaSizeLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, qaSizeLimit_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(11, qaSizeLimit_); } - if (totalResultSize_ - != com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize - .TOTAL_RESULT_SIZE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, totalResultSize_); + if (totalResultSize_ != com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.TOTAL_RESULT_SIZE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, totalResultSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -990,31 +875,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.contentwarehouse.v1.SearchDocumentsRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest other = - (com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest) obj; + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest other = (com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasRequestMetadata() != other.hasRequestMetadata()) return false; if (hasRequestMetadata()) { - if (!getRequestMetadata().equals(other.getRequestMetadata())) return false; + if (!getRequestMetadata() + .equals(other.getRequestMetadata())) return false; } if (hasDocumentQuery() != other.hasDocumentQuery()) return false; if (hasDocumentQuery()) { - if (!getDocumentQuery().equals(other.getDocumentQuery())) return false; - } - if (getOffset() != other.getOffset()) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getHistogramQueriesList().equals(other.getHistogramQueriesList())) return false; - if (getRequireTotalSize() != other.getRequireTotalSize()) return false; + if (!getDocumentQuery() + .equals(other.getDocumentQuery())) return false; + } + if (getOffset() + != other.getOffset()) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getHistogramQueriesList() + .equals(other.getHistogramQueriesList())) return false; + if (getRequireTotalSize() + != other.getRequireTotalSize()) return false; if (totalResultSize_ != other.totalResultSize_) return false; - if (getQaSizeLimit() != other.getQaSizeLimit()) return false; + if (getQaSizeLimit() + != other.getQaSizeLimit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1049,7 +943,8 @@ public int hashCode() { hash = (53 * hash) + getHistogramQueriesList().hashCode(); } hash = (37 * hash) + REQUIRE_TOTAL_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequireTotalSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequireTotalSize()); hash = (37 * hash) + TOTAL_RESULT_SIZE_FIELD_NUMBER; hash = (53 * hash) + totalResultSize_; hash = (37 * hash) + QA_SIZE_LIMIT_FIELD_NUMBER; @@ -1060,136 +955,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest 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.contentwarehouse.v1.SearchDocumentsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest 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.contentwarehouse.v1.SearchDocumentsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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.SearchDocuments.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SearchDocumentsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SearchDocumentsRequest) com.google.cloud.contentwarehouse.v1.SearchDocumentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.class, - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.class, com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.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(); @@ -1223,9 +1113,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; } @java.lang.Override @@ -1244,18 +1134,14 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest result = - new com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest(this); + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest result = new com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest result) { if (histogramQueriesBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); @@ -1273,12 +1159,14 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SearchDocumentsR result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMetadata_ = - requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + result.requestMetadata_ = requestMetadataBuilder_ == null + ? requestMetadata_ + : requestMetadataBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.documentQuery_ = - documentQueryBuilder_ == null ? documentQuery_ : documentQueryBuilder_.build(); + result.documentQuery_ = documentQueryBuilder_ == null + ? documentQuery_ + : documentQueryBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.offset_ = offset_; @@ -1307,39 +1195,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SearchDocumentsR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.SearchDocumentsRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest)other); } else { super.mergeFrom(other); return this; @@ -1347,8 +1234,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1394,10 +1280,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsReq histogramQueriesBuilder_ = null; histogramQueries_ = other.histogramQueries_; bitField0_ = (bitField0_ & ~0x00000080); - histogramQueriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHistogramQueriesFieldBuilder() - : null; + histogramQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHistogramQueriesFieldBuilder() : null; } else { histogramQueriesBuilder_.addAllMessages(other.histogramQueries_); } @@ -1438,87 +1323,79 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - input.readMessage(getDocumentQueryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 40: - { - offset_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 74: - { - com.google.cloud.contentwarehouse.v1.HistogramQuery m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.HistogramQuery.parser(), - extensionRegistry); - if (histogramQueriesBuilder_ == null) { - ensureHistogramQueriesIsMutable(); - histogramQueries_.add(m); - } else { - histogramQueriesBuilder_.addMessage(m); - } - break; - } // case 74 - case 80: - { - requireTotalSize_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 80 - case 88: - { - qaSizeLimit_ = input.readInt32(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 96: - { - totalResultSize_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 96 - 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 26: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: { + input.readMessage( + getDocumentQueryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 40: { + offset_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: { + com.google.cloud.contentwarehouse.v1.HistogramQuery m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.HistogramQuery.parser(), + extensionRegistry); + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(m); + } else { + histogramQueriesBuilder_.addMessage(m); + } + break; + } // case 74 + case 80: { + requireTotalSize_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 88: { + qaSizeLimit_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: { + totalResultSize_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 96 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1528,28 +1405,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of documents.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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; @@ -1558,24 +1430,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of documents.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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 { @@ -1583,41 +1452,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of documents.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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, which owns this collection of documents.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * string 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() { @@ -1627,24 +1485,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent, which owns this collection of documents.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * - * 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; @@ -1654,49 +1506,36 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> - requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1718,8 +1557,6 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1739,8 +1576,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1748,13 +1583,11 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public Builder mergeRequestMetadata(
-        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && requestMetadata_ != null
-            && requestMetadata_
-                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          requestMetadata_ != null &&
+          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -1767,8 +1600,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1787,8 +1618,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1796,15 +1625,12 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
-        getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1812,19 +1638,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-        getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-            : requestMetadata_;
+        return requestMetadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1833,17 +1655,14 @@ public Builder clearRequestMetadata() {
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RequestMetadata,
-                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(), getParentForChildren(), isClean());
+        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(),
+                getParentForChildren(),
+                isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
@@ -1851,47 +1670,34 @@ public Builder clearRequestMetadata() {
 
     private com.google.cloud.contentwarehouse.v1.DocumentQuery documentQuery_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.DocumentQuery,
-            com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder,
-            com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder>
-        documentQueryBuilder_;
+        com.google.cloud.contentwarehouse.v1.DocumentQuery, com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder, com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder> documentQueryBuilder_;
     /**
-     *
-     *
      * 
      * Query used to search against documents (keyword, filters, etc.).
      * 
* * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; - * * @return Whether the documentQuery field is set. */ public boolean hasDocumentQuery() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
* * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; - * * @return The documentQuery. */ public com.google.cloud.contentwarehouse.v1.DocumentQuery getDocumentQuery() { if (documentQueryBuilder_ == null) { - return documentQuery_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() - : documentQuery_; + return documentQuery_ == null ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() : documentQuery_; } else { return documentQueryBuilder_.getMessage(); } } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1912,8 +1718,6 @@ public Builder setDocumentQuery(com.google.cloud.contentwarehouse.v1.DocumentQue return this; } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1932,8 +1736,6 @@ public Builder setDocumentQuery( return this; } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1942,10 +1744,9 @@ public Builder setDocumentQuery( */ public Builder mergeDocumentQuery(com.google.cloud.contentwarehouse.v1.DocumentQuery value) { if (documentQueryBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && documentQuery_ != null - && documentQuery_ - != com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + documentQuery_ != null && + documentQuery_ != com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance()) { getDocumentQueryBuilder().mergeFrom(value); } else { documentQuery_ = value; @@ -1958,8 +1759,6 @@ public Builder mergeDocumentQuery(com.google.cloud.contentwarehouse.v1.DocumentQ return this; } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1977,8 +1776,6 @@ public Builder clearDocumentQuery() { return this; } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1991,8 +1788,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder getDocumentQue return getDocumentQueryFieldBuilder().getBuilder(); } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -2003,14 +1798,11 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu if (documentQueryBuilder_ != null) { return documentQueryBuilder_.getMessageOrBuilder(); } else { - return documentQuery_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() - : documentQuery_; + return documentQuery_ == null ? + com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() : documentQuery_; } } /** - * - * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -2018,26 +1810,21 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentQuery, - com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder, - com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentQuery, com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder, com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder> getDocumentQueryFieldBuilder() { if (documentQueryBuilder_ == null) { - documentQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentQuery, - com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder, - com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder>( - getDocumentQuery(), getParentForChildren(), isClean()); + documentQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentQuery, com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder, com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder>( + getDocumentQuery(), + getParentForChildren(), + isClean()); documentQuery_ = null; } return documentQueryBuilder_; } - private int offset_; + private int offset_ ; /** - * - * *
      * An integer that specifies the current offset (that is, starting result
      * location, amongst the documents deemed by the API as relevant) in search
@@ -2054,7 +1841,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu
      * 
* * int32 offset = 5; - * * @return The offset. */ @java.lang.Override @@ -2062,8 +1848,6 @@ public int getOffset() { return offset_; } /** - * - * *
      * An integer that specifies the current offset (that is, starting result
      * location, amongst the documents deemed by the API as relevant) in search
@@ -2080,7 +1864,6 @@ public int getOffset() {
      * 
* * int32 offset = 5; - * * @param value The offset to set. * @return This builder for chaining. */ @@ -2092,8 +1875,6 @@ public Builder setOffset(int value) { return this; } /** - * - * *
      * An integer that specifies the current offset (that is, starting result
      * location, amongst the documents deemed by the API as relevant) in search
@@ -2110,7 +1891,6 @@ public Builder setOffset(int value) {
      * 
* * int32 offset = 5; - * * @return This builder for chaining. */ public Builder clearOffset() { @@ -2120,10 +1900,8 @@ public Builder clearOffset() { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * A limit on the number of documents returned in the search results.
      * Increasing this value above the default value of 10 can increase search
@@ -2131,7 +1909,6 @@ public Builder clearOffset() {
      * 
* * int32 page_size = 6; - * * @return The pageSize. */ @java.lang.Override @@ -2139,8 +1916,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * A limit on the number of documents returned in the search results.
      * Increasing this value above the default value of 10 can increase search
@@ -2148,7 +1923,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 6; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -2160,8 +1934,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * A limit on the number of documents returned in the search results.
      * Increasing this value above the default value of 10 can increase search
@@ -2169,7 +1941,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 6; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -2181,8 +1952,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The token specifying the current offset within search results.
      * See
@@ -2191,13 +1960,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 7; - * * @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; @@ -2206,8 +1975,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The token specifying the current offset within search results.
      * See
@@ -2216,14 +1983,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; - * * @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 { @@ -2231,8 +1999,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The token specifying the current offset within search results.
      * See
@@ -2241,22 +2007,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 7; - * * @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; } /** - * - * *
      * The token specifying the current offset within search results.
      * See
@@ -2265,7 +2027,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 7; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -2275,8 +2036,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The token specifying the current offset within search results.
      * See
@@ -2285,14 +2044,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 7; - * * @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; @@ -2302,8 +2059,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -2323,13 +2078,13 @@ public Builder setPageTokenBytes(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; @@ -2338,8 +2093,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -2359,14 +2112,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 { @@ -2374,8 +2128,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -2395,22 +2147,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_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -2430,7 +2178,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 8; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -2440,8 +2187,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -2461,14 +2206,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_ |= 0x00000040; @@ -2477,26 +2220,18 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { } private java.util.List histogramQueries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHistogramQueriesIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - histogramQueries_ = - new java.util.ArrayList( - histogramQueries_); + histogramQueries_ = new java.util.ArrayList(histogramQueries_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.HistogramQuery, - com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder, - com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder> - histogramQueriesBuilder_; + com.google.cloud.contentwarehouse.v1.HistogramQuery, com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder> histogramQueriesBuilder_; /** - * - * *
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2532,8 +2267,7 @@ private void ensureHistogramQueriesIsMutable() {
      *
      * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
      */
-    public java.util.List
-        getHistogramQueriesList() {
+    public java.util.List getHistogramQueriesList() {
       if (histogramQueriesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(histogramQueries_);
       } else {
@@ -2541,8 +2275,6 @@ private void ensureHistogramQueriesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2586,8 +2318,6 @@ public int getHistogramQueriesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2631,8 +2361,6 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery getHistogramQueries(i
       }
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2683,8 +2411,6 @@ public Builder setHistogramQueries(
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2732,8 +2458,6 @@ public Builder setHistogramQueries(
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2783,8 +2507,6 @@ public Builder addHistogramQueries(com.google.cloud.contentwarehouse.v1.Histogra
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2835,8 +2557,6 @@ public Builder addHistogramQueries(
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2884,8 +2604,6 @@ public Builder addHistogramQueries(
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2933,8 +2651,6 @@ public Builder addHistogramQueries(
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2974,7 +2690,8 @@ public Builder addAllHistogramQueries(
         java.lang.Iterable values) {
       if (histogramQueriesBuilder_ == null) {
         ensureHistogramQueriesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueries_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, histogramQueries_);
         onChanged();
       } else {
         histogramQueriesBuilder_.addAllMessages(values);
@@ -2982,8 +2699,6 @@ public Builder addAllHistogramQueries(
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -3030,8 +2745,6 @@ public Builder clearHistogramQueries() {
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -3078,8 +2791,6 @@ public Builder removeHistogramQueries(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -3120,8 +2831,6 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder getHistogramQ
       return getHistogramQueriesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -3157,17 +2866,14 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder getHistogramQ
      *
      * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
      */
-    public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder
-        getHistogramQueriesOrBuilder(int index) {
+    public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder(
+        int index) {
       if (histogramQueriesBuilder_ == null) {
-        return histogramQueries_.get(index);
-      } else {
+        return histogramQueries_.get(index);  } else {
         return histogramQueriesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -3203,8 +2909,8 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder getHistogramQ
      *
      * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
      */
-    public java.util.List
-        getHistogramQueriesOrBuilderList() {
+    public java.util.List 
+         getHistogramQueriesOrBuilderList() {
       if (histogramQueriesBuilder_ != null) {
         return histogramQueriesBuilder_.getMessageOrBuilderList();
       } else {
@@ -3212,8 +2918,6 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder getHistogramQ
       }
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -3249,14 +2953,11 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder getHistogramQ
      *
      * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
      */
-    public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder
-        addHistogramQueriesBuilder() {
-      return getHistogramQueriesFieldBuilder()
-          .addBuilder(com.google.cloud.contentwarehouse.v1.HistogramQuery.getDefaultInstance());
+    public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQueriesBuilder() {
+      return getHistogramQueriesFieldBuilder().addBuilder(
+          com.google.cloud.contentwarehouse.v1.HistogramQuery.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -3294,13 +2995,10 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder getHistogramQ
      */
     public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQueriesBuilder(
         int index) {
-      return getHistogramQueriesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.contentwarehouse.v1.HistogramQuery.getDefaultInstance());
+      return getHistogramQueriesFieldBuilder().addBuilder(
+          index, com.google.cloud.contentwarehouse.v1.HistogramQuery.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -3336,22 +3034,16 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQ
      *
      * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
      */
-    public java.util.List
-        getHistogramQueriesBuilderList() {
+    public java.util.List 
+         getHistogramQueriesBuilderList() {
       return getHistogramQueriesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.HistogramQuery,
-            com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder,
-            com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder>
+        com.google.cloud.contentwarehouse.v1.HistogramQuery, com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder> 
         getHistogramQueriesFieldBuilder() {
       if (histogramQueriesBuilder_ == null) {
-        histogramQueriesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.HistogramQuery,
-                com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder,
-                com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder>(
+        histogramQueriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.HistogramQuery, com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder>(
                 histogramQueries_,
                 ((bitField0_ & 0x00000080) != 0),
                 getParentForChildren(),
@@ -3361,10 +3053,8 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQ
       return histogramQueriesBuilder_;
     }
 
-    private boolean requireTotalSize_;
+    private boolean requireTotalSize_ ;
     /**
-     *
-     *
      * 
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
@@ -3378,7 +3068,6 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQ
      * 
* * bool require_total_size = 10; - * * @return The requireTotalSize. */ @java.lang.Override @@ -3386,8 +3075,6 @@ public boolean getRequireTotalSize() { return requireTotalSize_; } /** - * - * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
@@ -3401,7 +3088,6 @@ public boolean getRequireTotalSize() {
      * 
* * bool require_total_size = 10; - * * @param value The requireTotalSize to set. * @return This builder for chaining. */ @@ -3413,8 +3099,6 @@ public Builder setRequireTotalSize(boolean value) { return this; } /** - * - * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
@@ -3428,7 +3112,6 @@ public Builder setRequireTotalSize(boolean value) {
      * 
* * bool require_total_size = 10; - * * @return This builder for chaining. */ public Builder clearRequireTotalSize() { @@ -3440,37 +3123,26 @@ public Builder clearRequireTotalSize() { private int totalResultSize_ = 0; /** - * - * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
      * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
      * 
* - * - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; - * - * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; * @return The enum numeric value on the wire for totalResultSize. */ - @java.lang.Override - public int getTotalResultSizeValue() { + @java.lang.Override public int getTotalResultSizeValue() { return totalResultSize_; } /** - * - * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
      * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
      * 
* - * - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; - * - * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; * @param value The enum numeric value on the wire for totalResultSize to set. * @return This builder for chaining. */ @@ -3481,48 +3153,32 @@ public Builder setTotalResultSizeValue(int value) { return this; } /** - * - * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
      * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
      * 
* - * - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; - * - * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; * @return The totalResultSize. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize - getTotalResultSize() { - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize result = - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.forNumber( - totalResultSize_); - return result == null - ? com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.UNRECOGNIZED - : result; + public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize getTotalResultSize() { + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize result = com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.forNumber(totalResultSize_); + return result == null ? com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.UNRECOGNIZED : result; } /** - * - * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
      * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
      * 
* - * - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; - * - * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; * @param value The totalResultSize to set. * @return This builder for chaining. */ - public Builder setTotalResultSize( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize value) { + public Builder setTotalResultSize(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize value) { if (value == null) { throw new NullPointerException(); } @@ -3532,18 +3188,13 @@ public Builder setTotalResultSize( return this; } /** - * - * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
      * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
      * 
* - * - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; - * - * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; * @return This builder for chaining. */ public Builder clearTotalResultSize() { @@ -3553,10 +3204,8 @@ public Builder clearTotalResultSize() { return this; } - private int qaSizeLimit_; + private int qaSizeLimit_ ; /** - * - * *
      * Experimental, do not use.
      * The limit on the number of documents returned for the question-answering
@@ -3565,7 +3214,6 @@ public Builder clearTotalResultSize() {
      * 
* * int32 qa_size_limit = 11; - * * @return The qaSizeLimit. */ @java.lang.Override @@ -3573,8 +3221,6 @@ public int getQaSizeLimit() { return qaSizeLimit_; } /** - * - * *
      * Experimental, do not use.
      * The limit on the number of documents returned for the question-answering
@@ -3583,7 +3229,6 @@ public int getQaSizeLimit() {
      * 
* * int32 qa_size_limit = 11; - * * @param value The qaSizeLimit to set. * @return This builder for chaining. */ @@ -3595,8 +3240,6 @@ public Builder setQaSizeLimit(int value) { return this; } /** - * - * *
      * Experimental, do not use.
      * The limit on the number of documents returned for the question-answering
@@ -3605,7 +3248,6 @@ public Builder setQaSizeLimit(int value) {
      * 
* * int32 qa_size_limit = 11; - * * @return This builder for chaining. */ public Builder clearQaSizeLimit() { @@ -3614,9 +3256,9 @@ public Builder clearQaSizeLimit() { 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); } @@ -3626,12 +3268,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SearchDocumentsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SearchDocumentsRequest) private static final com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest(); } @@ -3640,27 +3282,27 @@ public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchDocumentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 SearchDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3675,4 +3317,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java similarity index 90% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java index f4c63f3348a8..91a8576f479c 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java @@ -1,88 +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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface SearchDocumentsRequestOrBuilder - extends +public interface SearchDocumentsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SearchDocumentsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of documents.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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, which owns this collection of documents.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * - * string 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 meta information collected about the end user, used to enforce access
    * control and improve the search quality of the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control and improve the search quality of the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control and improve the search quality of the service.
@@ -93,32 +60,24 @@ public interface SearchDocumentsRequestOrBuilder
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
-   *
-   *
    * 
    * Query used to search against documents (keyword, filters, etc.).
    * 
* * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; - * * @return Whether the documentQuery field is set. */ boolean hasDocumentQuery(); /** - * - * *
    * Query used to search against documents (keyword, filters, etc.).
    * 
* * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; - * * @return The documentQuery. */ com.google.cloud.contentwarehouse.v1.DocumentQuery getDocumentQuery(); /** - * - * *
    * Query used to search against documents (keyword, filters, etc.).
    * 
@@ -128,8 +87,6 @@ public interface SearchDocumentsRequestOrBuilder com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQueryOrBuilder(); /** - * - * *
    * An integer that specifies the current offset (that is, starting result
    * location, amongst the documents deemed by the API as relevant) in search
@@ -146,14 +103,11 @@ public interface SearchDocumentsRequestOrBuilder
    * 
* * int32 offset = 5; - * * @return The offset. */ int getOffset(); /** - * - * *
    * A limit on the number of documents returned in the search results.
    * Increasing this value above the default value of 10 can increase search
@@ -161,14 +115,11 @@ public interface SearchDocumentsRequestOrBuilder
    * 
* * int32 page_size = 6; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The token specifying the current offset within search results.
    * See
@@ -177,13 +128,10 @@ public interface SearchDocumentsRequestOrBuilder
    * 
* * string page_token = 7; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The token specifying the current offset within search results.
    * See
@@ -192,14 +140,12 @@ public interface SearchDocumentsRequestOrBuilder
    * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The criteria determining how search results are sorted. For non-empty
    * query, default is `"relevance desc"`. For empty query, default is
@@ -219,13 +165,10 @@ public interface SearchDocumentsRequestOrBuilder
    * 
* * string order_by = 8; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * The criteria determining how search results are sorted. For non-empty
    * query, default is `"relevance desc"`. For empty query, default is
@@ -245,14 +188,12 @@ public interface SearchDocumentsRequestOrBuilder
    * 
* * string order_by = 8; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -288,10 +229,9 @@ public interface SearchDocumentsRequestOrBuilder
    *
    * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
    */
-  java.util.List getHistogramQueriesList();
+  java.util.List 
+      getHistogramQueriesList();
   /**
-   *
-   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -329,8 +269,6 @@ public interface SearchDocumentsRequestOrBuilder
    */
   com.google.cloud.contentwarehouse.v1.HistogramQuery getHistogramQueries(int index);
   /**
-   *
-   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -368,8 +306,6 @@ public interface SearchDocumentsRequestOrBuilder
    */
   int getHistogramQueriesCount();
   /**
-   *
-   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -405,11 +341,9 @@ public interface SearchDocumentsRequestOrBuilder
    *
    * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
    */
-  java.util.List
+  java.util.List 
       getHistogramQueriesOrBuilderList();
   /**
-   *
-   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -449,8 +383,6 @@ com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogramQueries
       int index);
 
   /**
-   *
-   *
    * 
    * Controls if the search document request requires the return of a total size
    * of matched documents. See
@@ -464,47 +396,34 @@ com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogramQueries
    * 
* * bool require_total_size = 10; - * * @return The requireTotalSize. */ boolean getRequireTotalSize(); /** - * - * *
    * Controls if the search document request requires the return of a total size
    * of matched documents. See
    * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
    * 
* - * - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; - * - * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; * @return The enum numeric value on the wire for totalResultSize. */ int getTotalResultSizeValue(); /** - * - * *
    * Controls if the search document request requires the return of a total size
    * of matched documents. See
    * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
    * 
* - * - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; - * - * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; * @return The totalResultSize. */ com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize getTotalResultSize(); /** - * - * *
    * Experimental, do not use.
    * The limit on the number of documents returned for the question-answering
@@ -513,7 +432,6 @@ com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogramQueries
    * 
* * int32 qa_size_limit = 11; - * * @return The qaSizeLimit. */ int getQaSizeLimit(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java index 80e6220ba50c..0deaa3e25afa 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.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/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Response message for DocumentService.SearchDocuments.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SearchDocumentsResponse} */ -public final class SearchDocumentsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchDocumentsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SearchDocumentsResponse) SearchDocumentsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchDocumentsResponse.newBuilder() to construct. private SearchDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchDocumentsResponse() { matchingDocuments_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,33 +28,29 @@ private SearchDocumentsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchDocumentsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.class, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.class, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.Builder.class); } - public interface MatchingDocumentOrBuilder - extends + public interface MatchingDocumentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Document that matches the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -80,13 +58,10 @@ public interface MatchingDocumentOrBuilder
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
      * Document that matches the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -94,13 +69,10 @@ public interface MatchingDocumentOrBuilder
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return The document. */ com.google.cloud.contentwarehouse.v1.Document getDocument(); /** - * - * *
      * Document that matches the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -112,8 +84,6 @@ public interface MatchingDocumentOrBuilder
     com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder();
 
     /**
-     *
-     *
      * 
      * Contains snippets of text from the document full raw text that most
      * closely match a search query's keywords, if available. All HTML tags in
@@ -128,13 +98,10 @@ public interface MatchingDocumentOrBuilder
      * 
* * string search_text_snippet = 2; - * * @return The searchTextSnippet. */ java.lang.String getSearchTextSnippet(); /** - * - * *
      * Contains snippets of text from the document full raw text that most
      * closely match a search query's keywords, if available. All HTML tags in
@@ -149,40 +116,32 @@ public interface MatchingDocumentOrBuilder
      * 
* * string search_text_snippet = 2; - * * @return The bytes for searchTextSnippet. */ - com.google.protobuf.ByteString getSearchTextSnippetBytes(); + com.google.protobuf.ByteString + getSearchTextSnippetBytes(); /** - * - * *
      * Experimental.
      * Additional result info if the question-answering feature is enabled.
      * 
* * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3; - * * @return Whether the qaResult field is set. */ boolean hasQaResult(); /** - * - * *
      * Experimental.
      * Additional result info if the question-answering feature is enabled.
      * 
* * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3; - * * @return The qaResult. */ com.google.cloud.contentwarehouse.v1.QAResult getQaResult(); /** - * - * *
      * Experimental.
      * Additional result info if the question-answering feature is enabled.
@@ -193,8 +152,6 @@ public interface MatchingDocumentOrBuilder
     com.google.cloud.contentwarehouse.v1.QAResultOrBuilder getQaResultOrBuilder();
   }
   /**
-   *
-   *
    * 
    * Document entry with metadata inside
    * [SearchDocumentsResponse][google.cloud.contentwarehouse.v1.SearchDocumentsResponse]
@@ -202,47 +159,42 @@ public interface MatchingDocumentOrBuilder
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument}
    */
-  public static final class MatchingDocument extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class MatchingDocument extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument)
       MatchingDocumentOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use MatchingDocument.newBuilder() to construct.
     private MatchingDocument(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private MatchingDocument() {
       searchTextSnippet_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new MatchingDocument();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
-          .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
-          .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.class,
-              com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder
-                  .class);
+              com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.class, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder.class);
     }
 
     public static final int DOCUMENT_FIELD_NUMBER = 1;
     private com.google.cloud.contentwarehouse.v1.Document document_;
     /**
-     *
-     *
      * 
      * Document that matches the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -250,7 +202,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return Whether the document field is set. */ @java.lang.Override @@ -258,8 +209,6 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
      * Document that matches the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -267,18 +216,13 @@ public boolean hasDocument() {
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return The document. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.Document getDocument() { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } /** - * - * *
      * Document that matches the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -289,18 +233,13 @@ public com.google.cloud.contentwarehouse.v1.Document getDocument() {
      */
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() {
-      return document_ == null
-          ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()
-          : document_;
+      return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_;
     }
 
     public static final int SEARCH_TEXT_SNIPPET_FIELD_NUMBER = 2;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object searchTextSnippet_ = "";
     /**
-     *
-     *
      * 
      * Contains snippets of text from the document full raw text that most
      * closely match a search query's keywords, if available. All HTML tags in
@@ -315,7 +254,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
      * 
* * string search_text_snippet = 2; - * * @return The searchTextSnippet. */ @java.lang.Override @@ -324,15 +262,14 @@ public java.lang.String getSearchTextSnippet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); searchTextSnippet_ = s; return s; } } /** - * - * *
      * Contains snippets of text from the document full raw text that most
      * closely match a search query's keywords, if available. All HTML tags in
@@ -347,15 +284,16 @@ public java.lang.String getSearchTextSnippet() {
      * 
* * string search_text_snippet = 2; - * * @return The bytes for searchTextSnippet. */ @java.lang.Override - public com.google.protobuf.ByteString getSearchTextSnippetBytes() { + public com.google.protobuf.ByteString + getSearchTextSnippetBytes() { java.lang.Object ref = searchTextSnippet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); searchTextSnippet_ = b; return b; } else { @@ -366,15 +304,12 @@ public com.google.protobuf.ByteString getSearchTextSnippetBytes() { public static final int QA_RESULT_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.QAResult qaResult_; /** - * - * *
      * Experimental.
      * Additional result info if the question-answering feature is enabled.
      * 
* * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3; - * * @return Whether the qaResult field is set. */ @java.lang.Override @@ -382,26 +317,19 @@ public boolean hasQaResult() { return qaResult_ != null; } /** - * - * *
      * Experimental.
      * Additional result info if the question-answering feature is enabled.
      * 
* * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3; - * * @return The qaResult. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.QAResult getQaResult() { - return qaResult_ == null - ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance() - : qaResult_; + return qaResult_ == null ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance() : qaResult_; } /** - * - * *
      * Experimental.
      * Additional result info if the question-answering feature is enabled.
@@ -411,13 +339,10 @@ public com.google.cloud.contentwarehouse.v1.QAResult getQaResult() {
      */
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.QAResultOrBuilder getQaResultOrBuilder() {
-      return qaResult_ == null
-          ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance()
-          : qaResult_;
+      return qaResult_ == null ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance() : qaResult_;
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -429,7 +354,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());
       }
@@ -449,13 +375,15 @@ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchTextSnippet_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, searchTextSnippet_);
       }
       if (qaResult_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQaResult());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(3, getQaResult());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -465,24 +393,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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument)) {
+      if (!(obj instanceof com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument)) {
         return super.equals(obj);
       }
-      com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument other =
-          (com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) obj;
+      com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument other = (com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) obj;
 
       if (hasDocument() != other.hasDocument()) return false;
       if (hasDocument()) {
-        if (!getDocument().equals(other.getDocument())) return false;
+        if (!getDocument()
+            .equals(other.getDocument())) return false;
       }
-      if (!getSearchTextSnippet().equals(other.getSearchTextSnippet())) return false;
+      if (!getSearchTextSnippet()
+          .equals(other.getSearchTextSnippet())) return false;
       if (hasQaResult() != other.hasQaResult()) return false;
       if (hasQaResult()) {
-        if (!getQaResult().equals(other.getQaResult())) return false;
+        if (!getQaResult()
+            .equals(other.getQaResult())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -510,101 +438,90 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        parseFrom(java.nio.ByteBuffer data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        parseFrom(
-            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument 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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        parseFrom(com.google.protobuf.ByteString data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        parseFrom(
-            com.google.protobuf.ByteString data,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
+        com.google.protobuf.ByteString data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        parseFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        parseFrom(
-            java.io.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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
+        java.io.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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument 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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument prototype) {
+    public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -614,45 +531,40 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Document entry with metadata inside
      * [SearchDocumentsResponse][google.cloud.contentwarehouse.v1.SearchDocumentsResponse]
      * 
* - * Protobuf type {@code - * google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument} + * Protobuf type {@code google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.class, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument - .Builder.class); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.class, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder.class); } - // Construct using - // com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.newBuilder() - private Builder() {} + // Construct using com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.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(); @@ -672,22 +584,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument - getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument - .getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.getDefaultInstance(); } @java.lang.Override public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument build() { - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument result = - buildPartial(); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -695,28 +604,27 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocu } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument - buildPartial() { - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument result = - new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument buildPartial() { + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument result = new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument 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.searchTextSnippet_ = searchTextSnippet_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.qaResult_ = qaResultBuilder_ == null ? qaResult_ : qaResultBuilder_.build(); + result.qaResult_ = qaResultBuilder_ == null + ? qaResult_ + : qaResultBuilder_.build(); } } @@ -724,56 +632,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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) { - return mergeFrom( - (com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) - other); + if (other instanceof com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) { + return mergeFrom((com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument other) { - if (other - == com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument other) { + if (other == com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.getDefaultInstance()) return this; if (other.hasDocument()) { mergeDocument(other.getDocument()); } @@ -811,31 +709,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - searchTextSnippet_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getQaResultFieldBuilder().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( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + searchTextSnippet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getQaResultFieldBuilder().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) { @@ -845,18 +743,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.contentwarehouse.v1.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> - documentBuilder_; + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> documentBuilder_; /** - * - * *
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -864,15 +756,12 @@ public Builder mergeFrom(
        * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -880,21 +769,16 @@ public boolean hasDocument() {
        * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return The document. */ public com.google.cloud.contentwarehouse.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -917,8 +801,6 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value)
         return this;
       }
       /**
-       *
-       *
        * 
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -939,8 +821,6 @@ public Builder setDocument(
         return this;
       }
       /**
-       *
-       *
        * 
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -951,9 +831,9 @@ public Builder setDocument(
        */
       public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value) {
         if (documentBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && document_ != null
-              && document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            document_ != null &&
+            document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) {
             getDocumentBuilder().mergeFrom(value);
           } else {
             document_ = value;
@@ -966,8 +846,6 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value
         return this;
       }
       /**
-       *
-       *
        * 
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -987,8 +865,6 @@ public Builder clearDocument() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -1003,8 +879,6 @@ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder(
         return getDocumentFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -1017,14 +891,11 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
         if (documentBuilder_ != null) {
           return documentBuilder_.getMessageOrBuilder();
         } else {
-          return document_ == null
-              ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()
-              : document_;
+          return document_ == null ?
+              com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_;
         }
       }
       /**
-       *
-       *
        * 
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -1034,17 +905,14 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
        * .google.cloud.contentwarehouse.v1.Document document = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.contentwarehouse.v1.Document,
-              com.google.cloud.contentwarehouse.v1.Document.Builder,
-              com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>
+          com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> 
           getDocumentFieldBuilder() {
         if (documentBuilder_ == null) {
-          documentBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.contentwarehouse.v1.Document,
-                  com.google.cloud.contentwarehouse.v1.Document.Builder,
-                  com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>(
-                  getDocument(), getParentForChildren(), isClean());
+          documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>(
+                  getDocument(),
+                  getParentForChildren(),
+                  isClean());
           document_ = null;
         }
         return documentBuilder_;
@@ -1052,8 +920,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
 
       private java.lang.Object searchTextSnippet_ = "";
       /**
-       *
-       *
        * 
        * Contains snippets of text from the document full raw text that most
        * closely match a search query's keywords, if available. All HTML tags in
@@ -1068,13 +934,13 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
        * 
* * string search_text_snippet = 2; - * * @return The searchTextSnippet. */ public java.lang.String getSearchTextSnippet() { java.lang.Object ref = searchTextSnippet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); searchTextSnippet_ = s; return s; @@ -1083,8 +949,6 @@ public java.lang.String getSearchTextSnippet() { } } /** - * - * *
        * Contains snippets of text from the document full raw text that most
        * closely match a search query's keywords, if available. All HTML tags in
@@ -1099,14 +963,15 @@ public java.lang.String getSearchTextSnippet() {
        * 
* * string search_text_snippet = 2; - * * @return The bytes for searchTextSnippet. */ - public com.google.protobuf.ByteString getSearchTextSnippetBytes() { + public com.google.protobuf.ByteString + getSearchTextSnippetBytes() { java.lang.Object ref = searchTextSnippet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); searchTextSnippet_ = b; return b; } else { @@ -1114,8 +979,6 @@ public com.google.protobuf.ByteString getSearchTextSnippetBytes() { } } /** - * - * *
        * Contains snippets of text from the document full raw text that most
        * closely match a search query's keywords, if available. All HTML tags in
@@ -1130,22 +993,18 @@ public com.google.protobuf.ByteString getSearchTextSnippetBytes() {
        * 
* * string search_text_snippet = 2; - * * @param value The searchTextSnippet to set. * @return This builder for chaining. */ - public Builder setSearchTextSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSearchTextSnippet( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } searchTextSnippet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Contains snippets of text from the document full raw text that most
        * closely match a search query's keywords, if available. All HTML tags in
@@ -1160,7 +1019,6 @@ public Builder setSearchTextSnippet(java.lang.String value) {
        * 
* * string search_text_snippet = 2; - * * @return This builder for chaining. */ public Builder clearSearchTextSnippet() { @@ -1170,8 +1028,6 @@ public Builder clearSearchTextSnippet() { return this; } /** - * - * *
        * Contains snippets of text from the document full raw text that most
        * closely match a search query's keywords, if available. All HTML tags in
@@ -1186,14 +1042,12 @@ public Builder clearSearchTextSnippet() {
        * 
* * string search_text_snippet = 2; - * * @param value The bytes for searchTextSnippet to set. * @return This builder for chaining. */ - public Builder setSearchTextSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSearchTextSnippetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); searchTextSnippet_ = value; bitField0_ |= 0x00000002; @@ -1203,49 +1057,36 @@ public Builder setSearchTextSnippetBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.QAResult qaResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.QAResult, - com.google.cloud.contentwarehouse.v1.QAResult.Builder, - com.google.cloud.contentwarehouse.v1.QAResultOrBuilder> - qaResultBuilder_; + com.google.cloud.contentwarehouse.v1.QAResult, com.google.cloud.contentwarehouse.v1.QAResult.Builder, com.google.cloud.contentwarehouse.v1.QAResultOrBuilder> qaResultBuilder_; /** - * - * *
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
        * 
* * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3; - * * @return Whether the qaResult field is set. */ public boolean hasQaResult() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
        * 
* * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3; - * * @return The qaResult. */ public com.google.cloud.contentwarehouse.v1.QAResult getQaResult() { if (qaResultBuilder_ == null) { - return qaResult_ == null - ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance() - : qaResult_; + return qaResult_ == null ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance() : qaResult_; } else { return qaResultBuilder_.getMessage(); } } /** - * - * *
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1267,8 +1108,6 @@ public Builder setQaResult(com.google.cloud.contentwarehouse.v1.QAResult value)
         return this;
       }
       /**
-       *
-       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1288,8 +1127,6 @@ public Builder setQaResult(
         return this;
       }
       /**
-       *
-       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1299,9 +1136,9 @@ public Builder setQaResult(
        */
       public Builder mergeQaResult(com.google.cloud.contentwarehouse.v1.QAResult value) {
         if (qaResultBuilder_ == null) {
-          if (((bitField0_ & 0x00000004) != 0)
-              && qaResult_ != null
-              && qaResult_ != com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000004) != 0) &&
+            qaResult_ != null &&
+            qaResult_ != com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance()) {
             getQaResultBuilder().mergeFrom(value);
           } else {
             qaResult_ = value;
@@ -1314,8 +1151,6 @@ public Builder mergeQaResult(com.google.cloud.contentwarehouse.v1.QAResult value
         return this;
       }
       /**
-       *
-       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1334,8 +1169,6 @@ public Builder clearQaResult() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1349,8 +1182,6 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Builder getQaResultBuilder(
         return getQaResultFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1362,14 +1193,11 @@ public com.google.cloud.contentwarehouse.v1.QAResultOrBuilder getQaResultOrBuild
         if (qaResultBuilder_ != null) {
           return qaResultBuilder_.getMessageOrBuilder();
         } else {
-          return qaResult_ == null
-              ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance()
-              : qaResult_;
+          return qaResult_ == null ?
+              com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance() : qaResult_;
         }
       }
       /**
-       *
-       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1378,22 +1206,18 @@ public com.google.cloud.contentwarehouse.v1.QAResultOrBuilder getQaResultOrBuild
        * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.contentwarehouse.v1.QAResult,
-              com.google.cloud.contentwarehouse.v1.QAResult.Builder,
-              com.google.cloud.contentwarehouse.v1.QAResultOrBuilder>
+          com.google.cloud.contentwarehouse.v1.QAResult, com.google.cloud.contentwarehouse.v1.QAResult.Builder, com.google.cloud.contentwarehouse.v1.QAResultOrBuilder> 
           getQaResultFieldBuilder() {
         if (qaResultBuilder_ == null) {
-          qaResultBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.contentwarehouse.v1.QAResult,
-                  com.google.cloud.contentwarehouse.v1.QAResult.Builder,
-                  com.google.cloud.contentwarehouse.v1.QAResultOrBuilder>(
-                  getQaResult(), getParentForChildren(), isClean());
+          qaResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.contentwarehouse.v1.QAResult, com.google.cloud.contentwarehouse.v1.QAResult.Builder, com.google.cloud.contentwarehouse.v1.QAResultOrBuilder>(
+                  getQaResult(),
+                  getParentForChildren(),
+                  isClean());
           qaResult_ = null;
         }
         return qaResultBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1406,46 +1230,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument)
-    private static final com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse
-            .MatchingDocument
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE =
-          new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument();
+      DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument();
     }
 
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        getDefaultInstance() {
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public MatchingDocument parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              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 MatchingDocument parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1457,121 +1276,88 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-        getDefaultInstanceForType() {
+    public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   public static final int MATCHING_DOCUMENTS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
-  private java.util.List<
-          com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument>
-      matchingDocuments_;
+  private java.util.List matchingDocuments_;
   /**
-   *
-   *
    * 
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument> - getMatchingDocumentsList() { + public java.util.List getMatchingDocumentsList() { return matchingDocuments_; } /** - * - * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse - .MatchingDocumentOrBuilder> + public java.util.List getMatchingDocumentsOrBuilderList() { return matchingDocuments_; } /** - * - * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ @java.lang.Override public int getMatchingDocumentsCount() { return matchingDocuments_.size(); } /** - * - * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument - getMatchingDocuments(int index) { + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument getMatchingDocuments(int index) { return matchingDocuments_.get(index); } /** - * - * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder - getMatchingDocumentsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder getMatchingDocumentsOrBuilder( + int index) { return matchingDocuments_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The token that specifies the starting position of the next page of results.
    * This field is empty if there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -1580,30 +1366,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The token that specifies the starting position of the next page of results.
    * This field is empty if there are no more results.
    * 
* * 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 { @@ -1614,8 +1400,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_ = 0; /** - * - * *
    * The total number of matched documents which is available only if the client
    * set
@@ -1628,7 +1412,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -1639,15 +1422,12 @@ public int getTotalSize() { public static final int METADATA_FIELD_NUMBER = 4; private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_; /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -1655,26 +1435,19 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4; - * * @return The metadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -1684,116 +1457,85 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() {
    */
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder() {
-    return metadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
-        : metadata_;
+    return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
   }
 
   public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER = 6;
-
   @SuppressWarnings("serial")
-  private java.util.List
-      histogramQueryResults_;
+  private java.util.List histogramQueryResults_;
   /**
-   *
-   *
    * 
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ @java.lang.Override - public java.util.List - getHistogramQueryResultsList() { + public java.util.List getHistogramQueryResultsList() { return histogramQueryResults_; } /** - * - * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder> + public java.util.List getHistogramQueryResultsOrBuilderList() { return histogramQueryResults_; } /** - * - * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ @java.lang.Override public int getHistogramQueryResultsCount() { return histogramQueryResults_.size(); } /** - * - * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQueryResults( - int index) { + public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQueryResults(int index) { return histogramQueryResults_.get(index); } /** - * - * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder - getHistogramQueryResultsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( + int index) { return histogramQueryResults_.get(index); } public static final int QUESTION_ANSWER_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object questionAnswer_ = ""; /** - * - * *
    * Experimental.
    * Question answer from the query against the document.
    * 
* * string question_answer = 7; - * * @return The questionAnswer. */ @java.lang.Override @@ -1802,30 +1544,30 @@ public java.lang.String getQuestionAnswer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); questionAnswer_ = s; return s; } } /** - * - * *
    * Experimental.
    * Question answer from the query against the document.
    * 
* * string question_answer = 7; - * * @return The bytes for questionAnswer. */ @java.lang.Override - public com.google.protobuf.ByteString getQuestionAnswerBytes() { + public com.google.protobuf.ByteString + getQuestionAnswerBytes() { java.lang.Object ref = questionAnswer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); questionAnswer_ = b; return b; } else { @@ -1834,7 +1576,6 @@ public com.google.protobuf.ByteString getQuestionAnswerBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1846,7 +1587,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 < matchingDocuments_.size(); i++) { output.writeMessage(1, matchingDocuments_.get(i)); } @@ -1875,22 +1617,23 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < matchingDocuments_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchingDocuments_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, matchingDocuments_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMetadata()); } for (int i = 0; i < histogramQueryResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, histogramQueryResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, histogramQueryResults_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(questionAnswer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, questionAnswer_); @@ -1903,23 +1646,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.contentwarehouse.v1.SearchDocumentsResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse other = - (com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse) obj; + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse other = (com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse) obj; - if (!getMatchingDocumentsList().equals(other.getMatchingDocumentsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getMatchingDocumentsList() + .equals(other.getMatchingDocumentsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; + if (!getMetadata() + .equals(other.getMetadata())) return false; } - if (!getHistogramQueryResultsList().equals(other.getHistogramQueryResultsList())) return false; - if (!getQuestionAnswer().equals(other.getQuestionAnswer())) return false; + if (!getHistogramQueryResultsList() + .equals(other.getHistogramQueryResultsList())) return false; + if (!getQuestionAnswer() + .equals(other.getQuestionAnswer())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1955,136 +1703,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse 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.contentwarehouse.v1.SearchDocumentsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse 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.contentwarehouse.v1.SearchDocumentsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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.SearchDocuments.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SearchDocumentsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SearchDocumentsResponse) com.google.cloud.contentwarehouse.v1.SearchDocumentsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.class, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.class, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.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(); @@ -2115,14 +1858,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.getDefaultInstance(); } @@ -2137,18 +1879,14 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse result = - new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse(this); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse result = new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse result) { if (matchingDocumentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { matchingDocuments_ = java.util.Collections.unmodifiableList(matchingDocuments_); @@ -2169,8 +1907,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -2179,7 +1916,9 @@ private void buildPartial0( result.totalSize_ = totalSize_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.questionAnswer_ = questionAnswer_; @@ -2190,39 +1929,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.contentwarehouse.v1.SearchDocumentsResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse)other); } else { super.mergeFrom(other); return this; @@ -2230,9 +1968,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse other) { - if (other - == com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.getDefaultInstance()) return this; if (matchingDocumentsBuilder_ == null) { if (!other.matchingDocuments_.isEmpty()) { if (matchingDocuments_.isEmpty()) { @@ -2251,10 +1987,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsRes matchingDocumentsBuilder_ = null; matchingDocuments_ = other.matchingDocuments_; bitField0_ = (bitField0_ & ~0x00000001); - matchingDocumentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMatchingDocumentsFieldBuilder() - : null; + matchingDocumentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMatchingDocumentsFieldBuilder() : null; } else { matchingDocumentsBuilder_.addAllMessages(other.matchingDocuments_); } @@ -2289,10 +2024,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsRes histogramQueryResultsBuilder_ = null; histogramQueryResults_ = other.histogramQueryResults_; bitField0_ = (bitField0_ & ~0x00000010); - histogramQueryResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHistogramQueryResultsFieldBuilder() - : null; + histogramQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHistogramQueryResultsFieldBuilder() : null; } else { histogramQueryResultsBuilder_.addAllMessages(other.histogramQueryResults_); } @@ -2329,66 +2063,60 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse - .MatchingDocument.parser(), - extensionRegistry); - if (matchingDocumentsBuilder_ == null) { - ensureMatchingDocumentsIsMutable(); - matchingDocuments_.add(m); - } else { - matchingDocumentsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - com.google.cloud.contentwarehouse.v1.HistogramQueryResult m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.HistogramQueryResult.parser(), - extensionRegistry); - if (histogramQueryResultsBuilder_ == null) { - ensureHistogramQueryResultsIsMutable(); - histogramQueryResults_.add(m); - } else { - histogramQueryResultsBuilder_.addMessage(m); - } - break; - } // case 50 - case 58: - { - questionAnswer_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.parser(), + extensionRegistry); + if (matchingDocumentsBuilder_ == null) { + ensureMatchingDocumentsIsMutable(); + matchingDocuments_.add(m); + } else { + matchingDocumentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + com.google.cloud.contentwarehouse.v1.HistogramQueryResult m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.HistogramQueryResult.parser(), + extensionRegistry); + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(m); + } else { + histogramQueryResultsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + questionAnswer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + 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) { @@ -2398,44 +2126,29 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument> - matchingDocuments_ = java.util.Collections.emptyList(); - + private java.util.List matchingDocuments_ = + java.util.Collections.emptyList(); private void ensureMatchingDocumentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - matchingDocuments_ = - new java.util.ArrayList< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument>( - matchingDocuments_); + matchingDocuments_ = new java.util.ArrayList(matchingDocuments_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder> - matchingDocumentsBuilder_; + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder> matchingDocumentsBuilder_; /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - public java.util.List< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument> - getMatchingDocumentsList() { + public java.util.List getMatchingDocumentsList() { if (matchingDocumentsBuilder_ == null) { return java.util.Collections.unmodifiableList(matchingDocuments_); } else { @@ -2443,16 +2156,12 @@ private void ensureMatchingDocumentsIsMutable() { } } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ public int getMatchingDocumentsCount() { if (matchingDocumentsBuilder_ == null) { @@ -2462,19 +2171,14 @@ public int getMatchingDocumentsCount() { } } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument - getMatchingDocuments(int index) { + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument getMatchingDocuments(int index) { if (matchingDocumentsBuilder_ == null) { return matchingDocuments_.get(index); } else { @@ -2482,20 +2186,15 @@ public int getMatchingDocumentsCount() { } } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ public Builder setMatchingDocuments( - int index, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument value) { + int index, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument value) { if (matchingDocumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2509,21 +2208,15 @@ public Builder setMatchingDocuments( return this; } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ public Builder setMatchingDocuments( - int index, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder - builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder builderForValue) { if (matchingDocumentsBuilder_ == null) { ensureMatchingDocumentsIsMutable(); matchingDocuments_.set(index, builderForValue.build()); @@ -2534,19 +2227,14 @@ public Builder setMatchingDocuments( return this; } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - public Builder addMatchingDocuments( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument value) { + public Builder addMatchingDocuments(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument value) { if (matchingDocumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2560,20 +2248,15 @@ public Builder addMatchingDocuments( return this; } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ public Builder addMatchingDocuments( - int index, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument value) { + int index, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument value) { if (matchingDocumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2587,20 +2270,15 @@ public Builder addMatchingDocuments( return this; } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ public Builder addMatchingDocuments( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder - builderForValue) { + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder builderForValue) { if (matchingDocumentsBuilder_ == null) { ensureMatchingDocumentsIsMutable(); matchingDocuments_.add(builderForValue.build()); @@ -2611,21 +2289,15 @@ public Builder addMatchingDocuments( return this; } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ public Builder addMatchingDocuments( - int index, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder - builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder builderForValue) { if (matchingDocumentsBuilder_ == null) { ensureMatchingDocumentsIsMutable(); matchingDocuments_.add(index, builderForValue.build()); @@ -2636,25 +2308,19 @@ public Builder addMatchingDocuments( return this; } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ public Builder addAllMatchingDocuments( - java.lang.Iterable< - ? extends - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument> - values) { + java.lang.Iterable values) { if (matchingDocumentsBuilder_ == null) { ensureMatchingDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchingDocuments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchingDocuments_); onChanged(); } else { matchingDocumentsBuilder_.addAllMessages(values); @@ -2662,16 +2328,12 @@ public Builder addAllMatchingDocuments( return this; } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ public Builder clearMatchingDocuments() { if (matchingDocumentsBuilder_ == null) { @@ -2684,16 +2346,12 @@ public Builder clearMatchingDocuments() { return this; } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ public Builder removeMatchingDocuments(int index) { if (matchingDocumentsBuilder_ == null) { @@ -2706,58 +2364,42 @@ public Builder removeMatchingDocuments(int index) { return this; } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder - getMatchingDocumentsBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder getMatchingDocumentsBuilder( + int index) { return getMatchingDocumentsFieldBuilder().getBuilder(index); } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder - getMatchingDocumentsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder getMatchingDocumentsOrBuilder( + int index) { if (matchingDocumentsBuilder_ == null) { - return matchingDocuments_.get(index); - } else { + return matchingDocuments_.get(index); } else { return matchingDocumentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - public java.util.List< - ? extends - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse - .MatchingDocumentOrBuilder> - getMatchingDocumentsOrBuilderList() { + public java.util.List + getMatchingDocumentsOrBuilderList() { if (matchingDocumentsBuilder_ != null) { return matchingDocumentsBuilder_.getMessageOrBuilderList(); } else { @@ -2765,75 +2407,48 @@ public Builder removeMatchingDocuments(int index) { } } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder - addMatchingDocumentsBuilder() { - return getMatchingDocumentsFieldBuilder() - .addBuilder( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument - .getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder addMatchingDocumentsBuilder() { + return getMatchingDocumentsFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.getDefaultInstance()); } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder - addMatchingDocumentsBuilder(int index) { - return getMatchingDocumentsFieldBuilder() - .addBuilder( - index, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument - .getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder addMatchingDocumentsBuilder( + int index) { + return getMatchingDocumentsFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.getDefaultInstance()); } /** - * - * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - public java.util.List< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder> - getMatchingDocumentsBuilderList() { + public java.util.List + getMatchingDocumentsBuilderList() { return getMatchingDocumentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder> + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder> getMatchingDocumentsFieldBuilder() { if (matchingDocumentsBuilder_ == null) { - matchingDocumentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument - .Builder, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse - .MatchingDocumentOrBuilder>( + matchingDocumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder>( matchingDocuments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2845,21 +2460,19 @@ public Builder removeMatchingDocuments(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The token that specifies the starting position of the next page of results.
      * This field is empty if there are no more results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -2868,22 +2481,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The token that specifies the starting position of the next page of results.
      * This field is empty if there are no more results.
      * 
* * 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 { @@ -2891,37 +2503,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The token that specifies the starting position of the next page of results.
      * This field is empty if there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The token that specifies the starting position of the next page of results.
      * This field is empty if there are no more results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -2931,22 +2536,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The token that specifies the starting position of the next page of results.
      * This field is empty if there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -2954,10 +2555,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of matched documents which is available only if the client
      * set
@@ -2970,7 +2569,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -2978,8 +2576,6 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of matched documents which is available only if the client
      * set
@@ -2992,7 +2588,6 @@ public int getTotalSize() {
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ @@ -3004,8 +2599,6 @@ public Builder setTotalSize(int value) { return this; } /** - * - * *
      * The total number of matched documents which is available only if the client
      * set
@@ -3018,7 +2611,6 @@ public Builder setTotalSize(int value) {
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -3030,49 +2622,36 @@ public Builder clearTotalSize() { private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ResponseMetadata, - com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, - com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> - metadataBuilder_; + com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> metadataBuilder_; /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4; - * * @return The metadata. */ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -3094,8 +2673,6 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -3115,8 +2692,6 @@ public Builder setMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -3126,10 +2701,9 @@ public Builder setMetadata(
      */
     public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && metadata_ != null
-            && metadata_
-                != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          metadata_ != null &&
+          metadata_ != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -3142,8 +2716,6 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -3162,8 +2734,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -3177,8 +2747,6 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadata
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -3190,14 +2758,11 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
-            : metadata_;
+        return metadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
       }
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -3206,54 +2771,40 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> 
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.ResponseMetadata,
-                com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
-                getMetadata(), getParentForChildren(), isClean());
+        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
+                getMetadata(),
+                getParentForChildren(),
+                isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
 
-    private java.util.List
-        histogramQueryResults_ = java.util.Collections.emptyList();
-
+    private java.util.List histogramQueryResults_ =
+      java.util.Collections.emptyList();
     private void ensureHistogramQueryResultsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
-        histogramQueryResults_ =
-            new java.util.ArrayList(
-                histogramQueryResults_);
+        histogramQueryResults_ = new java.util.ArrayList(histogramQueryResults_);
         bitField0_ |= 0x00000010;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.HistogramQueryResult,
-            com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder,
-            com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder>
-        histogramQueryResultsBuilder_;
+        com.google.cloud.contentwarehouse.v1.HistogramQueryResult, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder> histogramQueryResultsBuilder_;
 
     /**
-     *
-     *
      * 
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ - public java.util.List - getHistogramQueryResultsList() { + public java.util.List getHistogramQueryResultsList() { if (histogramQueryResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(histogramQueryResults_); } else { @@ -3261,16 +2812,12 @@ private void ensureHistogramQueryResultsIsMutable() { } } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ public int getHistogramQueryResultsCount() { if (histogramQueryResultsBuilder_ == null) { @@ -3280,19 +2827,14 @@ public int getHistogramQueryResultsCount() { } } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQueryResults( - int index) { + public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQueryResults(int index) { if (histogramQueryResultsBuilder_ == null) { return histogramQueryResults_.get(index); } else { @@ -3300,16 +2842,12 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQue } } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ public Builder setHistogramQueryResults( int index, com.google.cloud.contentwarehouse.v1.HistogramQueryResult value) { @@ -3326,20 +2864,15 @@ public Builder setHistogramQueryResults( return this; } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ public Builder setHistogramQueryResults( - int index, - com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder builderForValue) { if (histogramQueryResultsBuilder_ == null) { ensureHistogramQueryResultsIsMutable(); histogramQueryResults_.set(index, builderForValue.build()); @@ -3350,19 +2883,14 @@ public Builder setHistogramQueryResults( return this; } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ - public Builder addHistogramQueryResults( - com.google.cloud.contentwarehouse.v1.HistogramQueryResult value) { + public Builder addHistogramQueryResults(com.google.cloud.contentwarehouse.v1.HistogramQueryResult value) { if (histogramQueryResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3376,16 +2904,12 @@ public Builder addHistogramQueryResults( return this; } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ public Builder addHistogramQueryResults( int index, com.google.cloud.contentwarehouse.v1.HistogramQueryResult value) { @@ -3402,16 +2926,12 @@ public Builder addHistogramQueryResults( return this; } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ public Builder addHistogramQueryResults( com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder builderForValue) { @@ -3425,20 +2945,15 @@ public Builder addHistogramQueryResults( return this; } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ public Builder addHistogramQueryResults( - int index, - com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder builderForValue) { if (histogramQueryResultsBuilder_ == null) { ensureHistogramQueryResultsIsMutable(); histogramQueryResults_.add(index, builderForValue.build()); @@ -3449,23 +2964,19 @@ public Builder addHistogramQueryResults( return this; } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ public Builder addAllHistogramQueryResults( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (histogramQueryResultsBuilder_ == null) { ensureHistogramQueryResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueryResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, histogramQueryResults_); onChanged(); } else { histogramQueryResultsBuilder_.addAllMessages(values); @@ -3473,16 +2984,12 @@ public Builder addAllHistogramQueryResults( return this; } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ public Builder clearHistogramQueryResults() { if (histogramQueryResultsBuilder_ == null) { @@ -3495,16 +3002,12 @@ public Builder clearHistogramQueryResults() { return this; } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ public Builder removeHistogramQueryResults(int index) { if (histogramQueryResultsBuilder_ == null) { @@ -3517,56 +3020,42 @@ public Builder removeHistogramQueryResults(int index) { return this; } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder - getHistogramQueryResultsBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder getHistogramQueryResultsBuilder( + int index) { return getHistogramQueryResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder - getHistogramQueryResultsOrBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( + int index) { if (histogramQueryResultsBuilder_ == null) { - return histogramQueryResults_.get(index); - } else { + return histogramQueryResults_.get(index); } else { return histogramQueryResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ - public java.util.List< - ? extends com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder> - getHistogramQueryResultsOrBuilderList() { + public java.util.List + getHistogramQueryResultsOrBuilderList() { if (histogramQueryResultsBuilder_ != null) { return histogramQueryResultsBuilder_.getMessageOrBuilderList(); } else { @@ -3574,70 +3063,48 @@ public Builder removeHistogramQueryResults(int index) { } } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder - addHistogramQueryResultsBuilder() { - return getHistogramQueryResultsFieldBuilder() - .addBuilder( - com.google.cloud.contentwarehouse.v1.HistogramQueryResult.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder addHistogramQueryResultsBuilder() { + return getHistogramQueryResultsFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.HistogramQueryResult.getDefaultInstance()); } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder - addHistogramQueryResultsBuilder(int index) { - return getHistogramQueryResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.contentwarehouse.v1.HistogramQueryResult.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder addHistogramQueryResultsBuilder( + int index) { + return getHistogramQueryResultsFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.getDefaultInstance()); } /** - * - * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ - public java.util.List - getHistogramQueryResultsBuilderList() { + public java.util.List + getHistogramQueryResultsBuilderList() { return getHistogramQueryResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.HistogramQueryResult, - com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder, - com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder> + com.google.cloud.contentwarehouse.v1.HistogramQueryResult, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder> getHistogramQueryResultsFieldBuilder() { if (histogramQueryResultsBuilder_ == null) { - histogramQueryResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.HistogramQueryResult, - com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder, - com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder>( + histogramQueryResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.HistogramQueryResult, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder>( histogramQueryResults_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3649,21 +3116,19 @@ public Builder removeHistogramQueryResults(int index) { private java.lang.Object questionAnswer_ = ""; /** - * - * *
      * Experimental.
      * Question answer from the query against the document.
      * 
* * string question_answer = 7; - * * @return The questionAnswer. */ public java.lang.String getQuestionAnswer() { java.lang.Object ref = questionAnswer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); questionAnswer_ = s; return s; @@ -3672,22 +3137,21 @@ public java.lang.String getQuestionAnswer() { } } /** - * - * *
      * Experimental.
      * Question answer from the query against the document.
      * 
* * string question_answer = 7; - * * @return The bytes for questionAnswer. */ - public com.google.protobuf.ByteString getQuestionAnswerBytes() { + public com.google.protobuf.ByteString + getQuestionAnswerBytes() { java.lang.Object ref = questionAnswer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); questionAnswer_ = b; return b; } else { @@ -3695,37 +3159,30 @@ public com.google.protobuf.ByteString getQuestionAnswerBytes() { } } /** - * - * *
      * Experimental.
      * Question answer from the query against the document.
      * 
* * string question_answer = 7; - * * @param value The questionAnswer to set. * @return This builder for chaining. */ - public Builder setQuestionAnswer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQuestionAnswer( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } questionAnswer_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Experimental.
      * Question answer from the query against the document.
      * 
* * string question_answer = 7; - * * @return This builder for chaining. */ public Builder clearQuestionAnswer() { @@ -3735,31 +3192,27 @@ public Builder clearQuestionAnswer() { return this; } /** - * - * *
      * Experimental.
      * Question answer from the query against the document.
      * 
* * string question_answer = 7; - * * @param value The bytes for questionAnswer to set. * @return This builder for chaining. */ - public Builder setQuestionAnswerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQuestionAnswerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); questionAnswer_ = 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); } @@ -3769,13 +3222,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SearchDocumentsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SearchDocumentsResponse) - private static final com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse(); } @@ -3784,27 +3236,27 @@ public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchDocumentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 SearchDocumentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3819,4 +3271,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java similarity index 67% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java index 6656e0f85b7f..d940c7227a35 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java @@ -1,131 +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/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; -public interface SearchDocumentsResponseOrBuilder - extends +public interface SearchDocumentsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SearchDocumentsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - java.util.List + java.util.List getMatchingDocumentsList(); /** - * - * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument - getMatchingDocuments(int index); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument getMatchingDocuments(int index); /** - * - * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ int getMatchingDocumentsCount(); /** - * - * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - java.util.List< - ? extends - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse - .MatchingDocumentOrBuilder> + java.util.List getMatchingDocumentsOrBuilderList(); /** - * - * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; - * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; */ - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder - getMatchingDocumentsOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder getMatchingDocumentsOrBuilder( + int index); /** - * - * *
    * The token that specifies the starting position of the next page of results.
    * This field is empty if there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The token that specifies the starting position of the next page of results.
    * This field is empty if there are no more results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of matched documents which is available only if the client
    * set
@@ -138,40 +91,31 @@ public interface SearchDocumentsResponseOrBuilder
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4; - * * @return The metadata. */ com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -182,98 +126,73 @@ public interface SearchDocumentsResponseOrBuilder
   com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder();
 
   /**
-   *
-   *
    * 
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ - java.util.List + java.util.List getHistogramQueryResultsList(); /** - * - * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQueryResults(int index); /** - * - * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ int getHistogramQueryResultsCount(); /** - * - * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ - java.util.List + java.util.List getHistogramQueryResultsOrBuilderList(); /** - * - * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; - * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; */ - com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder - getHistogramQueryResultsOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( + int index); /** - * - * *
    * Experimental.
    * Question answer from the query against the document.
    * 
* * string question_answer = 7; - * * @return The questionAnswer. */ java.lang.String getQuestionAnswer(); /** - * - * *
    * Experimental.
    * Question answer from the query against the document.
    * 
* * string question_answer = 7; - * * @return The bytes for questionAnswer. */ - com.google.protobuf.ByteString getQuestionAnswerBytes(); + com.google.protobuf.ByteString + getQuestionAnswerBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java similarity index 78% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java index addbd757b972..4923bc30b1c5 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java @@ -1,74 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentService.SetAcl.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SetAclRequest} */ -public final class SetAclRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SetAclRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SetAclRequest) SetAclRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SetAclRequest.newBuilder() to construct. private SetAclRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SetAclRequest() { resource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SetAclRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SetAclRequest.class, - com.google.cloud.contentwarehouse.v1.SetAclRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.SetAclRequest.class, com.google.cloud.contentwarehouse.v1.SetAclRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object resource_ = ""; /** - * - * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -79,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ @java.lang.Override @@ -88,15 +65,14 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -107,15 +83,16 @@ public java.lang.String getResource() {
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -126,8 +103,6 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v1.Policy policy_; /** - * - * *
    * Required. REQUIRED: The complete policy to be applied to the `resource`.
    * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -151,7 +126,6 @@ public com.google.protobuf.ByteString getResourceBytes() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -159,8 +133,6 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Required. REQUIRED: The complete policy to be applied to the `resource`.
    * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -184,7 +156,6 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ @java.lang.Override @@ -192,8 +163,6 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * Required. REQUIRED: The complete policy to be applied to the `resource`.
    * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -226,15 +195,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
   public static final int REQUEST_METADATA_FIELD_NUMBER = 3;
   private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_;
   /**
-   *
-   *
    * 
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -242,26 +208,19 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -270,25 +229,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-      getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-        : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
   }
 
   public static final int PROJECT_OWNER_FIELD_NUMBER = 4;
   private boolean projectOwner_ = false;
   /**
-   *
-   *
    * 
    * For Set Project ACL only. Authorization check for end user will be ignored
    * when project_owner=true.
    * 
* * bool project_owner = 4; - * * @return The projectOwner. */ @java.lang.Override @@ -297,7 +250,6 @@ public boolean getProjectOwner() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } @@ -335,13 +288,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPolicy()); } if (requestMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRequestMetadata()); } if (projectOwner_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, projectOwner_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, projectOwner_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -351,24 +307,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.contentwarehouse.v1.SetAclRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.SetAclRequest other = - (com.google.cloud.contentwarehouse.v1.SetAclRequest) obj; + com.google.cloud.contentwarehouse.v1.SetAclRequest other = (com.google.cloud.contentwarehouse.v1.SetAclRequest) obj; - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) return false; + if (!getPolicy() + .equals(other.getPolicy())) return false; } if (hasRequestMetadata() != other.hasRequestMetadata()) return false; if (hasRequestMetadata()) { - if (!getRequestMetadata().equals(other.getRequestMetadata())) return false; + if (!getRequestMetadata() + .equals(other.getRequestMetadata())) return false; } - if (getProjectOwner() != other.getProjectOwner()) return false; + if (getProjectOwner() + != other.getProjectOwner()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -391,142 +350,139 @@ public int hashCode() { hash = (53 * hash) + getRequestMetadata().hashCode(); } hash = (37 * hash) + PROJECT_OWNER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProjectOwner()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getProjectOwner()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.SetAclRequest 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.contentwarehouse.v1.SetAclRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.SetAclRequest 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.contentwarehouse.v1.SetAclRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SetAclRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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.SetAcl.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SetAclRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SetAclRequest) com.google.cloud.contentwarehouse.v1.SetAclRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SetAclRequest.class, - com.google.cloud.contentwarehouse.v1.SetAclRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.SetAclRequest.class, com.google.cloud.contentwarehouse.v1.SetAclRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.SetAclRequest.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(); @@ -547,9 +503,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; } @java.lang.Override @@ -568,11 +524,8 @@ public com.google.cloud.contentwarehouse.v1.SetAclRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.SetAclRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.SetAclRequest result = - new com.google.cloud.contentwarehouse.v1.SetAclRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.SetAclRequest result = new com.google.cloud.contentwarehouse.v1.SetAclRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -583,11 +536,14 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SetAclRequest re result.resource_ = resource_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null + ? policy_ + : policyBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.requestMetadata_ = - requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + result.requestMetadata_ = requestMetadataBuilder_ == null + ? requestMetadata_ + : requestMetadataBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.projectOwner_ = projectOwner_; @@ -598,39 +554,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SetAclRequest 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.contentwarehouse.v1.SetAclRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.SetAclRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.SetAclRequest)other); } else { super.mergeFrom(other); return this; @@ -638,8 +593,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SetAclRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.SetAclRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.SetAclRequest.getDefaultInstance()) return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; bitField0_ |= 0x00000001; @@ -680,37 +634,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - projectOwner_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + projectOwner_ = 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) { @@ -720,13 +673,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object resource_ = ""; /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -737,13 +687,13 @@ public Builder mergeFrom(
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -752,8 +702,6 @@ public java.lang.String getResource() { } } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -764,14 +712,15 @@ public java.lang.String getResource() {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -779,8 +728,6 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -791,22 +738,18 @@ public com.google.protobuf.ByteString getResourceBytes() {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resource_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -817,7 +760,6 @@ public Builder setResource(java.lang.String value) {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearResource() { @@ -827,8 +769,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -839,14 +779,12 @@ public Builder clearResource() {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resource_ = value; bitField0_ |= 0x00000001; @@ -856,13 +794,8 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - policyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; /** - * - * *
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -886,15 +819,12 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -918,7 +848,6 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -929,8 +858,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -969,8 +896,6 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -995,7 +920,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
      *
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
+    public Builder setPolicy(
+        com.google.iam.v1.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
       } else {
@@ -1006,8 +932,6 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -1034,9 +958,9 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
      */
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && policy_ != null
-            && policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          policy_ != null &&
+          policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
           getPolicyBuilder().mergeFrom(value);
         } else {
           policy_ = value;
@@ -1049,8 +973,6 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -1086,8 +1008,6 @@ public Builder clearPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -1118,8 +1038,6 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -1148,12 +1066,11 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ?
+            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -1179,16 +1096,14 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy,
-            com.google.iam.v1.Policy.Builder,
-            com.google.iam.v1.PolicyOrBuilder>
+        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.iam.v1.Policy,
-                com.google.iam.v1.Policy.Builder,
-                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
+        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
+                getPolicy(),
+                getParentForChildren(),
+                isClean());
         policy_ = null;
       }
       return policyBuilder_;
@@ -1196,49 +1111,36 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
 
     private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
-        requestMetadataBuilder_;
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_;
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1260,8 +1162,6 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1281,8 +1181,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1290,13 +1188,11 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public Builder mergeRequestMetadata(
-        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && requestMetadata_ != null
-            && requestMetadata_
-                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          requestMetadata_ != null &&
+          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -1309,8 +1205,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1329,8 +1223,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1338,15 +1230,12 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
-        getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1354,19 +1243,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-        getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-            : requestMetadata_;
+        return requestMetadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1375,33 +1260,27 @@ public Builder clearRequestMetadata() {
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RequestMetadata,
-                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(), getParentForChildren(), isClean());
+        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(),
+                getParentForChildren(),
+                isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
 
-    private boolean projectOwner_;
+    private boolean projectOwner_ ;
     /**
-     *
-     *
      * 
      * For Set Project ACL only. Authorization check for end user will be ignored
      * when project_owner=true.
      * 
* * bool project_owner = 4; - * * @return The projectOwner. */ @java.lang.Override @@ -1409,15 +1288,12 @@ public boolean getProjectOwner() { return projectOwner_; } /** - * - * *
      * For Set Project ACL only. Authorization check for end user will be ignored
      * when project_owner=true.
      * 
* * bool project_owner = 4; - * * @param value The projectOwner to set. * @return This builder for chaining. */ @@ -1429,15 +1305,12 @@ public Builder setProjectOwner(boolean value) { return this; } /** - * - * *
      * For Set Project ACL only. Authorization check for end user will be ignored
      * when project_owner=true.
      * 
* * bool project_owner = 4; - * * @return This builder for chaining. */ public Builder clearProjectOwner() { @@ -1446,9 +1319,9 @@ public Builder clearProjectOwner() { 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); } @@ -1458,12 +1331,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SetAclRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SetAclRequest) private static final com.google.cloud.contentwarehouse.v1.SetAclRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SetAclRequest(); } @@ -1472,27 +1345,27 @@ public static com.google.cloud.contentwarehouse.v1.SetAclRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetAclRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 SetAclRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1507,4 +1380,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.SetAclRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java similarity index 88% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java index 02393bbe3270..e82d983fea89 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface SetAclRequestOrBuilder - extends +public interface SetAclRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SetAclRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -36,13 +18,10 @@ public interface SetAclRequestOrBuilder
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ java.lang.String getResource(); /** - * - * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -53,14 +32,12 @@ public interface SetAclRequestOrBuilder
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
    * Required. REQUIRED: The complete policy to be applied to the `resource`.
    * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -84,13 +61,10 @@ public interface SetAclRequestOrBuilder
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * Required. REQUIRED: The complete policy to be applied to the `resource`.
    * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -114,13 +88,10 @@ public interface SetAclRequestOrBuilder
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** - * - * *
    * Required. REQUIRED: The complete policy to be applied to the `resource`.
    * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -148,34 +119,26 @@ public interface SetAclRequestOrBuilder
   com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -186,15 +149,12 @@ public interface SetAclRequestOrBuilder
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
-   *
-   *
    * 
    * For Set Project ACL only. Authorization check for end user will be ignored
    * when project_owner=true.
    * 
* * bool project_owner = 4; - * * @return The projectOwner. */ boolean getProjectOwner(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java similarity index 70% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java index ae5bfc8abe1f..beb4f7658662 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.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/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Response message for DocumentService.SetAcl.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SetAclResponse} */ -public final class SetAclResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SetAclResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SetAclResponse) SetAclResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SetAclResponse.newBuilder() to construct. private SetAclResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SetAclResponse() {} + private SetAclResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SetAclResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SetAclResponse.class, - com.google.cloud.contentwarehouse.v1.SetAclResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.SetAclResponse.class, com.google.cloud.contentwarehouse.v1.SetAclResponse.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.iam.v1.Policy policy_; /** - * - * *
    * The policy will be attached to a resource (e.g. projecct, document).
    * 
* * .google.iam.v1.Policy policy = 1; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -78,14 +57,11 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * The policy will be attached to a resource (e.g. projecct, document).
    * 
* * .google.iam.v1.Policy policy = 1; - * * @return The policy. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * The policy will be attached to a resource (e.g. projecct, document).
    * 
@@ -109,15 +83,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { public static final int METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_; /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -125,26 +96,19 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; - * * @return The metadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -154,13 +118,10 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() {
    */
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder() {
-    return metadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
-        : metadata_;
+    return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -172,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 (policy_ != null) {
       output.writeMessage(1, getPolicy());
     }
@@ -189,10 +151,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getPolicy());
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -202,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.contentwarehouse.v1.SetAclResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.SetAclResponse other =
-        (com.google.cloud.contentwarehouse.v1.SetAclResponse) obj;
+    com.google.cloud.contentwarehouse.v1.SetAclResponse other = (com.google.cloud.contentwarehouse.v1.SetAclResponse) obj;
 
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy().equals(other.getPolicy())) return false;
+      if (!getPolicy()
+          .equals(other.getPolicy())) return false;
     }
     if (hasMetadata() != other.hasMetadata()) return false;
     if (hasMetadata()) {
-      if (!getMetadata().equals(other.getMetadata())) return false;
+      if (!getMetadata()
+          .equals(other.getMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -243,135 +208,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse 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.contentwarehouse.v1.SetAclResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse 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.contentwarehouse.v1.SetAclResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SetAclResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder 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.SetAcl.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SetAclResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SetAclResponse) com.google.cloud.contentwarehouse.v1.SetAclResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SetAclResponse.class, - com.google.cloud.contentwarehouse.v1.SetAclResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.SetAclResponse.class, com.google.cloud.contentwarehouse.v1.SetAclResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.SetAclResponse.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 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; } @java.lang.Override @@ -411,11 +372,8 @@ public com.google.cloud.contentwarehouse.v1.SetAclResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.SetAclResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.SetAclResponse result = - new com.google.cloud.contentwarehouse.v1.SetAclResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.SetAclResponse result = new com.google.cloud.contentwarehouse.v1.SetAclResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -423,10 +381,14 @@ public com.google.cloud.contentwarehouse.v1.SetAclResponse buildPartial() { private void buildPartial0(com.google.cloud.contentwarehouse.v1.SetAclResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null + ? policy_ + : policyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); } } @@ -434,39 +396,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SetAclResponse 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.contentwarehouse.v1.SetAclResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.SetAclResponse) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.SetAclResponse)other); } else { super.mergeFrom(other); return this; @@ -474,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SetAclResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.SetAclResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.SetAclResponse.getDefaultInstance()) return this; if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } @@ -508,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getMetadataFieldBuilder().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( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getMetadataFieldBuilder().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,38 +497,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - policyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
* * .google.iam.v1.Policy policy = 1; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
* * .google.iam.v1.Policy policy = 1; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -578,8 +529,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -600,15 +549,14 @@ public Builder setPolicy(com.google.iam.v1.Policy value) { return this; } /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
* * .google.iam.v1.Policy policy = 1; */ - public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { + public Builder setPolicy( + com.google.iam.v1.Policy.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); } else { @@ -619,8 +567,6 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { return this; } /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -629,9 +575,9 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { */ public Builder mergePolicy(com.google.iam.v1.Policy value) { if (policyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && policy_ != null - && policy_ != com.google.iam.v1.Policy.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + policy_ != null && + policy_ != com.google.iam.v1.Policy.getDefaultInstance()) { getPolicyBuilder().mergeFrom(value); } else { policy_ = value; @@ -644,8 +590,6 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { return this; } /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -663,8 +607,6 @@ public Builder clearPolicy() { return this; } /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -677,8 +619,6 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() { return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -689,12 +629,11 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; + return policy_ == null ? + com.google.iam.v1.Policy.getDefaultInstance() : policy_; } } /** - * - * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -702,16 +641,14 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { * .google.iam.v1.Policy policy = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean()); + policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>( + getPolicy(), + getParentForChildren(), + isClean()); policy_ = null; } return policyBuilder_; @@ -719,49 +656,36 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ResponseMetadata, - com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, - com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> - metadataBuilder_; + com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> metadataBuilder_; /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; - * * @return The metadata. */ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -783,8 +707,6 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -804,8 +726,6 @@ public Builder setMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -815,10 +735,9 @@ public Builder setMetadata(
      */
     public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && metadata_ != null
-            && metadata_
-                != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          metadata_ != null &&
+          metadata_ != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -831,8 +750,6 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -851,8 +768,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -866,8 +781,6 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadata
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -879,14 +792,11 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
-            : metadata_;
+        return metadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
       }
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -895,24 +805,21 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> 
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.ResponseMetadata,
-                com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
-                getMetadata(), getParentForChildren(), isClean());
+        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
+                getMetadata(),
+                getParentForChildren(),
+                isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
-
     @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.contentwarehouse.v1.SetAclResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SetAclResponse)
   private static final com.google.cloud.contentwarehouse.v1.SetAclResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SetAclResponse();
   }
@@ -936,27 +843,27 @@ public static com.google.cloud.contentwarehouse.v1.SetAclResponse getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SetAclResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 SetAclResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.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.contentwarehouse.v1.SetAclResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java
similarity index 72%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java
index cdda54f1db4f..2a8d5b8bf250 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.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/contentwarehouse/v1/document_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface SetAclResponseOrBuilder
-    extends
+public interface SetAclResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SetAclResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The policy will be attached to a resource (e.g. projecct, document).
    * 
* * .google.iam.v1.Policy policy = 1; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * The policy will be attached to a resource (e.g. projecct, document).
    * 
* * .google.iam.v1.Policy policy = 1; - * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** - * - * *
    * The policy will be attached to a resource (e.g. projecct, document).
    * 
@@ -59,34 +35,26 @@ public interface SetAclResponseOrBuilder com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; - * * @return The metadata. */ com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java
similarity index 73%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java
index 77694f2c6cc2..3d2c3edc6efc 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.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/contentwarehouse/v1/synonymset.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Represents a list of synonyms for a given context.
  * For example a context "sales" could contain:
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.SynonymSet}
  */
-public final class SynonymSet extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SynonymSet extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SynonymSet)
     SynonymSetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SynonymSet.newBuilder() to construct.
   private SynonymSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SynonymSet() {
     name_ = "";
     context_ = "";
@@ -50,84 +32,70 @@ private SynonymSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SynonymSet();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetProto
-        .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetProto
-        .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.SynonymSet.class,
-            com.google.cloud.contentwarehouse.v1.SynonymSet.Builder.class);
+            com.google.cloud.contentwarehouse.v1.SynonymSet.class, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder.class);
   }
 
-  public interface SynonymOrBuilder
-      extends
+  public interface SynonymOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SynonymSet.Synonym)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; - * * @return A list containing the words. */ - java.util.List getWordsList(); + java.util.List + getWordsList(); /** - * - * *
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; - * * @return The count of words. */ int getWordsCount(); /** - * - * *
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; - * * @param index The index of the element to return. * @return The words at the given index. */ java.lang.String getWords(int index); /** - * - * *
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; - * * @param index The index of the value to return. * @return The bytes of the words at the given index. */ - com.google.protobuf.ByteString getWordsBytes(int index); + com.google.protobuf.ByteString + getWordsBytes(int index); } /** - * - * *
    * Represents a list of words given by the customer
    * All these words are synonyms of each other.
@@ -135,83 +103,73 @@ public interface SynonymOrBuilder
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.SynonymSet.Synonym}
    */
-  public static final class Synonym extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Synonym extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SynonymSet.Synonym)
       SynonymOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Synonym.newBuilder() to construct.
     private Synonym(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Synonym() {
-      words_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      words_ =
+          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 Synonym();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetProto
-          .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetProto
-          .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.class,
-              com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder.class);
+              com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.class, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder.class);
     }
 
     public static final int WORDS_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private com.google.protobuf.LazyStringArrayList words_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
     /**
-     *
-     *
      * 
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; - * * @return A list containing the words. */ - public com.google.protobuf.ProtocolStringList getWordsList() { + public com.google.protobuf.ProtocolStringList + getWordsList() { return words_; } /** - * - * *
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; - * * @return The count of words. */ public int getWordsCount() { return words_.size(); } /** - * - * *
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; - * * @param index The index of the element to return. * @return The words at the given index. */ @@ -219,23 +177,20 @@ public java.lang.String getWords(int index) { return words_.get(index); } /** - * - * *
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; - * * @param index The index of the value to return. * @return The bytes of the words at the given index. */ - public com.google.protobuf.ByteString getWordsBytes(int index) { + public com.google.protobuf.ByteString + getWordsBytes(int index) { return words_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < words_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, words_.getRaw(i)); } @@ -276,15 +232,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.contentwarehouse.v1.SynonymSet.Synonym)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym other = - (com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym) obj; + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym other = (com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym) obj; - if (!getWordsList().equals(other.getWordsList())) return false; + if (!getWordsList() + .equals(other.getWordsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -306,94 +262,89 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym 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.contentwarehouse.v1.SynonymSet.Synonym parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym 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.contentwarehouse.v1.SynonymSet.Synonym parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -403,8 +354,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represents a list of words given by the customer
      * All these words are synonyms of each other.
@@ -412,45 +361,46 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.contentwarehouse.v1.SynonymSet.Synonym}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SynonymSet.Synonym)
         com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.contentwarehouse.v1.SynonymSetProto
-            .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.contentwarehouse.v1.SynonymSetProto
-            .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_fieldAccessorTable
+        return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.class,
-                com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder.class);
+                com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.class, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder.class);
       }
 
       // Construct using com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.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;
-        words_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        words_ =
+            com.google.protobuf.LazyStringArrayList.emptyList();
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.contentwarehouse.v1.SynonymSetProto
-            .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor;
       }
 
       @java.lang.Override
@@ -469,11 +419,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym build() {
 
       @java.lang.Override
       public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym buildPartial() {
-        com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym result =
-            new com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym result = new com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -490,41 +437,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SynonymSet.Synon
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.contentwarehouse.v1.SynonymSet.Synonym) {
-          return mergeFrom((com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym) other);
+          return mergeFrom((com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -532,8 +476,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym other) {
-        if (other == com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.getDefaultInstance()) return this;
         if (!other.words_.isEmpty()) {
           if (words_.isEmpty()) {
             words_ = other.words_;
@@ -570,20 +513,18 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensureWordsIsMutable();
-                  words_.add(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();
+                ensureWordsIsMutable();
+                words_.add(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) {
@@ -593,12 +534,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.protobuf.LazyStringArrayList words_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
-
       private void ensureWordsIsMutable() {
         if (!words_.isModifiable()) {
           words_ = new com.google.protobuf.LazyStringArrayList(words_);
@@ -606,43 +545,35 @@ private void ensureWordsIsMutable() {
         bitField0_ |= 0x00000001;
       }
       /**
-       *
-       *
        * 
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; - * * @return A list containing the words. */ - public com.google.protobuf.ProtocolStringList getWordsList() { + public com.google.protobuf.ProtocolStringList + getWordsList() { words_.makeImmutable(); return words_; } /** - * - * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; - * * @return The count of words. */ public int getWordsCount() { return words_.size(); } /** - * - * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; - * * @param index The index of the element to return. * @return The words at the given index. */ @@ -650,37 +581,31 @@ public java.lang.String getWords(int index) { return words_.get(index); } /** - * - * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; - * * @param index The index of the value to return. * @return The bytes of the words at the given index. */ - public com.google.protobuf.ByteString getWordsBytes(int index) { + public com.google.protobuf.ByteString + getWordsBytes(int index) { return words_.getByteString(index); } /** - * - * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; - * * @param index The index to set the value at. * @param value The words to set. * @return This builder for chaining. */ - public Builder setWords(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWords( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureWordsIsMutable(); words_.set(index, value); bitField0_ |= 0x00000001; @@ -688,21 +613,17 @@ public Builder setWords(int index, java.lang.String value) { return this; } /** - * - * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; - * * @param value The words to add. * @return This builder for chaining. */ - public Builder addWords(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addWords( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureWordsIsMutable(); words_.add(value); bitField0_ |= 0x00000001; @@ -710,58 +631,50 @@ public Builder addWords(java.lang.String value) { return this; } /** - * - * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; - * * @param values The words to add. * @return This builder for chaining. */ - public Builder addAllWords(java.lang.Iterable values) { + public Builder addAllWords( + java.lang.Iterable values) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, words_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; - * * @return This builder for chaining. */ public Builder clearWords() { - words_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + words_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; - * * @param value The bytes of the words to add. * @return This builder for chaining. */ - public Builder addWordsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addWordsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureWordsIsMutable(); words_.add(value); @@ -769,7 +682,6 @@ public Builder addWordsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -782,12 +694,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SynonymSet.Synonym) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SynonymSet.Synonym) private static final com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym(); } @@ -796,28 +708,27 @@ public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Synonym parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Synonym parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,15 +743,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the SynonymSet
    * This is mandatory for google.api.resource.
@@ -849,7 +758,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getDefaultInstanc
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -858,15 +766,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the SynonymSet
    * This is mandatory for google.api.resource.
@@ -875,15 +782,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -892,12 +800,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int CONTEXT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object context_ = ""; /** - * - * *
    * This is a freeform field. Example contexts can be "sales," "engineering,"
    * "real estate," "accounting," etc.
@@ -905,7 +810,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string context = 2; - * * @return The context. */ @java.lang.Override @@ -914,15 +818,14 @@ public java.lang.String getContext() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; } } /** - * - * *
    * This is a freeform field. Example contexts can be "sales," "engineering,"
    * "real estate," "accounting," etc.
@@ -930,15 +833,16 @@ public java.lang.String getContext() {
    * 
* * string context = 2; - * * @return The bytes for context. */ @java.lang.Override - public com.google.protobuf.ByteString getContextBytes() { + public com.google.protobuf.ByteString + getContextBytes() { java.lang.Object ref = context_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); context_ = b; return b; } else { @@ -947,12 +851,9 @@ public com.google.protobuf.ByteString getContextBytes() { } public static final int SYNONYMS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List synonyms_; /** - * - * *
    * List of Synonyms for the context.
    * 
@@ -964,8 +865,6 @@ public java.util.List g return synonyms_; } /** - * - * *
    * List of Synonyms for the context.
    * 
@@ -973,13 +872,11 @@ public java.util.List g * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ @java.lang.Override - public java.util.List + public java.util.List getSynonymsOrBuilderList() { return synonyms_; } /** - * - * *
    * List of Synonyms for the context.
    * 
@@ -991,8 +888,6 @@ public int getSynonymsCount() { return synonyms_.size(); } /** - * - * *
    * List of Synonyms for the context.
    * 
@@ -1004,8 +899,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getSynonyms(int i return synonyms_.get(index); } /** - * - * *
    * List of Synonyms for the context.
    * 
@@ -1019,7 +912,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynon } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1031,7 +923,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_); } @@ -1057,7 +950,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, context_); } for (int i = 0; i < synonyms_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, synonyms_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, synonyms_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1067,17 +961,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.contentwarehouse.v1.SynonymSet)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.SynonymSet other = - (com.google.cloud.contentwarehouse.v1.SynonymSet) obj; + com.google.cloud.contentwarehouse.v1.SynonymSet other = (com.google.cloud.contentwarehouse.v1.SynonymSet) obj; - if (!getName().equals(other.getName())) return false; - if (!getContext().equals(other.getContext())) return false; - if (!getSynonymsList().equals(other.getSynonymsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getContext() + .equals(other.getContext())) return false; + if (!getSynonymsList() + .equals(other.getSynonymsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1102,104 +998,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet 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.contentwarehouse.v1.SynonymSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SynonymSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.SynonymSet 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.contentwarehouse.v1.SynonymSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SynonymSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a list of synonyms for a given context.
    * For example a context "sales" could contain:
@@ -1211,32 +1102,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.SynonymSet}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SynonymSet)
       com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetProto
-          .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetProto
-          .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.SynonymSet.class,
-              com.google.cloud.contentwarehouse.v1.SynonymSet.Builder.class);
+              com.google.cloud.contentwarehouse.v1.SynonymSet.class, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.SynonymSet.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();
@@ -1254,9 +1146,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetProto
-          .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor;
     }
 
     @java.lang.Override
@@ -1275,18 +1167,14 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.SynonymSet buildPartial() {
-      com.google.cloud.contentwarehouse.v1.SynonymSet result =
-          new com.google.cloud.contentwarehouse.v1.SynonymSet(this);
+      com.google.cloud.contentwarehouse.v1.SynonymSet result = new com.google.cloud.contentwarehouse.v1.SynonymSet(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.contentwarehouse.v1.SynonymSet result) {
+    private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.SynonymSet result) {
       if (synonymsBuilder_ == null) {
         if (((bitField0_ & 0x00000004) != 0)) {
           synonyms_ = java.util.Collections.unmodifiableList(synonyms_);
@@ -1312,39 +1200,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SynonymSet 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.contentwarehouse.v1.SynonymSet) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.SynonymSet) other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.SynonymSet)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1352,8 +1239,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SynonymSet other) {
-      if (other == com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1382,10 +1268,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SynonymSet other)
             synonymsBuilder_ = null;
             synonyms_ = other.synonyms_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            synonymsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSynonymsFieldBuilder()
-                    : null;
+            synonymsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSynonymsFieldBuilder() : null;
           } else {
             synonymsBuilder_.addAllMessages(other.synonyms_);
           }
@@ -1417,39 +1302,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                context_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym m =
-                    input.readMessage(
-                        com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.parser(),
-                        extensionRegistry);
-                if (synonymsBuilder_ == null) {
-                  ensureSynonymsIsMutable();
-                  synonyms_.add(m);
-                } else {
-                  synonymsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            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: {
+              context_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym m =
+                  input.readMessage(
+                      com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.parser(),
+                      extensionRegistry);
+              if (synonymsBuilder_ == null) {
+                ensureSynonymsIsMutable();
+                synonyms_.add(m);
+              } else {
+                synonymsBuilder_.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) {
@@ -1459,13 +1340,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1474,13 +1352,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1489,8 +1367,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1499,14 +1375,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1514,8 +1391,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1524,22 +1399,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1548,7 +1419,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1558,8 +1428,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1568,14 +1436,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1585,8 +1451,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object context_ = ""; /** - * - * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1594,13 +1458,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string context = 2; - * * @return The context. */ public java.lang.String getContext() { java.lang.Object ref = context_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; @@ -1609,8 +1473,6 @@ public java.lang.String getContext() { } } /** - * - * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1618,14 +1480,15 @@ public java.lang.String getContext() {
      * 
* * string context = 2; - * * @return The bytes for context. */ - public com.google.protobuf.ByteString getContextBytes() { + public com.google.protobuf.ByteString + getContextBytes() { java.lang.Object ref = context_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); context_ = b; return b; } else { @@ -1633,8 +1496,6 @@ public com.google.protobuf.ByteString getContextBytes() { } } /** - * - * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1642,22 +1503,18 @@ public com.google.protobuf.ByteString getContextBytes() {
      * 
* * string context = 2; - * * @param value The context to set. * @return This builder for chaining. */ - public Builder setContext(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContext( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } context_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1665,7 +1522,6 @@ public Builder setContext(java.lang.String value) {
      * 
* * string context = 2; - * * @return This builder for chaining. */ public Builder clearContext() { @@ -1675,8 +1531,6 @@ public Builder clearContext() { return this; } /** - * - * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1684,14 +1538,12 @@ public Builder clearContext() {
      * 
* * string context = 2; - * * @param value The bytes for context to set. * @return This builder for chaining. */ - public Builder setContextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); context_ = value; bitField0_ |= 0x00000002; @@ -1700,34 +1552,25 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { } private java.util.List synonyms_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSynonymsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - synonyms_ = - new java.util.ArrayList( - synonyms_); + synonyms_ = new java.util.ArrayList(synonyms_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym, - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder, - com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder> - synonymsBuilder_; + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder, com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder> synonymsBuilder_; /** - * - * *
      * List of Synonyms for the context.
      * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ - public java.util.List - getSynonymsList() { + public java.util.List getSynonymsList() { if (synonymsBuilder_ == null) { return java.util.Collections.unmodifiableList(synonyms_); } else { @@ -1735,8 +1578,6 @@ private void ensureSynonymsIsMutable() { } } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1751,8 +1592,6 @@ public int getSynonymsCount() { } } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1767,8 +1606,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getSynonyms(int i } } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1790,8 +1627,6 @@ public Builder setSynonyms( return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1799,8 +1634,7 @@ public Builder setSynonyms( * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ public Builder setSynonyms( - int index, - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder builderForValue) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.set(index, builderForValue.build()); @@ -1811,8 +1645,6 @@ public Builder setSynonyms( return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1833,8 +1665,6 @@ public Builder addSynonyms(com.google.cloud.contentwarehouse.v1.SynonymSet.Synon return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1856,8 +1686,6 @@ public Builder addSynonyms( return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1876,8 +1704,6 @@ public Builder addSynonyms( return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1885,8 +1711,7 @@ public Builder addSynonyms( * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ public Builder addSynonyms( - int index, - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder builderForValue) { + int index, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder builderForValue) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.add(index, builderForValue.build()); @@ -1897,8 +1722,6 @@ public Builder addSynonyms( return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1906,11 +1729,11 @@ public Builder addSynonyms( * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ public Builder addAllSynonyms( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, synonyms_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, synonyms_); onChanged(); } else { synonymsBuilder_.addAllMessages(values); @@ -1918,8 +1741,6 @@ public Builder addAllSynonyms( return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1937,8 +1758,6 @@ public Builder clearSynonyms() { return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1956,8 +1775,6 @@ public Builder removeSynonyms(int index) { return this; } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1969,8 +1786,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder getSynony return getSynonymsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -1980,23 +1795,19 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder getSynony public com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynonymsOrBuilder( int index) { if (synonymsBuilder_ == null) { - return synonyms_.get(index); - } else { + return synonyms_.get(index); } else { return synonymsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of Synonyms for the context.
      * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ - public java.util.List< - ? extends com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder> - getSynonymsOrBuilderList() { + public java.util.List + getSynonymsOrBuilderList() { if (synonymsBuilder_ != null) { return synonymsBuilder_.getMessageOrBuilderList(); } else { @@ -2004,8 +1815,6 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynon } } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -2013,12 +1822,10 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynon * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder addSynonymsBuilder() { - return getSynonymsFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.getDefaultInstance()); + return getSynonymsFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.getDefaultInstance()); } /** - * - * *
      * List of Synonyms for the context.
      * 
@@ -2027,43 +1834,37 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder addSynony */ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder addSynonymsBuilder( int index) { - return getSynonymsFieldBuilder() - .addBuilder( - index, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.getDefaultInstance()); + return getSynonymsFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.getDefaultInstance()); } /** - * - * *
      * List of Synonyms for the context.
      * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ - public java.util.List - getSynonymsBuilderList() { + public java.util.List + getSynonymsBuilderList() { return getSynonymsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym, - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder, - com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder> + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder, com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder> getSynonymsFieldBuilder() { if (synonymsBuilder_ == null) { - synonymsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym, - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder, - com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder>( - synonyms_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + synonymsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder, com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder>( + synonyms_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); synonyms_ = null; } return synonymsBuilder_; } - @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); } @@ -2073,12 +1874,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SynonymSet) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SynonymSet) private static final com.google.cloud.contentwarehouse.v1.SynonymSet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SynonymSet(); } @@ -2087,27 +1888,27 @@ public static com.google.cloud.contentwarehouse.v1.SynonymSet getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynonymSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 SynonymSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2122,4 +1923,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.SynonymSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java similarity index 74% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java index f7aff5c35eea..0a85f954ece9 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.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/contentwarehouse/v1/synonymset.proto package com.google.cloud.contentwarehouse.v1; -public interface SynonymSetOrBuilder - extends +public interface SynonymSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SynonymSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the SynonymSet
    * This is mandatory for google.api.resource.
@@ -34,13 +16,10 @@ public interface SynonymSetOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the SynonymSet
    * This is mandatory for google.api.resource.
@@ -49,14 +28,12 @@ public interface SynonymSetOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * This is a freeform field. Example contexts can be "sales," "engineering,"
    * "real estate," "accounting," etc.
@@ -64,13 +41,10 @@ public interface SynonymSetOrBuilder
    * 
* * string context = 2; - * * @return The context. */ java.lang.String getContext(); /** - * - * *
    * This is a freeform field. Example contexts can be "sales," "engineering,"
    * "real estate," "accounting," etc.
@@ -78,24 +52,21 @@ public interface SynonymSetOrBuilder
    * 
* * string context = 2; - * * @return The bytes for context. */ - com.google.protobuf.ByteString getContextBytes(); + com.google.protobuf.ByteString + getContextBytes(); /** - * - * *
    * List of Synonyms for the context.
    * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ - java.util.List getSynonymsList(); + java.util.List + getSynonymsList(); /** - * - * *
    * List of Synonyms for the context.
    * 
@@ -104,8 +75,6 @@ public interface SynonymSetOrBuilder */ com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getSynonyms(int index); /** - * - * *
    * List of Synonyms for the context.
    * 
@@ -114,24 +83,21 @@ public interface SynonymSetOrBuilder */ int getSynonymsCount(); /** - * - * *
    * List of Synonyms for the context.
    * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ - java.util.List + java.util.List getSynonymsOrBuilderList(); /** - * - * *
    * List of Synonyms for the context.
    * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ - com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynonymsOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynonymsOrBuilder( + int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java new file mode 100644 index 000000000000..dfc5588035d0 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class SynonymSetProto { + private SynonymSetProto() {} + 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_contentwarehouse_v1_SynonymSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_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/contentwarehouse/v1/synon" + + "ymset.proto\022 google.cloud.contentwarehou" + + "se.v1\032\031google/api/resource.proto\"\375\001\n\nSyn" + + "onymSet\022\014\n\004name\030\001 \001(\t\022\017\n\007context\030\002 \001(\t\022F" + + "\n\010synonyms\030\003 \003(\01324.google.cloud.contentw" + + "arehouse.v1.SynonymSet.Synonym\032\030\n\007Synony" + + "m\022\r\n\005words\030\001 \003(\t:n\352Ak\n*contentwarehouse." + + "googleapis.com/SynonymSet\022=projects/{pro" + + "ject}/locations/{location}/synonymSets/{" + + "context}B\367\001\n$com.google.cloud.contentwar" + + "ehouse.v1B\017SynonymSetProtoP\001ZPcloud.goog" + + "le.com/go/contentwarehouse/apiv1/content" + + "warehousepb;contentwarehousepb\252\002 Google." + + "Cloud.ContentWarehouse.V1\312\002 Google\\Cloud" + + "\\ContentWarehouse\\V1\352\002#Google::Cloud::Co" + + "ntentWarehouse::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor, + new java.lang.String[] { "Name", "Context", "Synonyms", }); + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor = + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor, + new java.lang.String[] { "Words", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + 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-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java new file mode 100644 index 000000000000..4c0f30367918 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java @@ -0,0 +1,94 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class SynonymSetServiceProto { + private SynonymSetServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/contentwarehouse/v1/synon" + + "ymset_service.proto\022 google.cloud.conten" + + "twarehouse.v1\032\034google/api/annotations.pr" + + "oto\032\027google/api/client.proto\0321google/clo" + + "ud/contentwarehouse/v1/synonymset.proto\032" + + "Agoogle/cloud/contentwarehouse/v1/synony" + + "mset_service_request.proto\032\033google/proto" + + "buf/empty.proto2\303\010\n\021SynonymSetService\022\326\001" + + "\n\020CreateSynonymSet\0229.google.cloud.conten" + + "twarehouse.v1.CreateSynonymSetRequest\032,." + + "google.cloud.contentwarehouse.v1.Synonym" + + "Set\"Y\332A\022parent,synonym_set\202\323\344\223\002>\"//v1/{p" + + "arent=projects/*/locations/*}/synonymSet" + + "s:\013synonym_set\022\265\001\n\rGetSynonymSet\0226.googl" + + "e.cloud.contentwarehouse.v1.GetSynonymSe" + + "tRequest\032,.google.cloud.contentwarehouse" + + ".v1.SynonymSet\">\332A\004name\202\323\344\223\0021\022//v1/{name" + + "=projects/*/locations/*/synonymSets/*}\022\324" + + "\001\n\020UpdateSynonymSet\0229.google.cloud.conte" + + "ntwarehouse.v1.UpdateSynonymSetRequest\032," + + ".google.cloud.contentwarehouse.v1.Synony" + + "mSet\"W\332A\020name,synonym_set\202\323\344\223\002>2//v1/{na" + + "me=projects/*/locations/*/synonymSets/*}" + + ":\013synonym_set\022\245\001\n\020DeleteSynonymSet\0229.goo" + + "gle.cloud.contentwarehouse.v1.DeleteSyno" + + "nymSetRequest\032\026.google.protobuf.Empty\">\332" + + "A\004name\202\323\344\223\0021*//v1/{name=projects/*/locat" + + "ions/*/synonymSets/*}\022\310\001\n\017ListSynonymSet" + + "s\0228.google.cloud.contentwarehouse.v1.Lis" + + "tSynonymSetsRequest\0329.google.cloud.conte" + + "ntwarehouse.v1.ListSynonymSetsResponse\"@" + + "\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/" + + "locations/*}/synonymSets\032S\312A\037contentware" + + "house.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\376\001\n$com.go" + + "ogle.cloud.contentwarehouse.v1B\026SynonymS" + + "etServiceProtoP\001ZPcloud.google.com/go/co" + + "ntentwarehouse/apiv1/contentwarehousepb;" + + "contentwarehousepb\252\002 Google.Cloud.Conten" + + "tWarehouse.V1\312\002 Google\\Cloud\\ContentWare" + + "house\\V1\352\002#Google::Cloud::ContentWarehou" + + "se::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.cloud.contentwarehouse.v1.SynonymSetProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.SynonymSetProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java new file mode 100644 index 000000000000..fee397d03f36 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class SynonymSetServiceRequestProto { + private SynonymSetServiceRequestProto() {} + 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_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_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/contentwarehouse/v1/synon" + + "ymset_service_request.proto\022 google.clou" + + "d.contentwarehouse.v1\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\0321google/cloud/contentwarehouse/v1/syno" + + "nymset.proto\"\245\001\n\027CreateSynonymSetRequest" + + "\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareho" + + "use.googleapis.com/Location\022G\n\013synonym_s" + + "et\030\002 \001(\0132,.google.cloud.contentwarehouse" + + ".v1.SynonymSetB\004\342A\001\002\"Y\n\024GetSynonymSetReq" + + "uest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*contentware" + + "house.googleapis.com/SynonymSet\"\202\001\n\026List" + + "SynonymSetsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002" + + "\372A*\n(contentwarehouse.googleapis.com/Loc" + + "ation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\"v\n\027ListSynonymSetsResponse\022B\n\014synon" + + "ym_sets\030\001 \003(\0132,.google.cloud.contentware" + + "house.v1.SynonymSet\022\027\n\017next_page_token\030\002" + + " \001(\t\"\245\001\n\027UpdateSynonymSetRequest\022A\n\004name" + + "\030\001 \001(\tB3\342A\001\002\372A,\n*contentwarehouse.google" + + "apis.com/SynonymSet\022G\n\013synonym_set\030\002 \001(\013" + + "2,.google.cloud.contentwarehouse.v1.Syno" + + "nymSetB\004\342A\001\002\"\\\n\027DeleteSynonymSetRequest\022" + + "A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*contentwarehouse" + + ".googleapis.com/SynonymSetB\205\002\n$com.googl" + + "e.cloud.contentwarehouse.v1B\035SynonymSetS" + + "erviceRequestProtoP\001ZPcloud.google.com/g" + + "o/contentwarehouse/apiv1/contentwarehous" + + "epb;contentwarehousepb\252\002 Google.Cloud.Co" + + "ntentWarehouse.V1\312\002 Google\\Cloud\\Content" + + "Warehouse\\V1\352\002#Google::Cloud::ContentWar" + + "ehouse::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.contentwarehouse.v1.SynonymSetProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor, + new java.lang.String[] { "Parent", "SynonymSet", }); + internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor, + new java.lang.String[] { "SynonymSets", "NextPageToken", }); + internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor, + new java.lang.String[] { "Name", "SynonymSet", }); + internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor, + new java.lang.String[] { "Name", }); + 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.contentwarehouse.v1.SynonymSetProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java similarity index 66% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java index ceae76c8b018..ed53dae75554 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java @@ -1,109 +1,82 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * String/text values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TextArray} */ -public final class TextArray extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextArray extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.TextArray) TextArrayOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextArray.newBuilder() to construct. private TextArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextArray() { - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + values_ = + 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 TextArray(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TextArray.class, - com.google.cloud.contentwarehouse.v1.TextArray.Builder.class); + com.google.cloud.contentwarehouse.v1.TextArray.class, com.google.cloud.contentwarehouse.v1.TextArray.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * List of text values.
    * 
* * repeated string values = 1; - * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList getValuesList() { + public com.google.protobuf.ProtocolStringList + getValuesList() { return values_; } /** - * - * *
    * List of text values.
    * 
* * repeated string values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
    * List of text values.
    * 
* * repeated string values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -111,23 +84,20 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** - * - * *
    * List of text values.
    * 
* * repeated string values = 1; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString getValuesBytes(int index) { + public com.google.protobuf.ByteString + getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,7 +109,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 < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } @@ -168,15 +139,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.contentwarehouse.v1.TextArray)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.TextArray other = - (com.google.cloud.contentwarehouse.v1.TextArray) obj; + com.google.cloud.contentwarehouse.v1.TextArray other = (com.google.cloud.contentwarehouse.v1.TextArray) obj; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -197,148 +168,145 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TextArray 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.contentwarehouse.v1.TextArray parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TextArray parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TextArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.TextArray 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.contentwarehouse.v1.TextArray parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.TextArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * String/text values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TextArray} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.TextArray) com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TextArray.class, - com.google.cloud.contentwarehouse.v1.TextArray.Builder.class); + com.google.cloud.contentwarehouse.v1.TextArray.class, com.google.cloud.contentwarehouse.v1.TextArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.TextArray.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; - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; } @java.lang.Override @@ -357,11 +325,8 @@ public com.google.cloud.contentwarehouse.v1.TextArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TextArray buildPartial() { - com.google.cloud.contentwarehouse.v1.TextArray result = - new com.google.cloud.contentwarehouse.v1.TextArray(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.TextArray result = new com.google.cloud.contentwarehouse.v1.TextArray(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -378,39 +343,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.TextArray 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.contentwarehouse.v1.TextArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.TextArray) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.TextArray)other); } else { super.mergeFrom(other); return this; @@ -455,20 +419,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(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(); + ensureValuesIsMutable(); + values_.add(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) { @@ -478,12 +440,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValuesIsMutable() { if (!values_.isModifiable()) { values_ = new com.google.protobuf.LazyStringArrayList(values_); @@ -491,43 +451,35 @@ private void ensureValuesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * List of text values.
      * 
* * repeated string values = 1; - * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList getValuesList() { + public com.google.protobuf.ProtocolStringList + getValuesList() { values_.makeImmutable(); return values_; } /** - * - * *
      * List of text values.
      * 
* * repeated string values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
      * List of text values.
      * 
* * repeated string values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -535,37 +487,31 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** - * - * *
      * List of text values.
      * 
* * repeated string values = 1; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString getValuesBytes(int index) { + public com.google.protobuf.ByteString + getValuesBytes(int index) { return values_.getByteString(index); } /** - * - * *
      * List of text values.
      * 
* * repeated string 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, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValues( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); bitField0_ |= 0x00000001; @@ -573,21 +519,17 @@ public Builder setValues(int index, java.lang.String value) { return this; } /** - * - * *
      * List of text values.
      * 
* * repeated string values = 1; - * * @param value The values to add. * @return This builder for chaining. */ - public Builder addValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addValues( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); bitField0_ |= 0x00000001; @@ -595,58 +537,50 @@ public Builder addValues(java.lang.String value) { return this; } /** - * - * *
      * List of text values.
      * 
* * repeated string 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * List of text values.
      * 
* * repeated string values = 1; - * * @return This builder for chaining. */ public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * List of text values.
      * 
* * repeated string values = 1; - * * @param value The bytes of the values to add. * @return This builder for chaining. */ - public Builder addValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); @@ -654,9 +588,9 @@ public Builder addValuesBytes(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); } @@ -666,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.TextArray) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.TextArray) private static final com.google.cloud.contentwarehouse.v1.TextArray DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.TextArray(); } @@ -680,27 +614,27 @@ public static com.google.cloud.contentwarehouse.v1.TextArray getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 TextArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -715,4 +649,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.TextArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java similarity index 57% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java index d7d8820a2b8d..dc86975de9b1 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java @@ -1,76 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface TextArrayOrBuilder - extends +public interface TextArrayOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TextArray) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of text values.
    * 
* * repeated string values = 1; - * * @return A list containing the values. */ - java.util.List getValuesList(); + java.util.List + getValuesList(); /** - * - * *
    * List of text values.
    * 
* * repeated string values = 1; - * * @return The count of values. */ int getValuesCount(); /** - * - * *
    * List of text values.
    * 
* * repeated string values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** - * - * *
    * List of text values.
    * 
* * repeated string values = 1; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - com.google.protobuf.ByteString getValuesBytes(int index); + com.google.protobuf.ByteString + getValuesBytes(int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java similarity index 64% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java index 8282d3eb19d7..ac9a91a45040 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java @@ -1,67 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Configurations for a text property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TextTypeOptions} */ -public final class TextTypeOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextTypeOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.TextTypeOptions) TextTypeOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextTypeOptions.newBuilder() to construct. private TextTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextTypeOptions() {} + private TextTypeOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TextTypeOptions.class, - com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.TextTypeOptions.class, com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -73,7 +54,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 { getUnknownFields().writeTo(output); } @@ -91,13 +73,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.contentwarehouse.v1.TextTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.TextTypeOptions other = - (com.google.cloud.contentwarehouse.v1.TextTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.TextTypeOptions other = (com.google.cloud.contentwarehouse.v1.TextTypeOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -116,135 +97,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.TextTypeOptions 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.contentwarehouse.v1.TextTypeOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.TextTypeOptions 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.contentwarehouse.v1.TextTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.TextTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Configurations for a text property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TextTypeOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.TextTypeOptions) com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TextTypeOptions.class, - com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.TextTypeOptions.class, com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.TextTypeOptions.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(); @@ -252,9 +229,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; } @java.lang.Override @@ -273,8 +250,7 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TextTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.TextTypeOptions result = - new com.google.cloud.contentwarehouse.v1.TextTypeOptions(this); + com.google.cloud.contentwarehouse.v1.TextTypeOptions result = new com.google.cloud.contentwarehouse.v1.TextTypeOptions(this); onBuilt(); return result; } @@ -283,39 +259,38 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.TextTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.TextTypeOptions) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.TextTypeOptions)other); } else { super.mergeFrom(other); return this; @@ -323,8 +298,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.TextTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -351,13 +325,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -367,9 +340,9 @@ public Builder mergeFrom( } // finally 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); } @@ -379,12 +352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.TextTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.TextTypeOptions) private static final com.google.cloud.contentwarehouse.v1.TextTypeOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.TextTypeOptions(); } @@ -393,27 +366,27 @@ public static com.google.cloud.contentwarehouse.v1.TextTypeOptions getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 TextTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -428,4 +401,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.TextTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..6103d2919128 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface TextTypeOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TextTypeOptions) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java similarity index 67% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java index 106a3b14fc63..7762af14cad5 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java @@ -1,80 +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/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Filter on create timestamp or update timestamp of documents.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimeFilter} */ -public final class TimeFilter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TimeFilter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.TimeFilter) TimeFilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TimeFilter.newBuilder() to construct. private TimeFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TimeFilter() { timeField_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TimeFilter(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimeFilter.class, - com.google.cloud.contentwarehouse.v1.TimeFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.TimeFilter.class, com.google.cloud.contentwarehouse.v1.TimeFilter.Builder.class); } /** - * - * *
    * Time field used in TimeFilter.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.TimeFilter.TimeField} */ - public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { + public enum TimeField + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value.
      * 
@@ -83,8 +61,6 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { */ TIME_FIELD_UNSPECIFIED(0), /** - * - * *
      * Earliest document create time.
      * 
@@ -93,8 +69,6 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { */ CREATE_TIME(1), /** - * - * *
      * Latest document update time.
      * 
@@ -103,8 +77,6 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { */ UPDATE_TIME(2), /** - * - * *
      * Time when document becomes mutable again.
      * 
@@ -116,8 +88,6 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value.
      * 
@@ -126,8 +96,6 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIME_FIELD_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Earliest document create time.
      * 
@@ -136,8 +104,6 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATE_TIME_VALUE = 1; /** - * - * *
      * Latest document update time.
      * 
@@ -146,8 +112,6 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATE_TIME_VALUE = 2; /** - * - * *
      * Time when document becomes mutable again.
      * 
@@ -156,6 +120,7 @@ public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DISPOSITION_TIME_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -180,51 +145,50 @@ public static TimeField valueOf(int value) { */ public static TimeField forNumber(int value) { switch (value) { - case 0: - return TIME_FIELD_UNSPECIFIED; - case 1: - return CREATE_TIME; - case 2: - return UPDATE_TIME; - case 3: - return DISPOSITION_TIME; - default: - return null; + case 0: return TIME_FIELD_UNSPECIFIED; + case 1: return CREATE_TIME; + case 2: return UPDATE_TIME; + case 3: return DISPOSITION_TIME; + 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< + TimeField> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TimeField findValueByNumber(int number) { + return TimeField.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TimeField findValueByNumber(int number) { - return TimeField.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.contentwarehouse.v1.TimeFilter.getDescriptor().getEnumTypes().get(0); } private static final TimeField[] VALUES = values(); - public static TimeField valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TimeField 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; @@ -245,7 +209,6 @@ private TimeField(int value) { private com.google.type.Interval timeRange_; /** * .google.type.Interval time_range = 1; - * * @return Whether the timeRange field is set. */ @java.lang.Override @@ -254,14 +217,15 @@ public boolean hasTimeRange() { } /** * .google.type.Interval time_range = 1; - * * @return The timeRange. */ @java.lang.Override public com.google.type.Interval getTimeRange() { return timeRange_ == null ? com.google.type.Interval.getDefaultInstance() : timeRange_; } - /** .google.type.Interval time_range = 1; */ + /** + * .google.type.Interval time_range = 1; + */ @java.lang.Override public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { return timeRange_ == null ? com.google.type.Interval.getDefaultInstance() : timeRange_; @@ -270,8 +234,6 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { public static final int TIME_FIELD_FIELD_NUMBER = 2; private int timeField_ = 0; /** - * - * *
    * Specifies which time field to filter documents on.
    *
@@ -279,16 +241,12 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() {
    * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @return The enum numeric value on the wire for timeField. */ - @java.lang.Override - public int getTimeFieldValue() { + @java.lang.Override public int getTimeFieldValue() { return timeField_; } /** - * - * *
    * Specifies which time field to filter documents on.
    *
@@ -296,20 +254,14 @@ public int getTimeFieldValue() {
    * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @return The timeField. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField() { - com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField result = - com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.forNumber(timeField_); - return result == null - ? com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField() { + com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField result = com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.forNumber(timeField_); + return result == null ? com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -321,13 +273,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 (timeRange_ != null) { output.writeMessage(1, getTimeRange()); } - if (timeField_ - != com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED - .getNumber()) { + if (timeField_ != com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED.getNumber()) { output.writeEnum(2, timeField_); } getUnknownFields().writeTo(output); @@ -340,12 +291,12 @@ public int getSerializedSize() { size = 0; if (timeRange_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeRange()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTimeRange()); } - if (timeField_ - != com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, timeField_); + if (timeField_ != com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, timeField_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -355,17 +306,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.contentwarehouse.v1.TimeFilter)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.TimeFilter other = - (com.google.cloud.contentwarehouse.v1.TimeFilter) obj; + com.google.cloud.contentwarehouse.v1.TimeFilter other = (com.google.cloud.contentwarehouse.v1.TimeFilter) obj; if (hasTimeRange() != other.hasTimeRange()) return false; if (hasTimeRange()) { - if (!getTimeRange().equals(other.getTimeRange())) return false; + if (!getTimeRange() + .equals(other.getTimeRange())) return false; } if (timeField_ != other.timeField_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -390,136 +341,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimeFilter 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.contentwarehouse.v1.TimeFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimeFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TimeFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.TimeFilter 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.contentwarehouse.v1.TimeFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.TimeFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Filter on create timestamp or update timestamp of documents.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimeFilter} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.TimeFilter) com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimeFilter.class, - com.google.cloud.contentwarehouse.v1.TimeFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.TimeFilter.class, com.google.cloud.contentwarehouse.v1.TimeFilter.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.TimeFilter.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(); @@ -534,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; } @java.lang.Override @@ -555,11 +502,8 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimeFilter buildPartial() { - com.google.cloud.contentwarehouse.v1.TimeFilter result = - new com.google.cloud.contentwarehouse.v1.TimeFilter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.TimeFilter result = new com.google.cloud.contentwarehouse.v1.TimeFilter(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -567,7 +511,9 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter buildPartial() { private void buildPartial0(com.google.cloud.contentwarehouse.v1.TimeFilter result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.timeRange_ = timeRangeBuilder_ == null ? timeRange_ : timeRangeBuilder_.build(); + result.timeRange_ = timeRangeBuilder_ == null + ? timeRange_ + : timeRangeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.timeField_ = timeField_; @@ -578,39 +524,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.TimeFilter 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.contentwarehouse.v1.TimeFilter) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.TimeFilter) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.TimeFilter)other); } else { super.mergeFrom(other); return this; @@ -618,8 +563,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.TimeFilter other) { - if (other == com.google.cloud.contentwarehouse.v1.TimeFilter.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.TimeFilter.getDefaultInstance()) return this; if (other.hasTimeRange()) { mergeTimeRange(other.getTimeRange()); } @@ -652,25 +596,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getTimeRangeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - timeField_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getTimeRangeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + timeField_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -680,18 +623,13 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.type.Interval timeRange_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, - com.google.type.Interval.Builder, - com.google.type.IntervalOrBuilder> - timeRangeBuilder_; + com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> timeRangeBuilder_; /** * .google.type.Interval time_range = 1; - * * @return Whether the timeRange field is set. */ public boolean hasTimeRange() { @@ -699,7 +637,6 @@ public boolean hasTimeRange() { } /** * .google.type.Interval time_range = 1; - * * @return The timeRange. */ public com.google.type.Interval getTimeRange() { @@ -709,7 +646,9 @@ public com.google.type.Interval getTimeRange() { return timeRangeBuilder_.getMessage(); } } - /** .google.type.Interval time_range = 1; */ + /** + * .google.type.Interval time_range = 1; + */ public Builder setTimeRange(com.google.type.Interval value) { if (timeRangeBuilder_ == null) { if (value == null) { @@ -723,8 +662,11 @@ public Builder setTimeRange(com.google.type.Interval value) { onChanged(); return this; } - /** .google.type.Interval time_range = 1; */ - public Builder setTimeRange(com.google.type.Interval.Builder builderForValue) { + /** + * .google.type.Interval time_range = 1; + */ + public Builder setTimeRange( + com.google.type.Interval.Builder builderForValue) { if (timeRangeBuilder_ == null) { timeRange_ = builderForValue.build(); } else { @@ -734,12 +676,14 @@ public Builder setTimeRange(com.google.type.Interval.Builder builderForValue) { onChanged(); return this; } - /** .google.type.Interval time_range = 1; */ + /** + * .google.type.Interval time_range = 1; + */ public Builder mergeTimeRange(com.google.type.Interval value) { if (timeRangeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && timeRange_ != null - && timeRange_ != com.google.type.Interval.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + timeRange_ != null && + timeRange_ != com.google.type.Interval.getDefaultInstance()) { getTimeRangeBuilder().mergeFrom(value); } else { timeRange_ = value; @@ -751,7 +695,9 @@ public Builder mergeTimeRange(com.google.type.Interval value) { onChanged(); return this; } - /** .google.type.Interval time_range = 1; */ + /** + * .google.type.Interval time_range = 1; + */ public Builder clearTimeRange() { bitField0_ = (bitField0_ & ~0x00000001); timeRange_ = null; @@ -762,33 +708,37 @@ public Builder clearTimeRange() { onChanged(); return this; } - /** .google.type.Interval time_range = 1; */ + /** + * .google.type.Interval time_range = 1; + */ public com.google.type.Interval.Builder getTimeRangeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimeRangeFieldBuilder().getBuilder(); } - /** .google.type.Interval time_range = 1; */ + /** + * .google.type.Interval time_range = 1; + */ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { if (timeRangeBuilder_ != null) { return timeRangeBuilder_.getMessageOrBuilder(); } else { - return timeRange_ == null ? com.google.type.Interval.getDefaultInstance() : timeRange_; + return timeRange_ == null ? + com.google.type.Interval.getDefaultInstance() : timeRange_; } } - /** .google.type.Interval time_range = 1; */ + /** + * .google.type.Interval time_range = 1; + */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, - com.google.type.Interval.Builder, - com.google.type.IntervalOrBuilder> + com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> getTimeRangeFieldBuilder() { if (timeRangeBuilder_ == null) { - timeRangeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, - com.google.type.Interval.Builder, - com.google.type.IntervalOrBuilder>( - getTimeRange(), getParentForChildren(), isClean()); + timeRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder>( + getTimeRange(), + getParentForChildren(), + isClean()); timeRange_ = null; } return timeRangeBuilder_; @@ -796,8 +746,6 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { private int timeField_ = 0; /** - * - * *
      * Specifies which time field to filter documents on.
      *
@@ -805,16 +753,12 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() {
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @return The enum numeric value on the wire for timeField. */ - @java.lang.Override - public int getTimeFieldValue() { + @java.lang.Override public int getTimeFieldValue() { return timeField_; } /** - * - * *
      * Specifies which time field to filter documents on.
      *
@@ -822,7 +766,6 @@ public int getTimeFieldValue() {
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @param value The enum numeric value on the wire for timeField to set. * @return This builder for chaining. */ @@ -833,8 +776,6 @@ public Builder setTimeFieldValue(int value) { return this; } /** - * - * *
      * Specifies which time field to filter documents on.
      *
@@ -842,20 +783,14 @@ public Builder setTimeFieldValue(int value) {
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @return The timeField. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField() { - com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField result = - com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.forNumber(timeField_); - return result == null - ? com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.UNRECOGNIZED - : result; + com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField result = com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.forNumber(timeField_); + return result == null ? com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.UNRECOGNIZED : result; } /** - * - * *
      * Specifies which time field to filter documents on.
      *
@@ -863,7 +798,6 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField()
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @param value The timeField to set. * @return This builder for chaining. */ @@ -877,8 +811,6 @@ public Builder setTimeField(com.google.cloud.contentwarehouse.v1.TimeFilter.Time return this; } /** - * - * *
      * Specifies which time field to filter documents on.
      *
@@ -886,7 +818,6 @@ public Builder setTimeField(com.google.cloud.contentwarehouse.v1.TimeFilter.Time
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @return This builder for chaining. */ public Builder clearTimeField() { @@ -895,9 +826,9 @@ public Builder clearTimeField() { 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); } @@ -907,12 +838,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.TimeFilter) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.TimeFilter) private static final com.google.cloud.contentwarehouse.v1.TimeFilter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.TimeFilter(); } @@ -921,27 +852,27 @@ public static com.google.cloud.contentwarehouse.v1.TimeFilter getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 TimeFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -956,4 +887,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.TimeFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java index 76aa6a88245a..6f94eca8c37f 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java @@ -1,46 +1,28 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -public interface TimeFilterOrBuilder - extends +public interface TimeFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TimeFilter) com.google.protobuf.MessageOrBuilder { /** * .google.type.Interval time_range = 1; - * * @return Whether the timeRange field is set. */ boolean hasTimeRange(); /** * .google.type.Interval time_range = 1; - * * @return The timeRange. */ com.google.type.Interval getTimeRange(); - /** .google.type.Interval time_range = 1; */ + /** + * .google.type.Interval time_range = 1; + */ com.google.type.IntervalOrBuilder getTimeRangeOrBuilder(); /** - * - * *
    * Specifies which time field to filter documents on.
    *
@@ -48,13 +30,10 @@ public interface TimeFilterOrBuilder
    * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @return The enum numeric value on the wire for timeField. */ int getTimeFieldValue(); /** - * - * *
    * Specifies which time field to filter documents on.
    *
@@ -62,7 +41,6 @@ public interface TimeFilterOrBuilder
    * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; - * * @return The timeField. */ com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java similarity index 70% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java index b1954331f691..3743d8ce46df 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java @@ -1,74 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Timestamp values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimestampArray} */ -public final class TimestampArray extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TimestampArray extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.TimestampArray) TimestampArrayOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TimestampArray.newBuilder() to construct. private TimestampArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TimestampArray() { values_ = 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 TimestampArray(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimestampArray.class, - com.google.cloud.contentwarehouse.v1.TimestampArray.Builder.class); + com.google.cloud.contentwarehouse.v1.TimestampArray.class, com.google.cloud.contentwarehouse.v1.TimestampArray.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List values_; /** - * - * *
    * List of timestamp values.
    * 
@@ -80,8 +58,6 @@ public java.util.List getVa return values_; } /** - * - * *
    * List of timestamp values.
    * 
@@ -89,13 +65,11 @@ public java.util.List getVa * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ @java.lang.Override - public java.util.List + public java.util.List getValuesOrBuilderList() { return values_; } /** - * - * *
    * List of timestamp values.
    * 
@@ -107,8 +81,6 @@ public int getValuesCount() { return values_.size(); } /** - * - * *
    * List of timestamp values.
    * 
@@ -120,8 +92,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue getValues(int index) return values_.get(index); } /** - * - * *
    * List of timestamp values.
    * 
@@ -135,7 +105,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +116,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 < values_.size(); i++) { output.writeMessage(1, values_.get(i)); } @@ -161,7 +131,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,15 +142,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.contentwarehouse.v1.TimestampArray)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.TimestampArray other = - (com.google.cloud.contentwarehouse.v1.TimestampArray) obj; + com.google.cloud.contentwarehouse.v1.TimestampArray other = (com.google.cloud.contentwarehouse.v1.TimestampArray) obj; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,135 +172,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.TimestampArray 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.contentwarehouse.v1.TimestampArray parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampArray parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TimestampArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.TimestampArray 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.contentwarehouse.v1.TimestampArray parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.TimestampArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Timestamp values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimestampArray} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.TimestampArray) com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimestampArray.class, - com.google.cloud.contentwarehouse.v1.TimestampArray.Builder.class); + com.google.cloud.contentwarehouse.v1.TimestampArray.class, com.google.cloud.contentwarehouse.v1.TimestampArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.TimestampArray.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(); @@ -345,9 +312,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; } @java.lang.Override @@ -366,18 +333,14 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampArray buildPartial() { - com.google.cloud.contentwarehouse.v1.TimestampArray result = - new com.google.cloud.contentwarehouse.v1.TimestampArray(this); + com.google.cloud.contentwarehouse.v1.TimestampArray result = new com.google.cloud.contentwarehouse.v1.TimestampArray(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.contentwarehouse.v1.TimestampArray result) { + private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.TimestampArray result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -397,39 +360,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.TimestampArray 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.contentwarehouse.v1.TimestampArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.TimestampArray) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.TimestampArray)other); } else { super.mergeFrom(other); return this; @@ -437,8 +399,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.TimestampArray other) { - if (other == com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance()) return this; if (valuesBuilder_ == null) { if (!other.values_.isEmpty()) { if (values_.isEmpty()) { @@ -457,10 +418,9 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.TimestampArray oth valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getValuesFieldBuilder() - : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -492,27 +452,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.contentwarehouse.v1.TimestampValue m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.TimestampValue.parser(), - extensionRegistry); - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(m); - } else { - valuesBuilder_.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.contentwarehouse.v1.TimestampValue m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.TimestampValue.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.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) { @@ -522,29 +480,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List values_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - values_ = - new java.util.ArrayList(values_); + values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampValue, - com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, - com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> - valuesBuilder_; + com.google.cloud.contentwarehouse.v1.TimestampValue, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> valuesBuilder_; /** - * - * *
      * List of timestamp values.
      * 
@@ -559,8 +509,6 @@ public java.util.List getVa } } /** - * - * *
      * List of timestamp values.
      * 
@@ -575,8 +523,6 @@ public int getValuesCount() { } } /** - * - * *
      * List of timestamp values.
      * 
@@ -591,15 +537,14 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue getValues(int index) } } /** - * - * *
      * List of timestamp values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - public Builder setValues(int index, com.google.cloud.contentwarehouse.v1.TimestampValue value) { + public Builder setValues( + int index, com.google.cloud.contentwarehouse.v1.TimestampValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -613,8 +558,6 @@ public Builder setValues(int index, com.google.cloud.contentwarehouse.v1.Timesta return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -633,8 +576,6 @@ public Builder setValues( return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -655,15 +596,14 @@ public Builder addValues(com.google.cloud.contentwarehouse.v1.TimestampValue val return this; } /** - * - * *
      * List of timestamp values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - public Builder addValues(int index, com.google.cloud.contentwarehouse.v1.TimestampValue value) { + public Builder addValues( + int index, com.google.cloud.contentwarehouse.v1.TimestampValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -677,8 +617,6 @@ public Builder addValues(int index, com.google.cloud.contentwarehouse.v1.Timesta return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -697,8 +635,6 @@ public Builder addValues( return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -717,8 +653,6 @@ public Builder addValues( return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -729,7 +663,8 @@ public Builder addAllValues( 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); @@ -737,8 +672,6 @@ public Builder addAllValues( return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -756,8 +689,6 @@ public Builder clearValues() { return this; } /** - * - * *
      * List of timestamp values.
      * 
@@ -775,20 +706,17 @@ public Builder removeValues(int index) { return this; } /** - * - * *
      * List of timestamp values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getValuesBuilder(int index) { + public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getValuesBuilder( + int index) { return getValuesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of timestamp values.
      * 
@@ -798,22 +726,19 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getValuesBuil public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrBuilder( int index) { if (valuesBuilder_ == null) { - return values_.get(index); - } else { + return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of timestamp values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - public java.util.List - getValuesOrBuilderList() { + public java.util.List + getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { @@ -821,8 +746,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrB } } /** - * - * *
      * List of timestamp values.
      * 
@@ -830,56 +753,49 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrB * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder addValuesBuilder() { - return getValuesFieldBuilder() - .addBuilder(com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()); + return getValuesFieldBuilder().addBuilder( + com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()); } /** - * - * *
      * List of timestamp values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder addValuesBuilder(int index) { - return getValuesFieldBuilder() - .addBuilder( - index, com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()); } /** - * - * *
      * List of timestamp values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - public java.util.List - getValuesBuilderList() { + public java.util.List + getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampValue, - com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, - com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> + com.google.cloud.contentwarehouse.v1.TimestampValue, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { - valuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampValue, - com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, - com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder>( - values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.TimestampValue, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder>( + values_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); values_ = null; } return valuesBuilder_; } - @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); } @@ -889,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.TimestampArray) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.TimestampArray) private static final com.google.cloud.contentwarehouse.v1.TimestampArray DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.TimestampArray(); } @@ -903,27 +819,27 @@ public static com.google.cloud.contentwarehouse.v1.TimestampArray getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 TimestampArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +854,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.TimestampArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java similarity index 64% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java index 5b0f1ab33ae3..e27a7851a110 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface TimestampArrayOrBuilder - extends +public interface TimestampArrayOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TimestampArray) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of timestamp values.
    * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - java.util.List getValuesList(); + java.util.List + getValuesList(); /** - * - * *
    * List of timestamp values.
    * 
@@ -44,8 +25,6 @@ public interface TimestampArrayOrBuilder */ com.google.cloud.contentwarehouse.v1.TimestampValue getValues(int index); /** - * - * *
    * List of timestamp values.
    * 
@@ -54,24 +33,21 @@ public interface TimestampArrayOrBuilder */ int getValuesCount(); /** - * - * *
    * List of timestamp values.
    * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - java.util.List + java.util.List getValuesOrBuilderList(); /** - * - * *
    * List of timestamp values.
    * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrBuilder(int index); + com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrBuilder( + int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java index 9d6794cacc59..89df89bfe87a 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java @@ -1,67 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Configurations for a timestamp property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimestampTypeOptions} */ -public final class TimestampTypeOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TimestampTypeOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.TimestampTypeOptions) TimestampTypeOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TimestampTypeOptions.newBuilder() to construct. private TimestampTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TimestampTypeOptions() {} + private TimestampTypeOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TimestampTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.class, - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.class, com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -73,7 +54,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 { getUnknownFields().writeTo(output); } @@ -91,13 +73,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.contentwarehouse.v1.TimestampTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions other = - (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions other = (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -116,136 +97,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions 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.contentwarehouse.v1.TimestampTypeOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions 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.contentwarehouse.v1.TimestampTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.TimestampTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Configurations for a timestamp property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimestampTypeOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.TimestampTypeOptions) com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.class, - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.class, com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.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(); @@ -253,9 +229,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; } @java.lang.Override @@ -274,8 +250,7 @@ public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions result = - new com.google.cloud.contentwarehouse.v1.TimestampTypeOptions(this); + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions result = new com.google.cloud.contentwarehouse.v1.TimestampTypeOptions(this); onBuilt(); return result; } @@ -284,39 +259,38 @@ public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.TimestampTypeOptions)other); } else { super.mergeFrom(other); return this; @@ -324,8 +298,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.TimestampTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -352,13 +325,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -368,9 +340,9 @@ public Builder mergeFrom( } // finally 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); } @@ -380,12 +352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.TimestampTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.TimestampTypeOptions) private static final com.google.cloud.contentwarehouse.v1.TimestampTypeOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.TimestampTypeOptions(); } @@ -394,27 +366,27 @@ public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 TimestampTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -429,4 +401,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..759000314130 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface TimestampTypeOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TimestampTypeOptions) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java index a313a98cdacb..a7628809a26f 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Timestamp value type.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimestampValue} */ -public final class TimestampValue extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TimestampValue extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.TimestampValue) TimestampValueOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TimestampValue.newBuilder() to construct. private TimestampValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TimestampValue() {} + private TimestampValue() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TimestampValue(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimestampValue.class, - com.google.cloud.contentwarehouse.v1.TimestampValue.Builder.class); + com.google.cloud.contentwarehouse.v1.TimestampValue.class, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder.class); } private int valueCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object value_; - public enum ValueCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TIMESTAMP_VALUE(1), TEXT_VALUE(2), VALUE_NOT_SET(0); private final int value; - private ValueCase(int value) { this.value = value; } @@ -89,36 +67,30 @@ public static ValueCase valueOf(int value) { public static ValueCase forNumber(int value) { switch (value) { - case 1: - return TIMESTAMP_VALUE; - case 2: - return TEXT_VALUE; - case 0: - return VALUE_NOT_SET; - default: - return null; + case 1: return TIMESTAMP_VALUE; + case 2: return TEXT_VALUE; + case 0: return VALUE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ValueCase getValueCase() { - return ValueCase.forNumber(valueCase_); + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); } public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 1; /** - * - * *
    * Timestamp value
    * 
* * .google.protobuf.Timestamp timestamp_value = 1; - * * @return Whether the timestampValue field is set. */ @java.lang.Override @@ -126,26 +98,21 @@ public boolean hasTimestampValue() { return valueCase_ == 1; } /** - * - * *
    * Timestamp value
    * 
* * .google.protobuf.Timestamp timestamp_value = 1; - * * @return The timestampValue. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestampValue() { if (valueCase_ == 1) { - return (com.google.protobuf.Timestamp) value_; + return (com.google.protobuf.Timestamp) value_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * Timestamp value
    * 
@@ -155,15 +122,13 @@ public com.google.protobuf.Timestamp getTimestampValue() { @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { if (valueCase_ == 1) { - return (com.google.protobuf.Timestamp) value_; + return (com.google.protobuf.Timestamp) value_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } public static final int TEXT_VALUE_FIELD_NUMBER = 2; /** - * - * *
    * The string must represent a valid instant in UTC and is parsed using
    * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -171,15 +136,12 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
    * 
* * string text_value = 2; - * * @return Whether the textValue field is set. */ public boolean hasTextValue() { return valueCase_ == 2; } /** - * - * *
    * The string must represent a valid instant in UTC and is parsed using
    * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -187,7 +149,6 @@ public boolean hasTextValue() {
    * 
* * string text_value = 2; - * * @return The textValue. */ public java.lang.String getTextValue() { @@ -198,7 +159,8 @@ public java.lang.String getTextValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (valueCase_ == 2) { value_ = s; @@ -207,8 +169,6 @@ public java.lang.String getTextValue() { } } /** - * - * *
    * The string must represent a valid instant in UTC and is parsed using
    * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -216,17 +176,18 @@ public java.lang.String getTextValue() {
    * 
* * string text_value = 2; - * * @return The bytes for textValue. */ - public com.google.protobuf.ByteString getTextValueBytes() { + public com.google.protobuf.ByteString + getTextValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (valueCase_ == 2) { value_ = b; } @@ -237,7 +198,6 @@ public com.google.protobuf.ByteString getTextValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,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 (valueCase_ == 1) { output.writeMessage(1, (com.google.protobuf.Timestamp) value_); } @@ -266,9 +227,8 @@ public int getSerializedSize() { size = 0; if (valueCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.protobuf.Timestamp) value_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.protobuf.Timestamp) value_); } if (valueCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); @@ -281,21 +241,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.contentwarehouse.v1.TimestampValue)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.TimestampValue other = - (com.google.cloud.contentwarehouse.v1.TimestampValue) obj; + com.google.cloud.contentwarehouse.v1.TimestampValue other = (com.google.cloud.contentwarehouse.v1.TimestampValue) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: - if (!getTimestampValue().equals(other.getTimestampValue())) return false; + if (!getTimestampValue() + .equals(other.getTimestampValue())) return false; break; case 2: - if (!getTextValue().equals(other.getTextValue())) return false; + if (!getTextValue() + .equals(other.getTextValue())) return false; break; case 0: default: @@ -329,135 +290,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.TimestampValue 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.contentwarehouse.v1.TimestampValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TimestampValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.TimestampValue 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.contentwarehouse.v1.TimestampValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.TimestampValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Timestamp value type.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimestampValue} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.TimestampValue) com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimestampValue.class, - com.google.cloud.contentwarehouse.v1.TimestampValue.Builder.class); + com.google.cloud.contentwarehouse.v1.TimestampValue.class, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.TimestampValue.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(); @@ -471,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto - .internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; } @java.lang.Override @@ -492,11 +449,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampValue buildPartial() { - com.google.cloud.contentwarehouse.v1.TimestampValue result = - new com.google.cloud.contentwarehouse.v1.TimestampValue(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.TimestampValue result = new com.google.cloud.contentwarehouse.v1.TimestampValue(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -509,7 +463,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.TimestampValue r private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.TimestampValue result) { result.valueCase_ = valueCase_; result.value_ = this.value_; - if (valueCase_ == 1 && timestampValueBuilder_ != null) { + if (valueCase_ == 1 && + timestampValueBuilder_ != null) { result.value_ = timestampValueBuilder_.build(); } } @@ -518,39 +473,38 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.TimestampVa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.TimestampValue) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.TimestampValue) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.TimestampValue)other); } else { super.mergeFrom(other); return this; @@ -558,25 +512,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.TimestampValue other) { - if (other == com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()) return this; switch (other.getValueCase()) { - case TIMESTAMP_VALUE: - { - mergeTimestampValue(other.getTimestampValue()); - break; - } - case TEXT_VALUE: - { - valueCase_ = 2; - value_ = other.value_; - onChanged(); - break; - } - case VALUE_NOT_SET: - { - break; - } + case TIMESTAMP_VALUE: { + mergeTimestampValue(other.getTimestampValue()); + break; + } + case TEXT_VALUE: { + valueCase_ = 2; + value_ = other.value_; + onChanged(); + break; + } + case VALUE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -604,26 +554,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getTimestampValueFieldBuilder().getBuilder(), extensionRegistry); - valueCase_ = 1; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 2; - value_ = s; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getTimestampValueFieldBuilder().getBuilder(), + extensionRegistry); + valueCase_ = 1; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 2; + value_ = 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) { @@ -633,12 +582,12 @@ public Builder mergeFrom( } // finally return this; } - private int valueCase_ = 0; private java.lang.Object value_; - - public ValueCase getValueCase() { - return ValueCase.forNumber(valueCase_); + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); } public Builder clearValue() { @@ -651,19 +600,13 @@ public Builder clearValue() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - timestampValueBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampValueBuilder_; /** - * - * *
      * Timestamp value
      * 
* * .google.protobuf.Timestamp timestamp_value = 1; - * * @return Whether the timestampValue field is set. */ @java.lang.Override @@ -671,14 +614,11 @@ public boolean hasTimestampValue() { return valueCase_ == 1; } /** - * - * *
      * Timestamp value
      * 
* * .google.protobuf.Timestamp timestamp_value = 1; - * * @return The timestampValue. */ @java.lang.Override @@ -696,8 +636,6 @@ public com.google.protobuf.Timestamp getTimestampValue() { } } /** - * - * *
      * Timestamp value
      * 
@@ -718,15 +656,14 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp value
      * 
* * .google.protobuf.Timestamp timestamp_value = 1; */ - public Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setTimestampValue( + com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); @@ -737,8 +674,6 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Timestamp value
      * 
@@ -747,11 +682,10 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) { if (timestampValueBuilder_ == null) { - if (valueCase_ == 1 && value_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - value_ = - com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) value_) - .mergeFrom(value) - .buildPartial(); + if (valueCase_ == 1 && + value_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + value_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) value_) + .mergeFrom(value).buildPartial(); } else { value_ = value; } @@ -767,8 +701,6 @@ public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp value
      * 
@@ -792,8 +724,6 @@ public Builder clearTimestampValue() { return this; } /** - * - * *
      * Timestamp value
      * 
@@ -804,8 +734,6 @@ public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder() { return getTimestampValueFieldBuilder().getBuilder(); } /** - * - * *
      * Timestamp value
      * 
@@ -824,8 +752,6 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { } } /** - * - * *
      * Timestamp value
      * 
@@ -833,20 +759,17 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { * .google.protobuf.Timestamp timestamp_value = 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> getTimestampValueFieldBuilder() { if (timestampValueBuilder_ == null) { if (!(valueCase_ == 1)) { value_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - timestampValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) value_, getParentForChildren(), isClean()); + timestampValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) value_, + getParentForChildren(), + isClean()); value_ = null; } valueCase_ = 1; @@ -855,8 +778,6 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { } /** - * - * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -864,7 +785,6 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
      * 
* * string text_value = 2; - * * @return Whether the textValue field is set. */ @java.lang.Override @@ -872,8 +792,6 @@ public boolean hasTextValue() { return valueCase_ == 2; } /** - * - * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -881,7 +799,6 @@ public boolean hasTextValue() {
      * 
* * string text_value = 2; - * * @return The textValue. */ @java.lang.Override @@ -891,7 +808,8 @@ public java.lang.String getTextValue() { ref = value_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (valueCase_ == 2) { value_ = s; @@ -902,8 +820,6 @@ public java.lang.String getTextValue() { } } /** - * - * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -911,18 +827,19 @@ public java.lang.String getTextValue() {
      * 
* * string text_value = 2; - * * @return The bytes for textValue. */ @java.lang.Override - public com.google.protobuf.ByteString getTextValueBytes() { + public com.google.protobuf.ByteString + getTextValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (valueCase_ == 2) { value_ = b; } @@ -932,8 +849,6 @@ public com.google.protobuf.ByteString getTextValueBytes() { } } /** - * - * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -941,22 +856,18 @@ public com.google.protobuf.ByteString getTextValueBytes() {
      * 
* * string text_value = 2; - * * @param value The textValue to set. * @return This builder for chaining. */ - public Builder setTextValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTextValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } valueCase_ = 2; value_ = value; onChanged(); return this; } /** - * - * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -964,7 +875,6 @@ public Builder setTextValue(java.lang.String value) {
      * 
* * string text_value = 2; - * * @return This builder for chaining. */ public Builder clearTextValue() { @@ -976,8 +886,6 @@ public Builder clearTextValue() { return this; } /** - * - * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -985,23 +893,21 @@ public Builder clearTextValue() {
      * 
* * string text_value = 2; - * * @param value The bytes for textValue to set. * @return This builder for chaining. */ - public Builder setTextValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTextValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 2; value_ = 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); } @@ -1011,12 +917,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.TimestampValue) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.TimestampValue) private static final com.google.cloud.contentwarehouse.v1.TimestampValue DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.TimestampValue(); } @@ -1025,27 +931,27 @@ public static com.google.cloud.contentwarehouse.v1.TimestampValue getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 TimestampValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1060,4 +966,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.TimestampValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java similarity index 70% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java index 6816393c8197..f4103dd0444d 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface TimestampValueOrBuilder - extends +public interface TimestampValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TimestampValue) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Timestamp value
    * 
* * .google.protobuf.Timestamp timestamp_value = 1; - * * @return Whether the timestampValue field is set. */ boolean hasTimestampValue(); /** - * - * *
    * Timestamp value
    * 
* * .google.protobuf.Timestamp timestamp_value = 1; - * * @return The timestampValue. */ com.google.protobuf.Timestamp getTimestampValue(); /** - * - * *
    * Timestamp value
    * 
@@ -59,8 +35,6 @@ public interface TimestampValueOrBuilder com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder(); /** - * - * *
    * The string must represent a valid instant in UTC and is parsed using
    * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -68,13 +42,10 @@ public interface TimestampValueOrBuilder
    * 
* * string text_value = 2; - * * @return Whether the textValue field is set. */ boolean hasTextValue(); /** - * - * *
    * The string must represent a valid instant in UTC and is parsed using
    * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -82,13 +53,10 @@ public interface TimestampValueOrBuilder
    * 
* * string text_value = 2; - * * @return The textValue. */ java.lang.String getTextValue(); /** - * - * *
    * The string must represent a valid instant in UTC and is parsed using
    * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -96,10 +64,10 @@ public interface TimestampValueOrBuilder
    * 
* * string text_value = 2; - * * @return The bytes for textValue. */ - com.google.protobuf.ByteString getTextValueBytes(); + com.google.protobuf.ByteString + getTextValueBytes(); com.google.cloud.contentwarehouse.v1.TimestampValue.ValueCase getValueCase(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java similarity index 63% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java index fd139a81fc2c..419d53b3747d 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java @@ -1,67 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/async_document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Metadata object for UpdateDocument request (currently empty).
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateDocumentMetadata} */ -public final class UpdateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDocumentMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) UpdateDocumentMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDocumentMetadata.newBuilder() to construct. private UpdateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateDocumentMetadata() {} + private UpdateDocumentMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDocumentMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.class, - com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -73,7 +54,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 { getUnknownFields().writeTo(output); } @@ -91,13 +73,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.contentwarehouse.v1.UpdateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata other = - (com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) obj; + com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata other = (com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -116,136 +97,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata 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.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata 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.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 object for UpdateDocument request (currently empty).
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateDocumentMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.class, - com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.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(); @@ -253,9 +229,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; } @java.lang.Override @@ -274,8 +250,7 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata result = - new com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata(this); + com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata result = new com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata(this); onBuilt(); return result; } @@ -284,39 +259,38 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata)other); } else { super.mergeFrom(other); return this; @@ -324,8 +298,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -352,13 +325,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -368,9 +340,9 @@ public Builder mergeFrom( } // finally 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); } @@ -380,12 +352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) private static final com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata(); } @@ -394,27 +366,27 @@ public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 UpdateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -429,4 +401,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java new file mode 100644 index 000000000000..40589d1bc4a2 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/async_document_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface UpdateDocumentMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java similarity index 67% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java index 7b8a69d9ae44..68c35b24dda0 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java @@ -1,74 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for DocumentService.UpdateDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.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() { name_ = ""; } @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.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.class, - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the document to update.
    * Format:
@@ -77,10 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 @@ -89,15 +64,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 name of the document to update.
    * Format:
@@ -106,18 +80,17 @@ public java.lang.String getName() {
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 { @@ -128,16 +101,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DOCUMENT_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.Document document_; /** - * - * *
    * Required. The document to update.
    * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ @java.lang.Override @@ -145,54 +113,38 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
    * Required. The document to update.
    * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.Document getDocument() { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } /** - * - * *
    * Required. The document to update.
    * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } public static final int REQUEST_METADATA_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -200,26 +152,19 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -228,18 +173,13 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-      getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-        : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
   }
 
   public static final int CLOUD_AI_DOCUMENT_OPTION_FIELD_NUMBER = 5;
   private com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloudAiDocumentOption_;
   /**
-   *
-   *
    * 
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -247,9 +187,7 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; * @return Whether the cloudAiDocumentOption field is set. */ @java.lang.Override @@ -257,8 +195,6 @@ public boolean hasCloudAiDocumentOption() { return cloudAiDocumentOption_ != null; } /** - * - * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -266,20 +202,14 @@ public boolean hasCloudAiDocumentOption() {
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; * @return The cloudAiDocumentOption. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocumentOption() { - return cloudAiDocumentOption_ == null - ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() - : cloudAiDocumentOption_; + return cloudAiDocumentOption_ == null ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; } /** - * - * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -287,28 +217,21 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocu
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder - getCloudAiDocumentOptionOrBuilder() { - return cloudAiDocumentOption_ == null - ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() - : cloudAiDocumentOption_; + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder() { + return cloudAiDocumentOption_ == null ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; } public static final int UPDATE_OPTIONS_FIELD_NUMBER = 6; private com.google.cloud.contentwarehouse.v1.UpdateOptions updateOptions_; /** - * - * *
    * Options for the update operation.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; - * * @return Whether the updateOptions field is set. */ @java.lang.Override @@ -316,25 +239,18 @@ public boolean hasUpdateOptions() { return updateOptions_ != null; } /** - * - * *
    * Options for the update operation.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; - * * @return The updateOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateOptions getUpdateOptions() { - return updateOptions_ == null - ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() - : updateOptions_; + return updateOptions_ == null ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() : updateOptions_; } /** - * - * *
    * Options for the update operation.
    * 
@@ -343,13 +259,10 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptions getUpdateOptions() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder getUpdateOptionsOrBuilder() { - return updateOptions_ == null - ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() - : updateOptions_; + return updateOptions_ == null ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() : updateOptions_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -361,7 +274,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_); } @@ -390,17 +304,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (document_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocument()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDocument()); } if (requestMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRequestMetadata()); } if (cloudAiDocumentOption_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCloudAiDocumentOption()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCloudAiDocumentOption()); } if (updateOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateOptions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -410,30 +327,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest other = - (com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest) obj; + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest other = (com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) 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 (hasRequestMetadata() != other.hasRequestMetadata()) return false; if (hasRequestMetadata()) { - if (!getRequestMetadata().equals(other.getRequestMetadata())) return false; + if (!getRequestMetadata() + .equals(other.getRequestMetadata())) return false; } if (hasCloudAiDocumentOption() != other.hasCloudAiDocumentOption()) return false; if (hasCloudAiDocumentOption()) { - if (!getCloudAiDocumentOption().equals(other.getCloudAiDocumentOption())) return false; + if (!getCloudAiDocumentOption() + .equals(other.getCloudAiDocumentOption())) return false; } if (hasUpdateOptions() != other.hasUpdateOptions()) return false; if (hasUpdateOptions()) { - if (!getUpdateOptions().equals(other.getUpdateOptions())) return false; + if (!getUpdateOptions() + .equals(other.getUpdateOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -470,136 +391,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.UpdateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.UpdateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.UpdateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.UpdateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.UpdateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.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.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.v1.UpdateDocumentRequest) com.google.cloud.contentwarehouse.v1.UpdateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.class, - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.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(); @@ -629,9 +545,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; } @java.lang.Override @@ -650,11 +566,8 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest result = - new com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest result = new com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -665,21 +578,24 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateDocumentRe result.name_ = name_; } 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.requestMetadata_ = - requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + result.requestMetadata_ = requestMetadataBuilder_ == null + ? requestMetadata_ + : requestMetadataBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.cloudAiDocumentOption_ = - cloudAiDocumentOptionBuilder_ == null - ? cloudAiDocumentOption_ - : cloudAiDocumentOptionBuilder_.build(); + result.cloudAiDocumentOption_ = cloudAiDocumentOptionBuilder_ == null + ? cloudAiDocumentOption_ + : cloudAiDocumentOptionBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.updateOptions_ = - updateOptionsBuilder_ == null ? updateOptions_ : updateOptionsBuilder_.build(); + result.updateOptions_ = updateOptionsBuilder_ == null + ? updateOptions_ + : updateOptionsBuilder_.build(); } } @@ -687,39 +603,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateDocumentRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.UpdateDocumentRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -727,8 +642,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -772,44 +686,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - input.readMessage( - getCloudAiDocumentOptionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - input.readMessage(getUpdateOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - 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 18: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getRequestMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + input.readMessage( + getCloudAiDocumentOptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + input.readMessage( + getUpdateOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -819,13 +734,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document to update.
      * Format:
@@ -834,16 +746,14 @@ public Builder mergeFrom(
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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; @@ -852,8 +762,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document to update.
      * Format:
@@ -862,17 +770,16 @@ public java.lang.String getName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 { @@ -880,8 +787,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document to update.
      * Format:
@@ -890,25 +795,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 name of the document to update.
      * Format:
@@ -917,10 +816,7 @@ public Builder setName(java.lang.String value) {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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() { @@ -930,8 +826,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the document to update.
      * Format:
@@ -940,17 +834,13 @@ public Builder clearName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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; @@ -960,58 +850,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> - documentBuilder_; + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> documentBuilder_; /** - * - * *
      * Required. The document to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.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 to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ public com.google.cloud.contentwarehouse.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
      * Required. The document to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) { if (documentBuilder_ == null) { @@ -1027,15 +898,11 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) return this; } /** - * - * *
      * Required. The document to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument( com.google.cloud.contentwarehouse.v1.Document.Builder builderForValue) { @@ -1049,21 +916,17 @@ public Builder setDocument( return this; } /** - * - * *
      * Required. The document to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && document_ != null - && document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + document_ != null && + document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; @@ -1076,15 +939,11 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value return this; } /** - * - * *
      * Required. The document to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocument() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1097,15 +956,11 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Required. The document to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder() { bitField0_ |= 0x00000002; @@ -1113,48 +968,36 @@ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder( return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The document to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() { if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? + com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } } /** - * - * *
      * Required. The document to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( - getDocument(), getParentForChildren(), isClean()); + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); document_ = null; } return documentBuilder_; @@ -1162,49 +1005,36 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, - com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, - com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> - requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() - : requestMetadata_; + return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** - * - * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1226,8 +1056,6 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1247,8 +1075,6 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1256,13 +1082,11 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public Builder mergeRequestMetadata(
-        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && requestMetadata_ != null
-            && requestMetadata_
-                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          requestMetadata_ != null &&
+          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -1275,8 +1099,6 @@ public Builder mergeRequestMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1295,8 +1117,6 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1304,15 +1124,12 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
-        getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1320,19 +1137,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
-        getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
-            : requestMetadata_;
+        return requestMetadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1341,17 +1154,14 @@ public Builder clearRequestMetadata() {
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata,
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RequestMetadata,
-                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(), getParentForChildren(), isClean());
+        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(),
+                getParentForChildren(),
+                isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
@@ -1359,13 +1169,8 @@ public Builder clearRequestMetadata() {
 
     private com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloudAiDocumentOption_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption,
-            com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder,
-            com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder>
-        cloudAiDocumentOptionBuilder_;
+        com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder> cloudAiDocumentOptionBuilder_;
     /**
-     *
-     *
      * 
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1373,17 +1178,13 @@ public Builder clearRequestMetadata() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; * @return Whether the cloudAiDocumentOption field is set. */ public boolean hasCloudAiDocumentOption() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1391,23 +1192,17 @@ public boolean hasCloudAiDocumentOption() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; * @return The cloudAiDocumentOption. */ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocumentOption() { if (cloudAiDocumentOptionBuilder_ == null) { - return cloudAiDocumentOption_ == null - ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() - : cloudAiDocumentOption_; + return cloudAiDocumentOption_ == null ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; } else { return cloudAiDocumentOptionBuilder_.getMessage(); } } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1415,11 +1210,9 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocu
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ - public Builder setCloudAiDocumentOption( - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { + public Builder setCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { if (cloudAiDocumentOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1433,8 +1226,6 @@ public Builder setCloudAiDocumentOption( return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1442,8 +1233,7 @@ public Builder setCloudAiDocumentOption(
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ public Builder setCloudAiDocumentOption( com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder builderForValue) { @@ -1457,8 +1247,6 @@ public Builder setCloudAiDocumentOption( return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1466,17 +1254,13 @@ public Builder setCloudAiDocumentOption(
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ - public Builder mergeCloudAiDocumentOption( - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { + public Builder mergeCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { if (cloudAiDocumentOptionBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && cloudAiDocumentOption_ != null - && cloudAiDocumentOption_ - != com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + cloudAiDocumentOption_ != null && + cloudAiDocumentOption_ != com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance()) { getCloudAiDocumentOptionBuilder().mergeFrom(value); } else { cloudAiDocumentOption_ = value; @@ -1489,8 +1273,6 @@ public Builder mergeCloudAiDocumentOption( return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1498,8 +1280,7 @@ public Builder mergeCloudAiDocumentOption(
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ public Builder clearCloudAiDocumentOption() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1512,8 +1293,6 @@ public Builder clearCloudAiDocumentOption() { return this; } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1521,18 +1300,14 @@ public Builder clearCloudAiDocumentOption() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ - public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder - getCloudAiDocumentOptionBuilder() { + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder getCloudAiDocumentOptionBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCloudAiDocumentOptionFieldBuilder().getBuilder(); } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1540,22 +1315,17 @@ public Builder clearCloudAiDocumentOption() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ - public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder - getCloudAiDocumentOptionOrBuilder() { + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder() { if (cloudAiDocumentOptionBuilder_ != null) { return cloudAiDocumentOptionBuilder_.getMessageOrBuilder(); } else { - return cloudAiDocumentOption_ == null - ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() - : cloudAiDocumentOption_; + return cloudAiDocumentOption_ == null ? + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; } } /** - * - * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1563,21 +1333,17 @@ public Builder clearCloudAiDocumentOption() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder> + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder> getCloudAiDocumentOptionFieldBuilder() { if (cloudAiDocumentOptionBuilder_ == null) { - cloudAiDocumentOptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder>( - getCloudAiDocumentOption(), getParentForChildren(), isClean()); + cloudAiDocumentOptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder>( + getCloudAiDocumentOption(), + getParentForChildren(), + isClean()); cloudAiDocumentOption_ = null; } return cloudAiDocumentOptionBuilder_; @@ -1585,47 +1351,34 @@ public Builder clearCloudAiDocumentOption() { private com.google.cloud.contentwarehouse.v1.UpdateOptions updateOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UpdateOptions, - com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder, - com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder> - updateOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.UpdateOptions, com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder, com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder> updateOptionsBuilder_; /** - * - * *
      * Options for the update operation.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; - * * @return Whether the updateOptions field is set. */ public boolean hasUpdateOptions() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Options for the update operation.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; - * * @return The updateOptions. */ public com.google.cloud.contentwarehouse.v1.UpdateOptions getUpdateOptions() { if (updateOptionsBuilder_ == null) { - return updateOptions_ == null - ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() - : updateOptions_; + return updateOptions_ == null ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() : updateOptions_; } else { return updateOptionsBuilder_.getMessage(); } } /** - * - * *
      * Options for the update operation.
      * 
@@ -1646,8 +1399,6 @@ public Builder setUpdateOptions(com.google.cloud.contentwarehouse.v1.UpdateOptio return this; } /** - * - * *
      * Options for the update operation.
      * 
@@ -1666,8 +1417,6 @@ public Builder setUpdateOptions( return this; } /** - * - * *
      * Options for the update operation.
      * 
@@ -1676,10 +1425,9 @@ public Builder setUpdateOptions( */ public Builder mergeUpdateOptions(com.google.cloud.contentwarehouse.v1.UpdateOptions value) { if (updateOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && updateOptions_ != null - && updateOptions_ - != com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + updateOptions_ != null && + updateOptions_ != com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance()) { getUpdateOptionsBuilder().mergeFrom(value); } else { updateOptions_ = value; @@ -1692,8 +1440,6 @@ public Builder mergeUpdateOptions(com.google.cloud.contentwarehouse.v1.UpdateOpt return this; } /** - * - * *
      * Options for the update operation.
      * 
@@ -1711,8 +1457,6 @@ public Builder clearUpdateOptions() { return this; } /** - * - * *
      * Options for the update operation.
      * 
@@ -1725,8 +1469,6 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder getUpdateOptio return getUpdateOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Options for the update operation.
      * 
@@ -1737,14 +1479,11 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder getUpdateOpti if (updateOptionsBuilder_ != null) { return updateOptionsBuilder_.getMessageOrBuilder(); } else { - return updateOptions_ == null - ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() - : updateOptions_; + return updateOptions_ == null ? + com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() : updateOptions_; } } /** - * - * *
      * Options for the update operation.
      * 
@@ -1752,24 +1491,21 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder getUpdateOpti * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UpdateOptions, - com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder, - com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.UpdateOptions, com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder, com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder> getUpdateOptionsFieldBuilder() { if (updateOptionsBuilder_ == null) { - updateOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UpdateOptions, - com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder, - com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder>( - getUpdateOptions(), getParentForChildren(), isClean()); + updateOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.UpdateOptions, com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder, com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder>( + getUpdateOptions(), + getParentForChildren(), + isClean()); updateOptions_ = null; } return updateOptionsBuilder_; } - @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); } @@ -1779,12 +1515,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateDocumentRequest) private static final com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest(); } @@ -1793,27 +1529,27 @@ public static com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest getDefa 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; @@ -1828,4 +1564,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java similarity index 73% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java index 05badda9ef51..0824b161cfba 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface UpdateDocumentRequestOrBuilder - extends +public interface UpdateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the document to update.
    * Format:
@@ -34,16 +16,11 @@ public interface UpdateDocumentRequestOrBuilder
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the document to update.
    * Format:
@@ -52,84 +29,60 @@ public interface UpdateDocumentRequestOrBuilder
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The document to update.
    * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
    * Required. The document to update.
    * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ com.google.cloud.contentwarehouse.v1.Document getDocument(); /** - * - * *
    * Required. The document to update.
    * 
* - * - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; - * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** - * - * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -140,8 +93,6 @@ public interface UpdateDocumentRequestOrBuilder
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
-   *
-   *
    * 
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -149,15 +100,11 @@ public interface UpdateDocumentRequestOrBuilder
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; * @return Whether the cloudAiDocumentOption field is set. */ boolean hasCloudAiDocumentOption(); /** - * - * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -165,15 +112,11 @@ public interface UpdateDocumentRequestOrBuilder
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; * @return The cloudAiDocumentOption. */ com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocumentOption(); /** - * - * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -181,39 +124,29 @@ public interface UpdateDocumentRequestOrBuilder
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; - * + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; */ - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder - getCloudAiDocumentOptionOrBuilder(); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder(); /** - * - * *
    * Options for the update operation.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; - * * @return Whether the updateOptions field is set. */ boolean hasUpdateOptions(); /** - * - * *
    * Options for the update operation.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; - * * @return The updateOptions. */ com.google.cloud.contentwarehouse.v1.UpdateOptions getUpdateOptions(); /** - * - * *
    * Options for the update operation.
    * 
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java similarity index 70% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java index 86f3a044f459..8e129b1d9a1c 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.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/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Response message for DocumentService.UpdateDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateDocumentResponse} */ -public final class UpdateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDocumentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.UpdateDocumentResponse) UpdateDocumentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDocumentResponse.newBuilder() to construct. private UpdateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateDocumentResponse() {} + private UpdateDocumentResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDocumentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.class, - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.Builder.class); } public static final int DOCUMENT_FIELD_NUMBER = 1; private com.google.cloud.contentwarehouse.v1.Document document_; /** - * - * *
    * Updated document after executing update request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return Whether the document field is set. */ @java.lang.Override @@ -78,25 +57,18 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
    * Updated document after executing update request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return The document. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.Document getDocument() { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } /** - * - * *
    * Updated document after executing update request.
    * 
@@ -105,16 +77,12 @@ public com.google.cloud.contentwarehouse.v1.Document getDocument() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } public static final int RULE_ENGINE_OUTPUT_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RuleEngineOutput ruleEngineOutput_; /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -123,7 +91,6 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; - * * @return Whether the ruleEngineOutput field is set. */ @java.lang.Override @@ -131,8 +98,6 @@ public boolean hasRuleEngineOutput() { return ruleEngineOutput_ != null; } /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -141,18 +106,13 @@ public boolean hasRuleEngineOutput() {
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; - * * @return The ruleEngineOutput. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput() { - return ruleEngineOutput_ == null - ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() - : ruleEngineOutput_; + return ruleEngineOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_; } /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -163,25 +123,19 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput
    * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder
-      getRuleEngineOutputOrBuilder() {
-    return ruleEngineOutput_ == null
-        ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()
-        : ruleEngineOutput_;
+  public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder() {
+    return ruleEngineOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_;
   }
 
   public static final int METADATA_FIELD_NUMBER = 3;
   private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_;
   /**
-   *
-   *
    * 
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -189,26 +143,19 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; - * * @return The metadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -218,13 +165,10 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() {
    */
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder() {
-    return metadata_ == null
-        ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
-        : metadata_;
+    return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -236,7 +180,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());
     }
@@ -256,13 +201,16 @@ 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 (ruleEngineOutput_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuleEngineOutput());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getRuleEngineOutput());
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -272,25 +220,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.contentwarehouse.v1.UpdateDocumentResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse other =
-        (com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse) obj;
+    com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse other = (com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse) obj;
 
     if (hasDocument() != other.hasDocument()) return false;
     if (hasDocument()) {
-      if (!getDocument().equals(other.getDocument())) return false;
+      if (!getDocument()
+          .equals(other.getDocument())) return false;
     }
     if (hasRuleEngineOutput() != other.hasRuleEngineOutput()) return false;
     if (hasRuleEngineOutput()) {
-      if (!getRuleEngineOutput().equals(other.getRuleEngineOutput())) return false;
+      if (!getRuleEngineOutput()
+          .equals(other.getRuleEngineOutput())) return false;
     }
     if (hasMetadata() != other.hasMetadata()) return false;
     if (hasMetadata()) {
-      if (!getMetadata().equals(other.getMetadata())) return false;
+      if (!getMetadata()
+          .equals(other.getMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -321,136 +271,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse 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.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse 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.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder 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.UpdateDocument.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateDocumentResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.UpdateDocumentResponse) com.google.cloud.contentwarehouse.v1.UpdateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.class, - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.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(); @@ -474,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; } @java.lang.Override @@ -495,11 +440,8 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse result = - new com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse result = new com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -507,14 +449,19 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse buildPartial( private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse 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.ruleEngineOutput_ = - ruleEngineOutputBuilder_ == null ? ruleEngineOutput_ : ruleEngineOutputBuilder_.build(); + result.ruleEngineOutput_ = ruleEngineOutputBuilder_ == null + ? ruleEngineOutput_ + : ruleEngineOutputBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); } } @@ -522,39 +469,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateDocumentRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.UpdateDocumentResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +508,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.getDefaultInstance()) return this; if (other.hasDocument()) { mergeDocument(other.getDocument()); } @@ -599,32 +544,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getRuleEngineOutputFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getMetadataFieldBuilder().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( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getRuleEngineOutputFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getMetadataFieldBuilder().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) { @@ -634,52 +580,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.contentwarehouse.v1.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> - documentBuilder_; + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> documentBuilder_; /** - * - * *
      * Updated document after executing update request.
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Updated document after executing update request.
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return The document. */ public com.google.cloud.contentwarehouse.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
      * Updated document after executing update request.
      * 
@@ -700,8 +632,6 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) return this; } /** - * - * *
      * Updated document after executing update request.
      * 
@@ -720,8 +650,6 @@ public Builder setDocument( return this; } /** - * - * *
      * Updated document after executing update request.
      * 
@@ -730,9 +658,9 @@ public Builder setDocument( */ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && document_ != null - && document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + document_ != null && + document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; @@ -745,8 +673,6 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value return this; } /** - * - * *
      * Updated document after executing update request.
      * 
@@ -764,8 +690,6 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Updated document after executing update request.
      * 
@@ -778,8 +702,6 @@ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder( return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Updated document after executing update request.
      * 
@@ -790,14 +712,11 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null - ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? + com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; } } /** - * - * *
      * Updated document after executing update request.
      * 
@@ -805,17 +724,14 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild * .google.cloud.contentwarehouse.v1.Document document = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, - com.google.cloud.contentwarehouse.v1.Document.Builder, - com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( - getDocument(), getParentForChildren(), isClean()); + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); document_ = null; } return documentBuilder_; @@ -823,13 +739,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild private com.google.cloud.contentwarehouse.v1.RuleEngineOutput ruleEngineOutput_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleEngineOutput, - com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, - com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder> - ruleEngineOutputBuilder_; + com.google.cloud.contentwarehouse.v1.RuleEngineOutput, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder> ruleEngineOutputBuilder_; /** - * - * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -838,15 +749,12 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
      * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; - * * @return Whether the ruleEngineOutput field is set. */ public boolean hasRuleEngineOutput() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -855,21 +763,16 @@ public boolean hasRuleEngineOutput() {
      * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; - * * @return The ruleEngineOutput. */ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput() { if (ruleEngineOutputBuilder_ == null) { - return ruleEngineOutput_ == null - ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() - : ruleEngineOutput_; + return ruleEngineOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_; } else { return ruleEngineOutputBuilder_.getMessage(); } } /** - * - * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -879,8 +782,7 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public Builder setRuleEngineOutput(
-        com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
+    public Builder setRuleEngineOutput(com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
       if (ruleEngineOutputBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -894,8 +796,6 @@ public Builder setRuleEngineOutput(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -917,8 +817,6 @@ public Builder setRuleEngineOutput(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -928,13 +826,11 @@ public Builder setRuleEngineOutput(
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public Builder mergeRuleEngineOutput(
-        com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
+    public Builder mergeRuleEngineOutput(com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
       if (ruleEngineOutputBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && ruleEngineOutput_ != null
-            && ruleEngineOutput_
-                != com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          ruleEngineOutput_ != null &&
+          ruleEngineOutput_ != com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()) {
           getRuleEngineOutputBuilder().mergeFrom(value);
         } else {
           ruleEngineOutput_ = value;
@@ -947,8 +843,6 @@ public Builder mergeRuleEngineOutput(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -969,8 +863,6 @@ public Builder clearRuleEngineOutput() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -980,15 +872,12 @@ public Builder clearRuleEngineOutput() {
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder
-        getRuleEngineOutputBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder getRuleEngineOutputBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRuleEngineOutputFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -998,19 +887,15 @@ public Builder clearRuleEngineOutput() {
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder
-        getRuleEngineOutputOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder() {
       if (ruleEngineOutputBuilder_ != null) {
         return ruleEngineOutputBuilder_.getMessageOrBuilder();
       } else {
-        return ruleEngineOutput_ == null
-            ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()
-            : ruleEngineOutput_;
+        return ruleEngineOutput_ == null ?
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_;
       }
     }
     /**
-     *
-     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -1021,17 +906,14 @@ public Builder clearRuleEngineOutput() {
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput,
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder,
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder>
+        com.google.cloud.contentwarehouse.v1.RuleEngineOutput, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder> 
         getRuleEngineOutputFieldBuilder() {
       if (ruleEngineOutputBuilder_ == null) {
-        ruleEngineOutputBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.RuleEngineOutput,
-                com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder,
-                com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder>(
-                getRuleEngineOutput(), getParentForChildren(), isClean());
+        ruleEngineOutputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder>(
+                getRuleEngineOutput(),
+                getParentForChildren(),
+                isClean());
         ruleEngineOutput_ = null;
       }
       return ruleEngineOutputBuilder_;
@@ -1039,49 +921,36 @@ public Builder clearRuleEngineOutput() {
 
     private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
-        metadataBuilder_;
+        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> metadataBuilder_;
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; - * * @return The metadata. */ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1103,8 +972,6 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1124,8 +991,6 @@ public Builder setMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1135,10 +1000,9 @@ public Builder setMetadata(
      */
     public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && metadata_ != null
-            && metadata_
-                != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          metadata_ != null &&
+          metadata_ != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -1151,8 +1015,6 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1171,8 +1033,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1186,8 +1046,6 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadata
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1199,14 +1057,11 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null
-            ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
-            : metadata_;
+        return metadata_ == null ?
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
       }
     }
     /**
-     *
-     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1215,24 +1070,21 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
-            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
+        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> 
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.contentwarehouse.v1.ResponseMetadata,
-                com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
-                com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
-                getMetadata(), getParentForChildren(), isClean());
+        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
+                getMetadata(),
+                getParentForChildren(),
+                isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
-
     @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);
     }
 
@@ -1242,12 +1094,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateDocumentResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateDocumentResponse)
   private static final com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse();
   }
@@ -1256,27 +1108,27 @@ public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateDocumentResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 UpdateDocumentResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1291,4 +1143,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java
similarity index 80%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java
index 3c98d716ca5a..857f68cfb8ad 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.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/contentwarehouse/v1/document_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface UpdateDocumentResponseOrBuilder
-    extends
+public interface UpdateDocumentResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateDocumentResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Updated document after executing update request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
    * Updated document after executing update request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; - * * @return The document. */ com.google.cloud.contentwarehouse.v1.Document getDocument(); /** - * - * *
    * Updated document after executing update request.
    * 
@@ -59,8 +35,6 @@ public interface UpdateDocumentResponseOrBuilder com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder(); /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -69,13 +43,10 @@ public interface UpdateDocumentResponseOrBuilder
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; - * * @return Whether the ruleEngineOutput field is set. */ boolean hasRuleEngineOutput(); /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -84,13 +55,10 @@ public interface UpdateDocumentResponseOrBuilder
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; - * * @return The ruleEngineOutput. */ com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput(); /** - * - * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -103,34 +71,26 @@ public interface UpdateDocumentResponseOrBuilder
   com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder();
 
   /**
-   *
-   *
    * 
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; - * * @return The metadata. */ com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata(); /** - * - * *
    * Additional information for the API invocation, such as the request tracking
    * id.
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java
similarity index 60%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java
index 671a1e39d6c6..b9dda0df9e73 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.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/contentwarehouse/v1/document_schema_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * Request message for DocumentSchemaService.UpdateDocumentSchema.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest} */ -public final class UpdateDocumentSchemaRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDocumentSchemaRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) UpdateDocumentSchemaRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDocumentSchemaRequest.newBuilder() to construct. private UpdateDocumentSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateDocumentSchemaRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDocumentSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.class, - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the document schema to update.
    * Format:
    * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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 @@ -87,33 +62,31 @@ 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 name of the document schema to update.
    * Format:
    * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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 { @@ -124,16 +97,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DOCUMENT_SCHEMA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.DocumentSchema documentSchema_; /** - * - * *
    * Required. The document schema to update with.
    * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentSchema field is set. */ @java.lang.Override @@ -141,44 +109,30 @@ public boolean hasDocumentSchema() { return documentSchema_ != null; } /** - * - * *
    * Required. The document schema to update with.
    * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The documentSchema. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema() { - return documentSchema_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() - : documentSchema_; + return documentSchema_ == null ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; } /** - * - * *
    * Required. The document schema to update with.
    * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder() { - return documentSchema_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() - : documentSchema_; + return documentSchema_ == null ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,7 +144,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -210,7 +165,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (documentSchema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDocumentSchema()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -220,18 +176,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.contentwarehouse.v1.UpdateDocumentSchemaRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest other = - (com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) obj; + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest other = (com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasDocumentSchema() != other.hasDocumentSchema()) return false; if (hasDocumentSchema()) { - if (!getDocumentSchema().equals(other.getDocumentSchema())) return false; + if (!getDocumentSchema() + .equals(other.getDocumentSchema())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -256,136 +213,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest 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.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest 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.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 DocumentSchemaService.UpdateDocumentSchema.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.class, - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.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(); @@ -400,14 +352,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.getDefaultInstance(); } @@ -422,24 +373,21 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest build() @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest result = - new com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest result = new com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest result) { + private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.documentSchema_ = - documentSchemaBuilder_ == null ? documentSchema_ : documentSchemaBuilder_.build(); + result.documentSchema_ = documentSchemaBuilder_ == null + ? documentSchema_ + : documentSchemaBuilder_.build(); } } @@ -447,50 +395,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.contentwarehouse.v1.UpdateDocumentSchemaRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest other) { - if (other - == com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest other) { + if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -525,25 +469,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getDocumentSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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( + getDocumentSchemaFieldBuilder().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,29 +496,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document schema to update.
      * Format:
      * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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; @@ -584,25 +522,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document schema to update.
      * Format:
      * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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 { @@ -610,43 +545,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document schema to update.
      * Format:
      * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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 name of the document schema to update.
      * Format:
      * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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() { @@ -656,25 +580,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the document schema to update.
      * Format:
      * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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; @@ -684,58 +602,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.DocumentSchema documentSchema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, - com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> - documentSchemaBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> documentSchemaBuilder_; /** - * - * *
      * Required. The document schema to update with.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentSchema field is set. */ public boolean hasDocumentSchema() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The document schema to update with.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The documentSchema. */ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema() { if (documentSchemaBuilder_ == null) { - return documentSchema_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() - : documentSchema_; + return documentSchema_ == null ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; } else { return documentSchemaBuilder_.getMessage(); } } /** - * - * *
      * Required. The document schema to update with.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentSchema(com.google.cloud.contentwarehouse.v1.DocumentSchema value) { if (documentSchemaBuilder_ == null) { @@ -751,15 +650,11 @@ public Builder setDocumentSchema(com.google.cloud.contentwarehouse.v1.DocumentSc return this; } /** - * - * *
      * Required. The document schema to update with.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentSchema( com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder builderForValue) { @@ -773,22 +668,17 @@ public Builder setDocumentSchema( return this; } /** - * - * *
      * Required. The document schema to update with.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDocumentSchema(com.google.cloud.contentwarehouse.v1.DocumentSchema value) { if (documentSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && documentSchema_ != null - && documentSchema_ - != com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + documentSchema_ != null && + documentSchema_ != com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()) { getDocumentSchemaBuilder().mergeFrom(value); } else { documentSchema_ = value; @@ -801,15 +691,11 @@ public Builder mergeDocumentSchema(com.google.cloud.contentwarehouse.v1.Document return this; } /** - * - * *
      * Required. The document schema to update with.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocumentSchema() { bitField0_ = (bitField0_ & ~0x00000002); @@ -822,15 +708,11 @@ public Builder clearDocumentSchema() { return this; } /** - * - * *
      * Required. The document schema to update with.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSchemaBuilder() { bitField0_ |= 0x00000002; @@ -838,56 +720,43 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSc return getDocumentSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The document schema to update with.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder - getDocumentSchemaOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder() { if (documentSchemaBuilder_ != null) { return documentSchemaBuilder_.getMessageOrBuilder(); } else { - return documentSchema_ == null - ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() - : documentSchema_; + return documentSchema_ == null ? + com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; } } /** - * - * *
      * Required. The document schema to update with.
      * 
* - * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, - com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> getDocumentSchemaFieldBuilder() { if (documentSchemaBuilder_ == null) { - documentSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, - com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder>( - getDocumentSchema(), getParentForChildren(), isClean()); + documentSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder>( + getDocumentSchema(), + getParentForChildren(), + isClean()); documentSchema_ = null; } return documentSchemaBuilder_; } - @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); } @@ -897,43 +766,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) - private static final com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest(); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest - getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDocumentSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 UpdateDocumentSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,8 +812,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest - getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..7c1757af31eb --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface UpdateDocumentSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the document schema to update.
+   * Format:
+   * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the document schema to update.
+   * Format:
+   * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The document schema to update with.
+   * 
+ * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the documentSchema field is set. + */ + boolean hasDocumentSchema(); + /** + *
+   * Required. The document schema to update with.
+   * 
+ * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The documentSchema. + */ + com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema(); + /** + *
+   * Required. The document schema to update with.
+   * 
+ * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder(); +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java similarity index 69% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java index 3952619007f0..c86548bf28bf 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java @@ -1,107 +1,77 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Options for Update operations.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateOptions} */ -public final class UpdateOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.UpdateOptions) UpdateOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateOptions.newBuilder() to construct. private UpdateOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateOptions() { updateType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateOptions.class, - com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateOptions.class, com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder.class); } public static final int UPDATE_TYPE_FIELD_NUMBER = 1; private int updateType_ = 0; /** - * - * *
    * Type for update.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; - * * @return The enum numeric value on the wire for updateType. */ - @java.lang.Override - public int getUpdateTypeValue() { + @java.lang.Override public int getUpdateTypeValue() { return updateType_; } /** - * - * *
    * Type for update.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; - * * @return The updateType. */ - @java.lang.Override - public com.google.cloud.contentwarehouse.v1.UpdateType getUpdateType() { - com.google.cloud.contentwarehouse.v1.UpdateType result = - com.google.cloud.contentwarehouse.v1.UpdateType.forNumber(updateType_); + @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateType getUpdateType() { + com.google.cloud.contentwarehouse.v1.UpdateType result = com.google.cloud.contentwarehouse.v1.UpdateType.forNumber(updateType_); return result == null ? com.google.cloud.contentwarehouse.v1.UpdateType.UNRECOGNIZED : result; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -110,7 +80,6 @@ public com.google.cloud.contentwarehouse.v1.UpdateType getUpdateType() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -118,8 +87,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -128,7 +95,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -136,8 +102,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -155,14 +119,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int MERGE_FIELDS_OPTIONS_FIELD_NUMBER = 3;
   private com.google.cloud.contentwarehouse.v1.MergeFieldsOptions mergeFieldsOptions_;
   /**
-   *
-   *
    * 
    * Options for merging.
    * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; - * * @return Whether the mergeFieldsOptions field is set. */ @java.lang.Override @@ -170,25 +131,18 @@ public boolean hasMergeFieldsOptions() { return mergeFieldsOptions_ != null; } /** - * - * *
    * Options for merging.
    * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; - * * @return The mergeFieldsOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions getMergeFieldsOptions() { - return mergeFieldsOptions_ == null - ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() - : mergeFieldsOptions_; + return mergeFieldsOptions_ == null ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() : mergeFieldsOptions_; } /** - * - * *
    * Options for merging.
    * 
@@ -196,15 +150,11 @@ public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions getMergeFieldsOpt * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder - getMergeFieldsOptionsOrBuilder() { - return mergeFieldsOptions_ == null - ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() - : mergeFieldsOptions_; + public com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder getMergeFieldsOptionsOrBuilder() { + return mergeFieldsOptions_ == null ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() : mergeFieldsOptions_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,9 +166,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (updateType_ - != com.google.cloud.contentwarehouse.v1.UpdateType.UPDATE_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (updateType_ != com.google.cloud.contentwarehouse.v1.UpdateType.UPDATE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, updateType_); } if (updateMask_ != null) { @@ -236,15 +186,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (updateType_ - != com.google.cloud.contentwarehouse.v1.UpdateType.UPDATE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, updateType_); + if (updateType_ != com.google.cloud.contentwarehouse.v1.UpdateType.UPDATE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, updateType_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (mergeFieldsOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMergeFieldsOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMergeFieldsOptions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -254,22 +206,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.contentwarehouse.v1.UpdateOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UpdateOptions other = - (com.google.cloud.contentwarehouse.v1.UpdateOptions) obj; + com.google.cloud.contentwarehouse.v1.UpdateOptions other = (com.google.cloud.contentwarehouse.v1.UpdateOptions) obj; if (updateType_ != other.updateType_) 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 (hasMergeFieldsOptions() != other.hasMergeFieldsOptions()) return false; if (hasMergeFieldsOptions()) { - if (!getMergeFieldsOptions().equals(other.getMergeFieldsOptions())) return false; + if (!getMergeFieldsOptions() + .equals(other.getMergeFieldsOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -298,135 +251,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.UpdateOptions 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.contentwarehouse.v1.UpdateOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.UpdateOptions 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.contentwarehouse.v1.UpdateOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.UpdateOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Options for Update operations.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.UpdateOptions) com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateOptions.class, - com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateOptions.class, com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.UpdateOptions.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(); @@ -446,9 +395,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; } @java.lang.Override @@ -467,11 +416,8 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.UpdateOptions result = - new com.google.cloud.contentwarehouse.v1.UpdateOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.UpdateOptions result = new com.google.cloud.contentwarehouse.v1.UpdateOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -482,13 +428,14 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateOptions re result.updateType_ = updateType_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.mergeFieldsOptions_ = - mergeFieldsOptionsBuilder_ == null - ? mergeFieldsOptions_ - : mergeFieldsOptionsBuilder_.build(); + result.mergeFieldsOptions_ = mergeFieldsOptionsBuilder_ == null + ? mergeFieldsOptions_ + : mergeFieldsOptionsBuilder_.build(); } } @@ -496,39 +443,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateOptions 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.contentwarehouse.v1.UpdateOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateOptions) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateOptions)other); } else { super.mergeFrom(other); return this; @@ -536,8 +482,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance()) return this; if (other.updateType_ != 0) { setUpdateTypeValue(other.getUpdateTypeValue()); } @@ -573,32 +518,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - updateType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getMergeFieldsOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + updateType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getMergeFieldsOptionsFieldBuilder().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) { @@ -608,34 +552,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int updateType_ = 0; /** - * - * *
      * Type for update.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; - * * @return The enum numeric value on the wire for updateType. */ - @java.lang.Override - public int getUpdateTypeValue() { + @java.lang.Override public int getUpdateTypeValue() { return updateType_; } /** - * - * *
      * Type for update.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; - * * @param value The enum numeric value on the wire for updateType to set. * @return This builder for chaining. */ @@ -646,31 +582,24 @@ public Builder setUpdateTypeValue(int value) { return this; } /** - * - * *
      * Type for update.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; - * * @return The updateType. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateType getUpdateType() { - com.google.cloud.contentwarehouse.v1.UpdateType result = - com.google.cloud.contentwarehouse.v1.UpdateType.forNumber(updateType_); + com.google.cloud.contentwarehouse.v1.UpdateType result = com.google.cloud.contentwarehouse.v1.UpdateType.forNumber(updateType_); return result == null ? com.google.cloud.contentwarehouse.v1.UpdateType.UNRECOGNIZED : result; } /** - * - * *
      * Type for update.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; - * * @param value The updateType to set. * @return This builder for chaining. */ @@ -684,14 +613,11 @@ public Builder setUpdateType(com.google.cloud.contentwarehouse.v1.UpdateType val return this; } /** - * - * *
      * Type for update.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; - * * @return This builder for chaining. */ public Builder clearUpdateType() { @@ -703,13 +629,8 @@ public Builder clearUpdateType() { 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_; /** - * - * *
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -718,15 +639,12 @@ public Builder clearUpdateType() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -735,21 +653,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(); } } /** - * - * *
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -773,8 +686,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -784,7 +695,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 {
@@ -795,8 +707,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -808,9 +718,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;
@@ -823,8 +733,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -845,8 +753,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -862,8 +768,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -877,14 +781,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_;
       }
     }
     /**
-     *
-     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -895,17 +796,14 @@ 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_;
@@ -913,55 +811,41 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.cloud.contentwarehouse.v1.MergeFieldsOptions mergeFieldsOptions_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.MergeFieldsOptions,
-            com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder,
-            com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder>
-        mergeFieldsOptionsBuilder_;
+        com.google.cloud.contentwarehouse.v1.MergeFieldsOptions, com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder, com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder> mergeFieldsOptionsBuilder_;
     /**
-     *
-     *
      * 
      * Options for merging.
      * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; - * * @return Whether the mergeFieldsOptions field is set. */ public boolean hasMergeFieldsOptions() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Options for merging.
      * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; - * * @return The mergeFieldsOptions. */ public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions getMergeFieldsOptions() { if (mergeFieldsOptionsBuilder_ == null) { - return mergeFieldsOptions_ == null - ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() - : mergeFieldsOptions_; + return mergeFieldsOptions_ == null ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() : mergeFieldsOptions_; } else { return mergeFieldsOptionsBuilder_.getMessage(); } } /** - * - * *
      * Options for merging.
      * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; */ - public Builder setMergeFieldsOptions( - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions value) { + public Builder setMergeFieldsOptions(com.google.cloud.contentwarehouse.v1.MergeFieldsOptions value) { if (mergeFieldsOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -975,8 +859,6 @@ public Builder setMergeFieldsOptions( return this; } /** - * - * *
      * Options for merging.
      * 
@@ -995,21 +877,17 @@ public Builder setMergeFieldsOptions( return this; } /** - * - * *
      * Options for merging.
      * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; */ - public Builder mergeMergeFieldsOptions( - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions value) { + public Builder mergeMergeFieldsOptions(com.google.cloud.contentwarehouse.v1.MergeFieldsOptions value) { if (mergeFieldsOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && mergeFieldsOptions_ != null - && mergeFieldsOptions_ - != com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + mergeFieldsOptions_ != null && + mergeFieldsOptions_ != com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance()) { getMergeFieldsOptionsBuilder().mergeFrom(value); } else { mergeFieldsOptions_ = value; @@ -1022,8 +900,6 @@ public Builder mergeMergeFieldsOptions( return this; } /** - * - * *
      * Options for merging.
      * 
@@ -1041,42 +917,33 @@ public Builder clearMergeFieldsOptions() { return this; } /** - * - * *
      * Options for merging.
      * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; */ - public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder - getMergeFieldsOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder getMergeFieldsOptionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMergeFieldsOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Options for merging.
      * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; */ - public com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder - getMergeFieldsOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder getMergeFieldsOptionsOrBuilder() { if (mergeFieldsOptionsBuilder_ != null) { return mergeFieldsOptionsBuilder_.getMessageOrBuilder(); } else { - return mergeFieldsOptions_ == null - ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() - : mergeFieldsOptions_; + return mergeFieldsOptions_ == null ? + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() : mergeFieldsOptions_; } } /** - * - * *
      * Options for merging.
      * 
@@ -1084,24 +951,21 @@ public Builder clearMergeFieldsOptions() { * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions, - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder, - com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions, com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder, com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder> getMergeFieldsOptionsFieldBuilder() { if (mergeFieldsOptionsBuilder_ == null) { - mergeFieldsOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions, - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder, - com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder>( - getMergeFieldsOptions(), getParentForChildren(), isClean()); + mergeFieldsOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions, com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder, com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder>( + getMergeFieldsOptions(), + getParentForChildren(), + isClean()); mergeFieldsOptions_ = null; } return mergeFieldsOptionsBuilder_; } - @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 +975,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateOptions) private static final com.google.cloud.contentwarehouse.v1.UpdateOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateOptions(); } @@ -1125,27 +989,27 @@ public static com.google.cloud.contentwarehouse.v1.UpdateOptions getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 UpdateOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +1024,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.UpdateOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java similarity index 77% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java index 7d99c052d6d6..01c04bb3e2ff 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; -public interface UpdateOptionsOrBuilder - extends +public interface UpdateOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Type for update.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; - * * @return The enum numeric value on the wire for updateType. */ int getUpdateTypeValue(); /** - * - * *
    * Type for update.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; - * * @return The updateType. */ com.google.cloud.contentwarehouse.v1.UpdateType getUpdateType(); /** - * - * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -59,13 +35,10 @@ public interface UpdateOptionsOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -74,13 +47,10 @@ public interface UpdateOptionsOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -93,32 +63,24 @@ public interface UpdateOptionsOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Options for merging.
    * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; - * * @return Whether the mergeFieldsOptions field is set. */ boolean hasMergeFieldsOptions(); /** - * - * *
    * Options for merging.
    * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; - * * @return The mergeFieldsOptions. */ com.google.cloud.contentwarehouse.v1.MergeFieldsOptions getMergeFieldsOptions(); /** - * - * *
    * Options for merging.
    * 
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java similarity index 61% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java index b5b5b179f9d1..06b0bc911fcb 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for RuleSetService.UpdateRuleSet.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateRuleSetRequest} */ -public final class UpdateRuleSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateRuleSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) UpdateRuleSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateRuleSetRequest.newBuilder() to construct. private UpdateRuleSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateRuleSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateRuleSetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.class, - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the rule set to update.
    * Format:
    * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 @@ -87,33 +62,31 @@ 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 name of the rule set to update.
    * Format:
    * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 { @@ -124,16 +97,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int RULE_SET_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RuleSet ruleSet_; /** - * - * *
    * Required. The rule set to update.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the ruleSet field is set. */ @java.lang.Override @@ -141,44 +109,30 @@ public boolean hasRuleSet() { return ruleSet_ != null; } /** - * - * *
    * Required. The rule set to update.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The ruleSet. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet() { - return ruleSet_ == null - ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() - : ruleSet_; + return ruleSet_ == null ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; } /** - * - * *
    * Required. The rule set to update.
    * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder() { - return ruleSet_ == null - ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() - : ruleSet_; + return ruleSet_ == null ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,7 +144,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -210,7 +165,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (ruleSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuleSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRuleSet()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -220,18 +176,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.contentwarehouse.v1.UpdateRuleSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest other = - (com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) obj; + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest other = (com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasRuleSet() != other.hasRuleSet()) return false; if (hasRuleSet()) { - if (!getRuleSet().equals(other.getRuleSet())) return false; + if (!getRuleSet() + .equals(other.getRuleSet())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -256,136 +213,131 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest 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.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest 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.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 RuleSetService.UpdateRuleSet.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateRuleSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.class, - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.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(); @@ -400,9 +352,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto - .internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; } @java.lang.Override @@ -421,11 +373,8 @@ public com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest result = - new com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest result = new com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -436,7 +385,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateRuleSetReq result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.ruleSet_ = ruleSetBuilder_ == null ? ruleSet_ : ruleSetBuilder_.build(); + result.ruleSet_ = ruleSetBuilder_ == null + ? ruleSet_ + : ruleSetBuilder_.build(); } } @@ -444,39 +395,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateRuleSetReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.UpdateRuleSetRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest)other); } else { super.mergeFrom(other); return this; @@ -484,8 +434,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -520,25 +469,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getRuleSetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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( + getRuleSetFieldBuilder().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) { @@ -548,29 +496,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the rule set to update.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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; @@ -579,25 +522,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the rule set to update.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 { @@ -605,43 +545,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the rule set to update.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 name of the rule set to update.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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() { @@ -651,25 +580,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the rule set to update.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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; @@ -679,58 +602,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.RuleSet ruleSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, - com.google.cloud.contentwarehouse.v1.RuleSet.Builder, - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> - ruleSetBuilder_; + com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> ruleSetBuilder_; /** - * - * *
      * Required. The rule set to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the ruleSet field is set. */ public boolean hasRuleSet() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The rule set to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The ruleSet. */ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet() { if (ruleSetBuilder_ == null) { - return ruleSet_ == null - ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() - : ruleSet_; + return ruleSet_ == null ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; } else { return ruleSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The rule set to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) { if (ruleSetBuilder_ == null) { @@ -746,15 +650,11 @@ public Builder setRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) { return this; } /** - * - * *
      * Required. The rule set to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRuleSet( com.google.cloud.contentwarehouse.v1.RuleSet.Builder builderForValue) { @@ -768,21 +668,17 @@ public Builder setRuleSet( return this; } /** - * - * *
      * Required. The rule set to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) { if (ruleSetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && ruleSet_ != null - && ruleSet_ != com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + ruleSet_ != null && + ruleSet_ != com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()) { getRuleSetBuilder().mergeFrom(value); } else { ruleSet_ = value; @@ -795,15 +691,11 @@ public Builder mergeRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) return this; } /** - * - * *
      * Required. The rule set to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRuleSet() { bitField0_ = (bitField0_ & ~0x00000002); @@ -816,15 +708,11 @@ public Builder clearRuleSet() { return this; } /** - * - * *
      * Required. The rule set to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.RuleSet.Builder getRuleSetBuilder() { bitField0_ |= 0x00000002; @@ -832,55 +720,43 @@ public com.google.cloud.contentwarehouse.v1.RuleSet.Builder getRuleSetBuilder() return getRuleSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The rule set to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder() { if (ruleSetBuilder_ != null) { return ruleSetBuilder_.getMessageOrBuilder(); } else { - return ruleSet_ == null - ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() - : ruleSet_; + return ruleSet_ == null ? + com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; } } /** - * - * *
      * Required. The rule set to update.
      * 
* - * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, - com.google.cloud.contentwarehouse.v1.RuleSet.Builder, - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> + com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> getRuleSetFieldBuilder() { if (ruleSetBuilder_ == null) { - ruleSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, - com.google.cloud.contentwarehouse.v1.RuleSet.Builder, - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>( - getRuleSet(), getParentForChildren(), isClean()); + ruleSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>( + getRuleSet(), + getParentForChildren(), + isClean()); ruleSet_ = null; } return ruleSetBuilder_; } - @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); } @@ -890,12 +766,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) private static final com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest(); } @@ -904,27 +780,27 @@ public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRuleSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 UpdateRuleSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -939,4 +815,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java new file mode 100644 index 000000000000..47ecf76b8675 --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface UpdateRuleSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the rule set to update.
+   * Format:
+   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the rule set to update.
+   * Format:
+   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The rule set to update.
+   * 
+ * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the ruleSet field is set. + */ + boolean hasRuleSet(); + /** + *
+   * Required. The rule set to update.
+   * 
+ * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The ruleSet. + */ + com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet(); + /** + *
+   * Required. The rule set to update.
+   * 
+ * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder(); +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java similarity index 61% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java index 7264fe9e84e8..c133f63dd748 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.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/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Request message for SynonymSetService.UpdateSynonymSet.
  * Removes the SynonymSet for the specified context and replaces
@@ -29,58 +12,50 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest}
  */
-public final class UpdateSynonymSetRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateSynonymSetRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest)
     UpdateSynonymSetRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateSynonymSetRequest.newBuilder() to construct.
   private UpdateSynonymSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UpdateSynonymSetRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateSynonymSetRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-        .internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-        .internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.class,
-            com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.Builder.class);
+            com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the synonymSet to update
    * Format:
    * projects/{project_number}/locations/{location}/synonymSets/{context}.
    * 
* - * - * 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 @@ -89,33 +64,31 @@ 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 name of the synonymSet to update
    * Format:
    * projects/{project_number}/locations/{location}/synonymSets/{context}.
    * 
* - * - * 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 { @@ -126,16 +99,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SYNONYM_SET_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.SynonymSet synonymSet_; /** - * - * *
    * Required. The synonymSet to be updated for the customer
    * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the synonymSet field is set. */ @java.lang.Override @@ -143,44 +111,30 @@ public boolean hasSynonymSet() { return synonymSet_ != null; } /** - * - * *
    * Required. The synonymSet to be updated for the customer
    * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The synonymSet. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet() { - return synonymSet_ == null - ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() - : synonymSet_; + return synonymSet_ == null ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; } /** - * - * *
    * Required. The synonymSet to be updated for the customer
    * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder() { - return synonymSet_ == null - ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() - : synonymSet_; + return synonymSet_ == null ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -212,7 +167,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (synonymSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSynonymSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSynonymSet()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,18 +178,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.contentwarehouse.v1.UpdateSynonymSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest other = - (com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) obj; + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest other = (com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasSynonymSet() != other.hasSynonymSet()) return false; if (hasSynonymSet()) { - if (!getSynonymSet().equals(other.getSynonymSet())) return false; + if (!getSynonymSet() + .equals(other.getSynonymSet())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -258,104 +215,98 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest 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.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest 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.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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 SynonymSetService.UpdateSynonymSet.
    * Removes the SynonymSet for the specified context and replaces
@@ -364,32 +315,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest)
       com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-          .internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-          .internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.class,
-              com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.Builder.class);
+              com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.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();
@@ -404,14 +356,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
-          .internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest getDefaultInstanceForType() {
       return com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.getDefaultInstance();
     }
 
@@ -426,23 +377,21 @@ public com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest buildPartial() {
-      com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest result =
-          new com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest result = new com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest result) {
+    private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.synonymSet_ = synonymSetBuilder_ == null ? synonymSet_ : synonymSetBuilder_.build();
+        result.synonymSet_ = synonymSetBuilder_ == null
+            ? synonymSet_
+            : synonymSetBuilder_.build();
       }
     }
 
@@ -450,39 +399,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.contentwarehouse.v1.UpdateSynonymSetRequest) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -490,9 +438,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest other) {
-      if (other
-          == com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -527,25 +473,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSynonymSetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            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(
+                  getSynonymSetFieldBuilder().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) {
@@ -555,29 +500,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the synonymSet to update
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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; @@ -586,25 +526,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the synonymSet to update
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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 { @@ -612,43 +549,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the synonymSet to update
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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 name of the synonymSet to update
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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() { @@ -658,25 +584,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the synonymSet to update
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * - * 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; @@ -686,58 +606,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.contentwarehouse.v1.SynonymSet synonymSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, - com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> - synonymSetBuilder_; + com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> synonymSetBuilder_; /** - * - * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the synonymSet field is set. */ public boolean hasSynonymSet() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The synonymSet. */ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet() { if (synonymSetBuilder_ == null) { - return synonymSet_ == null - ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() - : synonymSet_; + return synonymSet_ == null ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; } else { return synonymSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet value) { if (synonymSetBuilder_ == null) { @@ -753,15 +654,11 @@ public Builder setSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet val return this; } /** - * - * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSynonymSet( com.google.cloud.contentwarehouse.v1.SynonymSet.Builder builderForValue) { @@ -775,22 +672,17 @@ public Builder setSynonymSet( return this; } /** - * - * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet value) { if (synonymSetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && synonymSet_ != null - && synonymSet_ - != com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + synonymSet_ != null && + synonymSet_ != com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()) { getSynonymSetBuilder().mergeFrom(value); } else { synonymSet_ = value; @@ -803,15 +695,11 @@ public Builder mergeSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet v return this; } /** - * - * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSynonymSet() { bitField0_ = (bitField0_ & ~0x00000002); @@ -824,15 +712,11 @@ public Builder clearSynonymSet() { return this; } /** - * - * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetBuilder() { bitField0_ |= 0x00000002; @@ -840,55 +724,43 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetBuil return getSynonymSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder() { if (synonymSetBuilder_ != null) { return synonymSetBuilder_.getMessageOrBuilder(); } else { - return synonymSet_ == null - ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() - : synonymSet_; + return synonymSet_ == null ? + com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; } } /** - * - * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, - com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> + com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> getSynonymSetFieldBuilder() { if (synonymSetBuilder_ == null) { - synonymSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, - com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder>( - getSynonymSet(), getParentForChildren(), isClean()); + synonymSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder>( + getSynonymSet(), + getParentForChildren(), + isClean()); synonymSet_ = null; } return synonymSetBuilder_; } - @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); } @@ -898,13 +770,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) - private static final com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest(); } @@ -913,27 +784,27 @@ public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSynonymSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 UpdateSynonymSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,4 +819,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java new file mode 100644 index 000000000000..1b8e12bc1fdf --- /dev/null +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface UpdateSynonymSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the synonymSet to update
+   * Format:
+   * projects/{project_number}/locations/{location}/synonymSets/{context}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the synonymSet to update
+   * Format:
+   * projects/{project_number}/locations/{location}/synonymSets/{context}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The synonymSet to be updated for the customer
+   * 
+ * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the synonymSet field is set. + */ + boolean hasSynonymSet(); + /** + *
+   * Required. The synonymSet to be updated for the customer
+   * 
+ * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The synonymSet. + */ + com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet(); + /** + *
+   * Required. The synonymSet to be updated for the customer
+   * 
+ * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder(); +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java similarity index 73% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java index 480d49725829..319f7872d725 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java @@ -1,36 +1,18 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Update type of the requests.
  * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.UpdateType} */ -public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { +public enum UpdateType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Defaults to full replace behavior, ie. FULL_REPLACE.
    * 
@@ -39,8 +21,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ UPDATE_TYPE_UNSPECIFIED(0), /** - * - * *
    * Fully replace all the fields (including previously linked raw document).
    * Any field masks will be ignored.
@@ -50,8 +30,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum {
    */
   UPDATE_TYPE_REPLACE(1),
   /**
-   *
-   *
    * 
    * Merge the fields into the existing entities.
    * 
@@ -60,8 +38,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ UPDATE_TYPE_MERGE(2), /** - * - * *
    * Inserts the properties by names.
    * 
@@ -70,8 +46,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES(3), /** - * - * *
    * Replace the properties by names.
    * 
@@ -80,8 +54,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES(4), /** - * - * *
    * Delete the properties by names.
    * 
@@ -90,8 +62,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES(5), /** - * - * *
    * For each of the property, replaces the property if the it exists, otherwise
    * inserts a new property. And for the rest of the fields, merge them based on
@@ -105,8 +75,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * Defaults to full replace behavior, ie. FULL_REPLACE.
    * 
@@ -115,8 +83,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Fully replace all the fields (including previously linked raw document).
    * Any field masks will be ignored.
@@ -126,8 +92,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int UPDATE_TYPE_REPLACE_VALUE = 1;
   /**
-   *
-   *
    * 
    * Merge the fields into the existing entities.
    * 
@@ -136,8 +100,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATE_TYPE_MERGE_VALUE = 2; /** - * - * *
    * Inserts the properties by names.
    * 
@@ -146,8 +108,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES_VALUE = 3; /** - * - * *
    * Replace the properties by names.
    * 
@@ -156,8 +116,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES_VALUE = 4; /** - * - * *
    * Delete the properties by names.
    * 
@@ -166,8 +124,6 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES_VALUE = 5; /** - * - * *
    * For each of the property, replaces the property if the it exists, otherwise
    * inserts a new property. And for the rest of the fields, merge them based on
@@ -178,6 +134,7 @@ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int UPDATE_TYPE_MERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY_NAMES_VALUE = 6;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -202,57 +159,53 @@ public static UpdateType valueOf(int value) {
    */
   public static UpdateType forNumber(int value) {
     switch (value) {
-      case 0:
-        return UPDATE_TYPE_UNSPECIFIED;
-      case 1:
-        return UPDATE_TYPE_REPLACE;
-      case 2:
-        return UPDATE_TYPE_MERGE;
-      case 3:
-        return UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES;
-      case 4:
-        return UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES;
-      case 5:
-        return UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES;
-      case 6:
-        return UPDATE_TYPE_MERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY_NAMES;
-      default:
-        return null;
+      case 0: return UPDATE_TYPE_UNSPECIFIED;
+      case 1: return UPDATE_TYPE_REPLACE;
+      case 2: return UPDATE_TYPE_MERGE;
+      case 3: return UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES;
+      case 4: return UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES;
+      case 5: return UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES;
+      case 6: return UPDATE_TYPE_MERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY_NAMES;
+      default: return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap
+      internalGetValueMap() {
     return internalValueMap;
   }
-
-  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public UpdateType findValueByNumber(int number) {
-          return UpdateType.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      UpdateType> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public UpdateType findValueByNumber(int number) {
+            return UpdateType.forNumber(number);
+          }
+        };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
     return com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final UpdateType[] VALUES = values();
 
-  public static UpdateType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static UpdateType 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;
@@ -268,3 +221,4 @@ private UpdateType(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.UpdateType)
 }
+
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java
similarity index 71%
rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java
rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java
index f83537accb6f..de39b52b3872 100644
--- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java
+++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java
@@ -1,75 +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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/common.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
- *
- *
  * 
  * The user information.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.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() { id_ = ""; - groupIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + groupIds_ = + 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 UserInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UserInfo.class, - com.google.cloud.contentwarehouse.v1.UserInfo.Builder.class); + com.google.cloud.contentwarehouse.v1.UserInfo.class, com.google.cloud.contentwarehouse.v1.UserInfo.Builder.class); } public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** - * - * *
    * A unique user identification string, as determined by the client.
    * The maximum number of allowed characters is 255.
@@ -79,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -88,15 +66,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; } } /** - * - * *
    * A unique user identification string, as determined by the client.
    * The maximum number of allowed characters is 255.
@@ -106,15 +83,16 @@ public java.lang.String getId() {
    * 
* * 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 { @@ -123,50 +101,41 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int GROUP_IDS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList groupIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; - * * @return A list containing the groupIds. */ - public com.google.protobuf.ProtocolStringList getGroupIdsList() { + public com.google.protobuf.ProtocolStringList + getGroupIdsList() { return groupIds_; } /** - * - * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; - * * @return The count of groupIds. */ public int getGroupIdsCount() { return groupIds_.size(); } /** - * - * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; - * * @param index The index of the element to return. * @return The groupIds at the given index. */ @@ -174,24 +143,21 @@ public java.lang.String getGroupIds(int index) { return groupIds_.get(index); } /** - * - * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the groupIds at the given index. */ - public com.google.protobuf.ByteString getGroupIdsBytes(int index) { + public com.google.protobuf.ByteString + getGroupIdsBytes(int index) { return groupIds_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +169,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_); } @@ -238,16 +205,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.contentwarehouse.v1.UserInfo)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UserInfo other = - (com.google.cloud.contentwarehouse.v1.UserInfo) obj; + com.google.cloud.contentwarehouse.v1.UserInfo other = (com.google.cloud.contentwarehouse.v1.UserInfo) obj; - if (!getId().equals(other.getId())) return false; - if (!getGroupIdsList().equals(other.getGroupIdsList())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getGroupIdsList() + .equals(other.getGroupIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,149 +238,146 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.UserInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.UserInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.UserInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.UserInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.UserInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UserInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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; } /** - * - * *
    * The user information.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.v1.UserInfo) com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UserInfo.class, - com.google.cloud.contentwarehouse.v1.UserInfo.Builder.class); + com.google.cloud.contentwarehouse.v1.UserInfo.class, com.google.cloud.contentwarehouse.v1.UserInfo.Builder.class); } // Construct using com.google.cloud.contentwarehouse.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(); bitField0_ = 0; id_ = ""; - groupIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + groupIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.CommonProto - .internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; } @java.lang.Override @@ -431,11 +396,8 @@ public com.google.cloud.contentwarehouse.v1.UserInfo build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfo buildPartial() { - com.google.cloud.contentwarehouse.v1.UserInfo result = - new com.google.cloud.contentwarehouse.v1.UserInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.UserInfo result = new com.google.cloud.contentwarehouse.v1.UserInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -455,39 +417,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.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.contentwarehouse.v1.UserInfo) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UserInfo) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UserInfo)other); } else { super.mergeFrom(other); return this; @@ -537,26 +498,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureGroupIdsIsMutable(); - groupIds_.add(s); - 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureGroupIdsIsMutable(); + groupIds_.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) { @@ -566,13 +524,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -582,13 +537,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -597,8 +552,6 @@ public java.lang.String getId() { } } /** - * - * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -608,14 +561,15 @@ public java.lang.String getId() {
      * 
* * 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 { @@ -623,8 +577,6 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -634,22 +586,18 @@ public com.google.protobuf.ByteString getIdBytes() {
      * 
* * 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; } /** - * - * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -659,7 +607,6 @@ public Builder setId(java.lang.String value) {
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { @@ -669,8 +616,6 @@ public Builder clearId() { return this; } /** - * - * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -680,14 +625,12 @@ public Builder clearId() {
      * 
* * 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; @@ -697,7 +640,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList groupIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureGroupIdsIsMutable() { if (!groupIds_.isModifiable()) { groupIds_ = new com.google.protobuf.LazyStringArrayList(groupIds_); @@ -705,46 +647,38 @@ private void ensureGroupIdsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; - * * @return A list containing the groupIds. */ - public com.google.protobuf.ProtocolStringList getGroupIdsList() { + public com.google.protobuf.ProtocolStringList + getGroupIdsList() { groupIds_.makeImmutable(); return groupIds_; } /** - * - * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; - * * @return The count of groupIds. */ public int getGroupIdsCount() { return groupIds_.size(); } /** - * - * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; - * * @param index The index of the element to return. * @return The groupIds at the given index. */ @@ -752,39 +686,33 @@ public java.lang.String getGroupIds(int index) { return groupIds_.get(index); } /** - * - * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the groupIds at the given index. */ - public com.google.protobuf.ByteString getGroupIdsBytes(int index) { + public com.google.protobuf.ByteString + getGroupIdsBytes(int index) { return groupIds_.getByteString(index); } /** - * - * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; - * * @param index The index to set the value at. * @param value The groupIds to set. * @return This builder for chaining. */ - public Builder setGroupIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGroupIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureGroupIdsIsMutable(); groupIds_.set(index, value); bitField0_ |= 0x00000002; @@ -792,22 +720,18 @@ public Builder setGroupIds(int index, java.lang.String value) { return this; } /** - * - * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; - * * @param value The groupIds to add. * @return This builder for chaining. */ - public Builder addGroupIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addGroupIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureGroupIdsIsMutable(); groupIds_.add(value); bitField0_ |= 0x00000002; @@ -815,61 +739,53 @@ public Builder addGroupIds(java.lang.String value) { return this; } /** - * - * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; - * * @param values The groupIds to add. * @return This builder for chaining. */ - public Builder addAllGroupIds(java.lang.Iterable values) { + public Builder addAllGroupIds( + java.lang.Iterable values) { ensureGroupIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, groupIds_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; - * * @return This builder for chaining. */ public Builder clearGroupIds() { - groupIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + groupIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; - * * @param value The bytes of the groupIds to add. * @return This builder for chaining. */ - public Builder addGroupIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addGroupIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureGroupIdsIsMutable(); groupIds_.add(value); @@ -877,9 +793,9 @@ public Builder addGroupIdsBytes(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); } @@ -889,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UserInfo) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UserInfo) private static final com.google.cloud.contentwarehouse.v1.UserInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UserInfo(); } @@ -903,27 +819,27 @@ public static com.google.cloud.contentwarehouse.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; @@ -938,4 +854,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.UserInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java similarity index 72% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java index ad3ec7426e4a..38183f7e46fc 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; -public interface UserInfoOrBuilder - extends +public interface UserInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UserInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A unique user identification string, as determined by the client.
    * The maximum number of allowed characters is 255.
@@ -35,13 +17,10 @@ public interface UserInfoOrBuilder
    * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * A unique user identification string, as determined by the client.
    * The maximum number of allowed characters is 255.
@@ -51,63 +30,53 @@ public interface UserInfoOrBuilder
    * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; - * * @return A list containing the groupIds. */ - java.util.List getGroupIdsList(); + java.util.List + getGroupIdsList(); /** - * - * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; - * * @return The count of groupIds. */ int getGroupIdsCount(); /** - * - * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; - * * @param index The index of the element to return. * @return The groupIds at the given index. */ java.lang.String getGroupIds(int index); /** - * - * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the groupIds at the given index. */ - com.google.protobuf.ByteString getGroupIdsBytes(int index); + com.google.protobuf.ByteString + getGroupIdsBytes(int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java similarity index 71% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java index 8b93029fba42..b988cbe6d2e2 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * `Value` represents a dynamically typed value which can be either be
  * a float, a integer, a string, or a datetime value. A producer of value is
@@ -30,47 +13,43 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.Value}
  */
-public final class Value extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Value extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.Value)
     ValueOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Value.newBuilder() to construct.
   private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Value() {}
+  private Value() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Value();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.DocumentProto
-        .internal_static_google_cloud_contentwarehouse_v1_Value_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Value_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.DocumentProto
-        .internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.Value.class,
-            com.google.cloud.contentwarehouse.v1.Value.Builder.class);
+            com.google.cloud.contentwarehouse.v1.Value.class, com.google.cloud.contentwarehouse.v1.Value.Builder.class);
   }
 
   private int kindCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object kind_;
-
   public enum KindCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     FLOAT_VALUE(1),
     INT_VALUE(2),
@@ -81,7 +60,6 @@ public enum KindCase
     BOOLEAN_VALUE(7),
     KIND_NOT_SET(0);
     private final int value;
-
     private KindCase(int value) {
       this.value = value;
     }
@@ -97,46 +75,35 @@ public static KindCase valueOf(int value) {
 
     public static KindCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return FLOAT_VALUE;
-        case 2:
-          return INT_VALUE;
-        case 3:
-          return STRING_VALUE;
-        case 4:
-          return ENUM_VALUE;
-        case 5:
-          return DATETIME_VALUE;
-        case 6:
-          return TIMESTAMP_VALUE;
-        case 7:
-          return BOOLEAN_VALUE;
-        case 0:
-          return KIND_NOT_SET;
-        default:
-          return null;
+        case 1: return FLOAT_VALUE;
+        case 2: return INT_VALUE;
+        case 3: return STRING_VALUE;
+        case 4: return ENUM_VALUE;
+        case 5: return DATETIME_VALUE;
+        case 6: return TIMESTAMP_VALUE;
+        case 7: return BOOLEAN_VALUE;
+        case 0: return KIND_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public KindCase getKindCase() {
-    return KindCase.forNumber(kindCase_);
+  public KindCase
+  getKindCase() {
+    return KindCase.forNumber(
+        kindCase_);
   }
 
   public static final int FLOAT_VALUE_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Represents a float value.
    * 
* * float float_value = 1; - * * @return Whether the floatValue field is set. */ @java.lang.Override @@ -144,14 +111,11 @@ public boolean hasFloatValue() { return kindCase_ == 1; } /** - * - * *
    * Represents a float value.
    * 
* * float float_value = 1; - * * @return The floatValue. */ @java.lang.Override @@ -164,14 +128,11 @@ public float getFloatValue() { public static final int INT_VALUE_FIELD_NUMBER = 2; /** - * - * *
    * Represents a integer value.
    * 
* * int32 int_value = 2; - * * @return Whether the intValue field is set. */ @java.lang.Override @@ -179,14 +140,11 @@ public boolean hasIntValue() { return kindCase_ == 2; } /** - * - * *
    * Represents a integer value.
    * 
* * int32 int_value = 2; - * * @return The intValue. */ @java.lang.Override @@ -199,28 +157,22 @@ public int getIntValue() { public static final int STRING_VALUE_FIELD_NUMBER = 3; /** - * - * *
    * Represents a string value.
    * 
* * string string_value = 3; - * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return kindCase_ == 3; } /** - * - * *
    * Represents a string value.
    * 
* * string string_value = 3; - * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -231,7 +183,8 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (kindCase_ == 3) { kind_ = s; @@ -240,24 +193,23 @@ public java.lang.String getStringValue() { } } /** - * - * *
    * Represents a string value.
    * 
* * string string_value = 3; - * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString getStringValueBytes() { + public com.google.protobuf.ByteString + getStringValueBytes() { java.lang.Object ref = ""; if (kindCase_ == 3) { ref = kind_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (kindCase_ == 3) { kind_ = b; } @@ -269,14 +221,11 @@ public com.google.protobuf.ByteString getStringValueBytes() { public static final int ENUM_VALUE_FIELD_NUMBER = 4; /** - * - * *
    * Represents an enum value.
    * 
* * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; - * * @return Whether the enumValue field is set. */ @java.lang.Override @@ -284,26 +233,21 @@ public boolean hasEnumValue() { return kindCase_ == 4; } /** - * - * *
    * Represents an enum value.
    * 
* * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; - * * @return The enumValue. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumValue getEnumValue() { if (kindCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.EnumValue) kind_; + return (com.google.cloud.contentwarehouse.v1.EnumValue) kind_; } return com.google.cloud.contentwarehouse.v1.EnumValue.getDefaultInstance(); } /** - * - * *
    * Represents an enum value.
    * 
@@ -313,21 +257,18 @@ public com.google.cloud.contentwarehouse.v1.EnumValue getEnumValue() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder getEnumValueOrBuilder() { if (kindCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.EnumValue) kind_; + return (com.google.cloud.contentwarehouse.v1.EnumValue) kind_; } return com.google.cloud.contentwarehouse.v1.EnumValue.getDefaultInstance(); } public static final int DATETIME_VALUE_FIELD_NUMBER = 5; /** - * - * *
    * Represents a datetime value.
    * 
* * .google.type.DateTime datetime_value = 5; - * * @return Whether the datetimeValue field is set. */ @java.lang.Override @@ -335,26 +276,21 @@ public boolean hasDatetimeValue() { return kindCase_ == 5; } /** - * - * *
    * Represents a datetime value.
    * 
* * .google.type.DateTime datetime_value = 5; - * * @return The datetimeValue. */ @java.lang.Override public com.google.type.DateTime getDatetimeValue() { if (kindCase_ == 5) { - return (com.google.type.DateTime) kind_; + return (com.google.type.DateTime) kind_; } return com.google.type.DateTime.getDefaultInstance(); } /** - * - * *
    * Represents a datetime value.
    * 
@@ -364,21 +300,18 @@ public com.google.type.DateTime getDatetimeValue() { @java.lang.Override public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder() { if (kindCase_ == 5) { - return (com.google.type.DateTime) kind_; + return (com.google.type.DateTime) kind_; } return com.google.type.DateTime.getDefaultInstance(); } public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 6; /** - * - * *
    * Represents a timestamp value.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; - * * @return Whether the timestampValue field is set. */ @java.lang.Override @@ -386,26 +319,21 @@ public boolean hasTimestampValue() { return kindCase_ == 6; } /** - * - * *
    * Represents a timestamp value.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; - * * @return The timestampValue. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampValue getTimestampValue() { if (kindCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_; + return (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_; } return com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance(); } /** - * - * *
    * Represents a timestamp value.
    * 
@@ -415,21 +343,18 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue getTimestampValue() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getTimestampValueOrBuilder() { if (kindCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_; + return (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_; } return com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance(); } public static final int BOOLEAN_VALUE_FIELD_NUMBER = 7; /** - * - * *
    * Represents a boolean value.
    * 
* * bool boolean_value = 7; - * * @return Whether the booleanValue field is set. */ @java.lang.Override @@ -437,14 +362,11 @@ public boolean hasBooleanValue() { return kindCase_ == 7; } /** - * - * *
    * Represents a boolean value.
    * 
* * bool boolean_value = 7; - * * @return The booleanValue. */ @java.lang.Override @@ -456,7 +378,6 @@ public boolean getBooleanValue() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -468,12 +389,15 @@ public final boolean isInitialized() { } @java.lang.Override - 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 (kindCase_ == 1) { - output.writeFloat(1, (float) ((java.lang.Float) kind_)); + output.writeFloat( + 1, (float)((java.lang.Float) kind_)); } if (kindCase_ == 2) { - output.writeInt32(2, (int) ((java.lang.Integer) kind_)); + output.writeInt32( + 2, (int)((java.lang.Integer) kind_)); } if (kindCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kind_); @@ -488,7 +412,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(6, (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_); } if (kindCase_ == 7) { - output.writeBool(7, (boolean) ((java.lang.Boolean) kind_)); + output.writeBool( + 7, (boolean)((java.lang.Boolean) kind_)); } getUnknownFields().writeTo(output); } @@ -500,37 +425,34 @@ public int getSerializedSize() { size = 0; if (kindCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize( - 1, (float) ((java.lang.Float) kind_)); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 1, (float)((java.lang.Float) kind_)); } if (kindCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 2, (int) ((java.lang.Integer) kind_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 2, (int)((java.lang.Integer) kind_)); } if (kindCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kind_); } if (kindCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.contentwarehouse.v1.EnumValue) kind_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.contentwarehouse.v1.EnumValue) kind_); } if (kindCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.type.DateTime) kind_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.type.DateTime) kind_); } if (kindCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_); } if (kindCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 7, (boolean) ((java.lang.Boolean) kind_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 7, (boolean)((java.lang.Boolean) kind_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -540,37 +462,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.contentwarehouse.v1.Value)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.Value other = - (com.google.cloud.contentwarehouse.v1.Value) obj; + com.google.cloud.contentwarehouse.v1.Value other = (com.google.cloud.contentwarehouse.v1.Value) obj; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 1: if (java.lang.Float.floatToIntBits(getFloatValue()) - != java.lang.Float.floatToIntBits(other.getFloatValue())) return false; + != java.lang.Float.floatToIntBits( + other.getFloatValue())) return false; break; case 2: - if (getIntValue() != other.getIntValue()) return false; + if (getIntValue() + != other.getIntValue()) return false; break; case 3: - if (!getStringValue().equals(other.getStringValue())) return false; + if (!getStringValue() + .equals(other.getStringValue())) return false; break; case 4: - if (!getEnumValue().equals(other.getEnumValue())) return false; + if (!getEnumValue() + .equals(other.getEnumValue())) return false; break; case 5: - if (!getDatetimeValue().equals(other.getDatetimeValue())) return false; + if (!getDatetimeValue() + .equals(other.getDatetimeValue())) return false; break; case 6: - if (!getTimestampValue().equals(other.getTimestampValue())) return false; + if (!getTimestampValue() + .equals(other.getTimestampValue())) return false; break; case 7: - if (getBooleanValue() != other.getBooleanValue()) return false; + if (getBooleanValue() + != other.getBooleanValue()) return false; break; case 0: default: @@ -589,7 +517,8 @@ public int hashCode() { switch (kindCase_) { case 1: hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getFloatValue()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getFloatValue()); break; case 2: hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; @@ -613,7 +542,8 @@ public int hashCode() { break; case 7: hash = (37 * hash) + BOOLEAN_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBooleanValue()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBooleanValue()); break; case 0: default: @@ -623,104 +553,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.Value parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.Value parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.Value parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.Value parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.Value parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Value 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.contentwarehouse.v1.Value parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Value parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.Value parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.Value 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.contentwarehouse.v1.Value parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.Value parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.Value prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * `Value` represents a dynamically typed value which can be either be
    * a float, a integer, a string, or a datetime value. A producer of value is
@@ -730,32 +655,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.Value}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.Value)
       com.google.cloud.contentwarehouse.v1.ValueOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.DocumentProto
-          .internal_static_google_cloud_contentwarehouse_v1_Value_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Value_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.DocumentProto
-          .internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.Value.class,
-              com.google.cloud.contentwarehouse.v1.Value.Builder.class);
+              com.google.cloud.contentwarehouse.v1.Value.class, com.google.cloud.contentwarehouse.v1.Value.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.Value.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();
@@ -775,9 +701,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.DocumentProto
-          .internal_static_google_cloud_contentwarehouse_v1_Value_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Value_descriptor;
     }
 
     @java.lang.Override
@@ -796,11 +722,8 @@ public com.google.cloud.contentwarehouse.v1.Value build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.Value buildPartial() {
-      com.google.cloud.contentwarehouse.v1.Value result =
-          new com.google.cloud.contentwarehouse.v1.Value(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.contentwarehouse.v1.Value result = new com.google.cloud.contentwarehouse.v1.Value(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -813,13 +736,16 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Value result) {
     private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Value result) {
       result.kindCase_ = kindCase_;
       result.kind_ = this.kind_;
-      if (kindCase_ == 4 && enumValueBuilder_ != null) {
+      if (kindCase_ == 4 &&
+          enumValueBuilder_ != null) {
         result.kind_ = enumValueBuilder_.build();
       }
-      if (kindCase_ == 5 && datetimeValueBuilder_ != null) {
+      if (kindCase_ == 5 &&
+          datetimeValueBuilder_ != null) {
         result.kind_ = datetimeValueBuilder_.build();
       }
-      if (kindCase_ == 6 && timestampValueBuilder_ != null) {
+      if (kindCase_ == 6 &&
+          timestampValueBuilder_ != null) {
         result.kind_ = timestampValueBuilder_.build();
       }
     }
@@ -828,39 +754,38 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Value 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.contentwarehouse.v1.Value) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.Value) other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.Value)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -870,47 +795,39 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Value other) {
       if (other == com.google.cloud.contentwarehouse.v1.Value.getDefaultInstance()) return this;
       switch (other.getKindCase()) {
-        case FLOAT_VALUE:
-          {
-            setFloatValue(other.getFloatValue());
-            break;
-          }
-        case INT_VALUE:
-          {
-            setIntValue(other.getIntValue());
-            break;
-          }
-        case STRING_VALUE:
-          {
-            kindCase_ = 3;
-            kind_ = other.kind_;
-            onChanged();
-            break;
-          }
-        case ENUM_VALUE:
-          {
-            mergeEnumValue(other.getEnumValue());
-            break;
-          }
-        case DATETIME_VALUE:
-          {
-            mergeDatetimeValue(other.getDatetimeValue());
-            break;
-          }
-        case TIMESTAMP_VALUE:
-          {
-            mergeTimestampValue(other.getTimestampValue());
-            break;
-          }
-        case BOOLEAN_VALUE:
-          {
-            setBooleanValue(other.getBooleanValue());
-            break;
-          }
-        case KIND_NOT_SET:
-          {
-            break;
-          }
+        case FLOAT_VALUE: {
+          setFloatValue(other.getFloatValue());
+          break;
+        }
+        case INT_VALUE: {
+          setIntValue(other.getIntValue());
+          break;
+        }
+        case STRING_VALUE: {
+          kindCase_ = 3;
+          kind_ = other.kind_;
+          onChanged();
+          break;
+        }
+        case ENUM_VALUE: {
+          mergeEnumValue(other.getEnumValue());
+          break;
+        }
+        case DATETIME_VALUE: {
+          mergeDatetimeValue(other.getDatetimeValue());
+          break;
+        }
+        case TIMESTAMP_VALUE: {
+          mergeTimestampValue(other.getTimestampValue());
+          break;
+        }
+        case BOOLEAN_VALUE: {
+          setBooleanValue(other.getBooleanValue());
+          break;
+        }
+        case KIND_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -938,56 +855,54 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 13:
-              {
-                kind_ = input.readFloat();
-                kindCase_ = 1;
-                break;
-              } // case 13
-            case 16:
-              {
-                kind_ = input.readInt32();
-                kindCase_ = 2;
-                break;
-              } // case 16
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                kindCase_ = 3;
-                kind_ = s;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getEnumValueFieldBuilder().getBuilder(), extensionRegistry);
-                kindCase_ = 4;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getDatetimeValueFieldBuilder().getBuilder(), extensionRegistry);
-                kindCase_ = 5;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getTimestampValueFieldBuilder().getBuilder(), extensionRegistry);
-                kindCase_ = 6;
-                break;
-              } // case 50
-            case 56:
-              {
-                kind_ = input.readBool();
-                kindCase_ = 7;
-                break;
-              } // case 56
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 13: {
+              kind_ = input.readFloat();
+              kindCase_ = 1;
+              break;
+            } // case 13
+            case 16: {
+              kind_ = input.readInt32();
+              kindCase_ = 2;
+              break;
+            } // case 16
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              kindCase_ = 3;
+              kind_ = s;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getEnumValueFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              kindCase_ = 4;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getDatetimeValueFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              kindCase_ = 5;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getTimestampValueFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              kindCase_ = 6;
+              break;
+            } // case 50
+            case 56: {
+              kind_ = input.readBool();
+              kindCase_ = 7;
+              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) {
@@ -997,12 +912,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int kindCase_ = 0;
     private java.lang.Object kind_;
-
-    public KindCase getKindCase() {
-      return KindCase.forNumber(kindCase_);
+    public KindCase
+        getKindCase() {
+      return KindCase.forNumber(
+          kindCase_);
     }
 
     public Builder clearKind() {
@@ -1015,28 +930,22 @@ public Builder clearKind() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * Represents a float value.
      * 
* * float float_value = 1; - * * @return Whether the floatValue field is set. */ public boolean hasFloatValue() { return kindCase_ == 1; } /** - * - * *
      * Represents a float value.
      * 
* * float float_value = 1; - * * @return The floatValue. */ public float getFloatValue() { @@ -1046,14 +955,11 @@ public float getFloatValue() { return 0F; } /** - * - * *
      * Represents a float value.
      * 
* * float float_value = 1; - * * @param value The floatValue to set. * @return This builder for chaining. */ @@ -1065,14 +971,11 @@ public Builder setFloatValue(float value) { return this; } /** - * - * *
      * Represents a float value.
      * 
* * float float_value = 1; - * * @return This builder for chaining. */ public Builder clearFloatValue() { @@ -1085,28 +988,22 @@ public Builder clearFloatValue() { } /** - * - * *
      * Represents a integer value.
      * 
* * int32 int_value = 2; - * * @return Whether the intValue field is set. */ public boolean hasIntValue() { return kindCase_ == 2; } /** - * - * *
      * Represents a integer value.
      * 
* * int32 int_value = 2; - * * @return The intValue. */ public int getIntValue() { @@ -1116,14 +1013,11 @@ public int getIntValue() { return 0; } /** - * - * *
      * Represents a integer value.
      * 
* * int32 int_value = 2; - * * @param value The intValue to set. * @return This builder for chaining. */ @@ -1135,14 +1029,11 @@ public Builder setIntValue(int value) { return this; } /** - * - * *
      * Represents a integer value.
      * 
* * int32 int_value = 2; - * * @return This builder for chaining. */ public Builder clearIntValue() { @@ -1155,14 +1046,11 @@ public Builder clearIntValue() { } /** - * - * *
      * Represents a string value.
      * 
* * string string_value = 3; - * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -1170,14 +1058,11 @@ public boolean hasStringValue() { return kindCase_ == 3; } /** - * - * *
      * Represents a string value.
      * 
* * string string_value = 3; - * * @return The stringValue. */ @java.lang.Override @@ -1187,7 +1072,8 @@ public java.lang.String getStringValue() { ref = kind_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (kindCase_ == 3) { kind_ = s; @@ -1198,25 +1084,24 @@ public java.lang.String getStringValue() { } } /** - * - * *
      * Represents a string value.
      * 
* * string string_value = 3; - * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString getStringValueBytes() { + public com.google.protobuf.ByteString + getStringValueBytes() { java.lang.Object ref = ""; if (kindCase_ == 3) { ref = kind_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (kindCase_ == 3) { kind_ = b; } @@ -1226,35 +1111,28 @@ public com.google.protobuf.ByteString getStringValueBytes() { } } /** - * - * *
      * Represents a string value.
      * 
* * string string_value = 3; - * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStringValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kindCase_ = 3; kind_ = value; onChanged(); return this; } /** - * - * *
      * Represents a string value.
      * 
* * string string_value = 3; - * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -1266,21 +1144,17 @@ public Builder clearStringValue() { return this; } /** - * - * *
      * Represents a string value.
      * 
* * string string_value = 3; - * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kindCase_ = 3; kind_ = value; @@ -1289,19 +1163,13 @@ public Builder setStringValueBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumValue, - com.google.cloud.contentwarehouse.v1.EnumValue.Builder, - com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder> - enumValueBuilder_; + com.google.cloud.contentwarehouse.v1.EnumValue, com.google.cloud.contentwarehouse.v1.EnumValue.Builder, com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder> enumValueBuilder_; /** - * - * *
      * Represents an enum value.
      * 
* * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; - * * @return Whether the enumValue field is set. */ @java.lang.Override @@ -1309,14 +1177,11 @@ public boolean hasEnumValue() { return kindCase_ == 4; } /** - * - * *
      * Represents an enum value.
      * 
* * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; - * * @return The enumValue. */ @java.lang.Override @@ -1334,8 +1199,6 @@ public com.google.cloud.contentwarehouse.v1.EnumValue getEnumValue() { } } /** - * - * *
      * Represents an enum value.
      * 
@@ -1356,8 +1219,6 @@ public Builder setEnumValue(com.google.cloud.contentwarehouse.v1.EnumValue value return this; } /** - * - * *
      * Represents an enum value.
      * 
@@ -1376,8 +1237,6 @@ public Builder setEnumValue( return this; } /** - * - * *
      * Represents an enum value.
      * 
@@ -1386,13 +1245,10 @@ public Builder setEnumValue( */ public Builder mergeEnumValue(com.google.cloud.contentwarehouse.v1.EnumValue value) { if (enumValueBuilder_ == null) { - if (kindCase_ == 4 - && kind_ != com.google.cloud.contentwarehouse.v1.EnumValue.getDefaultInstance()) { - kind_ = - com.google.cloud.contentwarehouse.v1.EnumValue.newBuilder( - (com.google.cloud.contentwarehouse.v1.EnumValue) kind_) - .mergeFrom(value) - .buildPartial(); + if (kindCase_ == 4 && + kind_ != com.google.cloud.contentwarehouse.v1.EnumValue.getDefaultInstance()) { + kind_ = com.google.cloud.contentwarehouse.v1.EnumValue.newBuilder((com.google.cloud.contentwarehouse.v1.EnumValue) kind_) + .mergeFrom(value).buildPartial(); } else { kind_ = value; } @@ -1408,8 +1264,6 @@ public Builder mergeEnumValue(com.google.cloud.contentwarehouse.v1.EnumValue val return this; } /** - * - * *
      * Represents an enum value.
      * 
@@ -1433,8 +1287,6 @@ public Builder clearEnumValue() { return this; } /** - * - * *
      * Represents an enum value.
      * 
@@ -1445,8 +1297,6 @@ public com.google.cloud.contentwarehouse.v1.EnumValue.Builder getEnumValueBuilde return getEnumValueFieldBuilder().getBuilder(); } /** - * - * *
      * Represents an enum value.
      * 
@@ -1465,8 +1315,6 @@ public com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder getEnumValueOrBui } } /** - * - * *
      * Represents an enum value.
      * 
@@ -1474,19 +1322,14 @@ public com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder getEnumValueOrBui * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumValue, - com.google.cloud.contentwarehouse.v1.EnumValue.Builder, - com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder> + com.google.cloud.contentwarehouse.v1.EnumValue, com.google.cloud.contentwarehouse.v1.EnumValue.Builder, com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder> getEnumValueFieldBuilder() { if (enumValueBuilder_ == null) { if (!(kindCase_ == 4)) { kind_ = com.google.cloud.contentwarehouse.v1.EnumValue.getDefaultInstance(); } - enumValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumValue, - com.google.cloud.contentwarehouse.v1.EnumValue.Builder, - com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder>( + enumValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.EnumValue, com.google.cloud.contentwarehouse.v1.EnumValue.Builder, com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder>( (com.google.cloud.contentwarehouse.v1.EnumValue) kind_, getParentForChildren(), isClean()); @@ -1498,19 +1341,13 @@ public com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder getEnumValueOrBui } private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.DateTime, - com.google.type.DateTime.Builder, - com.google.type.DateTimeOrBuilder> - datetimeValueBuilder_; + com.google.type.DateTime, com.google.type.DateTime.Builder, com.google.type.DateTimeOrBuilder> datetimeValueBuilder_; /** - * - * *
      * Represents a datetime value.
      * 
* * .google.type.DateTime datetime_value = 5; - * * @return Whether the datetimeValue field is set. */ @java.lang.Override @@ -1518,14 +1355,11 @@ public boolean hasDatetimeValue() { return kindCase_ == 5; } /** - * - * *
      * Represents a datetime value.
      * 
* * .google.type.DateTime datetime_value = 5; - * * @return The datetimeValue. */ @java.lang.Override @@ -1543,8 +1377,6 @@ public com.google.type.DateTime getDatetimeValue() { } } /** - * - * *
      * Represents a datetime value.
      * 
@@ -1565,15 +1397,14 @@ public Builder setDatetimeValue(com.google.type.DateTime value) { return this; } /** - * - * *
      * Represents a datetime value.
      * 
* * .google.type.DateTime datetime_value = 5; */ - public Builder setDatetimeValue(com.google.type.DateTime.Builder builderForValue) { + public Builder setDatetimeValue( + com.google.type.DateTime.Builder builderForValue) { if (datetimeValueBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); @@ -1584,8 +1415,6 @@ public Builder setDatetimeValue(com.google.type.DateTime.Builder builderForValue return this; } /** - * - * *
      * Represents a datetime value.
      * 
@@ -1594,11 +1423,10 @@ public Builder setDatetimeValue(com.google.type.DateTime.Builder builderForValue */ public Builder mergeDatetimeValue(com.google.type.DateTime value) { if (datetimeValueBuilder_ == null) { - if (kindCase_ == 5 && kind_ != com.google.type.DateTime.getDefaultInstance()) { - kind_ = - com.google.type.DateTime.newBuilder((com.google.type.DateTime) kind_) - .mergeFrom(value) - .buildPartial(); + if (kindCase_ == 5 && + kind_ != com.google.type.DateTime.getDefaultInstance()) { + kind_ = com.google.type.DateTime.newBuilder((com.google.type.DateTime) kind_) + .mergeFrom(value).buildPartial(); } else { kind_ = value; } @@ -1614,8 +1442,6 @@ public Builder mergeDatetimeValue(com.google.type.DateTime value) { return this; } /** - * - * *
      * Represents a datetime value.
      * 
@@ -1639,8 +1465,6 @@ public Builder clearDatetimeValue() { return this; } /** - * - * *
      * Represents a datetime value.
      * 
@@ -1651,8 +1475,6 @@ public com.google.type.DateTime.Builder getDatetimeValueBuilder() { return getDatetimeValueFieldBuilder().getBuilder(); } /** - * - * *
      * Represents a datetime value.
      * 
@@ -1671,8 +1493,6 @@ public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder() { } } /** - * - * *
      * Represents a datetime value.
      * 
@@ -1680,20 +1500,17 @@ public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder() { * .google.type.DateTime datetime_value = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.DateTime, - com.google.type.DateTime.Builder, - com.google.type.DateTimeOrBuilder> + com.google.type.DateTime, com.google.type.DateTime.Builder, com.google.type.DateTimeOrBuilder> getDatetimeValueFieldBuilder() { if (datetimeValueBuilder_ == null) { if (!(kindCase_ == 5)) { kind_ = com.google.type.DateTime.getDefaultInstance(); } - datetimeValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.DateTime, - com.google.type.DateTime.Builder, - com.google.type.DateTimeOrBuilder>( - (com.google.type.DateTime) kind_, getParentForChildren(), isClean()); + datetimeValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.DateTime, com.google.type.DateTime.Builder, com.google.type.DateTimeOrBuilder>( + (com.google.type.DateTime) kind_, + getParentForChildren(), + isClean()); kind_ = null; } kindCase_ = 5; @@ -1702,19 +1519,13 @@ public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampValue, - com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, - com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> - timestampValueBuilder_; + com.google.cloud.contentwarehouse.v1.TimestampValue, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> timestampValueBuilder_; /** - * - * *
      * Represents a timestamp value.
      * 
* * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; - * * @return Whether the timestampValue field is set. */ @java.lang.Override @@ -1722,14 +1533,11 @@ public boolean hasTimestampValue() { return kindCase_ == 6; } /** - * - * *
      * Represents a timestamp value.
      * 
* * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; - * * @return The timestampValue. */ @java.lang.Override @@ -1747,8 +1555,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue getTimestampValue() { } } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1769,8 +1575,6 @@ public Builder setTimestampValue(com.google.cloud.contentwarehouse.v1.TimestampV return this; } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1789,8 +1593,6 @@ public Builder setTimestampValue( return this; } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1799,13 +1601,10 @@ public Builder setTimestampValue( */ public Builder mergeTimestampValue(com.google.cloud.contentwarehouse.v1.TimestampValue value) { if (timestampValueBuilder_ == null) { - if (kindCase_ == 6 - && kind_ != com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()) { - kind_ = - com.google.cloud.contentwarehouse.v1.TimestampValue.newBuilder( - (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_) - .mergeFrom(value) - .buildPartial(); + if (kindCase_ == 6 && + kind_ != com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()) { + kind_ = com.google.cloud.contentwarehouse.v1.TimestampValue.newBuilder((com.google.cloud.contentwarehouse.v1.TimestampValue) kind_) + .mergeFrom(value).buildPartial(); } else { kind_ = value; } @@ -1821,8 +1620,6 @@ public Builder mergeTimestampValue(com.google.cloud.contentwarehouse.v1.Timestam return this; } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1846,8 +1643,6 @@ public Builder clearTimestampValue() { return this; } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1858,8 +1653,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getTimestampV return getTimestampValueFieldBuilder().getBuilder(); } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1867,8 +1660,7 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getTimestampV * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder - getTimestampValueOrBuilder() { + public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getTimestampValueOrBuilder() { if ((kindCase_ == 6) && (timestampValueBuilder_ != null)) { return timestampValueBuilder_.getMessageOrBuilder(); } else { @@ -1879,8 +1671,6 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getTimestampV } } /** - * - * *
      * Represents a timestamp value.
      * 
@@ -1888,19 +1678,14 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getTimestampV * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampValue, - com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, - com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> + com.google.cloud.contentwarehouse.v1.TimestampValue, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> getTimestampValueFieldBuilder() { if (timestampValueBuilder_ == null) { if (!(kindCase_ == 6)) { kind_ = com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance(); } - timestampValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampValue, - com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, - com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder>( + timestampValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.TimestampValue, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder>( (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_, getParentForChildren(), isClean()); @@ -1912,28 +1697,22 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getTimestampV } /** - * - * *
      * Represents a boolean value.
      * 
* * bool boolean_value = 7; - * * @return Whether the booleanValue field is set. */ public boolean hasBooleanValue() { return kindCase_ == 7; } /** - * - * *
      * Represents a boolean value.
      * 
* * bool boolean_value = 7; - * * @return The booleanValue. */ public boolean getBooleanValue() { @@ -1943,14 +1722,11 @@ public boolean getBooleanValue() { return false; } /** - * - * *
      * Represents a boolean value.
      * 
* * bool boolean_value = 7; - * * @param value The booleanValue to set. * @return This builder for chaining. */ @@ -1962,14 +1738,11 @@ public Builder setBooleanValue(boolean value) { return this; } /** - * - * *
      * Represents a boolean value.
      * 
* * bool boolean_value = 7; - * * @return This builder for chaining. */ public Builder clearBooleanValue() { @@ -1980,9 +1753,9 @@ public Builder clearBooleanValue() { } 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); } @@ -1992,12 +1765,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.Value) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.Value) private static final com.google.cloud.contentwarehouse.v1.Value DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.Value(); } @@ -2006,27 +1779,27 @@ public static com.google.cloud.contentwarehouse.v1.Value getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Value parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Value parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2041,4 +1814,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java similarity index 81% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java index 42f8eac162dd..5a485d4bc3d7 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java @@ -1,142 +1,98 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface ValueOrBuilder - extends +public interface ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.Value) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Represents a float value.
    * 
* * float float_value = 1; - * * @return Whether the floatValue field is set. */ boolean hasFloatValue(); /** - * - * *
    * Represents a float value.
    * 
* * float float_value = 1; - * * @return The floatValue. */ float getFloatValue(); /** - * - * *
    * Represents a integer value.
    * 
* * int32 int_value = 2; - * * @return Whether the intValue field is set. */ boolean hasIntValue(); /** - * - * *
    * Represents a integer value.
    * 
* * int32 int_value = 2; - * * @return The intValue. */ int getIntValue(); /** - * - * *
    * Represents a string value.
    * 
* * string string_value = 3; - * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** - * - * *
    * Represents a string value.
    * 
* * string string_value = 3; - * * @return The stringValue. */ java.lang.String getStringValue(); /** - * - * *
    * Represents a string value.
    * 
* * string string_value = 3; - * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString getStringValueBytes(); + com.google.protobuf.ByteString + getStringValueBytes(); /** - * - * *
    * Represents an enum value.
    * 
* * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; - * * @return Whether the enumValue field is set. */ boolean hasEnumValue(); /** - * - * *
    * Represents an enum value.
    * 
* * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; - * * @return The enumValue. */ com.google.cloud.contentwarehouse.v1.EnumValue getEnumValue(); /** - * - * *
    * Represents an enum value.
    * 
@@ -146,32 +102,24 @@ public interface ValueOrBuilder com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder getEnumValueOrBuilder(); /** - * - * *
    * Represents a datetime value.
    * 
* * .google.type.DateTime datetime_value = 5; - * * @return Whether the datetimeValue field is set. */ boolean hasDatetimeValue(); /** - * - * *
    * Represents a datetime value.
    * 
* * .google.type.DateTime datetime_value = 5; - * * @return The datetimeValue. */ com.google.type.DateTime getDatetimeValue(); /** - * - * *
    * Represents a datetime value.
    * 
@@ -181,32 +129,24 @@ public interface ValueOrBuilder com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder(); /** - * - * *
    * Represents a timestamp value.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; - * * @return Whether the timestampValue field is set. */ boolean hasTimestampValue(); /** - * - * *
    * Represents a timestamp value.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; - * * @return The timestampValue. */ com.google.cloud.contentwarehouse.v1.TimestampValue getTimestampValue(); /** - * - * *
    * Represents a timestamp value.
    * 
@@ -216,26 +156,20 @@ public interface ValueOrBuilder com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getTimestampValueOrBuilder(); /** - * - * *
    * Represents a boolean value.
    * 
* * bool boolean_value = 7; - * * @return Whether the booleanValue field is set. */ boolean hasBooleanValue(); /** - * - * *
    * Represents a boolean value.
    * 
* * bool boolean_value = 7; - * * @return The booleanValue. */ boolean getBooleanValue(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java similarity index 68% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java index 8087e8c31295..004aa45adc3c 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java @@ -1,81 +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/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; /** - * - * *
  * Specifies the schema property name.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.WeightedSchemaProperty} */ -public final class WeightedSchemaProperty extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WeightedSchemaProperty extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.WeightedSchemaProperty) WeightedSchemaPropertyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WeightedSchemaProperty.newBuilder() to construct. private WeightedSchemaProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WeightedSchemaProperty() { documentSchemaName_ = ""; - propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + propertyNames_ = + 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 WeightedSchemaProperty(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.class, - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder.class); + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.class, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder.class); } public static final int DOCUMENT_SCHEMA_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object documentSchemaName_ = ""; /** - * - * *
    * The document schema name.
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return The documentSchemaName. */ @java.lang.Override @@ -84,29 +62,29 @@ public java.lang.String getDocumentSchemaName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentSchemaName_ = s; return s; } } /** - * - * *
    * The document schema name.
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for documentSchemaName. */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { + public com.google.protobuf.ByteString + getDocumentSchemaNameBytes() { java.lang.Object ref = documentSchemaName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentSchemaName_ = b; return b; } else { @@ -115,47 +93,38 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { } public static final int PROPERTY_NAMES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; - * * @return A list containing the propertyNames. */ - public com.google.protobuf.ProtocolStringList getPropertyNamesList() { + public com.google.protobuf.ProtocolStringList + getPropertyNamesList() { return propertyNames_; } /** - * - * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; - * * @return The count of propertyNames. */ public int getPropertyNamesCount() { return propertyNames_.size(); } /** - * - * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; - * * @param index The index of the element to return. * @return The propertyNames at the given index. */ @@ -163,23 +132,20 @@ public java.lang.String getPropertyNames(int index) { return propertyNames_.get(index); } /** - * - * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; - * * @param index The index of the value to return. * @return The bytes of the propertyNames at the given index. */ - public com.google.protobuf.ByteString getPropertyNamesBytes(int index) { + public com.google.protobuf.ByteString + getPropertyNamesBytes(int index) { return propertyNames_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentSchemaName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentSchemaName_); } @@ -226,16 +193,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.contentwarehouse.v1.WeightedSchemaProperty)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty other = - (com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty) obj; + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty other = (com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty) obj; - if (!getDocumentSchemaName().equals(other.getDocumentSchemaName())) return false; - if (!getPropertyNamesList().equals(other.getPropertyNamesList())) return false; + if (!getDocumentSchemaName() + .equals(other.getDocumentSchemaName())) return false; + if (!getPropertyNamesList() + .equals(other.getPropertyNamesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,149 +227,145 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty 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.contentwarehouse.v1.WeightedSchemaProperty parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty 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.contentwarehouse.v1.WeightedSchemaProperty parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty prototype) { + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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; } /** - * - * *
    * Specifies the schema property name.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.WeightedSchemaProperty} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.WeightedSchemaProperty) com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.class, - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder.class); + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.class, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.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; documentSchemaName_ = ""; - propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + propertyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.FiltersProto - .internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; } @java.lang.Override @@ -420,11 +384,8 @@ public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty buildPartial() { - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty result = - new com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty result = new com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -444,39 +405,38 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.WeightedSchemaPr public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.contentwarehouse.v1.WeightedSchemaProperty) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty) other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty)other); } else { super.mergeFrom(other); return this; @@ -484,8 +444,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty other) { - if (other == com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.getDefaultInstance()) - return this; + if (other == com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.getDefaultInstance()) return this; if (!other.getDocumentSchemaName().isEmpty()) { documentSchemaName_ = other.documentSchemaName_; bitField0_ |= 0x00000001; @@ -527,26 +486,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - documentSchemaName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePropertyNamesIsMutable(); - propertyNames_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + documentSchemaName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePropertyNamesIsMutable(); + propertyNames_.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) { @@ -556,25 +512,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object documentSchemaName_ = ""; /** - * - * *
      * The document schema name.
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return The documentSchemaName. */ public java.lang.String getDocumentSchemaName() { java.lang.Object ref = documentSchemaName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentSchemaName_ = s; return s; @@ -583,21 +536,20 @@ public java.lang.String getDocumentSchemaName() { } } /** - * - * *
      * The document schema name.
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for documentSchemaName. */ - public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { + public com.google.protobuf.ByteString + getDocumentSchemaNameBytes() { java.lang.Object ref = documentSchemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentSchemaName_ = b; return b; } else { @@ -605,35 +557,28 @@ public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { } } /** - * - * *
      * The document schema name.
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The documentSchemaName to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentSchemaName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentSchemaName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The document schema name.
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDocumentSchemaName() { @@ -643,21 +588,17 @@ public Builder clearDocumentSchemaName() { return this; } /** - * - * *
      * The document schema name.
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for documentSchemaName to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentSchemaNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentSchemaName_ = value; bitField0_ |= 0x00000001; @@ -667,7 +608,6 @@ public Builder setDocumentSchemaNameBytes(com.google.protobuf.ByteString value) private com.google.protobuf.LazyStringArrayList propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePropertyNamesIsMutable() { if (!propertyNames_.isModifiable()) { propertyNames_ = new com.google.protobuf.LazyStringArrayList(propertyNames_); @@ -675,43 +615,35 @@ private void ensurePropertyNamesIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; - * * @return A list containing the propertyNames. */ - public com.google.protobuf.ProtocolStringList getPropertyNamesList() { + public com.google.protobuf.ProtocolStringList + getPropertyNamesList() { propertyNames_.makeImmutable(); return propertyNames_; } /** - * - * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; - * * @return The count of propertyNames. */ public int getPropertyNamesCount() { return propertyNames_.size(); } /** - * - * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; - * * @param index The index of the element to return. * @return The propertyNames at the given index. */ @@ -719,37 +651,31 @@ public java.lang.String getPropertyNames(int index) { return propertyNames_.get(index); } /** - * - * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; - * * @param index The index of the value to return. * @return The bytes of the propertyNames at the given index. */ - public com.google.protobuf.ByteString getPropertyNamesBytes(int index) { + public com.google.protobuf.ByteString + getPropertyNamesBytes(int index) { return propertyNames_.getByteString(index); } /** - * - * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; - * * @param index The index to set the value at. * @param value The propertyNames to set. * @return This builder for chaining. */ - public Builder setPropertyNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPropertyNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePropertyNamesIsMutable(); propertyNames_.set(index, value); bitField0_ |= 0x00000002; @@ -757,21 +683,17 @@ public Builder setPropertyNames(int index, java.lang.String value) { return this; } /** - * - * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; - * * @param value The propertyNames to add. * @return This builder for chaining. */ - public Builder addPropertyNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPropertyNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePropertyNamesIsMutable(); propertyNames_.add(value); bitField0_ |= 0x00000002; @@ -779,58 +701,50 @@ public Builder addPropertyNames(java.lang.String value) { return this; } /** - * - * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; - * * @param values The propertyNames to add. * @return This builder for chaining. */ - public Builder addAllPropertyNames(java.lang.Iterable values) { + public Builder addAllPropertyNames( + java.lang.Iterable values) { ensurePropertyNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, propertyNames_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; - * * @return This builder for chaining. */ public Builder clearPropertyNames() { - propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + propertyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; - * * @param value The bytes of the propertyNames to add. * @return This builder for chaining. */ - public Builder addPropertyNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPropertyNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePropertyNamesIsMutable(); propertyNames_.add(value); @@ -838,9 +752,9 @@ public Builder addPropertyNamesBytes(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); } @@ -850,12 +764,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.WeightedSchemaProperty) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.WeightedSchemaProperty) private static final com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty(); } @@ -864,27 +778,27 @@ public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WeightedSchemaProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 WeightedSchemaProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -899,4 +813,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java similarity index 65% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java index 4d982585a8c8..26e3f465dd8f 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java @@ -1,101 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -public interface WeightedSchemaPropertyOrBuilder - extends +public interface WeightedSchemaPropertyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.WeightedSchemaProperty) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The document schema name.
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return The documentSchemaName. */ java.lang.String getDocumentSchemaName(); /** - * - * *
    * The document schema name.
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for documentSchemaName. */ - com.google.protobuf.ByteString getDocumentSchemaNameBytes(); + com.google.protobuf.ByteString + getDocumentSchemaNameBytes(); /** - * - * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; - * * @return A list containing the propertyNames. */ - java.util.List getPropertyNamesList(); + java.util.List + getPropertyNamesList(); /** - * - * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; - * * @return The count of propertyNames. */ int getPropertyNamesCount(); /** - * - * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; - * * @param index The index of the element to return. * @return The propertyNames at the given index. */ java.lang.String getPropertyNames(int index); /** - * - * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; - * * @param index The index of the value to return. * @return The bytes of the propertyNames at the given index. */ - com.google.protobuf.ByteString getPropertyNamesBytes(int index); + com.google.protobuf.ByteString + getPropertyNamesBytes(int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/async_document_service_request.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/async_document_service_request.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/async_document_service_request.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/async_document_service_request.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_link_service.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_link_service.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_link_service.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_link_service.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema_service.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema_service.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema_service.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema_service.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service_request.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service_request.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service_request.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service_request.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto similarity index 99% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto index ababb2821e75..cd490a9902fb 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto @@ -262,6 +262,9 @@ message FileTypeFilter { // Returns only non-folder documents. DOCUMENT = 3; + + // Returns only root folders + ROOT_FOLDER = 4; } // The type of files to return. diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/histogram.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/histogram.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/histogram.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/histogram.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto similarity index 88% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto index 27b2d5e4ff6b..db34b5c6d628 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto +++ b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto @@ -29,6 +29,10 @@ option java_outer_classname = "PipelinesProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; option php_namespace = "Google\\Cloud\\ContentWarehouse\\V1"; option ruby_package = "Google::Cloud::ContentWarehouse::V1"; +option (google.api.resource_definition) = { + type: "cloudfunctions.googleapis.com/CloudFunction" + pattern: "projects/{project}/locations/{location}/functions/{function}" +}; // Response message of RunPipeline method. message RunPipelineResponse {} @@ -146,6 +150,33 @@ message IngestPipelineConfig { // linked during ingestion process. Format is // `projects/{project}/locations/{location}/documents/{folder_id}` string folder = 3 [(google.api.field_behavior) = OPTIONAL]; + + // The Cloud Function resource name. The Cloud Function needs to live inside + // consumer project and is accessible to Document AI Warehouse P4SA. + // Only Cloud Functions V2 is supported. Cloud function execution should + // complete within 5 minutes or this file ingestion may fail due to timeout. + // Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}` + // The following keys are available the request json payload. + // * display_name + // * properties + // * plain_text + // * reference_id + // * document_schema_name + // * raw_document_path + // * raw_document_file_type + // + // The following keys from the cloud function json response payload will be + // ingested to the Document AI Warehouse as part of Document proto content + // and/or related information. The original values will be overridden if any + // key is present in the response. + // * display_name + // * properties + // * plain_text + // * document_acl_policy + // * folder + string cloud_function = 4 [(google.api.resource_reference) = { + type: "cloudfunctions.googleapis.com/CloudFunction" + }]; } // The configuration of the Cloud Storage Ingestion pipeline. diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/rule_engine.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/rule_engine.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/rule_engine.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/rule_engine.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service_request.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service_request.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service_request.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service_request.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service.proto diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service_request.proto b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service_request.proto similarity index 100% rename from java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service_request.proto rename to owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service_request.proto diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetEndpoint.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/AsyncCreateDocumentLink.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/AsyncCreateDocumentLink.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/AsyncCreateDocumentLink.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/AsyncCreateDocumentLink.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLink.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLink.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLink.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLink.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkDocumentnameDocumentlink.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkDocumentnameDocumentlink.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkDocumentnameDocumentlink.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkDocumentnameDocumentlink.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkStringDocumentlink.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkStringDocumentlink.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkStringDocumentlink.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkStringDocumentlink.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/AsyncDeleteDocumentLink.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/AsyncDeleteDocumentLink.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/AsyncDeleteDocumentLink.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/AsyncDeleteDocumentLink.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLink.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLink.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLink.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLink.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkDocumentlinkname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkDocumentlinkname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkDocumentlinkname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkDocumentlinkname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSources.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSources.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSources.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSources.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSourcesPaged.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSourcesPaged.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSourcesPaged.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSourcesPaged.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSources.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSources.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSources.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSources.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesDocumentname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesDocumentname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesDocumentname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesDocumentname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/AsyncListLinkedTargets.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/AsyncListLinkedTargets.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/AsyncListLinkedTargets.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/AsyncListLinkedTargets.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargets.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargets.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargets.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargets.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsDocumentname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsDocumentname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsDocumentname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsDocumentname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservicesettings/listlinkedtargets/SyncListLinkedTargets.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservicesettings/listlinkedtargets/SyncListLinkedTargets.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservicesettings/listlinkedtargets/SyncListLinkedTargets.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservicesettings/listlinkedtargets/SyncListLinkedTargets.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetEndpoint.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/AsyncCreateDocumentSchema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/AsyncCreateDocumentSchema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/AsyncCreateDocumentSchema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/AsyncCreateDocumentSchema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaLocationnameDocumentschema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaLocationnameDocumentschema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaLocationnameDocumentschema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaLocationnameDocumentschema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaStringDocumentschema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaStringDocumentschema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaStringDocumentschema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaStringDocumentschema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/AsyncDeleteDocumentSchema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/AsyncDeleteDocumentSchema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/AsyncDeleteDocumentSchema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/AsyncDeleteDocumentSchema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaDocumentschemaname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaDocumentschemaname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaDocumentschemaname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaDocumentschemaname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/AsyncGetDocumentSchema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/AsyncGetDocumentSchema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/AsyncGetDocumentSchema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/AsyncGetDocumentSchema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaDocumentschemaname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaDocumentschemaname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaDocumentschemaname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaDocumentschemaname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemas.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemas.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemas.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemas.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemasPaged.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemasPaged.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemasPaged.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemasPaged.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemas.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemas.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemas.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemas.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasLocationname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasLocationname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasLocationname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasLocationname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/AsyncUpdateDocumentSchema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/AsyncUpdateDocumentSchema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/AsyncUpdateDocumentSchema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/AsyncUpdateDocumentSchema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaDocumentschemanameDocumentschema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaDocumentschemanameDocumentschema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaDocumentschemanameDocumentschema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaDocumentschemanameDocumentschema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaStringDocumentschema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaStringDocumentschema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaStringDocumentschema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaStringDocumentschema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservicesettings/createdocumentschema/SyncCreateDocumentSchema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservicesettings/createdocumentschema/SyncCreateDocumentSchema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservicesettings/createdocumentschema/SyncCreateDocumentSchema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservicesettings/createdocumentschema/SyncCreateDocumentSchema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetEndpoint.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/AsyncCreateDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/AsyncCreateDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/AsyncCreateDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/AsyncCreateDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentLocationnameDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentLocationnameDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentLocationnameDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentLocationnameDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentStringDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentStringDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentStringDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentStringDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/AsyncDeleteDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/AsyncDeleteDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/AsyncDeleteDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/AsyncDeleteDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/AsyncFetchAcl.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/AsyncFetchAcl.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/AsyncFetchAcl.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/AsyncFetchAcl.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAcl.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAcl.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAcl.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAcl.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAclString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAclString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAclString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAclString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/AsyncGetDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/AsyncGetDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/AsyncGetDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/AsyncGetDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/AsyncLockDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/AsyncLockDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/AsyncLockDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/AsyncLockDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentDocumentname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentDocumentname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentDocumentname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentDocumentname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocuments.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocuments.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocuments.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocuments.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocumentsPaged.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocumentsPaged.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocumentsPaged.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocumentsPaged.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocuments.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocuments.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocuments.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocuments.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsLocationname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsLocationname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsLocationname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsLocationname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/AsyncSetAcl.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/AsyncSetAcl.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/AsyncSetAcl.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/AsyncSetAcl.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAcl.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAcl.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAcl.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAcl.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAclStringPolicy.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAclStringPolicy.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAclStringPolicy.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAclStringPolicy.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/AsyncUpdateDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/AsyncUpdateDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/AsyncUpdateDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/AsyncUpdateDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentDocumentnameDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentDocumentnameDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentDocumentnameDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentDocumentnameDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentStringDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentStringDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentStringDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentStringDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservicesettings/createdocument/SyncCreateDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservicesettings/createdocument/SyncCreateDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservicesettings/createdocument/SyncCreateDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservicesettings/createdocument/SyncCreateDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetEndpoint.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipeline.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipeline.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipeline.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipeline.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipelineLRO.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipelineLRO.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipelineLRO.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipelineLRO.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipeline.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipeline.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipeline.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipeline.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineLocationname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineLocationname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineLocationname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineLocationname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservicesettings/runpipeline/SyncRunPipeline.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservicesettings/runpipeline/SyncRunPipeline.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservicesettings/runpipeline/SyncRunPipeline.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservicesettings/runpipeline/SyncRunPipeline.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetEndpoint.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/AsyncCreateRuleSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/AsyncCreateRuleSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/AsyncCreateRuleSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/AsyncCreateRuleSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetLocationnameRuleset.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetLocationnameRuleset.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetLocationnameRuleset.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetLocationnameRuleset.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetStringRuleset.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetStringRuleset.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetStringRuleset.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetStringRuleset.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/AsyncDeleteRuleSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/AsyncDeleteRuleSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/AsyncDeleteRuleSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/AsyncDeleteRuleSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetRulesetname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetRulesetname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetRulesetname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetRulesetname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/AsyncGetRuleSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/AsyncGetRuleSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/AsyncGetRuleSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/AsyncGetRuleSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetRulesetname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetRulesetname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetRulesetname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetRulesetname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSets.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSets.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSets.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSets.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSetsPaged.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSetsPaged.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSetsPaged.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSetsPaged.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSets.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSets.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSets.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSets.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsLocationname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsLocationname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsLocationname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsLocationname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/AsyncUpdateRuleSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/AsyncUpdateRuleSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/AsyncUpdateRuleSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/AsyncUpdateRuleSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetRulesetnameRuleset.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetRulesetnameRuleset.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetRulesetnameRuleset.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetRulesetnameRuleset.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetStringRuleset.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetStringRuleset.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetStringRuleset.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetStringRuleset.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservicesettings/createruleset/SyncCreateRuleSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservicesettings/createruleset/SyncCreateRuleSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservicesettings/createruleset/SyncCreateRuleSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservicesettings/createruleset/SyncCreateRuleSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentlinkservicestubsettings/listlinkedtargets/SyncListLinkedTargets.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentlinkservicestubsettings/listlinkedtargets/SyncListLinkedTargets.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentlinkservicestubsettings/listlinkedtargets/SyncListLinkedTargets.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentlinkservicestubsettings/listlinkedtargets/SyncListLinkedTargets.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentschemaservicestubsettings/createdocumentschema/SyncCreateDocumentSchema.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentschemaservicestubsettings/createdocumentschema/SyncCreateDocumentSchema.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentschemaservicestubsettings/createdocumentschema/SyncCreateDocumentSchema.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentschemaservicestubsettings/createdocumentschema/SyncCreateDocumentSchema.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentservicestubsettings/createdocument/SyncCreateDocument.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentservicestubsettings/createdocument/SyncCreateDocument.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentservicestubsettings/createdocument/SyncCreateDocument.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentservicestubsettings/createdocument/SyncCreateDocument.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/pipelineservicestubsettings/runpipeline/SyncRunPipeline.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/pipelineservicestubsettings/runpipeline/SyncRunPipeline.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/pipelineservicestubsettings/runpipeline/SyncRunPipeline.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/pipelineservicestubsettings/runpipeline/SyncRunPipeline.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/rulesetservicestubsettings/createruleset/SyncCreateRuleSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/rulesetservicestubsettings/createruleset/SyncCreateRuleSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/rulesetservicestubsettings/createruleset/SyncCreateRuleSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/rulesetservicestubsettings/createruleset/SyncCreateRuleSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/synonymsetservicestubsettings/createsynonymset/SyncCreateSynonymSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/synonymsetservicestubsettings/createsynonymset/SyncCreateSynonymSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/synonymsetservicestubsettings/createsynonymset/SyncCreateSynonymSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/synonymsetservicestubsettings/createsynonymset/SyncCreateSynonymSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetEndpoint.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/AsyncCreateSynonymSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/AsyncCreateSynonymSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/AsyncCreateSynonymSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/AsyncCreateSynonymSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetLocationnameSynonymset.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetLocationnameSynonymset.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetLocationnameSynonymset.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetLocationnameSynonymset.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetStringSynonymset.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetStringSynonymset.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetStringSynonymset.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetStringSynonymset.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/AsyncDeleteSynonymSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/AsyncDeleteSynonymSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/AsyncDeleteSynonymSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/AsyncDeleteSynonymSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetSynonymsetname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetSynonymsetname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetSynonymsetname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetSynonymsetname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/AsyncGetSynonymSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/AsyncGetSynonymSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/AsyncGetSynonymSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/AsyncGetSynonymSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetSynonymsetname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetSynonymsetname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetSynonymsetname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetSynonymsetname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSets.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSets.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSets.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSets.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSetsPaged.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSetsPaged.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSetsPaged.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSetsPaged.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSets.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSets.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSets.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSets.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsLocationname.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsLocationname.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsLocationname.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsLocationname.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsString.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsString.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsString.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsString.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/AsyncUpdateSynonymSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/AsyncUpdateSynonymSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/AsyncUpdateSynonymSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/AsyncUpdateSynonymSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSet.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetStringSynonymset.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetStringSynonymset.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetStringSynonymset.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetStringSynonymset.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetSynonymsetnameSynonymset.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetSynonymsetnameSynonymset.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetSynonymsetnameSynonymset.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetSynonymsetnameSynonymset.java diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservicesettings/createsynonymset/SyncCreateSynonymSet.java b/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservicesettings/createsynonymset/SyncCreateSynonymSet.java similarity index 100% rename from java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservicesettings/createsynonymset/SyncCreateSynonymSet.java rename to owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservicesettings/createsynonymset/SyncCreateSynonymSet.java From 9860d43b66ba042211e54fe21e6d408bae9bfb89 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 18 Sep 2023 22:56:48 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-contentwarehouse/README.md | 4 +- .../v1/DocumentLinkServiceClient.java | 0 .../v1/DocumentLinkServiceSettings.java | 1 - .../v1/DocumentSchemaServiceClient.java | 0 .../v1/DocumentSchemaServiceSettings.java | 1 - .../v1/DocumentServiceClient.java | 0 .../v1/DocumentServiceSettings.java | 1 - .../v1/PipelineServiceClient.java | 0 .../v1/PipelineServiceSettings.java | 1 - .../v1/RuleSetServiceClient.java | 0 .../v1/RuleSetServiceSettings.java | 1 - .../v1/SynonymSetServiceClient.java | 0 .../v1/SynonymSetServiceSettings.java | 1 - .../contentwarehouse/v1/gapic_metadata.json | 0 .../contentwarehouse/v1/package-info.java | 0 .../v1/stub/DocumentLinkServiceStub.java | 0 .../stub/DocumentLinkServiceStubSettings.java | 0 .../v1/stub/DocumentSchemaServiceStub.java | 0 .../DocumentSchemaServiceStubSettings.java | 0 .../v1/stub/DocumentServiceStub.java | 0 .../v1/stub/DocumentServiceStubSettings.java | 0 ...rpcDocumentLinkServiceCallableFactory.java | 0 .../v1/stub/GrpcDocumentLinkServiceStub.java | 1 - ...cDocumentSchemaServiceCallableFactory.java | 0 .../stub/GrpcDocumentSchemaServiceStub.java | 1 - .../GrpcDocumentServiceCallableFactory.java | 0 .../v1/stub/GrpcDocumentServiceStub.java | 1 - .../GrpcPipelineServiceCallableFactory.java | 0 .../v1/stub/GrpcPipelineServiceStub.java | 1 - .../GrpcRuleSetServiceCallableFactory.java | 0 .../v1/stub/GrpcRuleSetServiceStub.java | 1 - .../GrpcSynonymSetServiceCallableFactory.java | 0 .../v1/stub/GrpcSynonymSetServiceStub.java | 1 - ...sonDocumentLinkServiceCallableFactory.java | 0 .../stub/HttpJsonDocumentLinkServiceStub.java | 0 ...nDocumentSchemaServiceCallableFactory.java | 0 .../HttpJsonDocumentSchemaServiceStub.java | 0 ...ttpJsonDocumentServiceCallableFactory.java | 0 .../v1/stub/HttpJsonDocumentServiceStub.java | 0 ...ttpJsonPipelineServiceCallableFactory.java | 0 .../v1/stub/HttpJsonPipelineServiceStub.java | 1 - ...HttpJsonRuleSetServiceCallableFactory.java | 0 .../v1/stub/HttpJsonRuleSetServiceStub.java | 0 ...pJsonSynonymSetServiceCallableFactory.java | 0 .../stub/HttpJsonSynonymSetServiceStub.java | 0 .../v1/stub/PipelineServiceStub.java | 0 .../v1/stub/PipelineServiceStubSettings.java | 0 .../v1/stub/RuleSetServiceStub.java | 0 .../v1/stub/RuleSetServiceStubSettings.java | 0 .../v1/stub/SynonymSetServiceStub.java | 0 .../stub/SynonymSetServiceStubSettings.java | 0 .../reflect-config.json | 0 ...DocumentLinkServiceClientHttpJsonTest.java | 0 .../v1/DocumentLinkServiceClientTest.java | 0 ...cumentSchemaServiceClientHttpJsonTest.java | 0 .../v1/DocumentSchemaServiceClientTest.java | 0 .../v1/DocumentServiceClientHttpJsonTest.java | 0 .../v1/DocumentServiceClientTest.java | 0 .../v1/MockDocumentLinkService.java | 0 .../v1/MockDocumentLinkServiceImpl.java | 0 .../v1/MockDocumentSchemaService.java | 0 .../v1/MockDocumentSchemaServiceImpl.java | 0 .../v1/MockDocumentService.java | 0 .../v1/MockDocumentServiceImpl.java | 0 .../v1/MockPipelineService.java | 0 .../v1/MockPipelineServiceImpl.java | 0 .../v1/MockRuleSetService.java | 0 .../v1/MockRuleSetServiceImpl.java | 0 .../v1/MockSynonymSetService.java | 0 .../v1/MockSynonymSetServiceImpl.java | 0 .../v1/PipelineServiceClientHttpJsonTest.java | 0 .../v1/PipelineServiceClientTest.java | 0 .../v1/RuleSetServiceClientHttpJsonTest.java | 0 .../v1/RuleSetServiceClientTest.java | 0 .../SynonymSetServiceClientHttpJsonTest.java | 0 .../v1/SynonymSetServiceClientTest.java | 0 .../v1/DocumentLinkServiceGrpc.java | 750 ++++ .../v1/DocumentSchemaServiceGrpc.java | 921 +++++ .../v1/DocumentServiceGrpc.java | 1236 ++++++ .../v1/PipelineServiceGrpc.java | 205 +- .../v1/RuleSetServiceGrpc.java | 850 ++++ .../v1/SynonymSetServiceGrpc.java | 881 ++++ .../v1/AccessControlAction.java | 502 ++- .../v1/AccessControlActionOrBuilder.java | 38 +- .../v1/AccessControlMode.java | 87 +- .../cloud/contentwarehouse/v1/Action.java | 1162 ++++-- .../v1/ActionExecutorOutput.java | 458 ++- .../v1/ActionExecutorOutputOrBuilder.java | 33 +- .../contentwarehouse/v1/ActionOrBuilder.java | 107 +- .../contentwarehouse/v1/ActionOutput.java | 539 ++- .../v1/ActionOutputOrBuilder.java | 42 +- .../v1/AddToFolderAction.java | 358 +- .../v1/AddToFolderActionOrBuilder.java | 36 +- .../v1/AsyncDocumentServiceRequestProto.java | 85 + .../v1/CloudAIDocumentOption.java | 525 ++- .../v1/CloudAIDocumentOptionOrBuilder.java | 51 +- .../contentwarehouse/v1/CommonProto.java | 163 + .../contentwarehouse/v1/ContentCategory.java | 89 +- .../v1/CreateDocumentLinkRequest.java | 622 ++- .../CreateDocumentLinkRequestOrBuilder.java | 63 +- .../v1/CreateDocumentMetadata.java | 248 +- .../v1/CreateDocumentMetadataOrBuilder.java | 24 + .../v1/CreateDocumentRequest.java | 923 +++-- .../v1/CreateDocumentRequestOrBuilder.java | 99 +- .../v1/CreateDocumentResponse.java | 708 ++-- .../v1/CreateDocumentResponseOrBuilder.java | 60 +- .../v1/CreateDocumentSchemaRequest.java | 520 ++- .../CreateDocumentSchemaRequestOrBuilder.java | 95 + .../v1/CreateRuleSetRequest.java | 492 ++- .../v1/CreateRuleSetRequestOrBuilder.java | 97 + .../v1/CreateSynonymSetRequest.java | 503 ++- .../v1/CreateSynonymSetRequestOrBuilder.java | 97 + .../v1/CustomWeightsMetadata.java | 541 ++- .../v1/CustomWeightsMetadataOrBuilder.java | 59 +- .../contentwarehouse/v1/DataUpdateAction.java | 502 +-- .../v1/DataUpdateActionOrBuilder.java | 48 +- .../v1/DataValidationAction.java | 497 ++- .../v1/DataValidationActionOrBuilder.java | 48 +- .../contentwarehouse/v1/DatabaseType.java | 82 +- .../contentwarehouse/v1/DateTimeArray.java | 415 +- .../v1/DateTimeArrayOrBuilder.java | 37 +- .../v1/DateTimeTypeOptions.java | 248 +- .../v1/DateTimeTypeOptionsOrBuilder.java | 24 + .../v1/DeleteDocumentAction.java | 287 +- .../v1/DeleteDocumentActionOrBuilder.java | 39 + .../v1/DeleteDocumentLinkRequest.java | 478 ++- .../DeleteDocumentLinkRequestOrBuilder.java | 43 +- .../v1/DeleteDocumentRequest.java | 458 ++- .../v1/DeleteDocumentRequestOrBuilder.java | 43 +- .../v1/DeleteDocumentSchemaRequest.java | 373 +- .../DeleteDocumentSchemaRequestOrBuilder.java | 54 + .../v1/DeleteRuleSetRequest.java | 350 +- .../v1/DeleteRuleSetRequestOrBuilder.java | 58 + .../v1/DeleteSynonymSetRequest.java | 360 +- .../v1/DeleteSynonymSetRequestOrBuilder.java | 58 + .../cloud/contentwarehouse/v1/Document.java | 2216 ++++++---- .../v1/DocumentCreatorDefaultRole.java | 84 +- .../contentwarehouse/v1/DocumentLink.java | 1075 +++-- .../contentwarehouse/v1/DocumentLinkName.java | 0 .../v1/DocumentLinkOrBuilder.java | 98 +- .../v1/DocumentLinkServiceProto.java | 248 ++ .../contentwarehouse/v1/DocumentName.java | 0 .../v1/DocumentOrBuilder.java | 255 +- .../contentwarehouse/v1/DocumentProto.java | 397 ++ .../contentwarehouse/v1/DocumentQuery.java | 1521 ++++--- .../v1/DocumentQueryOrBuilder.java | 193 +- .../v1/DocumentReference.java | 998 +++-- .../v1/DocumentReferenceOrBuilder.java | 113 +- .../contentwarehouse/v1/DocumentSchema.java | 1022 +++-- .../v1/DocumentSchemaName.java | 0 .../v1/DocumentSchemaOrBuilder.java | 111 +- .../v1/DocumentSchemaProto.java | 267 ++ .../v1/DocumentSchemaServiceProto.java | 207 + .../v1/DocumentServiceProto.java | 290 ++ .../v1/DocumentServiceRequestProto.java | 289 ++ .../cloud/contentwarehouse/v1/EnumArray.java | 348 +- .../v1/EnumArrayOrBuilder.java | 36 +- .../contentwarehouse/v1/EnumTypeOptions.java | 389 +- .../v1/EnumTypeOptionsOrBuilder.java | 39 +- .../cloud/contentwarehouse/v1/EnumValue.java | 312 +- .../v1/EnumValueOrBuilder.java | 27 +- .../v1/ExportToCdwPipeline.java | 538 ++- .../v1/ExportToCdwPipelineOrBuilder.java | 57 +- .../contentwarehouse/v1/FetchAclRequest.java | 461 ++- .../v1/FetchAclRequestOrBuilder.java | 38 +- .../contentwarehouse/v1/FetchAclResponse.java | 430 +- .../v1/FetchAclResponseOrBuilder.java | 34 +- .../contentwarehouse/v1/FileTypeFilter.java | 395 +- .../v1/FileTypeFilterOrBuilder.java | 24 +- .../contentwarehouse/v1/FiltersProto.java | 184 + .../cloud/contentwarehouse/v1/FloatArray.java | 339 +- .../v1/FloatArrayOrBuilder.java | 27 +- .../contentwarehouse/v1/FloatTypeOptions.java | 248 +- .../v1/FloatTypeOptionsOrBuilder.java | 24 + .../v1/GcsIngestPipeline.java | 659 +-- .../v1/GcsIngestPipelineOrBuilder.java | 68 +- .../GcsIngestWithDocAiProcessorsPipeline.java | 1035 +++-- ...tWithDocAiProcessorsPipelineOrBuilder.java | 100 +- .../v1/GetDocumentRequest.java | 458 ++- .../v1/GetDocumentRequestOrBuilder.java | 43 +- .../v1/GetDocumentSchemaRequest.java | 360 +- .../v1/GetDocumentSchemaRequestOrBuilder.java | 54 + .../v1/GetRuleSetRequest.java | 350 +- .../v1/GetRuleSetRequestOrBuilder.java | 58 + .../v1/GetSynonymSetRequest.java | 350 +- .../v1/GetSynonymSetRequestOrBuilder.java | 58 + .../contentwarehouse/v1/HistogramProto.java | 135 + .../contentwarehouse/v1/HistogramQuery.java | 517 ++- .../v1/HistogramQueryOrBuilder.java | 53 +- .../v1/HistogramQueryPropertyNameFilter.java | 680 +-- ...ogramQueryPropertyNameFilterOrBuilder.java | 68 +- .../v1/HistogramQueryResult.java | 566 +-- .../v1/HistogramQueryResultOrBuilder.java | 57 +- .../v1/IngestPipelineConfig.java | 531 ++- .../v1/IngestPipelineConfigOrBuilder.java | 47 +- .../contentwarehouse/v1/IntegerArray.java | 346 +- .../v1/IntegerArrayOrBuilder.java | 27 +- .../v1/IntegerTypeOptions.java | 248 +- .../v1/IntegerTypeOptionsOrBuilder.java | 24 + .../contentwarehouse/v1/InvalidRule.java | 408 +- .../v1/InvalidRuleOrBuilder.java | 35 +- .../v1/ListDocumentSchemasRequest.java | 476 ++- .../ListDocumentSchemasRequestOrBuilder.java | 47 +- .../v1/ListDocumentSchemasResponse.java | 492 ++- .../ListDocumentSchemasResponseOrBuilder.java | 42 +- .../v1/ListLinkedSourcesRequest.java | 573 ++- .../v1/ListLinkedSourcesRequestOrBuilder.java | 55 +- .../v1/ListLinkedSourcesResponse.java | 486 ++- .../ListLinkedSourcesResponseOrBuilder.java | 45 +- .../v1/ListLinkedTargetsRequest.java | 468 ++- .../v1/ListLinkedTargetsRequestOrBuilder.java | 43 +- .../v1/ListLinkedTargetsResponse.java | 486 ++- .../ListLinkedTargetsResponseOrBuilder.java | 45 +- .../v1/ListRuleSetsRequest.java | 453 +- .../v1/ListRuleSetsRequestOrBuilder.java | 47 +- .../v1/ListRuleSetsResponse.java | 483 ++- .../v1/ListRuleSetsResponseOrBuilder.java | 45 +- .../v1/ListSynonymSetsRequest.java | 453 +- .../v1/ListSynonymSetsRequestOrBuilder.java | 47 +- .../v1/ListSynonymSetsResponse.java | 476 ++- .../v1/ListSynonymSetsResponseOrBuilder.java | 45 +- .../contentwarehouse/v1/LocationName.java | 0 .../v1/LockDocumentRequest.java | 517 ++- .../v1/LockDocumentRequestOrBuilder.java | 52 +- .../contentwarehouse/v1/MapProperty.java | 489 ++- .../v1/MapPropertyOrBuilder.java | 48 +- .../contentwarehouse/v1/MapTypeOptions.java | 245 +- .../v1/MapTypeOptionsOrBuilder.java | 24 + .../v1/MergeFieldsOptions.java | 333 +- .../v1/MergeFieldsOptionsOrBuilder.java | 30 +- .../v1/PipelineServiceProto.java | 129 + .../contentwarehouse/v1/PipelinesProto.java | 299 ++ .../v1/ProcessWithDocAiPipeline.java | 612 +-- .../v1/ProcessWithDocAiPipelineOrBuilder.java | 62 +- .../contentwarehouse/v1/ProcessorInfo.java | 463 ++- .../v1/ProcessorInfoOrBuilder.java | 45 +- .../cloud/contentwarehouse/v1/Property.java | 1118 +++-- .../contentwarehouse/v1/PropertyArray.java | 405 +- .../v1/PropertyArrayOrBuilder.java | 36 +- .../v1/PropertyDefinition.java | 2540 ++++++++---- .../v1/PropertyDefinitionOrBuilder.java | 192 +- .../contentwarehouse/v1/PropertyFilter.java | 395 +- .../v1/PropertyFilterOrBuilder.java | 36 +- .../v1/PropertyOrBuilder.java | 91 +- .../v1/PropertyTypeOptions.java | 530 ++- .../v1/PropertyTypeOptionsOrBuilder.java | 89 + .../contentwarehouse/v1/PublishAction.java | 427 +- .../v1/PublishActionOrBuilder.java | 45 +- .../cloud/contentwarehouse/v1/QAResult.java | 737 ++-- .../v1/QAResultOrBuilder.java | 36 +- .../v1/RawDocumentFileType.java | 105 +- .../v1/RemoveFromFolderAction.java | 394 +- .../v1/RemoveFromFolderActionOrBuilder.java | 36 +- .../contentwarehouse/v1/RequestMetadata.java | 344 +- .../v1/RequestMetadataOrBuilder.java | 26 +- .../contentwarehouse/v1/ResponseMetadata.java | 322 +- .../v1/ResponseMetadataOrBuilder.java | 27 +- .../cloud/contentwarehouse/v1/Rule.java | 750 ++-- .../contentwarehouse/v1/RuleActionsPair.java | 480 ++- .../v1/RuleActionsPairOrBuilder.java | 44 +- .../contentwarehouse/v1/RuleEngineOutput.java | 578 ++- .../v1/RuleEngineOutputOrBuilder.java | 49 +- .../contentwarehouse/v1/RuleEngineProto.java | 375 ++ .../v1/RuleEvaluatorOutput.java | 703 ++-- .../v1/RuleEvaluatorOutputOrBuilder.java | 72 +- .../contentwarehouse/v1/RuleOrBuilder.java | 69 +- .../cloud/contentwarehouse/v1/RuleSet.java | 613 +-- .../contentwarehouse/v1/RuleSetName.java | 0 .../contentwarehouse/v1/RuleSetOrBuilder.java | 63 +- .../v1/RuleSetServiceProto.java | 105 + .../v1/RuleSetServiceRequestProto.java | 163 + .../v1/RunPipelineMetadata.java | 3656 +++++++++++------ .../v1/RunPipelineMetadataOrBuilder.java | 157 +- .../v1/RunPipelineRequest.java | 1095 +++-- .../v1/RunPipelineRequestOrBuilder.java | 108 +- .../v1/RunPipelineResponse.java | 248 +- .../v1/RunPipelineResponseOrBuilder.java | 24 + .../v1/SearchDocumentsRequest.java | 1152 ++++-- .../v1/SearchDocumentsRequestOrBuilder.java | 110 +- .../v1/SearchDocumentsResponse.java | 1748 +++++--- .../v1/SearchDocumentsResponseOrBuilder.java | 129 +- .../contentwarehouse/v1/SetAclRequest.java | 543 ++- .../v1/SetAclRequestOrBuilder.java | 46 +- .../contentwarehouse/v1/SetAclResponse.java | 427 +- .../v1/SetAclResponseOrBuilder.java | 34 +- .../cloud/contentwarehouse/v1/SynonymSet.java | 905 ++-- .../contentwarehouse/v1/SynonymSetName.java | 0 .../v1/SynonymSetOrBuilder.java | 54 +- .../contentwarehouse/v1/SynonymSetProto.java | 97 + .../v1/SynonymSetServiceProto.java | 107 + .../v1/SynonymSetServiceRequestProto.java | 164 + .../cloud/contentwarehouse/v1/TextArray.java | 348 +- .../v1/TextArrayOrBuilder.java | 36 +- .../contentwarehouse/v1/TextTypeOptions.java | 245 +- .../v1/TextTypeOptionsOrBuilder.java | 24 + .../cloud/contentwarehouse/v1/TimeFilter.java | 471 ++- .../v1/TimeFilterOrBuilder.java | 30 +- .../contentwarehouse/v1/TimestampArray.java | 404 +- .../v1/TimestampArrayOrBuilder.java | 36 +- .../v1/TimestampTypeOptions.java | 248 +- .../v1/TimestampTypeOptionsOrBuilder.java | 24 + .../contentwarehouse/v1/TimestampValue.java | 478 ++- .../v1/TimestampValueOrBuilder.java | 38 +- .../v1/UpdateDocumentMetadata.java | 248 +- .../v1/UpdateDocumentMetadataOrBuilder.java | 24 + .../v1/UpdateDocumentRequest.java | 848 ++-- .../v1/UpdateDocumentRequestOrBuilder.java | 91 +- .../v1/UpdateDocumentResponse.java | 554 ++- .../v1/UpdateDocumentResponseOrBuilder.java | 42 +- .../v1/UpdateDocumentSchemaRequest.java | 520 ++- .../UpdateDocumentSchemaRequestOrBuilder.java | 99 + .../contentwarehouse/v1/UpdateOptions.java | 506 ++- .../v1/UpdateOptionsOrBuilder.java | 40 +- .../v1/UpdateRuleSetRequest.java | 492 ++- .../v1/UpdateRuleSetRequestOrBuilder.java | 99 + .../v1/UpdateSynonymSetRequest.java | 503 ++- .../v1/UpdateSynonymSetRequestOrBuilder.java | 99 + .../cloud/contentwarehouse/v1/UpdateType.java | 110 +- .../cloud/contentwarehouse/v1/UserInfo.java | 420 +- .../v1/UserInfoOrBuilder.java | 45 +- .../cloud/contentwarehouse/v1/Value.java | 829 ++-- .../contentwarehouse/v1/ValueOrBuilder.java | 72 +- .../v1/WeightedSchemaProperty.java | 430 +- .../v1/WeightedSchemaPropertyOrBuilder.java | 45 +- .../v1/async_document_service_request.proto | 0 .../cloud/contentwarehouse/v1/common.proto | 0 .../cloud/contentwarehouse/v1/document.proto | 0 .../v1/document_link_service.proto | 0 .../contentwarehouse/v1/document_schema.proto | 0 .../v1/document_schema_service.proto | 0 .../v1/document_service.proto | 0 .../v1/document_service_request.proto | 0 .../cloud/contentwarehouse/v1/filters.proto | 0 .../cloud/contentwarehouse/v1/histogram.proto | 0 .../v1/pipeline_service.proto | 0 .../cloud/contentwarehouse/v1/pipelines.proto | 0 .../contentwarehouse/v1/rule_engine.proto | 0 .../contentwarehouse/v1/ruleset_service.proto | 0 .../v1/ruleset_service_request.proto | 0 .../contentwarehouse/v1/synonymset.proto | 0 .../v1/synonymset_service.proto | 0 .../v1/synonymset_service_request.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateDocumentLink.java | 0 .../SyncCreateDocumentLink.java | 0 ...eDocumentLinkDocumentnameDocumentlink.java | 0 ...cCreateDocumentLinkStringDocumentlink.java | 0 .../AsyncDeleteDocumentLink.java | 0 .../SyncDeleteDocumentLink.java | 0 ...yncDeleteDocumentLinkDocumentlinkname.java | 0 .../SyncDeleteDocumentLinkString.java | 0 .../AsyncListLinkedSources.java | 0 .../AsyncListLinkedSourcesPaged.java | 0 .../SyncListLinkedSources.java | 0 .../SyncListLinkedSourcesDocumentname.java | 0 .../SyncListLinkedSourcesString.java | 0 .../AsyncListLinkedTargets.java | 0 .../SyncListLinkedTargets.java | 0 .../SyncListLinkedTargetsDocumentname.java | 0 .../SyncListLinkedTargetsString.java | 0 .../SyncListLinkedTargets.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateDocumentSchema.java | 0 .../SyncCreateDocumentSchema.java | 0 ...umentSchemaLocationnameDocumentschema.java | 0 ...ateDocumentSchemaStringDocumentschema.java | 0 .../AsyncDeleteDocumentSchema.java | 0 .../SyncDeleteDocumentSchema.java | 0 ...eleteDocumentSchemaDocumentschemaname.java | 0 .../SyncDeleteDocumentSchemaString.java | 0 .../AsyncGetDocumentSchema.java | 0 .../SyncGetDocumentSchema.java | 0 ...ncGetDocumentSchemaDocumentschemaname.java | 0 .../SyncGetDocumentSchemaString.java | 0 .../AsyncListDocumentSchemas.java | 0 .../AsyncListDocumentSchemasPaged.java | 0 .../SyncListDocumentSchemas.java | 0 .../SyncListDocumentSchemasLocationname.java | 0 .../SyncListDocumentSchemasString.java | 0 .../AsyncUpdateDocumentSchema.java | 0 .../SyncUpdateDocumentSchema.java | 0 ...chemaDocumentschemanameDocumentschema.java | 0 ...ateDocumentSchemaStringDocumentschema.java | 0 .../SyncCreateDocumentSchema.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createdocument/AsyncCreateDocument.java | 0 .../createdocument/SyncCreateDocument.java | 0 ...yncCreateDocumentLocationnameDocument.java | 0 .../SyncCreateDocumentStringDocument.java | 0 .../deletedocument/AsyncDeleteDocument.java | 0 .../deletedocument/SyncDeleteDocument.java | 0 .../SyncDeleteDocumentDocumentname.java | 0 .../SyncDeleteDocumentString.java | 0 .../fetchacl/AsyncFetchAcl.java | 0 .../fetchacl/SyncFetchAcl.java | 0 .../fetchacl/SyncFetchAclString.java | 0 .../getdocument/AsyncGetDocument.java | 0 .../getdocument/SyncGetDocument.java | 0 .../SyncGetDocumentDocumentname.java | 0 .../getdocument/SyncGetDocumentString.java | 0 .../lockdocument/AsyncLockDocument.java | 0 .../lockdocument/SyncLockDocument.java | 0 .../SyncLockDocumentDocumentname.java | 0 .../lockdocument/SyncLockDocumentString.java | 0 .../searchdocuments/AsyncSearchDocuments.java | 0 .../AsyncSearchDocumentsPaged.java | 0 .../searchdocuments/SyncSearchDocuments.java | 0 .../SyncSearchDocumentsLocationname.java | 0 .../SyncSearchDocumentsString.java | 0 .../documentservice/setacl/AsyncSetAcl.java | 0 .../v1/documentservice/setacl/SyncSetAcl.java | 0 .../setacl/SyncSetAclStringPolicy.java | 0 .../updatedocument/AsyncUpdateDocument.java | 0 .../updatedocument/SyncUpdateDocument.java | 0 ...yncUpdateDocumentDocumentnameDocument.java | 0 .../SyncUpdateDocumentStringDocument.java | 0 .../createdocument/SyncCreateDocument.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../runpipeline/AsyncRunPipeline.java | 0 .../runpipeline/AsyncRunPipelineLRO.java | 0 .../runpipeline/SyncRunPipeline.java | 0 .../SyncRunPipelineLocationname.java | 0 .../runpipeline/SyncRunPipelineString.java | 0 .../runpipeline/SyncRunPipeline.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createruleset/AsyncCreateRuleSet.java | 0 .../createruleset/SyncCreateRuleSet.java | 0 .../SyncCreateRuleSetLocationnameRuleset.java | 0 .../SyncCreateRuleSetStringRuleset.java | 0 .../deleteruleset/AsyncDeleteRuleSet.java | 0 .../deleteruleset/SyncDeleteRuleSet.java | 0 .../SyncDeleteRuleSetRulesetname.java | 0 .../SyncDeleteRuleSetString.java | 0 .../getruleset/AsyncGetRuleSet.java | 0 .../getruleset/SyncGetRuleSet.java | 0 .../getruleset/SyncGetRuleSetRulesetname.java | 0 .../getruleset/SyncGetRuleSetString.java | 0 .../listrulesets/AsyncListRuleSets.java | 0 .../listrulesets/AsyncListRuleSetsPaged.java | 0 .../listrulesets/SyncListRuleSets.java | 0 .../SyncListRuleSetsLocationname.java | 0 .../listrulesets/SyncListRuleSetsString.java | 0 .../updateruleset/AsyncUpdateRuleSet.java | 0 .../updateruleset/SyncUpdateRuleSet.java | 0 .../SyncUpdateRuleSetRulesetnameRuleset.java | 0 .../SyncUpdateRuleSetStringRuleset.java | 0 .../createruleset/SyncCreateRuleSet.java | 0 .../SyncListLinkedTargets.java | 0 .../SyncCreateDocumentSchema.java | 0 .../createdocument/SyncCreateDocument.java | 0 .../runpipeline/SyncRunPipeline.java | 0 .../createruleset/SyncCreateRuleSet.java | 0 .../SyncCreateSynonymSet.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateSynonymSet.java | 0 .../SyncCreateSynonymSet.java | 0 ...reateSynonymSetLocationnameSynonymset.java | 0 .../SyncCreateSynonymSetStringSynonymset.java | 0 .../AsyncDeleteSynonymSet.java | 0 .../SyncDeleteSynonymSet.java | 0 .../SyncDeleteSynonymSetString.java | 0 .../SyncDeleteSynonymSetSynonymsetname.java | 0 .../getsynonymset/AsyncGetSynonymSet.java | 0 .../getsynonymset/SyncGetSynonymSet.java | 0 .../SyncGetSynonymSetString.java | 0 .../SyncGetSynonymSetSynonymsetname.java | 0 .../listsynonymsets/AsyncListSynonymSets.java | 0 .../AsyncListSynonymSetsPaged.java | 0 .../listsynonymsets/SyncListSynonymSets.java | 0 .../SyncListSynonymSetsLocationname.java | 0 .../SyncListSynonymSetsString.java | 0 .../AsyncUpdateSynonymSet.java | 0 .../SyncUpdateSynonymSet.java | 0 .../SyncUpdateSynonymSetStringSynonymset.java | 0 ...ateSynonymSetSynonymsetnameSynonymset.java | 0 .../SyncCreateSynonymSet.java | 0 .../v1/DocumentLinkServiceGrpc.java | 587 --- .../v1/DocumentSchemaServiceGrpc.java | 703 ---- .../v1/DocumentServiceGrpc.java | 953 ----- .../v1/RuleSetServiceGrpc.java | 671 --- .../v1/SynonymSetServiceGrpc.java | 695 ---- .../v1/AsyncDocumentServiceRequestProto.java | 73 - .../contentwarehouse/v1/CommonProto.java | 141 - .../v1/CreateDocumentMetadataOrBuilder.java | 9 - .../CreateDocumentSchemaRequestOrBuilder.java | 56 - .../v1/CreateRuleSetRequestOrBuilder.java | 58 - .../v1/CreateSynonymSetRequestOrBuilder.java | 58 - .../v1/DateTimeTypeOptionsOrBuilder.java | 9 - .../v1/DeleteDocumentActionOrBuilder.java | 20 - .../DeleteDocumentSchemaRequestOrBuilder.java | 29 - .../v1/DeleteRuleSetRequestOrBuilder.java | 33 - .../v1/DeleteSynonymSetRequestOrBuilder.java | 33 - .../v1/DocumentLinkServiceProto.java | 221 - .../contentwarehouse/v1/DocumentProto.java | 318 -- .../v1/DocumentSchemaProto.java | 229 -- .../v1/DocumentSchemaServiceProto.java | 187 - .../v1/DocumentServiceProto.java | 259 -- .../v1/DocumentServiceRequestProto.java | 248 -- .../contentwarehouse/v1/FiltersProto.java | 153 - .../v1/FloatTypeOptionsOrBuilder.java | 9 - .../v1/GetDocumentSchemaRequestOrBuilder.java | 29 - .../v1/GetRuleSetRequestOrBuilder.java | 33 - .../v1/GetSynonymSetRequestOrBuilder.java | 33 - .../contentwarehouse/v1/HistogramProto.java | 115 - .../v1/IntegerTypeOptionsOrBuilder.java | 9 - .../v1/MapTypeOptionsOrBuilder.java | 9 - .../v1/PipelineServiceProto.java | 108 - .../contentwarehouse/v1/PipelinesProto.java | 255 -- .../v1/PropertyTypeOptionsOrBuilder.java | 53 - .../contentwarehouse/v1/RuleEngineProto.java | 331 -- .../v1/RuleSetServiceProto.java | 92 - .../v1/RuleSetServiceRequestProto.java | 143 - .../v1/RunPipelineResponseOrBuilder.java | 9 - .../contentwarehouse/v1/SynonymSetProto.java | 79 - .../v1/SynonymSetServiceProto.java | 94 - .../v1/SynonymSetServiceRequestProto.java | 144 - .../v1/TextTypeOptionsOrBuilder.java | 9 - .../v1/TimestampTypeOptionsOrBuilder.java | 9 - .../v1/UpdateDocumentMetadataOrBuilder.java | 9 - .../UpdateDocumentSchemaRequestOrBuilder.java | 60 - .../v1/UpdateRuleSetRequestOrBuilder.java | 60 - .../v1/UpdateSynonymSetRequestOrBuilder.java | 60 - 534 files changed, 54183 insertions(+), 32721 deletions(-) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStub.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStub.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStub.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceCallableFactory.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceCallableFactory.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceCallableFactory.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceCallableFactory.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceStub.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceCallableFactory.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceStub.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceCallableFactory.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceStub.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java (99%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceStub.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceStub.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStub.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStub.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientTest.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientTest.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkService.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkServiceImpl.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaService.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaServiceImpl.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentService.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentServiceImpl.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetService.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetServiceImpl.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetService.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetServiceImpl.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientTest.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientTest.java (100%) create mode 100644 java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java create mode 100644 java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java create mode 100644 java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java (55%) create mode 100644 java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java create mode 100644 java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java (68%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java (68%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java (82%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java (63%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java (68%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java (64%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java (59%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java (68%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java (64%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java (63%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java (63%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java (77%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java (73%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java (81%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java (59%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java (61%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java (60%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java (63%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java (50%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java (62%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java (62%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java (66%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java (59%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java (63%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java (65%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java (66%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java (64%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java (65%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java (60%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java (64%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java (62%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java (68%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java (79%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentName.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentOrBuilder.java (81%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java (82%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java (90%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java (68%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java (74%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java (66%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java (57%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java (66%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java (52%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java (74%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java (77%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java (76%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java (66%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java (55%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java (65%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java (57%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java (63%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java (77%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java (65%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java (62%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java (64%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java (64%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java (68%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java (68%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java (82%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java (64%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java (79%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java (88%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java (64%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java (57%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java (63%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java (61%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java (63%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java (64%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java (63%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java (68%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java (62%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java (63%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java (59%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java (57%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java (63%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java (74%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java (80%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipeline.java (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java (77%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java (74%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java (65%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java (79%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java (79%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java (87%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java (87%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java (60%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java (68%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java (63%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java (61%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java (66%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java (61%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java (65%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java (50%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java (74%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java (73%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java (73%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java (68%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java (74%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java (77%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java (79%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java (76%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java (73%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java (71%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java (60%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java (51%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java (65%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java (62%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java (81%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java (90%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java (78%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java (88%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java (73%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java (74%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java (66%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java (57%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java (64%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java (63%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java (64%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java (63%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java (63%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java (67%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java (73%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java (70%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java (80%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java (60%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java (69%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java (77%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java (61%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java (61%) create mode 100644 java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java (73%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java (72%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java (71%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java (81%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java (68%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java (65%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/async_document_service_request.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_link_service.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema_service.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service_request.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/histogram.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/rule_engine.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service_request.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service_request.proto (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/AsyncCreateDocumentLink.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLink.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkDocumentnameDocumentlink.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkStringDocumentlink.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/AsyncDeleteDocumentLink.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLink.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkDocumentlinkname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSources.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSourcesPaged.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSources.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesDocumentname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/AsyncListLinkedTargets.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargets.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsDocumentname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservicesettings/listlinkedtargets/SyncListLinkedTargets.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/AsyncCreateDocumentSchema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaLocationnameDocumentschema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaStringDocumentschema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/AsyncDeleteDocumentSchema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaDocumentschemaname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/AsyncGetDocumentSchema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaDocumentschemaname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemas.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemasPaged.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemas.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasLocationname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/AsyncUpdateDocumentSchema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaDocumentschemanameDocumentschema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaStringDocumentschema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservicesettings/createdocumentschema/SyncCreateDocumentSchema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/AsyncCreateDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentLocationnameDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentStringDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/AsyncDeleteDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/AsyncFetchAcl.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAcl.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAclString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/AsyncGetDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/AsyncLockDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentDocumentname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocuments.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocumentsPaged.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocuments.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsLocationname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/AsyncSetAcl.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAcl.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAclStringPolicy.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/AsyncUpdateDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentDocumentnameDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentStringDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservicesettings/createdocument/SyncCreateDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipeline.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipelineLRO.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipeline.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineLocationname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservicesettings/runpipeline/SyncRunPipeline.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/AsyncCreateRuleSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetLocationnameRuleset.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetStringRuleset.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/AsyncDeleteRuleSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetRulesetname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/AsyncGetRuleSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetRulesetname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSets.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSetsPaged.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSets.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsLocationname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/AsyncUpdateRuleSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetRulesetnameRuleset.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetStringRuleset.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservicesettings/createruleset/SyncCreateRuleSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentlinkservicestubsettings/listlinkedtargets/SyncListLinkedTargets.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentschemaservicestubsettings/createdocumentschema/SyncCreateDocumentSchema.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentservicestubsettings/createdocument/SyncCreateDocument.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/pipelineservicestubsettings/runpipeline/SyncRunPipeline.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/rulesetservicestubsettings/createruleset/SyncCreateRuleSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/synonymsetservicestubsettings/createsynonymset/SyncCreateSynonymSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/AsyncCreateSynonymSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetLocationnameSynonymset.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetStringSynonymset.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/AsyncDeleteSynonymSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetSynonymsetname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/AsyncGetSynonymSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetSynonymsetname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSets.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSetsPaged.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSets.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsLocationname.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsString.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/AsyncUpdateSynonymSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSet.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetStringSynonymset.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetSynonymsetnameSynonymset.java (100%) rename {owl-bot-staging/java-contentwarehouse/v1 => java-contentwarehouse}/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservicesettings/createsynonymset/SyncCreateSynonymSet.java (100%) delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index 6df5fb143137..ab9a2bb291fe 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.22.0 + 26.23.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.20.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java index 80dda09bf199..81ab7aeac54f 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.contentwarehouse.v1.stub.DocumentLinkServiceStubSettings; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java index 117358af3b85..5985a14d5fd7 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.contentwarehouse.v1.stub.DocumentSchemaServiceStubSettings; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java index d11ccc0ec545..c7a62590b7ea 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.contentwarehouse.v1.stub.DocumentServiceStubSettings; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java index 4f82d48c4ebd..6c5ad92a0136 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java @@ -26,7 +26,6 @@ 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.contentwarehouse.v1.stub.PipelineServiceStubSettings; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java index 807d040f2fca..7d60bd1b38ac 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.contentwarehouse.v1.stub.RuleSetServiceStubSettings; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java index 02fc5912b947..0217223b7886 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.contentwarehouse.v1.stub.SynonymSetServiceStubSettings; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/package-info.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStub.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStub.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStub.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStub.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStub.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStub.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceCallableFactory.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceCallableFactory.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java index f35a4e0f1e7c..dca476b1eae1 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentLinkServiceStub.java @@ -37,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceCallableFactory.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceCallableFactory.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java index a733f4964ec5..abd9d31e7031 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentSchemaServiceStub.java @@ -37,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceCallableFactory.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceCallableFactory.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java index 9a0d97a16042..733eadbe287a 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcDocumentServiceStub.java @@ -44,7 +44,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceCallableFactory.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java index d6c13a4ffc9b..981d16b51a81 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcPipelineServiceStub.java @@ -32,7 +32,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceCallableFactory.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceCallableFactory.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java index 6a6ff6a512fa..6ebfe3656e0e 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcRuleSetServiceStub.java @@ -37,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceCallableFactory.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceCallableFactory.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java index 43ebb7051e7a..0536836a6185 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/GrpcSynonymSetServiceStub.java @@ -37,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceCallableFactory.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceCallableFactory.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceStub.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentLinkServiceStub.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceCallableFactory.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceCallableFactory.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceStub.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentSchemaServiceStub.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceCallableFactory.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceCallableFactory.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceStub.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonDocumentServiceStub.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceCallableFactory.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java similarity index 99% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java index 3be4fb6c3083..1090ccefa4b2 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonPipelineServiceStub.java @@ -29,7 +29,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceCallableFactory.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceCallableFactory.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceStub.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonRuleSetServiceStub.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceCallableFactory.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceCallableFactory.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceCallableFactory.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceStub.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/HttpJsonSynonymSetServiceStub.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStub.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStub.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStub.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStub.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStub.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json rename to java-contentwarehouse/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientHttpJsonTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientHttpJsonTest.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientTest.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClientTest.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientHttpJsonTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientHttpJsonTest.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientTest.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClientTest.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClientTest.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkService.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkService.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkService.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkService.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkServiceImpl.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkServiceImpl.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkServiceImpl.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentLinkServiceImpl.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaService.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaService.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaService.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaService.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaServiceImpl.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaServiceImpl.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaServiceImpl.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentSchemaServiceImpl.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentService.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentService.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentService.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentService.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentServiceImpl.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentServiceImpl.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentServiceImpl.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockDocumentServiceImpl.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineService.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockPipelineServiceImpl.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetService.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetService.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetService.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetService.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetServiceImpl.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetServiceImpl.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetServiceImpl.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockRuleSetServiceImpl.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetService.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetService.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetService.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetService.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetServiceImpl.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetServiceImpl.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetServiceImpl.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/MockSynonymSetServiceImpl.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClientTest.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientHttpJsonTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientHttpJsonTest.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientTest.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClientTest.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientHttpJsonTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientHttpJsonTest.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientTest.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientTest.java rename to java-contentwarehouse/google-cloud-contentwarehouse/src/test/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClientTest.java diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java new file mode 100644 index 000000000000..a7d2d4e643ab --- /dev/null +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java @@ -0,0 +1,750 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.contentwarehouse.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * This service lets you manage document-links.
+ * Document-Links are treated as sub-resources under source documents.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/contentwarehouse/v1/document_link_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DocumentLinkServiceGrpc { + + private DocumentLinkServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.DocumentLinkService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest, + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse> + getListLinkedTargetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLinkedTargets", + requestType = com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest, + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse> + getListLinkedTargetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest, + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse> + getListLinkedTargetsMethod; + if ((getListLinkedTargetsMethod = DocumentLinkServiceGrpc.getListLinkedTargetsMethod) == null) { + synchronized (DocumentLinkServiceGrpc.class) { + if ((getListLinkedTargetsMethod = DocumentLinkServiceGrpc.getListLinkedTargetsMethod) + == null) { + DocumentLinkServiceGrpc.getListLinkedTargetsMethod = + getListLinkedTargetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinkedTargets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DocumentLinkServiceMethodDescriptorSupplier("ListLinkedTargets")) + .build(); + } + } + } + return getListLinkedTargetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest, + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse> + getListLinkedSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLinkedSources", + requestType = com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest, + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse> + getListLinkedSourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest, + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse> + getListLinkedSourcesMethod; + if ((getListLinkedSourcesMethod = DocumentLinkServiceGrpc.getListLinkedSourcesMethod) == null) { + synchronized (DocumentLinkServiceGrpc.class) { + if ((getListLinkedSourcesMethod = DocumentLinkServiceGrpc.getListLinkedSourcesMethod) + == null) { + DocumentLinkServiceGrpc.getListLinkedSourcesMethod = + getListLinkedSourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinkedSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DocumentLinkServiceMethodDescriptorSupplier("ListLinkedSources")) + .build(); + } + } + } + return getListLinkedSourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest, + com.google.cloud.contentwarehouse.v1.DocumentLink> + getCreateDocumentLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDocumentLink", + requestType = com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.DocumentLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest, + com.google.cloud.contentwarehouse.v1.DocumentLink> + getCreateDocumentLinkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest, + com.google.cloud.contentwarehouse.v1.DocumentLink> + getCreateDocumentLinkMethod; + if ((getCreateDocumentLinkMethod = DocumentLinkServiceGrpc.getCreateDocumentLinkMethod) + == null) { + synchronized (DocumentLinkServiceGrpc.class) { + if ((getCreateDocumentLinkMethod = DocumentLinkServiceGrpc.getCreateDocumentLinkMethod) + == null) { + DocumentLinkServiceGrpc.getCreateDocumentLinkMethod = + getCreateDocumentLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocumentLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DocumentLink + .getDefaultInstance())) + .setSchemaDescriptor( + new DocumentLinkServiceMethodDescriptorSupplier("CreateDocumentLink")) + .build(); + } + } + } + return getCreateDocumentLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, com.google.protobuf.Empty> + getDeleteDocumentLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDocumentLink", + requestType = com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, com.google.protobuf.Empty> + getDeleteDocumentLinkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, + com.google.protobuf.Empty> + getDeleteDocumentLinkMethod; + if ((getDeleteDocumentLinkMethod = DocumentLinkServiceGrpc.getDeleteDocumentLinkMethod) + == null) { + synchronized (DocumentLinkServiceGrpc.class) { + if ((getDeleteDocumentLinkMethod = DocumentLinkServiceGrpc.getDeleteDocumentLinkMethod) + == null) { + DocumentLinkServiceGrpc.getDeleteDocumentLinkMethod = + getDeleteDocumentLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocumentLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DocumentLinkServiceMethodDescriptorSupplier("DeleteDocumentLink")) + .build(); + } + } + } + return getDeleteDocumentLinkMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DocumentLinkServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentLinkServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentLinkServiceStub(channel, callOptions); + } + }; + return DocumentLinkServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DocumentLinkServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentLinkServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentLinkServiceBlockingStub(channel, callOptions); + } + }; + return DocumentLinkServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DocumentLinkServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentLinkServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentLinkServiceFutureStub(channel, callOptions); + } + }; + return DocumentLinkServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * This service lets you manage document-links.
+   * Document-Links are treated as sub-resources under source documents.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Return all target document-links from the document.
+     * 
+ */ + default void listLinkedTargets( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLinkedTargetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Return all source document-links from the document.
+     * 
+ */ + default void listLinkedSources( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLinkedSourcesMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a link between a source document and a target document.
+     * 
+ */ + default void createDocumentLink( + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDocumentLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Remove the link between the source and target documents.
+     * 
+ */ + default void deleteDocumentLink( + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDocumentLinkMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DocumentLinkService. + * + *
+   * This service lets you manage document-links.
+   * Document-Links are treated as sub-resources under source documents.
+   * 
+ */ + public abstract static class DocumentLinkServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DocumentLinkServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DocumentLinkService. + * + *
+   * This service lets you manage document-links.
+   * Document-Links are treated as sub-resources under source documents.
+   * 
+ */ + public static final class DocumentLinkServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DocumentLinkServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentLinkServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentLinkServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Return all target document-links from the document.
+     * 
+ */ + public void listLinkedTargets( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLinkedTargetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Return all source document-links from the document.
+     * 
+ */ + public void listLinkedSources( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLinkedSourcesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a link between a source document and a target document.
+     * 
+ */ + public void createDocumentLink( + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDocumentLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Remove the link between the source and target documents.
+     * 
+ */ + public void deleteDocumentLink( + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDocumentLinkMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DocumentLinkService. + * + *
+   * This service lets you manage document-links.
+   * Document-Links are treated as sub-resources under source documents.
+   * 
+ */ + public static final class DocumentLinkServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DocumentLinkServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentLinkServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentLinkServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Return all target document-links from the document.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse listLinkedTargets( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLinkedTargetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Return all source document-links from the document.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse listLinkedSources( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLinkedSourcesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a link between a source document and a target document.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.DocumentLink createDocumentLink( + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDocumentLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Remove the link between the source and target documents.
+     * 
+ */ + public com.google.protobuf.Empty deleteDocumentLink( + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDocumentLinkMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentLinkService. + * + *
+   * This service lets you manage document-links.
+   * Document-Links are treated as sub-resources under source documents.
+   * 
+ */ + public static final class DocumentLinkServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DocumentLinkServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentLinkServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentLinkServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Return all target document-links from the document.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse> + listLinkedTargets(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLinkedTargetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Return all source document-links from the document.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse> + listLinkedSources(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLinkedSourcesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a link between a source document and a target document.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.DocumentLink> + createDocumentLink(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDocumentLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Remove the link between the source and target documents.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDocumentLink(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDocumentLinkMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_LINKED_TARGETS = 0; + private static final int METHODID_LIST_LINKED_SOURCES = 1; + private static final int METHODID_CREATE_DOCUMENT_LINK = 2; + private static final int METHODID_DELETE_DOCUMENT_LINK = 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_LIST_LINKED_TARGETS: + serviceImpl.listLinkedTargets( + (com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse>) + responseObserver); + break; + case METHODID_LIST_LINKED_SOURCES: + serviceImpl.listLinkedSources( + (com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse>) + responseObserver); + break; + case METHODID_CREATE_DOCUMENT_LINK: + serviceImpl.createDocumentLink( + (com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_DOCUMENT_LINK: + serviceImpl.deleteDocumentLink( + (com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) 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( + getListLinkedTargetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest, + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse>( + service, METHODID_LIST_LINKED_TARGETS))) + .addMethod( + getListLinkedSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest, + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse>( + service, METHODID_LIST_LINKED_SOURCES))) + .addMethod( + getCreateDocumentLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest, + com.google.cloud.contentwarehouse.v1.DocumentLink>( + service, METHODID_CREATE_DOCUMENT_LINK))) + .addMethod( + getDeleteDocumentLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_DOCUMENT_LINK))) + .build(); + } + + private abstract static class DocumentLinkServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DocumentLinkServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DocumentLinkService"); + } + } + + private static final class DocumentLinkServiceFileDescriptorSupplier + extends DocumentLinkServiceBaseDescriptorSupplier { + DocumentLinkServiceFileDescriptorSupplier() {} + } + + private static final class DocumentLinkServiceMethodDescriptorSupplier + extends DocumentLinkServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DocumentLinkServiceMethodDescriptorSupplier(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 (DocumentLinkServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DocumentLinkServiceFileDescriptorSupplier()) + .addMethod(getListLinkedTargetsMethod()) + .addMethod(getListLinkedSourcesMethod()) + .addMethod(getCreateDocumentLinkMethod()) + .addMethod(getDeleteDocumentLinkMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java new file mode 100644 index 000000000000..002fc7a643fb --- /dev/null +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java @@ -0,0 +1,921 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.contentwarehouse.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * This service lets you manage document schema.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/contentwarehouse/v1/document_schema_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DocumentSchemaServiceGrpc { + + private DocumentSchemaServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.contentwarehouse.v1.DocumentSchemaService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema> + getCreateDocumentSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDocumentSchema", + requestType = com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.DocumentSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema> + getCreateDocumentSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema> + getCreateDocumentSchemaMethod; + if ((getCreateDocumentSchemaMethod = DocumentSchemaServiceGrpc.getCreateDocumentSchemaMethod) + == null) { + synchronized (DocumentSchemaServiceGrpc.class) { + if ((getCreateDocumentSchemaMethod = + DocumentSchemaServiceGrpc.getCreateDocumentSchemaMethod) + == null) { + DocumentSchemaServiceGrpc.getCreateDocumentSchemaMethod = + getCreateDocumentSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateDocumentSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DocumentSchema + .getDefaultInstance())) + .setSchemaDescriptor( + new DocumentSchemaServiceMethodDescriptorSupplier("CreateDocumentSchema")) + .build(); + } + } + } + return getCreateDocumentSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema> + getUpdateDocumentSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDocumentSchema", + requestType = com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.DocumentSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema> + getUpdateDocumentSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema> + getUpdateDocumentSchemaMethod; + if ((getUpdateDocumentSchemaMethod = DocumentSchemaServiceGrpc.getUpdateDocumentSchemaMethod) + == null) { + synchronized (DocumentSchemaServiceGrpc.class) { + if ((getUpdateDocumentSchemaMethod = + DocumentSchemaServiceGrpc.getUpdateDocumentSchemaMethod) + == null) { + DocumentSchemaServiceGrpc.getUpdateDocumentSchemaMethod = + getUpdateDocumentSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDocumentSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DocumentSchema + .getDefaultInstance())) + .setSchemaDescriptor( + new DocumentSchemaServiceMethodDescriptorSupplier("UpdateDocumentSchema")) + .build(); + } + } + } + return getUpdateDocumentSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema> + getGetDocumentSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDocumentSchema", + requestType = com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.DocumentSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema> + getGetDocumentSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema> + getGetDocumentSchemaMethod; + if ((getGetDocumentSchemaMethod = DocumentSchemaServiceGrpc.getGetDocumentSchemaMethod) + == null) { + synchronized (DocumentSchemaServiceGrpc.class) { + if ((getGetDocumentSchemaMethod = DocumentSchemaServiceGrpc.getGetDocumentSchemaMethod) + == null) { + DocumentSchemaServiceGrpc.getGetDocumentSchemaMethod = + getGetDocumentSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDocumentSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DocumentSchema + .getDefaultInstance())) + .setSchemaDescriptor( + new DocumentSchemaServiceMethodDescriptorSupplier("GetDocumentSchema")) + .build(); + } + } + } + return getGetDocumentSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, + com.google.protobuf.Empty> + getDeleteDocumentSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDocumentSchema", + requestType = com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, + com.google.protobuf.Empty> + getDeleteDocumentSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, + com.google.protobuf.Empty> + getDeleteDocumentSchemaMethod; + if ((getDeleteDocumentSchemaMethod = DocumentSchemaServiceGrpc.getDeleteDocumentSchemaMethod) + == null) { + synchronized (DocumentSchemaServiceGrpc.class) { + if ((getDeleteDocumentSchemaMethod = + DocumentSchemaServiceGrpc.getDeleteDocumentSchemaMethod) + == null) { + DocumentSchemaServiceGrpc.getDeleteDocumentSchemaMethod = + getDeleteDocumentSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteDocumentSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DocumentSchemaServiceMethodDescriptorSupplier("DeleteDocumentSchema")) + .build(); + } + } + } + return getDeleteDocumentSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest, + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse> + getListDocumentSchemasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDocumentSchemas", + requestType = com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest, + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse> + getListDocumentSchemasMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest, + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse> + getListDocumentSchemasMethod; + if ((getListDocumentSchemasMethod = DocumentSchemaServiceGrpc.getListDocumentSchemasMethod) + == null) { + synchronized (DocumentSchemaServiceGrpc.class) { + if ((getListDocumentSchemasMethod = DocumentSchemaServiceGrpc.getListDocumentSchemasMethod) + == null) { + DocumentSchemaServiceGrpc.getListDocumentSchemasMethod = + getListDocumentSchemasMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListDocumentSchemas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DocumentSchemaServiceMethodDescriptorSupplier("ListDocumentSchemas")) + .build(); + } + } + } + return getListDocumentSchemasMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DocumentSchemaServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentSchemaServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentSchemaServiceStub(channel, callOptions); + } + }; + return DocumentSchemaServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DocumentSchemaServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentSchemaServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentSchemaServiceBlockingStub(channel, callOptions); + } + }; + return DocumentSchemaServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DocumentSchemaServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentSchemaServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentSchemaServiceFutureStub(channel, callOptions); + } + }; + return DocumentSchemaServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * This service lets you manage document schema.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a document schema.
+     * 
+ */ + default void createDocumentSchema( + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDocumentSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
+     * Document Schema is non-empty and does not equal the existing name.
+     * Supports only appending new properties, adding new ENUM possible values,
+     * and updating the
+     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
+     * flag for ENUM possible values. Updating existing properties will result
+     * into INVALID_ARGUMENT.
+     * 
+ */ + default void updateDocumentSchema( + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDocumentSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a document schema. Returns NOT_FOUND if the document schema does not
+     * exist.
+     * 
+ */ + default void getDocumentSchema( + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDocumentSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a document schema. Returns NOT_FOUND if the document schema does
+     * not exist. Returns BAD_REQUEST if the document schema has documents
+     * depending on it.
+     * 
+ */ + default void deleteDocumentSchema( + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDocumentSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists document schemas.
+     * 
+ */ + default void listDocumentSchemas( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDocumentSchemasMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DocumentSchemaService. + * + *
+   * This service lets you manage document schema.
+   * 
+ */ + public abstract static class DocumentSchemaServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DocumentSchemaServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DocumentSchemaService. + * + *
+   * This service lets you manage document schema.
+   * 
+ */ + public static final class DocumentSchemaServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DocumentSchemaServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentSchemaServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentSchemaServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a document schema.
+     * 
+ */ + public void createDocumentSchema( + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDocumentSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
+     * Document Schema is non-empty and does not equal the existing name.
+     * Supports only appending new properties, adding new ENUM possible values,
+     * and updating the
+     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
+     * flag for ENUM possible values. Updating existing properties will result
+     * into INVALID_ARGUMENT.
+     * 
+ */ + public void updateDocumentSchema( + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDocumentSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a document schema. Returns NOT_FOUND if the document schema does not
+     * exist.
+     * 
+ */ + public void getDocumentSchema( + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDocumentSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a document schema. Returns NOT_FOUND if the document schema does
+     * not exist. Returns BAD_REQUEST if the document schema has documents
+     * depending on it.
+     * 
+ */ + public void deleteDocumentSchema( + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDocumentSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists document schemas.
+     * 
+ */ + public void listDocumentSchemas( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDocumentSchemasMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DocumentSchemaService. + * + *
+   * This service lets you manage document schema.
+   * 
+ */ + public static final class DocumentSchemaServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DocumentSchemaServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentSchemaServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentSchemaServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a document schema.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.DocumentSchema createDocumentSchema( + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDocumentSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
+     * Document Schema is non-empty and does not equal the existing name.
+     * Supports only appending new properties, adding new ENUM possible values,
+     * and updating the
+     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
+     * flag for ENUM possible values. Updating existing properties will result
+     * into INVALID_ARGUMENT.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.DocumentSchema updateDocumentSchema( + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDocumentSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a document schema. Returns NOT_FOUND if the document schema does not
+     * exist.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema( + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDocumentSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a document schema. Returns NOT_FOUND if the document schema does
+     * not exist. Returns BAD_REQUEST if the document schema has documents
+     * depending on it.
+     * 
+ */ + public com.google.protobuf.Empty deleteDocumentSchema( + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDocumentSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists document schemas.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse listDocumentSchemas( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDocumentSchemasMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * DocumentSchemaService. + * + *
+   * This service lets you manage document schema.
+   * 
+ */ + public static final class DocumentSchemaServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DocumentSchemaServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentSchemaServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentSchemaServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a document schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.DocumentSchema> + createDocumentSchema( + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDocumentSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
+     * Document Schema is non-empty and does not equal the existing name.
+     * Supports only appending new properties, adding new ENUM possible values,
+     * and updating the
+     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
+     * flag for ENUM possible values. Updating existing properties will result
+     * into INVALID_ARGUMENT.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.DocumentSchema> + updateDocumentSchema( + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDocumentSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a document schema. Returns NOT_FOUND if the document schema does not
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.DocumentSchema> + getDocumentSchema(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDocumentSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a document schema. Returns NOT_FOUND if the document schema does
+     * not exist. Returns BAD_REQUEST if the document schema has documents
+     * depending on it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDocumentSchema( + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDocumentSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists document schemas.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse> + listDocumentSchemas( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDocumentSchemasMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_DOCUMENT_SCHEMA = 0; + private static final int METHODID_UPDATE_DOCUMENT_SCHEMA = 1; + private static final int METHODID_GET_DOCUMENT_SCHEMA = 2; + private static final int METHODID_DELETE_DOCUMENT_SCHEMA = 3; + private static final int METHODID_LIST_DOCUMENT_SCHEMAS = 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_CREATE_DOCUMENT_SCHEMA: + serviceImpl.createDocumentSchema( + (com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DOCUMENT_SCHEMA: + serviceImpl.updateDocumentSchema( + (com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_DOCUMENT_SCHEMA: + serviceImpl.getDocumentSchema( + (com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_DOCUMENT_SCHEMA: + serviceImpl.deleteDocumentSchema( + (com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DOCUMENT_SCHEMAS: + serviceImpl.listDocumentSchemas( + (com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse>) + 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( + getCreateDocumentSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema>( + service, METHODID_CREATE_DOCUMENT_SCHEMA))) + .addMethod( + getUpdateDocumentSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema>( + service, METHODID_UPDATE_DOCUMENT_SCHEMA))) + .addMethod( + getGetDocumentSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest, + com.google.cloud.contentwarehouse.v1.DocumentSchema>( + service, METHODID_GET_DOCUMENT_SCHEMA))) + .addMethod( + getDeleteDocumentSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_DOCUMENT_SCHEMA))) + .addMethod( + getListDocumentSchemasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest, + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse>( + service, METHODID_LIST_DOCUMENT_SCHEMAS))) + .build(); + } + + private abstract static class DocumentSchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DocumentSchemaServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DocumentSchemaService"); + } + } + + private static final class DocumentSchemaServiceFileDescriptorSupplier + extends DocumentSchemaServiceBaseDescriptorSupplier { + DocumentSchemaServiceFileDescriptorSupplier() {} + } + + private static final class DocumentSchemaServiceMethodDescriptorSupplier + extends DocumentSchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DocumentSchemaServiceMethodDescriptorSupplier(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 (DocumentSchemaServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DocumentSchemaServiceFileDescriptorSupplier()) + .addMethod(getCreateDocumentSchemaMethod()) + .addMethod(getUpdateDocumentSchemaMethod()) + .addMethod(getGetDocumentSchemaMethod()) + .addMethod(getDeleteDocumentSchemaMethod()) + .addMethod(getListDocumentSchemasMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java new file mode 100644 index 000000000000..6936c3613c24 --- /dev/null +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java @@ -0,0 +1,1236 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.contentwarehouse.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * This service lets you manage document.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/contentwarehouse/v1/document_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DocumentServiceGrpc { + + private DocumentServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.DocumentService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest, + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse> + getCreateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDocument", + requestType = com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest, + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse> + getCreateDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest, + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse> + 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.contentwarehouse.v1.CreateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DocumentServiceMethodDescriptorSupplier("CreateDocument")) + .build(); + } + } + } + return getCreateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.GetDocumentRequest, + com.google.cloud.contentwarehouse.v1.Document> + getGetDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDocument", + requestType = com.google.cloud.contentwarehouse.v1.GetDocumentRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.Document.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.GetDocumentRequest, + com.google.cloud.contentwarehouse.v1.Document> + getGetDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.GetDocumentRequest, + com.google.cloud.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance())) + .setSchemaDescriptor( + new DocumentServiceMethodDescriptorSupplier("GetDocument")) + .build(); + } + } + } + return getGetDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse> + getUpdateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDocument", + requestType = com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse> + getUpdateDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse> + 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.contentwarehouse.v1.UpdateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DocumentServiceMethodDescriptorSupplier("UpdateDocument")) + .build(); + } + } + } + return getUpdateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, com.google.protobuf.Empty> + getDeleteDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDocument", + requestType = com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, com.google.protobuf.Empty> + getDeleteDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.SearchDocumentsRequest, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse> + getSearchDocumentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchDocuments", + requestType = com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse> + getSearchDocumentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse> + getSearchDocumentsMethod; + if ((getSearchDocumentsMethod = DocumentServiceGrpc.getSearchDocumentsMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getSearchDocumentsMethod = DocumentServiceGrpc.getSearchDocumentsMethod) == null) { + DocumentServiceGrpc.getSearchDocumentsMethod = + getSearchDocumentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DocumentServiceMethodDescriptorSupplier("SearchDocuments")) + .build(); + } + } + } + return getSearchDocumentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.LockDocumentRequest, + com.google.cloud.contentwarehouse.v1.Document> + getLockDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LockDocument", + requestType = com.google.cloud.contentwarehouse.v1.LockDocumentRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.Document.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.LockDocumentRequest, + com.google.cloud.contentwarehouse.v1.Document> + getLockDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.LockDocumentRequest, + com.google.cloud.contentwarehouse.v1.Document> + getLockDocumentMethod; + if ((getLockDocumentMethod = DocumentServiceGrpc.getLockDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getLockDocumentMethod = DocumentServiceGrpc.getLockDocumentMethod) == null) { + DocumentServiceGrpc.getLockDocumentMethod = + getLockDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LockDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.LockDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance())) + .setSchemaDescriptor( + new DocumentServiceMethodDescriptorSupplier("LockDocument")) + .build(); + } + } + } + return getLockDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.FetchAclRequest, + com.google.cloud.contentwarehouse.v1.FetchAclResponse> + getFetchAclMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchAcl", + requestType = com.google.cloud.contentwarehouse.v1.FetchAclRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.FetchAclResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.FetchAclRequest, + com.google.cloud.contentwarehouse.v1.FetchAclResponse> + getFetchAclMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.FetchAclRequest, + com.google.cloud.contentwarehouse.v1.FetchAclResponse> + getFetchAclMethod; + if ((getFetchAclMethod = DocumentServiceGrpc.getFetchAclMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getFetchAclMethod = DocumentServiceGrpc.getFetchAclMethod) == null) { + DocumentServiceGrpc.getFetchAclMethod = + getFetchAclMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchAcl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.FetchAclRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.FetchAclResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("FetchAcl")) + .build(); + } + } + } + return getFetchAclMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.SetAclRequest, + com.google.cloud.contentwarehouse.v1.SetAclResponse> + getSetAclMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetAcl", + requestType = com.google.cloud.contentwarehouse.v1.SetAclRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.SetAclResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.SetAclRequest, + com.google.cloud.contentwarehouse.v1.SetAclResponse> + getSetAclMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.SetAclRequest, + com.google.cloud.contentwarehouse.v1.SetAclResponse> + getSetAclMethod; + if ((getSetAclMethod = DocumentServiceGrpc.getSetAclMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getSetAclMethod = DocumentServiceGrpc.getSetAclMethod) == null) { + DocumentServiceGrpc.getSetAclMethod = + getSetAclMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAcl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SetAclRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SetAclResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("SetAcl")) + .build(); + } + } + } + return getSetAclMethod; + } + + /** 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); + } + + /** + * + * + *
+   * This service lets you manage document.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a document.
+     * 
+ */ + default void createDocument( + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + default void getDocument( + com.google.cloud.contentwarehouse.v1.GetDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + default void updateDocument( + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + default void deleteDocument( + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches for documents using provided
+     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
+     * This call only returns documents that the caller has permission to search
+     * against.
+     * 
+ */ + default void searchDocuments( + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchDocumentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lock the document so the document cannot be updated by other users.
+     * 
+ */ + default void lockDocument( + com.google.cloud.contentwarehouse.v1.LockDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLockDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a resource. Returns NOT_FOUND error if
+     * the resource does not exist. Returns an empty policy if the resource exists
+     * but does not have a policy set.
+     * 
+ */ + default void fetchAcl( + com.google.cloud.contentwarehouse.v1.FetchAclRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchAclMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy for a resource. Replaces any existing
+     * policy.
+     * 
+ */ + default void setAcl( + com.google.cloud.contentwarehouse.v1.SetAclRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetAclMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DocumentService. + * + *
+   * This service lets you manage document.
+   * 
+ */ + 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. + * + *
+   * This service lets you manage document.
+   * 
+ */ + 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); + } + + /** + * + * + *
+     * Creates a document.
+     * 
+ */ + public void createDocument( + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public void getDocument( + com.google.cloud.contentwarehouse.v1.GetDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + public void updateDocument( + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public void deleteDocument( + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches for documents using provided
+     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
+     * This call only returns documents that the caller has permission to search
+     * against.
+     * 
+ */ + public void searchDocuments( + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchDocumentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lock the document so the document cannot be updated by other users.
+     * 
+ */ + public void lockDocument( + com.google.cloud.contentwarehouse.v1.LockDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLockDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a resource. Returns NOT_FOUND error if
+     * the resource does not exist. Returns an empty policy if the resource exists
+     * but does not have a policy set.
+     * 
+ */ + public void fetchAcl( + com.google.cloud.contentwarehouse.v1.FetchAclRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchAclMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy for a resource. Replaces any existing
+     * policy.
+     * 
+ */ + public void setAcl( + com.google.cloud.contentwarehouse.v1.SetAclRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetAclMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DocumentService. + * + *
+   * This service lets you manage document.
+   * 
+ */ + 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); + } + + /** + * + * + *
+     * Creates a document.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse createDocument( + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.Document getDocument( + com.google.cloud.contentwarehouse.v1.GetDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse updateDocument( + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public com.google.protobuf.Empty deleteDocument( + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches for documents using provided
+     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
+     * This call only returns documents that the caller has permission to search
+     * against.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse searchDocuments( + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchDocumentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lock the document so the document cannot be updated by other users.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.Document lockDocument( + com.google.cloud.contentwarehouse.v1.LockDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLockDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the access control policy for a resource. Returns NOT_FOUND error if
+     * the resource does not exist. Returns an empty policy if the resource exists
+     * but does not have a policy set.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.FetchAclResponse fetchAcl( + com.google.cloud.contentwarehouse.v1.FetchAclRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchAclMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the access control policy for a resource. Replaces any existing
+     * policy.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.SetAclResponse setAcl( + com.google.cloud.contentwarehouse.v1.SetAclRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetAclMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentService. + * + *
+   * This service lets you manage document.
+   * 
+ */ + 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); + } + + /** + * + * + *
+     * Creates a document.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse> + createDocument(com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.Document> + getDocument(com.google.cloud.contentwarehouse.v1.GetDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse> + updateDocument(com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a document. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDocument(com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches for documents using provided
+     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
+     * This call only returns documents that the caller has permission to search
+     * against.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse> + searchDocuments(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchDocumentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lock the document so the document cannot be updated by other users.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.Document> + lockDocument(com.google.cloud.contentwarehouse.v1.LockDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLockDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the access control policy for a resource. Returns NOT_FOUND error if
+     * the resource does not exist. Returns an empty policy if the resource exists
+     * but does not have a policy set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.FetchAclResponse> + fetchAcl(com.google.cloud.contentwarehouse.v1.FetchAclRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchAclMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the access control policy for a resource. Replaces any existing
+     * policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.SetAclResponse> + setAcl(com.google.cloud.contentwarehouse.v1.SetAclRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetAclMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_DOCUMENT = 0; + private static final int METHODID_GET_DOCUMENT = 1; + private static final int METHODID_UPDATE_DOCUMENT = 2; + private static final int METHODID_DELETE_DOCUMENT = 3; + private static final int METHODID_SEARCH_DOCUMENTS = 4; + private static final int METHODID_LOCK_DOCUMENT = 5; + private static final int METHODID_FETCH_ACL = 6; + private static final int METHODID_SET_ACL = 7; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_DOCUMENT: + serviceImpl.createDocument( + (com.google.cloud.contentwarehouse.v1.CreateDocumentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse>) + responseObserver); + break; + case METHODID_GET_DOCUMENT: + serviceImpl.getDocument( + (com.google.cloud.contentwarehouse.v1.GetDocumentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DOCUMENT: + serviceImpl.updateDocument( + (com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse>) + responseObserver); + break; + case METHODID_DELETE_DOCUMENT: + serviceImpl.deleteDocument( + (com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_DOCUMENTS: + serviceImpl.searchDocuments( + (com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse>) + responseObserver); + break; + case METHODID_LOCK_DOCUMENT: + serviceImpl.lockDocument( + (com.google.cloud.contentwarehouse.v1.LockDocumentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_FETCH_ACL: + serviceImpl.fetchAcl( + (com.google.cloud.contentwarehouse.v1.FetchAclRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_ACL: + serviceImpl.setAcl( + (com.google.cloud.contentwarehouse.v1.SetAclRequest) 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( + getCreateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest, + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse>( + service, METHODID_CREATE_DOCUMENT))) + .addMethod( + getGetDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.GetDocumentRequest, + com.google.cloud.contentwarehouse.v1.Document>(service, METHODID_GET_DOCUMENT))) + .addMethod( + getUpdateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse>( + service, METHODID_UPDATE_DOCUMENT))) + .addMethod( + getDeleteDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_DOCUMENT))) + .addMethod( + getSearchDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse>( + service, METHODID_SEARCH_DOCUMENTS))) + .addMethod( + getLockDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.LockDocumentRequest, + com.google.cloud.contentwarehouse.v1.Document>( + service, METHODID_LOCK_DOCUMENT))) + .addMethod( + getFetchAclMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.FetchAclRequest, + com.google.cloud.contentwarehouse.v1.FetchAclResponse>( + service, METHODID_FETCH_ACL))) + .addMethod( + getSetAclMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.SetAclRequest, + com.google.cloud.contentwarehouse.v1.SetAclResponse>( + service, METHODID_SET_ACL))) + .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.contentwarehouse.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 String methodName; + + DocumentServiceMethodDescriptorSupplier(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(getCreateDocumentMethod()) + .addMethod(getGetDocumentMethod()) + .addMethod(getUpdateDocumentMethod()) + .addMethod(getDeleteDocumentMethod()) + .addMethod(getSearchDocumentsMethod()) + .addMethod(getLockDocumentMethod()) + .addMethod(getFetchAclMethod()) + .addMethod(getSetAclMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java similarity index 55% rename from owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java rename to java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java index 293725e2bf3e..b4fdcf79314e 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.contentwarehouse.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * This service lets you manage pipelines.
  * 
@@ -18,82 +35,94 @@ private PipelineServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.PipelineService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getRunPipelineMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.RunPipelineRequest, com.google.longrunning.Operation> + getRunPipelineMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RunPipeline", requestType = com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRunPipelineMethod() { - io.grpc.MethodDescriptor getRunPipelineMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.RunPipelineRequest, com.google.longrunning.Operation> + getRunPipelineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.RunPipelineRequest, + com.google.longrunning.Operation> + getRunPipelineMethod; if ((getRunPipelineMethod = PipelineServiceGrpc.getRunPipelineMethod) == null) { synchronized (PipelineServiceGrpc.class) { if ((getRunPipelineMethod = PipelineServiceGrpc.getRunPipelineMethod) == null) { - PipelineServiceGrpc.getRunPipelineMethod = getRunPipelineMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunPipeline")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.RunPipelineRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PipelineServiceMethodDescriptorSupplier("RunPipeline")) - .build(); + PipelineServiceGrpc.getRunPipelineMethod = + getRunPipelineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunPipeline")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.RunPipelineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new PipelineServiceMethodDescriptorSupplier("RunPipeline")) + .build(); } } } return getRunPipelineMethod; } - /** - * 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 PipelineServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PipelineServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PipelineServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PipelineServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PipelineServiceStub(channel, callOptions); + } + }; return PipelineServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static PipelineServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static PipelineServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PipelineServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PipelineServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PipelineServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PipelineServiceBlockingStub(channel, callOptions); + } + }; return PipelineServiceBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static PipelineServiceFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static PipelineServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PipelineServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PipelineServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PipelineServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PipelineServiceFutureStub(channel, callOptions); + } + }; return PipelineServiceFutureStub.newStub(factory, channel); } /** + * + * *
    * This service lets you manage pipelines.
    * 
@@ -101,71 +130,81 @@ public PipelineServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOp public interface AsyncService { /** + * + * *
      * Run a predefined pipeline.
      * 
*/ - default void runPipeline(com.google.cloud.contentwarehouse.v1.RunPipelineRequest request, + default void runPipeline( + com.google.cloud.contentwarehouse.v1.RunPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunPipelineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunPipelineMethod(), responseObserver); } } /** * Base class for the server implementation of the service PipelineService. + * *
    * This service lets you manage pipelines.
    * 
*/ - public static abstract class PipelineServiceImplBase + public abstract static class PipelineServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return PipelineServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service PipelineService. + * *
    * This service lets you manage pipelines.
    * 
*/ public static final class PipelineServiceStub extends io.grpc.stub.AbstractAsyncStub { - private PipelineServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private PipelineServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected PipelineServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected PipelineServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PipelineServiceStub(channel, callOptions); } /** + * + * *
      * Run a predefined pipeline.
      * 
*/ - public void runPipeline(com.google.cloud.contentwarehouse.v1.RunPipelineRequest request, + public void runPipeline( + com.google.cloud.contentwarehouse.v1.RunPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunPipelineMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRunPipelineMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service PipelineService. + * *
    * This service lets you manage pipelines.
    * 
*/ public static final class PipelineServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private PipelineServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private PipelineServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -176,11 +215,14 @@ protected PipelineServiceBlockingStub build( } /** + * + * *
      * Run a predefined pipeline.
      * 
*/ - public com.google.longrunning.Operation runPipeline(com.google.cloud.contentwarehouse.v1.RunPipelineRequest request) { + public com.google.longrunning.Operation runPipeline( + com.google.cloud.contentwarehouse.v1.RunPipelineRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRunPipelineMethod(), getCallOptions(), request); } @@ -188,14 +230,14 @@ public com.google.longrunning.Operation runPipeline(com.google.cloud.contentware /** * A stub to allow clients to do ListenableFuture-style rpc calls to service PipelineService. + * *
    * This service lets you manage pipelines.
    * 
*/ public static final class PipelineServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private PipelineServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private PipelineServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -206,12 +248,14 @@ protected PipelineServiceFutureStub build( } /** + * + * *
      * Run a predefined pipeline.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture runPipeline( - com.google.cloud.contentwarehouse.v1.RunPipelineRequest request) { + public com.google.common.util.concurrent.ListenableFuture + runPipeline(com.google.cloud.contentwarehouse.v1.RunPipelineRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRunPipelineMethod(), getCallOptions()), request); } @@ -219,11 +263,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -237,7 +281,8 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_RUN_PIPELINE: - serviceImpl.runPipeline((com.google.cloud.contentwarehouse.v1.RunPipelineRequest) request, + serviceImpl.runPipeline( + (com.google.cloud.contentwarehouse.v1.RunPipelineRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -259,17 +304,17 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getRunPipelineMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.RunPipelineRequest, - com.google.longrunning.Operation>( - service, METHODID_RUN_PIPELINE))) + getRunPipelineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.RunPipelineRequest, + com.google.longrunning.Operation>(service, METHODID_RUN_PIPELINE))) .build(); } - private static abstract class PipelineServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class PipelineServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { PipelineServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -311,10 +356,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (PipelineServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PipelineServiceFileDescriptorSupplier()) - .addMethod(getRunPipelineMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PipelineServiceFileDescriptorSupplier()) + .addMethod(getRunPipelineMethod()) + .build(); } } } diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java new file mode 100644 index 000000000000..48d79b7fb3c6 --- /dev/null +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java @@ -0,0 +1,850 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.contentwarehouse.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service to manage customer specific RuleSets.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/contentwarehouse/v1/ruleset_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class RuleSetServiceGrpc { + + private RuleSetServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.RuleSetService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet> + getCreateRuleSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRuleSet", + requestType = com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.RuleSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet> + getCreateRuleSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet> + getCreateRuleSetMethod; + if ((getCreateRuleSetMethod = RuleSetServiceGrpc.getCreateRuleSetMethod) == null) { + synchronized (RuleSetServiceGrpc.class) { + if ((getCreateRuleSetMethod = RuleSetServiceGrpc.getCreateRuleSetMethod) == null) { + RuleSetServiceGrpc.getCreateRuleSetMethod = + getCreateRuleSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRuleSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance())) + .setSchemaDescriptor( + new RuleSetServiceMethodDescriptorSupplier("CreateRuleSet")) + .build(); + } + } + } + return getCreateRuleSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet> + getGetRuleSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRuleSet", + requestType = com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.RuleSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet> + getGetRuleSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet> + getGetRuleSetMethod; + if ((getGetRuleSetMethod = RuleSetServiceGrpc.getGetRuleSetMethod) == null) { + synchronized (RuleSetServiceGrpc.class) { + if ((getGetRuleSetMethod = RuleSetServiceGrpc.getGetRuleSetMethod) == null) { + RuleSetServiceGrpc.getGetRuleSetMethod = + getGetRuleSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRuleSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance())) + .setSchemaDescriptor(new RuleSetServiceMethodDescriptorSupplier("GetRuleSet")) + .build(); + } + } + } + return getGetRuleSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet> + getUpdateRuleSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRuleSet", + requestType = com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.RuleSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet> + getUpdateRuleSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet> + getUpdateRuleSetMethod; + if ((getUpdateRuleSetMethod = RuleSetServiceGrpc.getUpdateRuleSetMethod) == null) { + synchronized (RuleSetServiceGrpc.class) { + if ((getUpdateRuleSetMethod = RuleSetServiceGrpc.getUpdateRuleSetMethod) == null) { + RuleSetServiceGrpc.getUpdateRuleSetMethod = + getUpdateRuleSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRuleSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance())) + .setSchemaDescriptor( + new RuleSetServiceMethodDescriptorSupplier("UpdateRuleSet")) + .build(); + } + } + } + return getUpdateRuleSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, com.google.protobuf.Empty> + getDeleteRuleSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRuleSet", + requestType = com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, com.google.protobuf.Empty> + getDeleteRuleSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, com.google.protobuf.Empty> + getDeleteRuleSetMethod; + if ((getDeleteRuleSetMethod = RuleSetServiceGrpc.getDeleteRuleSetMethod) == null) { + synchronized (RuleSetServiceGrpc.class) { + if ((getDeleteRuleSetMethod = RuleSetServiceGrpc.getDeleteRuleSetMethod) == null) { + RuleSetServiceGrpc.getDeleteRuleSetMethod = + getDeleteRuleSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRuleSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new RuleSetServiceMethodDescriptorSupplier("DeleteRuleSet")) + .build(); + } + } + } + return getDeleteRuleSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest, + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse> + getListRuleSetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuleSets", + requestType = com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest, + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse> + getListRuleSetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest, + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse> + getListRuleSetsMethod; + if ((getListRuleSetsMethod = RuleSetServiceGrpc.getListRuleSetsMethod) == null) { + synchronized (RuleSetServiceGrpc.class) { + if ((getListRuleSetsMethod = RuleSetServiceGrpc.getListRuleSetsMethod) == null) { + RuleSetServiceGrpc.getListRuleSetsMethod = + getListRuleSetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuleSets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RuleSetServiceMethodDescriptorSupplier("ListRuleSets")) + .build(); + } + } + } + return getListRuleSetsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static RuleSetServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RuleSetServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleSetServiceStub(channel, callOptions); + } + }; + return RuleSetServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static RuleSetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RuleSetServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleSetServiceBlockingStub(channel, callOptions); + } + }; + return RuleSetServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static RuleSetServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RuleSetServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleSetServiceFutureStub(channel, callOptions); + } + }; + return RuleSetServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service to manage customer specific RuleSets.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a ruleset.
+     * 
+ */ + default void createRuleSet( + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRuleSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
+     * 
+ */ + default void getRuleSet( + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRuleSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + default void updateRuleSet( + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateRuleSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + default void deleteRuleSet( + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRuleSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists rulesets.
+     * 
+ */ + default void listRuleSets( + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRuleSetsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service RuleSetService. + * + *
+   * Service to manage customer specific RuleSets.
+   * 
+ */ + public abstract static class RuleSetServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return RuleSetServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service RuleSetService. + * + *
+   * Service to manage customer specific RuleSets.
+   * 
+ */ + public static final class RuleSetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private RuleSetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RuleSetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleSetServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a ruleset.
+     * 
+ */ + public void createRuleSet( + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRuleSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
+     * 
+ */ + public void getRuleSet( + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRuleSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + public void updateRuleSet( + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRuleSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public void deleteRuleSet( + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRuleSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists rulesets.
+     * 
+ */ + public void listRuleSets( + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRuleSetsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service RuleSetService. + * + *
+   * Service to manage customer specific RuleSets.
+   * 
+ */ + public static final class RuleSetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private RuleSetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RuleSetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleSetServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a ruleset.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.RuleSet createRuleSet( + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRuleSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet( + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRuleSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.RuleSet updateRuleSet( + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRuleSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public com.google.protobuf.Empty deleteRuleSet( + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRuleSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists rulesets.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse listRuleSets( + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuleSetsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service RuleSetService. + * + *
+   * Service to manage customer specific RuleSets.
+   * 
+ */ + public static final class RuleSetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private RuleSetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RuleSetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleSetServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a ruleset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.RuleSet> + createRuleSet(com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRuleSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.RuleSet> + getRuleSet(com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRuleSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
+     * is non-empty and does not equal the existing name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.RuleSet> + updateRuleSet(com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRuleSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRuleSet(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRuleSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists rulesets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse> + listRuleSets(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuleSetsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_RULE_SET = 0; + private static final int METHODID_GET_RULE_SET = 1; + private static final int METHODID_UPDATE_RULE_SET = 2; + private static final int METHODID_DELETE_RULE_SET = 3; + private static final int METHODID_LIST_RULE_SETS = 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_CREATE_RULE_SET: + serviceImpl.createRuleSet( + (com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_RULE_SET: + serviceImpl.getRuleSet( + (com.google.cloud.contentwarehouse.v1.GetRuleSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_RULE_SET: + serviceImpl.updateRuleSet( + (com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_RULE_SET: + serviceImpl.deleteRuleSet( + (com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RULE_SETS: + serviceImpl.listRuleSets( + (com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse>) + 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( + getCreateRuleSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet>( + service, METHODID_CREATE_RULE_SET))) + .addMethod( + getGetRuleSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet>(service, METHODID_GET_RULE_SET))) + .addMethod( + getUpdateRuleSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest, + com.google.cloud.contentwarehouse.v1.RuleSet>( + service, METHODID_UPDATE_RULE_SET))) + .addMethod( + getDeleteRuleSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_RULE_SET))) + .addMethod( + getListRuleSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest, + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse>( + service, METHODID_LIST_RULE_SETS))) + .build(); + } + + private abstract static class RuleSetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + RuleSetServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("RuleSetService"); + } + } + + private static final class RuleSetServiceFileDescriptorSupplier + extends RuleSetServiceBaseDescriptorSupplier { + RuleSetServiceFileDescriptorSupplier() {} + } + + private static final class RuleSetServiceMethodDescriptorSupplier + extends RuleSetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + RuleSetServiceMethodDescriptorSupplier(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 (RuleSetServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RuleSetServiceFileDescriptorSupplier()) + .addMethod(getCreateRuleSetMethod()) + .addMethod(getGetRuleSetMethod()) + .addMethod(getUpdateRuleSetMethod()) + .addMethod(getDeleteRuleSetMethod()) + .addMethod(getListRuleSetsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java new file mode 100644 index 000000000000..6bc700e7cda9 --- /dev/null +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java @@ -0,0 +1,881 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.contentwarehouse.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A Service that manage/custom customer specified SynonymSets.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/contentwarehouse/v1/synonymset_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SynonymSetServiceGrpc { + + private SynonymSetServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.SynonymSetService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet> + getCreateSynonymSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSynonymSet", + requestType = com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.SynonymSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet> + getCreateSynonymSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet> + getCreateSynonymSetMethod; + if ((getCreateSynonymSetMethod = SynonymSetServiceGrpc.getCreateSynonymSetMethod) == null) { + synchronized (SynonymSetServiceGrpc.class) { + if ((getCreateSynonymSetMethod = SynonymSetServiceGrpc.getCreateSynonymSetMethod) == null) { + SynonymSetServiceGrpc.getCreateSynonymSetMethod = + getCreateSynonymSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSynonymSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())) + .setSchemaDescriptor( + new SynonymSetServiceMethodDescriptorSupplier("CreateSynonymSet")) + .build(); + } + } + } + return getCreateSynonymSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet> + getGetSynonymSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSynonymSet", + requestType = com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.SynonymSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet> + getGetSynonymSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet> + getGetSynonymSetMethod; + if ((getGetSynonymSetMethod = SynonymSetServiceGrpc.getGetSynonymSetMethod) == null) { + synchronized (SynonymSetServiceGrpc.class) { + if ((getGetSynonymSetMethod = SynonymSetServiceGrpc.getGetSynonymSetMethod) == null) { + SynonymSetServiceGrpc.getGetSynonymSetMethod = + getGetSynonymSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSynonymSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())) + .setSchemaDescriptor( + new SynonymSetServiceMethodDescriptorSupplier("GetSynonymSet")) + .build(); + } + } + } + return getGetSynonymSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet> + getUpdateSynonymSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSynonymSet", + requestType = com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.SynonymSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet> + getUpdateSynonymSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet> + getUpdateSynonymSetMethod; + if ((getUpdateSynonymSetMethod = SynonymSetServiceGrpc.getUpdateSynonymSetMethod) == null) { + synchronized (SynonymSetServiceGrpc.class) { + if ((getUpdateSynonymSetMethod = SynonymSetServiceGrpc.getUpdateSynonymSetMethod) == null) { + SynonymSetServiceGrpc.getUpdateSynonymSetMethod = + getUpdateSynonymSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSynonymSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())) + .setSchemaDescriptor( + new SynonymSetServiceMethodDescriptorSupplier("UpdateSynonymSet")) + .build(); + } + } + } + return getUpdateSynonymSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, com.google.protobuf.Empty> + getDeleteSynonymSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSynonymSet", + requestType = com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, com.google.protobuf.Empty> + getDeleteSynonymSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, com.google.protobuf.Empty> + getDeleteSynonymSetMethod; + if ((getDeleteSynonymSetMethod = SynonymSetServiceGrpc.getDeleteSynonymSetMethod) == null) { + synchronized (SynonymSetServiceGrpc.class) { + if ((getDeleteSynonymSetMethod = SynonymSetServiceGrpc.getDeleteSynonymSetMethod) == null) { + SynonymSetServiceGrpc.getDeleteSynonymSetMethod = + getDeleteSynonymSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSynonymSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SynonymSetServiceMethodDescriptorSupplier("DeleteSynonymSet")) + .build(); + } + } + } + return getDeleteSynonymSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest, + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse> + getListSynonymSetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSynonymSets", + requestType = com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.class, + responseType = com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest, + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse> + getListSynonymSetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest, + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse> + getListSynonymSetsMethod; + if ((getListSynonymSetsMethod = SynonymSetServiceGrpc.getListSynonymSetsMethod) == null) { + synchronized (SynonymSetServiceGrpc.class) { + if ((getListSynonymSetsMethod = SynonymSetServiceGrpc.getListSynonymSetsMethod) == null) { + SynonymSetServiceGrpc.getListSynonymSetsMethod = + getListSynonymSetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSynonymSets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SynonymSetServiceMethodDescriptorSupplier("ListSynonymSets")) + .build(); + } + } + } + return getListSynonymSetsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SynonymSetServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SynonymSetServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SynonymSetServiceStub(channel, callOptions); + } + }; + return SynonymSetServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SynonymSetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SynonymSetServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SynonymSetServiceBlockingStub(channel, callOptions); + } + }; + return SynonymSetServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SynonymSetServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SynonymSetServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SynonymSetServiceFutureStub(channel, callOptions); + } + }; + return SynonymSetServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A Service that manage/custom customer specified SynonymSets.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a SynonymSet for a single context.
+     * Throws an ALREADY_EXISTS exception if a synonymset already exists
+     * for the context.
+     * 
+ */ + default void createSynonymSet( + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSynonymSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a SynonymSet for a particular context.
+     * Throws a NOT_FOUND exception if the Synonymset
+     * does not exist
+     * 
+ */ + default void getSynonymSet( + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSynonymSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Remove the existing SynonymSet for the context and replaces it
+     * with a new one.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + default void updateSynonymSet( + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSynonymSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a SynonymSet for a given context.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + default void deleteSynonymSet( + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSynonymSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all SynonymSets (for all contexts) for the specified location.
+     * 
+ */ + default void listSynonymSets( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSynonymSetsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SynonymSetService. + * + *
+   * A Service that manage/custom customer specified SynonymSets.
+   * 
+ */ + public abstract static class SynonymSetServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SynonymSetServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SynonymSetService. + * + *
+   * A Service that manage/custom customer specified SynonymSets.
+   * 
+ */ + public static final class SynonymSetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SynonymSetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SynonymSetServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SynonymSetServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a SynonymSet for a single context.
+     * Throws an ALREADY_EXISTS exception if a synonymset already exists
+     * for the context.
+     * 
+ */ + public void createSynonymSet( + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSynonymSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a SynonymSet for a particular context.
+     * Throws a NOT_FOUND exception if the Synonymset
+     * does not exist
+     * 
+ */ + public void getSynonymSet( + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSynonymSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Remove the existing SynonymSet for the context and replaces it
+     * with a new one.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + public void updateSynonymSet( + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSynonymSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a SynonymSet for a given context.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + public void deleteSynonymSet( + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSynonymSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all SynonymSets (for all contexts) for the specified location.
+     * 
+ */ + public void listSynonymSets( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSynonymSetsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SynonymSetService. + * + *
+   * A Service that manage/custom customer specified SynonymSets.
+   * 
+ */ + public static final class SynonymSetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SynonymSetServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SynonymSetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SynonymSetServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a SynonymSet for a single context.
+     * Throws an ALREADY_EXISTS exception if a synonymset already exists
+     * for the context.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.SynonymSet createSynonymSet( + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSynonymSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a SynonymSet for a particular context.
+     * Throws a NOT_FOUND exception if the Synonymset
+     * does not exist
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet( + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSynonymSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Remove the existing SynonymSet for the context and replaces it
+     * with a new one.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.SynonymSet updateSynonymSet( + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSynonymSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a SynonymSet for a given context.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + public com.google.protobuf.Empty deleteSynonymSet( + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSynonymSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all SynonymSets (for all contexts) for the specified location.
+     * 
+ */ + public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse listSynonymSets( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSynonymSetsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SynonymSetService. + * + *
+   * A Service that manage/custom customer specified SynonymSets.
+   * 
+ */ + public static final class SynonymSetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SynonymSetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SynonymSetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SynonymSetServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a SynonymSet for a single context.
+     * Throws an ALREADY_EXISTS exception if a synonymset already exists
+     * for the context.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.SynonymSet> + createSynonymSet(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSynonymSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a SynonymSet for a particular context.
+     * Throws a NOT_FOUND exception if the Synonymset
+     * does not exist
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.SynonymSet> + getSynonymSet(com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSynonymSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Remove the existing SynonymSet for the context and replaces it
+     * with a new one.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.SynonymSet> + updateSynonymSet(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSynonymSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a SynonymSet for a given context.
+     * Throws a NOT_FOUND exception if the SynonymSet is not found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSynonymSet(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSynonymSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all SynonymSets (for all contexts) for the specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse> + listSynonymSets(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSynonymSetsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SYNONYM_SET = 0; + private static final int METHODID_GET_SYNONYM_SET = 1; + private static final int METHODID_UPDATE_SYNONYM_SET = 2; + private static final int METHODID_DELETE_SYNONYM_SET = 3; + private static final int METHODID_LIST_SYNONYM_SETS = 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_CREATE_SYNONYM_SET: + serviceImpl.createSynonymSet( + (com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SYNONYM_SET: + serviceImpl.getSynonymSet( + (com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SYNONYM_SET: + serviceImpl.updateSynonymSet( + (com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SYNONYM_SET: + serviceImpl.deleteSynonymSet( + (com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SYNONYM_SETS: + serviceImpl.listSynonymSets( + (com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse>) + 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( + getCreateSynonymSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet>( + service, METHODID_CREATE_SYNONYM_SET))) + .addMethod( + getGetSynonymSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet>( + service, METHODID_GET_SYNONYM_SET))) + .addMethod( + getUpdateSynonymSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest, + com.google.cloud.contentwarehouse.v1.SynonymSet>( + service, METHODID_UPDATE_SYNONYM_SET))) + .addMethod( + getDeleteSynonymSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SYNONYM_SET))) + .addMethod( + getListSynonymSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest, + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse>( + service, METHODID_LIST_SYNONYM_SETS))) + .build(); + } + + private abstract static class SynonymSetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SynonymSetServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SynonymSetService"); + } + } + + private static final class SynonymSetServiceFileDescriptorSupplier + extends SynonymSetServiceBaseDescriptorSupplier { + SynonymSetServiceFileDescriptorSupplier() {} + } + + private static final class SynonymSetServiceMethodDescriptorSupplier + extends SynonymSetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SynonymSetServiceMethodDescriptorSupplier(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 (SynonymSetServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SynonymSetServiceFileDescriptorSupplier()) + .addMethod(getCreateSynonymSetMethod()) + .addMethod(getGetSynonymSetMethod()) + .addMethod(getUpdateSynonymSetMethod()) + .addMethod(getDeleteSynonymSetMethod()) + .addMethod(getListSynonymSetsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java index 748cfeb44ac0..a87c4d31b065 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlAction.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents the action responsible for access control list management
  * operations.
@@ -11,49 +28,54 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.AccessControlAction}
  */
-public final class AccessControlAction extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AccessControlAction extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.AccessControlAction)
     AccessControlActionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AccessControlAction.newBuilder() to construct.
   private AccessControlAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AccessControlAction() {
     operationType_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AccessControlAction();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+        .internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+        .internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.AccessControlAction.class, com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder.class);
+            com.google.cloud.contentwarehouse.v1.AccessControlAction.class,
+            com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Type of ACL modification operation.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.AccessControlAction.OperationType} */ - public enum OperationType - implements com.google.protobuf.ProtocolMessageEnum { + public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The unknown operation type.
      * 
@@ -62,6 +84,8 @@ public enum OperationType */ UNKNOWN(0), /** + * + * *
      * Adds newly given policy bindings in the existing bindings list.
      * 
@@ -70,6 +94,8 @@ public enum OperationType */ ADD_POLICY_BINDING(1), /** + * + * *
      * Removes newly given policy bindings from the existing bindings list.
      * 
@@ -78,6 +104,8 @@ public enum OperationType */ REMOVE_POLICY_BINDING(2), /** + * + * *
      * Replaces existing policy bindings with the given policy binding list
      * 
@@ -89,6 +117,8 @@ public enum OperationType ; /** + * + * *
      * The unknown operation type.
      * 
@@ -97,6 +127,8 @@ public enum OperationType */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * Adds newly given policy bindings in the existing bindings list.
      * 
@@ -105,6 +137,8 @@ public enum OperationType */ public static final int ADD_POLICY_BINDING_VALUE = 1; /** + * + * *
      * Removes newly given policy bindings from the existing bindings list.
      * 
@@ -113,6 +147,8 @@ public enum OperationType */ public static final int REMOVE_POLICY_BINDING_VALUE = 2; /** + * + * *
      * Replaces existing policy bindings with the given policy binding list
      * 
@@ -121,7 +157,6 @@ public enum OperationType */ public static final int REPLACE_POLICY_BINDING_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -146,50 +181,53 @@ public static OperationType valueOf(int value) { */ public static OperationType forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return ADD_POLICY_BINDING; - case 2: return REMOVE_POLICY_BINDING; - case 3: return REPLACE_POLICY_BINDING; - default: return null; + case 0: + return UNKNOWN; + case 1: + return ADD_POLICY_BINDING; + case 2: + return REMOVE_POLICY_BINDING; + case 3: + return REPLACE_POLICY_BINDING; + 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< - OperationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OperationType findValueByNumber(int number) { - return OperationType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationType findValueByNumber(int number) { + return OperationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.AccessControlAction.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.AccessControlAction.getDescriptor() + .getEnumTypes() + .get(0); } private static final OperationType[] VALUES = values(); - public static OperationType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static OperationType 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; @@ -209,32 +247,48 @@ private OperationType(int value) { public static final int OPERATION_TYPE_FIELD_NUMBER = 1; private int operationType_ = 0; /** + * + * *
    * Identifies the type of operation.
    * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * + * * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override public int getOperationTypeValue() { + @java.lang.Override + public int getOperationTypeValue() { return operationType_; } /** + * + * *
    * Identifies the type of operation.
    * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * + * * @return The operationType. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType getOperationType() { - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.forNumber(operationType_); - return result == null ? com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType getOperationType() { + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.forNumber( + operationType_); + return result == null + ? com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNRECOGNIZED + : result; } public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v1.Policy policy_; /** + * + * *
    * Represents the new policy from which bindings are added, removed or
    * replaced based on the type of the operation. the policy is limited to a few
@@ -242,6 +296,7 @@ private OperationType(int value) {
    * 
* * .google.iam.v1.Policy policy = 2; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -249,6 +304,8 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Represents the new policy from which bindings are added, removed or
    * replaced based on the type of the operation. the policy is limited to a few
@@ -256,6 +313,7 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 2; + * * @return The policy. */ @java.lang.Override @@ -263,6 +321,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * Represents the new policy from which bindings are added, removed or
    * replaced based on the type of the operation. the policy is limited to a few
@@ -277,6 +337,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -288,9 +349,10 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    if (operationType_ != com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNKNOWN.getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    if (operationType_
+        != com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNKNOWN
+            .getNumber()) {
       output.writeEnum(1, operationType_);
     }
     if (policy_ != null) {
@@ -305,13 +367,13 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (operationType_ != com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNKNOWN.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(1, operationType_);
+    if (operationType_
+        != com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNKNOWN
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, operationType_);
     }
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getPolicy());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -321,18 +383,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.contentwarehouse.v1.AccessControlAction)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.AccessControlAction other = (com.google.cloud.contentwarehouse.v1.AccessControlAction) obj;
+    com.google.cloud.contentwarehouse.v1.AccessControlAction other =
+        (com.google.cloud.contentwarehouse.v1.AccessControlAction) obj;
 
     if (operationType_ != other.operationType_) return false;
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy()
-          .equals(other.getPolicy())) return false;
+      if (!getPolicy().equals(other.getPolicy())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -357,98 +419,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction 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.contentwarehouse.v1.AccessControlAction parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction 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.contentwarehouse.v1.AccessControlAction parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.AccessControlAction parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.AccessControlAction prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.AccessControlAction prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Represents the action responsible for access control list management
    * operations.
@@ -456,33 +524,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.AccessControlAction}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.AccessControlAction)
       com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+          .internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+          .internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.AccessControlAction.class, com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder.class);
+              com.google.cloud.contentwarehouse.v1.AccessControlAction.class,
+              com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.AccessControlAction.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -497,9 +564,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+          .internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
     }
 
     @java.lang.Override
@@ -518,8 +585,11 @@ public com.google.cloud.contentwarehouse.v1.AccessControlAction build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.AccessControlAction buildPartial() {
-      com.google.cloud.contentwarehouse.v1.AccessControlAction result = new com.google.cloud.contentwarehouse.v1.AccessControlAction(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.contentwarehouse.v1.AccessControlAction result =
+          new com.google.cloud.contentwarehouse.v1.AccessControlAction(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -530,9 +600,7 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.AccessControlAct
         result.operationType_ = operationType_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.policy_ = policyBuilder_ == null
-            ? policy_
-            : policyBuilder_.build();
+        result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build();
       }
     }
 
@@ -540,38 +608,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.AccessControlAct
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.AccessControlAction) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.AccessControlAction)other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.AccessControlAction) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -579,7 +648,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.AccessControlAction other) {
-      if (other == com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance()) return this;
+      if (other == com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance())
+        return this;
       if (other.operationType_ != 0) {
         setOperationTypeValue(other.getOperationTypeValue());
       }
@@ -612,24 +682,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              operationType_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getPolicyFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                operationType_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getPolicyFieldBuilder().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) {
@@ -639,26 +710,36 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int operationType_ = 0;
     /**
+     *
+     *
      * 
      * Identifies the type of operation.
      * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * + * * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override public int getOperationTypeValue() { + @java.lang.Override + public int getOperationTypeValue() { return operationType_; } /** + * + * *
      * Identifies the type of operation.
      * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * + * * @param value The enum numeric value on the wire for operationType to set. * @return This builder for chaining. */ @@ -669,28 +750,42 @@ public Builder setOperationTypeValue(int value) { return this; } /** + * + * *
      * Identifies the type of operation.
      * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * + * * @return The operationType. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType getOperationType() { - com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.forNumber(operationType_); - return result == null ? com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNRECOGNIZED : result; + public com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType + getOperationType() { + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType result = + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.forNumber( + operationType_); + return result == null + ? com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType.UNRECOGNIZED + : result; } /** + * + * *
      * Identifies the type of operation.
      * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * + * * @param value The operationType to set. * @return This builder for chaining. */ - public Builder setOperationType(com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType value) { + public Builder setOperationType( + com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType value) { if (value == null) { throw new NullPointerException(); } @@ -700,11 +795,15 @@ public Builder setOperationType(com.google.cloud.contentwarehouse.v1.AccessContr return this; } /** + * + * *
      * Identifies the type of operation.
      * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * + * * @return This builder for chaining. */ public Builder clearOperationType() { @@ -716,8 +815,13 @@ public Builder clearOperationType() { private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + policyBuilder_; /** + * + * *
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -725,12 +829,15 @@ public Builder clearOperationType() {
      * 
* * .google.iam.v1.Policy policy = 2; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -738,6 +845,7 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 2; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -748,6 +856,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -770,6 +880,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -778,8 +890,7 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
      *
      * .google.iam.v1.Policy policy = 2;
      */
-    public Builder setPolicy(
-        com.google.iam.v1.Policy.Builder builderForValue) {
+    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
       } else {
@@ -790,6 +901,8 @@ public Builder setPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -800,9 +913,9 @@ public Builder setPolicy(
      */
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          policy_ != null &&
-          policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && policy_ != null
+            && policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
           getPolicyBuilder().mergeFrom(value);
         } else {
           policy_ = value;
@@ -815,6 +928,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -834,6 +949,8 @@ public Builder clearPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -848,6 +965,8 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -860,11 +979,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ?
-            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
+     *
+     *
      * 
      * Represents the new policy from which bindings are added, removed or
      * replaced based on the type of the operation. the policy is limited to a few
@@ -874,21 +994,23 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v1.Policy policy = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
+            com.google.iam.v1.Policy,
+            com.google.iam.v1.Policy.Builder,
+            com.google.iam.v1.PolicyOrBuilder>
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
-                getPolicy(),
-                getParentForChildren(),
-                isClean());
+        policyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.iam.v1.Policy,
+                com.google.iam.v1.Policy.Builder,
+                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
         policy_ = null;
       }
       return policyBuilder_;
     }
+
     @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);
     }
 
@@ -898,12 +1020,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.AccessControlAction)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.AccessControlAction)
   private static final com.google.cloud.contentwarehouse.v1.AccessControlAction DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.AccessControlAction();
   }
@@ -912,27 +1034,27 @@ public static com.google.cloud.contentwarehouse.v1.AccessControlAction getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AccessControlAction parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 AccessControlAction parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -947,6 +1069,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.AccessControlAction getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java
similarity index 68%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java
index cdefe30c569d..e53f19db4dad 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlActionOrBuilder.java
@@ -1,32 +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/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface AccessControlActionOrBuilder extends
+public interface AccessControlActionOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.AccessControlAction)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Identifies the type of operation.
    * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * + * * @return The enum numeric value on the wire for operationType. */ int getOperationTypeValue(); /** + * + * *
    * Identifies the type of operation.
    * 
* - * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * .google.cloud.contentwarehouse.v1.AccessControlAction.OperationType operation_type = 1; + * + * * @return The operationType. */ com.google.cloud.contentwarehouse.v1.AccessControlAction.OperationType getOperationType(); /** + * + * *
    * Represents the new policy from which bindings are added, removed or
    * replaced based on the type of the operation. the policy is limited to a few
@@ -34,10 +60,13 @@ public interface AccessControlActionOrBuilder extends
    * 
* * .google.iam.v1.Policy policy = 2; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * Represents the new policy from which bindings are added, removed or
    * replaced based on the type of the operation. the policy is limited to a few
@@ -45,10 +74,13 @@ public interface AccessControlActionOrBuilder extends
    * 
* * .google.iam.v1.Policy policy = 2; + * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** + * + * *
    * Represents the new policy from which bindings are added, removed or
    * replaced based on the type of the operation. the policy is limited to a few
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java
similarity index 71%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java
index 82929009a903..e0b2df5fd292 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AccessControlMode.java
@@ -1,18 +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/contentwarehouse/v1/common.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Access Control Mode.
  * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.AccessControlMode} */ -public enum AccessControlMode - implements com.google.protobuf.ProtocolMessageEnum { +public enum AccessControlMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * This value is required by protobuf best practices
    * 
@@ -21,6 +39,8 @@ public enum AccessControlMode */ ACL_MODE_UNKNOWN(0), /** + * + * *
    * Universal Access: No document level access control.
    * 
@@ -29,6 +49,8 @@ public enum AccessControlMode */ ACL_MODE_UNIVERSAL_ACCESS(1), /** + * + * *
    * Document level access control with customer own Identity Service.
    * 
@@ -37,6 +59,8 @@ public enum AccessControlMode */ ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID(2), /** + * + * *
    * Document level access control using Google Cloud Identity.
    * 
@@ -48,6 +72,8 @@ public enum AccessControlMode ; /** + * + * *
    * This value is required by protobuf best practices
    * 
@@ -56,6 +82,8 @@ public enum AccessControlMode */ public static final int ACL_MODE_UNKNOWN_VALUE = 0; /** + * + * *
    * Universal Access: No document level access control.
    * 
@@ -64,6 +92,8 @@ public enum AccessControlMode */ public static final int ACL_MODE_UNIVERSAL_ACCESS_VALUE = 1; /** + * + * *
    * Document level access control with customer own Identity Service.
    * 
@@ -72,6 +102,8 @@ public enum AccessControlMode */ public static final int ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID_VALUE = 2; /** + * + * *
    * Document level access control using Google Cloud Identity.
    * 
@@ -80,7 +112,6 @@ public enum AccessControlMode */ public static final int ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -105,40 +136,44 @@ public static AccessControlMode valueOf(int value) { */ public static AccessControlMode forNumber(int value) { switch (value) { - case 0: return ACL_MODE_UNKNOWN; - case 1: return ACL_MODE_UNIVERSAL_ACCESS; - case 2: return ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID; - case 3: return ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI; - default: return null; + case 0: + return ACL_MODE_UNKNOWN; + case 1: + return ACL_MODE_UNIVERSAL_ACCESS; + case 2: + return ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID; + case 3: + return ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI; + 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< - AccessControlMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AccessControlMode findValueByNumber(int number) { - return AccessControlMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AccessControlMode findValueByNumber(int number) { + return AccessControlMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor().getEnumTypes().get(2); } @@ -147,8 +182,7 @@ public AccessControlMode findValueByNumber(int number) { public static AccessControlMode 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; @@ -164,4 +198,3 @@ private AccessControlMode(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.AccessControlMode) } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java similarity index 71% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java index b979bfd0c28a..bb5e90a0bae3 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Action.java @@ -1,53 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents the action triggered by Rule Engine when the rule is true.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.Action} */ -public final class Action extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Action extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.Action) ActionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Action.newBuilder() to construct. private Action(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Action() { actionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Action(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Action.class, com.google.cloud.contentwarehouse.v1.Action.Builder.class); + com.google.cloud.contentwarehouse.v1.Action.class, + com.google.cloud.contentwarehouse.v1.Action.Builder.class); } private int actionCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object action_; + public enum ActionCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ACCESS_CONTROL(2), DATA_VALIDATION(3), @@ -58,6 +80,7 @@ public enum ActionCase DELETE_DOCUMENT_ACTION(10), ACTION_NOT_SET(0); private final int value; + private ActionCase(int value) { this.value = value; } @@ -73,37 +96,49 @@ public static ActionCase valueOf(int value) { public static ActionCase forNumber(int value) { switch (value) { - case 2: return ACCESS_CONTROL; - case 3: return DATA_VALIDATION; - case 4: return DATA_UPDATE; - case 5: return ADD_TO_FOLDER; - case 6: return PUBLISH_TO_PUB_SUB; - case 9: return REMOVE_FROM_FOLDER_ACTION; - case 10: return DELETE_DOCUMENT_ACTION; - case 0: return ACTION_NOT_SET; - default: return null; + case 2: + return ACCESS_CONTROL; + case 3: + return DATA_VALIDATION; + case 4: + return DATA_UPDATE; + case 5: + return ADD_TO_FOLDER; + case 6: + return PUBLISH_TO_PUB_SUB; + case 9: + return REMOVE_FROM_FOLDER_ACTION; + case 10: + return DELETE_DOCUMENT_ACTION; + case 0: + return ACTION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ActionCase - getActionCase() { - return ActionCase.forNumber( - actionCase_); + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); } public static final int ACTION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object actionId_ = ""; /** + * + * *
    * ID of the action. Managed internally.
    * 
* * string action_id = 1; + * * @return The actionId. */ @java.lang.Override @@ -112,29 +147,29 @@ public java.lang.String getActionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionId_ = s; return s; } } /** + * + * *
    * ID of the action. Managed internally.
    * 
* * string action_id = 1; + * * @return The bytes for actionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getActionIdBytes() { + public com.google.protobuf.ByteString getActionIdBytes() { java.lang.Object ref = actionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); actionId_ = b; return b; } else { @@ -144,11 +179,14 @@ public java.lang.String getActionId() { public static final int ACCESS_CONTROL_FIELD_NUMBER = 2; /** + * + * *
    * Action triggering access control operations.
    * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; + * * @return Whether the accessControl field is set. */ @java.lang.Override @@ -156,21 +194,26 @@ public boolean hasAccessControl() { return actionCase_ == 2; } /** + * + * *
    * Action triggering access control operations.
    * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; + * * @return The accessControl. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.AccessControlAction getAccessControl() { if (actionCase_ == 2) { - return (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_; + return (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_; } return com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance(); } /** + * + * *
    * Action triggering access control operations.
    * 
@@ -178,20 +221,24 @@ public com.google.cloud.contentwarehouse.v1.AccessControlAction getAccessControl * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder getAccessControlOrBuilder() { + public com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder + getAccessControlOrBuilder() { if (actionCase_ == 2) { - return (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_; + return (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_; } return com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance(); } public static final int DATA_VALIDATION_FIELD_NUMBER = 3; /** + * + * *
    * Action triggering data validation operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; + * * @return Whether the dataValidation field is set. */ @java.lang.Override @@ -199,21 +246,26 @@ public boolean hasDataValidation() { return actionCase_ == 3; } /** + * + * *
    * Action triggering data validation operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; + * * @return The dataValidation. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DataValidationAction getDataValidation() { if (actionCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_; + return (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_; } return com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance(); } /** + * + * *
    * Action triggering data validation operations.
    * 
@@ -221,20 +273,24 @@ public com.google.cloud.contentwarehouse.v1.DataValidationAction getDataValidati * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder getDataValidationOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder + getDataValidationOrBuilder() { if (actionCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_; + return (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_; } return com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance(); } public static final int DATA_UPDATE_FIELD_NUMBER = 4; /** + * + * *
    * Action triggering data update operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; + * * @return Whether the dataUpdate field is set. */ @java.lang.Override @@ -242,21 +298,26 @@ public boolean hasDataUpdate() { return actionCase_ == 4; } /** + * + * *
    * Action triggering data update operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; + * * @return The dataUpdate. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DataUpdateAction getDataUpdate() { if (actionCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_; + return (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_; } return com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance(); } /** + * + * *
    * Action triggering data update operations.
    * 
@@ -266,18 +327,21 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction getDataUpdate() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder getDataUpdateOrBuilder() { if (actionCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_; + return (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_; } return com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance(); } public static final int ADD_TO_FOLDER_FIELD_NUMBER = 5; /** + * + * *
    * Action triggering create document link operation.
    * 
* * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; + * * @return Whether the addToFolder field is set. */ @java.lang.Override @@ -285,21 +349,26 @@ public boolean hasAddToFolder() { return actionCase_ == 5; } /** + * + * *
    * Action triggering create document link operation.
    * 
* * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; + * * @return The addToFolder. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.AddToFolderAction getAddToFolder() { if (actionCase_ == 5) { - return (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_; + return (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_; } return com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance(); } /** + * + * *
    * Action triggering create document link operation.
    * 
@@ -309,18 +378,21 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction getAddToFolder() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder getAddToFolderOrBuilder() { if (actionCase_ == 5) { - return (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_; + return (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_; } return com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance(); } public static final int PUBLISH_TO_PUB_SUB_FIELD_NUMBER = 6; /** + * + * *
    * Action publish to Pub/Sub operation.
    * 
* * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; + * * @return Whether the publishToPubSub field is set. */ @java.lang.Override @@ -328,21 +400,26 @@ public boolean hasPublishToPubSub() { return actionCase_ == 6; } /** + * + * *
    * Action publish to Pub/Sub operation.
    * 
* * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; + * * @return The publishToPubSub. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.PublishAction getPublishToPubSub() { if (actionCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.PublishAction) action_; + return (com.google.cloud.contentwarehouse.v1.PublishAction) action_; } return com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance(); } /** + * + * *
    * Action publish to Pub/Sub operation.
    * 
@@ -352,18 +429,22 @@ public com.google.cloud.contentwarehouse.v1.PublishAction getPublishToPubSub() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder getPublishToPubSubOrBuilder() { if (actionCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.PublishAction) action_; + return (com.google.cloud.contentwarehouse.v1.PublishAction) action_; } return com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance(); } public static final int REMOVE_FROM_FOLDER_ACTION_FIELD_NUMBER = 9; /** + * + * *
    * Action removing a document from a folder.
    * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * + * * @return Whether the removeFromFolderAction field is set. */ @java.lang.Override @@ -371,42 +452,54 @@ public boolean hasRemoveFromFolderAction() { return actionCase_ == 9; } /** + * + * *
    * Action removing a document from a folder.
    * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * + * * @return The removeFromFolderAction. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction getRemoveFromFolderAction() { if (actionCase_ == 9) { - return (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_; + return (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_; } return com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance(); } /** + * + * *
    * Action removing a document from a folder.
    * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder getRemoveFromFolderActionOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder + getRemoveFromFolderActionOrBuilder() { if (actionCase_ == 9) { - return (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_; + return (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_; } return com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance(); } public static final int DELETE_DOCUMENT_ACTION_FIELD_NUMBER = 10; /** + * + * *
    * Action deleting the document.
    * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * + * * @return Whether the deleteDocumentAction field is set. */ @java.lang.Override @@ -414,36 +507,45 @@ public boolean hasDeleteDocumentAction() { return actionCase_ == 10; } /** + * + * *
    * Action deleting the document.
    * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * + * * @return The deleteDocumentAction. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction getDeleteDocumentAction() { if (actionCase_ == 10) { - return (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_; + return (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_; } return com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance(); } /** + * + * *
    * Action deleting the document.
    * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder getDeleteDocumentActionOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder + getDeleteDocumentActionOrBuilder() { if (actionCase_ == 10) { - return (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_; + return (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_; } return com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -455,8 +557,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionId_); } @@ -494,32 +595,39 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, actionId_); } if (actionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_); } if (actionCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_); } if (actionCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_); } if (actionCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_); } if (actionCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.contentwarehouse.v1.PublishAction) action_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.contentwarehouse.v1.PublishAction) action_); } if (actionCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_); } if (actionCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -529,44 +637,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.Action)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.Action other = (com.google.cloud.contentwarehouse.v1.Action) obj; + com.google.cloud.contentwarehouse.v1.Action other = + (com.google.cloud.contentwarehouse.v1.Action) obj; - if (!getActionId() - .equals(other.getActionId())) return false; + if (!getActionId().equals(other.getActionId())) return false; if (!getActionCase().equals(other.getActionCase())) return false; switch (actionCase_) { case 2: - if (!getAccessControl() - .equals(other.getAccessControl())) return false; + if (!getAccessControl().equals(other.getAccessControl())) return false; break; case 3: - if (!getDataValidation() - .equals(other.getDataValidation())) return false; + if (!getDataValidation().equals(other.getDataValidation())) return false; break; case 4: - if (!getDataUpdate() - .equals(other.getDataUpdate())) return false; + if (!getDataUpdate().equals(other.getDataUpdate())) return false; break; case 5: - if (!getAddToFolder() - .equals(other.getAddToFolder())) return false; + if (!getAddToFolder().equals(other.getAddToFolder())) return false; break; case 6: - if (!getPublishToPubSub() - .equals(other.getPublishToPubSub())) return false; + if (!getPublishToPubSub().equals(other.getPublishToPubSub())) return false; break; case 9: - if (!getRemoveFromFolderAction() - .equals(other.getRemoveFromFolderAction())) return false; + if (!getRemoveFromFolderAction().equals(other.getRemoveFromFolderAction())) return false; break; case 10: - if (!getDeleteDocumentAction() - .equals(other.getDeleteDocumentAction())) return false; + if (!getDeleteDocumentAction().equals(other.getDeleteDocumentAction())) return false; break; case 0: default: @@ -621,132 +722,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.Action parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.Action parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.Action parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.Action parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.Action parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.Action parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.Action parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.Action 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.contentwarehouse.v1.Action parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Action parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.Action parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.Action 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.contentwarehouse.v1.Action parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.Action parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.Action prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the action triggered by Rule Engine when the rule is true.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.Action} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.Action) com.google.cloud.contentwarehouse.v1.ActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Action.class, com.google.cloud.contentwarehouse.v1.Action.Builder.class); + com.google.cloud.contentwarehouse.v1.Action.class, + com.google.cloud.contentwarehouse.v1.Action.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.Action.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -779,9 +884,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; } @java.lang.Override @@ -800,8 +905,11 @@ public com.google.cloud.contentwarehouse.v1.Action build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.Action buildPartial() { - com.google.cloud.contentwarehouse.v1.Action result = new com.google.cloud.contentwarehouse.v1.Action(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.Action result = + new com.google.cloud.contentwarehouse.v1.Action(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -817,32 +925,25 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Action result) { private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Action result) { result.actionCase_ = actionCase_; result.action_ = this.action_; - if (actionCase_ == 2 && - accessControlBuilder_ != null) { + if (actionCase_ == 2 && accessControlBuilder_ != null) { result.action_ = accessControlBuilder_.build(); } - if (actionCase_ == 3 && - dataValidationBuilder_ != null) { + if (actionCase_ == 3 && dataValidationBuilder_ != null) { result.action_ = dataValidationBuilder_.build(); } - if (actionCase_ == 4 && - dataUpdateBuilder_ != null) { + if (actionCase_ == 4 && dataUpdateBuilder_ != null) { result.action_ = dataUpdateBuilder_.build(); } - if (actionCase_ == 5 && - addToFolderBuilder_ != null) { + if (actionCase_ == 5 && addToFolderBuilder_ != null) { result.action_ = addToFolderBuilder_.build(); } - if (actionCase_ == 6 && - publishToPubSubBuilder_ != null) { + if (actionCase_ == 6 && publishToPubSubBuilder_ != null) { result.action_ = publishToPubSubBuilder_.build(); } - if (actionCase_ == 9 && - removeFromFolderActionBuilder_ != null) { + if (actionCase_ == 9 && removeFromFolderActionBuilder_ != null) { result.action_ = removeFromFolderActionBuilder_.build(); } - if (actionCase_ == 10 && - deleteDocumentActionBuilder_ != null) { + if (actionCase_ == 10 && deleteDocumentActionBuilder_ != null) { result.action_ = deleteDocumentActionBuilder_.build(); } } @@ -851,38 +952,39 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Action 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.contentwarehouse.v1.Action) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.Action)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.Action) other); } else { super.mergeFrom(other); return this; @@ -897,37 +999,45 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Action other) { onChanged(); } switch (other.getActionCase()) { - case ACCESS_CONTROL: { - mergeAccessControl(other.getAccessControl()); - break; - } - case DATA_VALIDATION: { - mergeDataValidation(other.getDataValidation()); - break; - } - case DATA_UPDATE: { - mergeDataUpdate(other.getDataUpdate()); - break; - } - case ADD_TO_FOLDER: { - mergeAddToFolder(other.getAddToFolder()); - break; - } - case PUBLISH_TO_PUB_SUB: { - mergePublishToPubSub(other.getPublishToPubSub()); - break; - } - case REMOVE_FROM_FOLDER_ACTION: { - mergeRemoveFromFolderAction(other.getRemoveFromFolderAction()); - break; - } - case DELETE_DOCUMENT_ACTION: { - mergeDeleteDocumentAction(other.getDeleteDocumentAction()); - break; - } - case ACTION_NOT_SET: { - break; - } + case ACCESS_CONTROL: + { + mergeAccessControl(other.getAccessControl()); + break; + } + case DATA_VALIDATION: + { + mergeDataValidation(other.getDataValidation()); + break; + } + case DATA_UPDATE: + { + mergeDataUpdate(other.getDataUpdate()); + break; + } + case ADD_TO_FOLDER: + { + mergeAddToFolder(other.getAddToFolder()); + break; + } + case PUBLISH_TO_PUB_SUB: + { + mergePublishToPubSub(other.getPublishToPubSub()); + break; + } + case REMOVE_FROM_FOLDER_ACTION: + { + mergeRemoveFromFolderAction(other.getRemoveFromFolderAction()); + break; + } + case DELETE_DOCUMENT_ACTION: + { + mergeDeleteDocumentAction(other.getDeleteDocumentAction()); + break; + } + case ACTION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -955,66 +1065,63 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - actionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getAccessControlFieldBuilder().getBuilder(), - extensionRegistry); - actionCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getDataValidationFieldBuilder().getBuilder(), - extensionRegistry); - actionCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getDataUpdateFieldBuilder().getBuilder(), - extensionRegistry); - actionCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getAddToFolderFieldBuilder().getBuilder(), - extensionRegistry); - actionCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getPublishToPubSubFieldBuilder().getBuilder(), - extensionRegistry); - actionCase_ = 6; - break; - } // case 50 - case 74: { - input.readMessage( - getRemoveFromFolderActionFieldBuilder().getBuilder(), - extensionRegistry); - actionCase_ = 9; - break; - } // case 74 - case 82: { - input.readMessage( - getDeleteDocumentActionFieldBuilder().getBuilder(), - extensionRegistry); - actionCase_ = 10; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + actionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAccessControlFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getDataValidationFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getDataUpdateFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getAddToFolderFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getPublishToPubSubFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 6; + break; + } // case 50 + case 74: + { + input.readMessage( + getRemoveFromFolderActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + getDeleteDocumentActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 10; + 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) { @@ -1024,12 +1131,12 @@ public Builder mergeFrom( } // finally return this; } + private int actionCase_ = 0; private java.lang.Object action_; - public ActionCase - getActionCase() { - return ActionCase.forNumber( - actionCase_); + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); } public Builder clearAction() { @@ -1043,18 +1150,20 @@ public Builder clearAction() { private java.lang.Object actionId_ = ""; /** + * + * *
      * ID of the action. Managed internally.
      * 
* * string action_id = 1; + * * @return The actionId. */ public java.lang.String getActionId() { java.lang.Object ref = actionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionId_ = s; return s; @@ -1063,20 +1172,21 @@ public java.lang.String getActionId() { } } /** + * + * *
      * ID of the action. Managed internally.
      * 
* * string action_id = 1; + * * @return The bytes for actionId. */ - public com.google.protobuf.ByteString - getActionIdBytes() { + public com.google.protobuf.ByteString getActionIdBytes() { java.lang.Object ref = actionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); actionId_ = b; return b; } else { @@ -1084,28 +1194,35 @@ public java.lang.String getActionId() { } } /** + * + * *
      * ID of the action. Managed internally.
      * 
* * string action_id = 1; + * * @param value The actionId to set. * @return This builder for chaining. */ - public Builder setActionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setActionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } actionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * ID of the action. Managed internally.
      * 
* * string action_id = 1; + * * @return This builder for chaining. */ public Builder clearActionId() { @@ -1115,17 +1232,21 @@ public Builder clearActionId() { return this; } /** + * + * *
      * ID of the action. Managed internally.
      * 
* * string action_id = 1; + * * @param value The bytes for actionId to set. * @return This builder for chaining. */ - public Builder setActionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setActionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); actionId_ = value; bitField0_ |= 0x00000001; @@ -1134,13 +1255,19 @@ public Builder setActionIdBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.AccessControlAction, com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder, com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder> accessControlBuilder_; + com.google.cloud.contentwarehouse.v1.AccessControlAction, + com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder, + com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder> + accessControlBuilder_; /** + * + * *
      * Action triggering access control operations.
      * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; + * * @return Whether the accessControl field is set. */ @java.lang.Override @@ -1148,11 +1275,14 @@ public boolean hasAccessControl() { return actionCase_ == 2; } /** + * + * *
      * Action triggering access control operations.
      * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; + * * @return The accessControl. */ @java.lang.Override @@ -1170,13 +1300,16 @@ public com.google.cloud.contentwarehouse.v1.AccessControlAction getAccessControl } } /** + * + * *
      * Action triggering access control operations.
      * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; */ - public Builder setAccessControl(com.google.cloud.contentwarehouse.v1.AccessControlAction value) { + public Builder setAccessControl( + com.google.cloud.contentwarehouse.v1.AccessControlAction value) { if (accessControlBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1190,6 +1323,8 @@ public Builder setAccessControl(com.google.cloud.contentwarehouse.v1.AccessContr return this; } /** + * + * *
      * Action triggering access control operations.
      * 
@@ -1208,18 +1343,25 @@ public Builder setAccessControl( return this; } /** + * + * *
      * Action triggering access control operations.
      * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; */ - public Builder mergeAccessControl(com.google.cloud.contentwarehouse.v1.AccessControlAction value) { + public Builder mergeAccessControl( + com.google.cloud.contentwarehouse.v1.AccessControlAction value) { if (accessControlBuilder_ == null) { - if (actionCase_ == 2 && - action_ != com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance()) { - action_ = com.google.cloud.contentwarehouse.v1.AccessControlAction.newBuilder((com.google.cloud.contentwarehouse.v1.AccessControlAction) action_) - .mergeFrom(value).buildPartial(); + if (actionCase_ == 2 + && action_ + != com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance()) { + action_ = + com.google.cloud.contentwarehouse.v1.AccessControlAction.newBuilder( + (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_) + .mergeFrom(value) + .buildPartial(); } else { action_ = value; } @@ -1235,6 +1377,8 @@ public Builder mergeAccessControl(com.google.cloud.contentwarehouse.v1.AccessCon return this; } /** + * + * *
      * Action triggering access control operations.
      * 
@@ -1258,16 +1402,21 @@ public Builder clearAccessControl() { return this; } /** + * + * *
      * Action triggering access control operations.
      * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; */ - public com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder getAccessControlBuilder() { + public com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder + getAccessControlBuilder() { return getAccessControlFieldBuilder().getBuilder(); } /** + * + * *
      * Action triggering access control operations.
      * 
@@ -1275,7 +1424,8 @@ public com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder getAcces * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder getAccessControlOrBuilder() { + public com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder + getAccessControlOrBuilder() { if ((actionCase_ == 2) && (accessControlBuilder_ != null)) { return accessControlBuilder_.getMessageOrBuilder(); } else { @@ -1286,6 +1436,8 @@ public com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder getAcce } } /** + * + * *
      * Action triggering access control operations.
      * 
@@ -1293,14 +1445,19 @@ public com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder getAcce * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.AccessControlAction, com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder, com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder> + com.google.cloud.contentwarehouse.v1.AccessControlAction, + com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder, + com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder> getAccessControlFieldBuilder() { if (accessControlBuilder_ == null) { if (!(actionCase_ == 2)) { action_ = com.google.cloud.contentwarehouse.v1.AccessControlAction.getDefaultInstance(); } - accessControlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.AccessControlAction, com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder, com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder>( + accessControlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.AccessControlAction, + com.google.cloud.contentwarehouse.v1.AccessControlAction.Builder, + com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.AccessControlAction) action_, getParentForChildren(), isClean()); @@ -1312,13 +1469,19 @@ public com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder getAcce } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DataValidationAction, com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder, com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder> dataValidationBuilder_; + com.google.cloud.contentwarehouse.v1.DataValidationAction, + com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder, + com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder> + dataValidationBuilder_; /** + * + * *
      * Action triggering data validation operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; + * * @return Whether the dataValidation field is set. */ @java.lang.Override @@ -1326,11 +1489,14 @@ public boolean hasDataValidation() { return actionCase_ == 3; } /** + * + * *
      * Action triggering data validation operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; + * * @return The dataValidation. */ @java.lang.Override @@ -1348,13 +1514,16 @@ public com.google.cloud.contentwarehouse.v1.DataValidationAction getDataValidati } } /** + * + * *
      * Action triggering data validation operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; */ - public Builder setDataValidation(com.google.cloud.contentwarehouse.v1.DataValidationAction value) { + public Builder setDataValidation( + com.google.cloud.contentwarehouse.v1.DataValidationAction value) { if (dataValidationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1368,6 +1537,8 @@ public Builder setDataValidation(com.google.cloud.contentwarehouse.v1.DataValida return this; } /** + * + * *
      * Action triggering data validation operations.
      * 
@@ -1386,18 +1557,25 @@ public Builder setDataValidation( return this; } /** + * + * *
      * Action triggering data validation operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; */ - public Builder mergeDataValidation(com.google.cloud.contentwarehouse.v1.DataValidationAction value) { + public Builder mergeDataValidation( + com.google.cloud.contentwarehouse.v1.DataValidationAction value) { if (dataValidationBuilder_ == null) { - if (actionCase_ == 3 && - action_ != com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance()) { - action_ = com.google.cloud.contentwarehouse.v1.DataValidationAction.newBuilder((com.google.cloud.contentwarehouse.v1.DataValidationAction) action_) - .mergeFrom(value).buildPartial(); + if (actionCase_ == 3 + && action_ + != com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance()) { + action_ = + com.google.cloud.contentwarehouse.v1.DataValidationAction.newBuilder( + (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_) + .mergeFrom(value) + .buildPartial(); } else { action_ = value; } @@ -1413,6 +1591,8 @@ public Builder mergeDataValidation(com.google.cloud.contentwarehouse.v1.DataVali return this; } /** + * + * *
      * Action triggering data validation operations.
      * 
@@ -1436,16 +1616,21 @@ public Builder clearDataValidation() { return this; } /** + * + * *
      * Action triggering data validation operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; */ - public com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder getDataValidationBuilder() { + public com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder + getDataValidationBuilder() { return getDataValidationFieldBuilder().getBuilder(); } /** + * + * *
      * Action triggering data validation operations.
      * 
@@ -1453,7 +1638,8 @@ public com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder getData * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder getDataValidationOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder + getDataValidationOrBuilder() { if ((actionCase_ == 3) && (dataValidationBuilder_ != null)) { return dataValidationBuilder_.getMessageOrBuilder(); } else { @@ -1464,6 +1650,8 @@ public com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder getDat } } /** + * + * *
      * Action triggering data validation operations.
      * 
@@ -1471,14 +1659,19 @@ public com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder getDat * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DataValidationAction, com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder, com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder> + com.google.cloud.contentwarehouse.v1.DataValidationAction, + com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder, + com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder> getDataValidationFieldBuilder() { if (dataValidationBuilder_ == null) { if (!(actionCase_ == 3)) { action_ = com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance(); } - dataValidationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DataValidationAction, com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder, com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder>( + dataValidationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DataValidationAction, + com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder, + com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.DataValidationAction) action_, getParentForChildren(), isClean()); @@ -1490,13 +1683,19 @@ public com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder getDat } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DataUpdateAction, com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder, com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder> dataUpdateBuilder_; + com.google.cloud.contentwarehouse.v1.DataUpdateAction, + com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder, + com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder> + dataUpdateBuilder_; /** + * + * *
      * Action triggering data update operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; + * * @return Whether the dataUpdate field is set. */ @java.lang.Override @@ -1504,11 +1703,14 @@ public boolean hasDataUpdate() { return actionCase_ == 4; } /** + * + * *
      * Action triggering data update operations.
      * 
* * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; + * * @return The dataUpdate. */ @java.lang.Override @@ -1526,6 +1728,8 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction getDataUpdate() { } } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1546,6 +1750,8 @@ public Builder setDataUpdate(com.google.cloud.contentwarehouse.v1.DataUpdateActi return this; } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1564,6 +1770,8 @@ public Builder setDataUpdate( return this; } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1572,10 +1780,14 @@ public Builder setDataUpdate( */ public Builder mergeDataUpdate(com.google.cloud.contentwarehouse.v1.DataUpdateAction value) { if (dataUpdateBuilder_ == null) { - if (actionCase_ == 4 && - action_ != com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance()) { - action_ = com.google.cloud.contentwarehouse.v1.DataUpdateAction.newBuilder((com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_) - .mergeFrom(value).buildPartial(); + if (actionCase_ == 4 + && action_ + != com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance()) { + action_ = + com.google.cloud.contentwarehouse.v1.DataUpdateAction.newBuilder( + (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_) + .mergeFrom(value) + .buildPartial(); } else { action_ = value; } @@ -1591,6 +1803,8 @@ public Builder mergeDataUpdate(com.google.cloud.contentwarehouse.v1.DataUpdateAc return this; } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1614,6 +1828,8 @@ public Builder clearDataUpdate() { return this; } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1624,6 +1840,8 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder getDataUpda return getDataUpdateFieldBuilder().getBuilder(); } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1642,6 +1860,8 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder getDataUpd } } /** + * + * *
      * Action triggering data update operations.
      * 
@@ -1649,14 +1869,19 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder getDataUpd * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DataUpdateAction, com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder, com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder> + com.google.cloud.contentwarehouse.v1.DataUpdateAction, + com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder, + com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder> getDataUpdateFieldBuilder() { if (dataUpdateBuilder_ == null) { if (!(actionCase_ == 4)) { action_ = com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance(); } - dataUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DataUpdateAction, com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder, com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder>( + dataUpdateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DataUpdateAction, + com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder, + com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.DataUpdateAction) action_, getParentForChildren(), isClean()); @@ -1668,13 +1893,19 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder getDataUpd } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.AddToFolderAction, com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder, com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder> addToFolderBuilder_; + com.google.cloud.contentwarehouse.v1.AddToFolderAction, + com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder, + com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder> + addToFolderBuilder_; /** + * + * *
      * Action triggering create document link operation.
      * 
* * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; + * * @return Whether the addToFolder field is set. */ @java.lang.Override @@ -1682,11 +1913,14 @@ public boolean hasAddToFolder() { return actionCase_ == 5; } /** + * + * *
      * Action triggering create document link operation.
      * 
* * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; + * * @return The addToFolder. */ @java.lang.Override @@ -1704,6 +1938,8 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction getAddToFolder() { } } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1724,6 +1960,8 @@ public Builder setAddToFolder(com.google.cloud.contentwarehouse.v1.AddToFolderAc return this; } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1742,6 +1980,8 @@ public Builder setAddToFolder( return this; } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1750,10 +1990,14 @@ public Builder setAddToFolder( */ public Builder mergeAddToFolder(com.google.cloud.contentwarehouse.v1.AddToFolderAction value) { if (addToFolderBuilder_ == null) { - if (actionCase_ == 5 && - action_ != com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance()) { - action_ = com.google.cloud.contentwarehouse.v1.AddToFolderAction.newBuilder((com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_) - .mergeFrom(value).buildPartial(); + if (actionCase_ == 5 + && action_ + != com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance()) { + action_ = + com.google.cloud.contentwarehouse.v1.AddToFolderAction.newBuilder( + (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_) + .mergeFrom(value) + .buildPartial(); } else { action_ = value; } @@ -1769,6 +2013,8 @@ public Builder mergeAddToFolder(com.google.cloud.contentwarehouse.v1.AddToFolder return this; } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1792,6 +2038,8 @@ public Builder clearAddToFolder() { return this; } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1802,6 +2050,8 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder getAddToFo return getAddToFolderFieldBuilder().getBuilder(); } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1809,7 +2059,8 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder getAddToFo * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder getAddToFolderOrBuilder() { + public com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder + getAddToFolderOrBuilder() { if ((actionCase_ == 5) && (addToFolderBuilder_ != null)) { return addToFolderBuilder_.getMessageOrBuilder(); } else { @@ -1820,6 +2071,8 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder getAddToF } } /** + * + * *
      * Action triggering create document link operation.
      * 
@@ -1827,14 +2080,19 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder getAddToF * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.AddToFolderAction, com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder, com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder> + com.google.cloud.contentwarehouse.v1.AddToFolderAction, + com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder, + com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder> getAddToFolderFieldBuilder() { if (addToFolderBuilder_ == null) { if (!(actionCase_ == 5)) { action_ = com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance(); } - addToFolderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.AddToFolderAction, com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder, com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder>( + addToFolderBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.AddToFolderAction, + com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder, + com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.AddToFolderAction) action_, getParentForChildren(), isClean()); @@ -1846,13 +2104,19 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder getAddToF } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PublishAction, com.google.cloud.contentwarehouse.v1.PublishAction.Builder, com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder> publishToPubSubBuilder_; + com.google.cloud.contentwarehouse.v1.PublishAction, + com.google.cloud.contentwarehouse.v1.PublishAction.Builder, + com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder> + publishToPubSubBuilder_; /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
* * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; + * * @return Whether the publishToPubSub field is set. */ @java.lang.Override @@ -1860,11 +2124,14 @@ public boolean hasPublishToPubSub() { return actionCase_ == 6; } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
* * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; + * * @return The publishToPubSub. */ @java.lang.Override @@ -1882,6 +2149,8 @@ public com.google.cloud.contentwarehouse.v1.PublishAction getPublishToPubSub() { } } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -1902,6 +2171,8 @@ public Builder setPublishToPubSub(com.google.cloud.contentwarehouse.v1.PublishAc return this; } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -1920,6 +2191,8 @@ public Builder setPublishToPubSub( return this; } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -1928,10 +2201,13 @@ public Builder setPublishToPubSub( */ public Builder mergePublishToPubSub(com.google.cloud.contentwarehouse.v1.PublishAction value) { if (publishToPubSubBuilder_ == null) { - if (actionCase_ == 6 && - action_ != com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance()) { - action_ = com.google.cloud.contentwarehouse.v1.PublishAction.newBuilder((com.google.cloud.contentwarehouse.v1.PublishAction) action_) - .mergeFrom(value).buildPartial(); + if (actionCase_ == 6 + && action_ != com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance()) { + action_ = + com.google.cloud.contentwarehouse.v1.PublishAction.newBuilder( + (com.google.cloud.contentwarehouse.v1.PublishAction) action_) + .mergeFrom(value) + .buildPartial(); } else { action_ = value; } @@ -1947,6 +2223,8 @@ public Builder mergePublishToPubSub(com.google.cloud.contentwarehouse.v1.Publish return this; } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -1970,6 +2248,8 @@ public Builder clearPublishToPubSub() { return this; } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -1980,6 +2260,8 @@ public com.google.cloud.contentwarehouse.v1.PublishAction.Builder getPublishToPu return getPublishToPubSubFieldBuilder().getBuilder(); } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -1987,7 +2269,8 @@ public com.google.cloud.contentwarehouse.v1.PublishAction.Builder getPublishToPu * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder getPublishToPubSubOrBuilder() { + public com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder + getPublishToPubSubOrBuilder() { if ((actionCase_ == 6) && (publishToPubSubBuilder_ != null)) { return publishToPubSubBuilder_.getMessageOrBuilder(); } else { @@ -1998,6 +2281,8 @@ public com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder getPublishToP } } /** + * + * *
      * Action publish to Pub/Sub operation.
      * 
@@ -2005,14 +2290,19 @@ public com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder getPublishToP * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PublishAction, com.google.cloud.contentwarehouse.v1.PublishAction.Builder, com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder> + com.google.cloud.contentwarehouse.v1.PublishAction, + com.google.cloud.contentwarehouse.v1.PublishAction.Builder, + com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder> getPublishToPubSubFieldBuilder() { if (publishToPubSubBuilder_ == null) { if (!(actionCase_ == 6)) { action_ = com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance(); } - publishToPubSubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PublishAction, com.google.cloud.contentwarehouse.v1.PublishAction.Builder, com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder>( + publishToPubSubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.PublishAction, + com.google.cloud.contentwarehouse.v1.PublishAction.Builder, + com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.PublishAction) action_, getParentForChildren(), isClean()); @@ -2024,13 +2314,20 @@ public com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder getPublishToP } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction, com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder, com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder> removeFromFolderActionBuilder_; + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction, + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder, + com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder> + removeFromFolderActionBuilder_; /** + * + * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * + * * @return Whether the removeFromFolderAction field is set. */ @java.lang.Override @@ -2038,11 +2335,15 @@ public boolean hasRemoveFromFolderAction() { return actionCase_ == 9; } /** + * + * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * + * * @return The removeFromFolderAction. */ @java.lang.Override @@ -2060,13 +2361,17 @@ public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction getRemoveFrom } } /** + * + * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * */ - public Builder setRemoveFromFolderAction(com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction value) { + public Builder setRemoveFromFolderAction( + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction value) { if (removeFromFolderActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2080,11 +2385,14 @@ public Builder setRemoveFromFolderAction(com.google.cloud.contentwarehouse.v1.Re return this; } /** + * + * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * */ public Builder setRemoveFromFolderAction( com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder builderForValue) { @@ -2098,18 +2406,27 @@ public Builder setRemoveFromFolderAction( return this; } /** + * + * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * */ - public Builder mergeRemoveFromFolderAction(com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction value) { + public Builder mergeRemoveFromFolderAction( + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction value) { if (removeFromFolderActionBuilder_ == null) { - if (actionCase_ == 9 && - action_ != com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance()) { - action_ = com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.newBuilder((com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_) - .mergeFrom(value).buildPartial(); + if (actionCase_ == 9 + && action_ + != com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction + .getDefaultInstance()) { + action_ = + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.newBuilder( + (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_) + .mergeFrom(value) + .buildPartial(); } else { action_ = value; } @@ -2125,11 +2442,14 @@ public Builder mergeRemoveFromFolderAction(com.google.cloud.contentwarehouse.v1. return this; } /** + * + * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * */ public Builder clearRemoveFromFolderAction() { if (removeFromFolderActionBuilder_ == null) { @@ -2148,24 +2468,32 @@ public Builder clearRemoveFromFolderAction() { return this; } /** + * + * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * */ - public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder getRemoveFromFolderActionBuilder() { + public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder + getRemoveFromFolderActionBuilder() { return getRemoveFromFolderActionFieldBuilder().getBuilder(); } /** + * + * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder getRemoveFromFolderActionOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder + getRemoveFromFolderActionOrBuilder() { if ((actionCase_ == 9) && (removeFromFolderActionBuilder_ != null)) { return removeFromFolderActionBuilder_.getMessageOrBuilder(); } else { @@ -2176,21 +2504,30 @@ public com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder getR } } /** + * + * *
      * Action removing a document from a folder.
      * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction, com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder, com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder> + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction, + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder, + com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder> getRemoveFromFolderActionFieldBuilder() { if (removeFromFolderActionBuilder_ == null) { if (!(actionCase_ == 9)) { - action_ = com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance(); - } - removeFromFolderActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction, com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder, com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder>( + action_ = + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance(); + } + removeFromFolderActionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction, + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder, + com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) action_, getParentForChildren(), isClean()); @@ -2202,13 +2539,20 @@ public com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder getR } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction, com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder, com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder> deleteDocumentActionBuilder_; + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction, + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder, + com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder> + deleteDocumentActionBuilder_; /** + * + * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * + * * @return Whether the deleteDocumentAction field is set. */ @java.lang.Override @@ -2216,11 +2560,15 @@ public boolean hasDeleteDocumentAction() { return actionCase_ == 10; } /** + * + * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * + * * @return The deleteDocumentAction. */ @java.lang.Override @@ -2238,13 +2586,17 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction getDeleteDocume } } /** + * + * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * */ - public Builder setDeleteDocumentAction(com.google.cloud.contentwarehouse.v1.DeleteDocumentAction value) { + public Builder setDeleteDocumentAction( + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction value) { if (deleteDocumentActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2258,11 +2610,14 @@ public Builder setDeleteDocumentAction(com.google.cloud.contentwarehouse.v1.Dele return this; } /** + * + * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * */ public Builder setDeleteDocumentAction( com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder builderForValue) { @@ -2276,18 +2631,26 @@ public Builder setDeleteDocumentAction( return this; } /** + * + * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * */ - public Builder mergeDeleteDocumentAction(com.google.cloud.contentwarehouse.v1.DeleteDocumentAction value) { + public Builder mergeDeleteDocumentAction( + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction value) { if (deleteDocumentActionBuilder_ == null) { - if (actionCase_ == 10 && - action_ != com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance()) { - action_ = com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.newBuilder((com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_) - .mergeFrom(value).buildPartial(); + if (actionCase_ == 10 + && action_ + != com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance()) { + action_ = + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.newBuilder( + (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_) + .mergeFrom(value) + .buildPartial(); } else { action_ = value; } @@ -2303,11 +2666,14 @@ public Builder mergeDeleteDocumentAction(com.google.cloud.contentwarehouse.v1.De return this; } /** + * + * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * */ public Builder clearDeleteDocumentAction() { if (deleteDocumentActionBuilder_ == null) { @@ -2326,24 +2692,32 @@ public Builder clearDeleteDocumentAction() { return this; } /** + * + * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * */ - public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder getDeleteDocumentActionBuilder() { + public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder + getDeleteDocumentActionBuilder() { return getDeleteDocumentActionFieldBuilder().getBuilder(); } /** + * + * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder getDeleteDocumentActionOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder + getDeleteDocumentActionOrBuilder() { if ((actionCase_ == 10) && (deleteDocumentActionBuilder_ != null)) { return deleteDocumentActionBuilder_.getMessageOrBuilder(); } else { @@ -2354,21 +2728,29 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder getDel } } /** + * + * *
      * Action deleting the document.
      * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction, com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder, com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder> + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction, + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder, + com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder> getDeleteDocumentActionFieldBuilder() { if (deleteDocumentActionBuilder_ == null) { if (!(actionCase_ == 10)) { action_ = com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance(); } - deleteDocumentActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction, com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder, com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder>( + deleteDocumentActionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction, + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder, + com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder>( (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) action_, getParentForChildren(), isClean()); @@ -2378,9 +2760,9 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder getDel onChanged(); return deleteDocumentActionBuilder_; } + @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); } @@ -2390,12 +2772,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.Action) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.Action) private static final com.google.cloud.contentwarehouse.v1.Action DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.Action(); } @@ -2404,27 +2786,27 @@ public static com.google.cloud.contentwarehouse.v1.Action getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Action parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Action parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2439,6 +2821,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.Action getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java index 489c63f103d1..c83047c8d9b9 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutput.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents the output of the Action Executor.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ActionExecutorOutput} */ -public final class ActionExecutorOutput extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ActionExecutorOutput extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ActionExecutorOutput) ActionExecutorOutputOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ActionExecutorOutput.newBuilder() to construct. private ActionExecutorOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ActionExecutorOutput() { ruleActionsPairs_ = 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 ActionExecutorOutput(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.class, com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder.class); + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.class, + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder.class); } public static final int RULE_ACTIONS_PAIRS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List ruleActionsPairs_; /** + * + * *
    * List of rule and corresponding actions result.
    * 
@@ -54,10 +76,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ @java.lang.Override - public java.util.List getRuleActionsPairsList() { + public java.util.List + getRuleActionsPairsList() { return ruleActionsPairs_; } /** + * + * *
    * List of rule and corresponding actions result.
    * 
@@ -65,11 +90,13 @@ public java.util.List getR * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRuleActionsPairsOrBuilderList() { return ruleActionsPairs_; } /** + * + * *
    * List of rule and corresponding actions result.
    * 
@@ -81,6 +108,8 @@ public int getRuleActionsPairsCount() { return ruleActionsPairs_.size(); } /** + * + * *
    * List of rule and corresponding actions result.
    * 
@@ -92,6 +121,8 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair getRuleActionsPairs( return ruleActionsPairs_.get(index); } /** + * + * *
    * List of rule and corresponding actions result.
    * 
@@ -105,6 +136,7 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder getRuleActi } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < ruleActionsPairs_.size(); i++) { output.writeMessage(1, ruleActionsPairs_.get(i)); } @@ -131,8 +162,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < ruleActionsPairs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, ruleActionsPairs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ruleActionsPairs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -142,15 +172,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.contentwarehouse.v1.ActionExecutorOutput)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput other = (com.google.cloud.contentwarehouse.v1.ActionExecutorOutput) obj; + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput other = + (com.google.cloud.contentwarehouse.v1.ActionExecutorOutput) obj; - if (!getRuleActionsPairsList() - .equals(other.getRuleActionsPairsList())) return false; + if (!getRuleActionsPairsList().equals(other.getRuleActionsPairsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,131 +202,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput 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.contentwarehouse.v1.ActionExecutorOutput parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput 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.contentwarehouse.v1.ActionExecutorOutput parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ActionExecutorOutput prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the output of the Action Executor.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ActionExecutorOutput} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ActionExecutorOutput) com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.class, com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder.class); + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.class, + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; } @java.lang.Override @@ -333,14 +368,18 @@ public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput buildPartial() { - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput result = new com.google.cloud.contentwarehouse.v1.ActionExecutorOutput(this); + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput result = + new com.google.cloud.contentwarehouse.v1.ActionExecutorOutput(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.ActionExecutorOutput result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput result) { if (ruleActionsPairsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { ruleActionsPairs_ = java.util.Collections.unmodifiableList(ruleActionsPairs_); @@ -360,38 +399,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ActionExecutorOu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ActionExecutorOutput) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ActionExecutorOutput)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ActionExecutorOutput) other); } else { super.mergeFrom(other); return this; @@ -399,7 +439,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ActionExecutorOutput other) { - if (other == com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance()) + return this; if (ruleActionsPairsBuilder_ == null) { if (!other.ruleActionsPairs_.isEmpty()) { if (ruleActionsPairs_.isEmpty()) { @@ -418,9 +459,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ActionExecutorOutp ruleActionsPairsBuilder_ = null; ruleActionsPairs_ = other.ruleActionsPairs_; bitField0_ = (bitField0_ & ~0x00000001); - ruleActionsPairsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRuleActionsPairsFieldBuilder() : null; + ruleActionsPairsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRuleActionsPairsFieldBuilder() + : null; } else { ruleActionsPairsBuilder_.addAllMessages(other.ruleActionsPairs_); } @@ -452,25 +494,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.RuleActionsPair m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.RuleActionsPair.parser(), - extensionRegistry); - if (ruleActionsPairsBuilder_ == null) { - ensureRuleActionsPairsIsMutable(); - ruleActionsPairs_.add(m); - } else { - ruleActionsPairsBuilder_.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.contentwarehouse.v1.RuleActionsPair m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.RuleActionsPair.parser(), + extensionRegistry); + if (ruleActionsPairsBuilder_ == null) { + ensureRuleActionsPairsIsMutable(); + ruleActionsPairs_.add(m); + } else { + ruleActionsPairsBuilder_.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) { @@ -480,28 +524,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List ruleActionsPairs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRuleActionsPairsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - ruleActionsPairs_ = new java.util.ArrayList(ruleActionsPairs_); + ruleActionsPairs_ = + new java.util.ArrayList( + ruleActionsPairs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleActionsPair, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder, com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder> ruleActionsPairsBuilder_; + com.google.cloud.contentwarehouse.v1.RuleActionsPair, + com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder, + com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder> + ruleActionsPairsBuilder_; /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ - public java.util.List getRuleActionsPairsList() { + public java.util.List + getRuleActionsPairsList() { if (ruleActionsPairsBuilder_ == null) { return java.util.Collections.unmodifiableList(ruleActionsPairs_); } else { @@ -509,11 +564,14 @@ public java.util.List getR } } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public int getRuleActionsPairsCount() { if (ruleActionsPairsBuilder_ == null) { @@ -523,11 +581,14 @@ public int getRuleActionsPairsCount() { } } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public com.google.cloud.contentwarehouse.v1.RuleActionsPair getRuleActionsPairs(int index) { if (ruleActionsPairsBuilder_ == null) { @@ -537,11 +598,14 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair getRuleActionsPairs( } } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public Builder setRuleActionsPairs( int index, com.google.cloud.contentwarehouse.v1.RuleActionsPair value) { @@ -558,11 +622,14 @@ public Builder setRuleActionsPairs( return this; } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public Builder setRuleActionsPairs( int index, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder builderForValue) { @@ -576,11 +643,14 @@ public Builder setRuleActionsPairs( return this; } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public Builder addRuleActionsPairs(com.google.cloud.contentwarehouse.v1.RuleActionsPair value) { if (ruleActionsPairsBuilder_ == null) { @@ -596,11 +666,14 @@ public Builder addRuleActionsPairs(com.google.cloud.contentwarehouse.v1.RuleActi return this; } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public Builder addRuleActionsPairs( int index, com.google.cloud.contentwarehouse.v1.RuleActionsPair value) { @@ -617,11 +690,14 @@ public Builder addRuleActionsPairs( return this; } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public Builder addRuleActionsPairs( com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder builderForValue) { @@ -635,11 +711,14 @@ public Builder addRuleActionsPairs( return this; } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public Builder addRuleActionsPairs( int index, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder builderForValue) { @@ -653,18 +732,20 @@ public Builder addRuleActionsPairs( return this; } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public Builder addAllRuleActionsPairs( java.lang.Iterable values) { if (ruleActionsPairsBuilder_ == null) { ensureRuleActionsPairsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ruleActionsPairs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ruleActionsPairs_); onChanged(); } else { ruleActionsPairsBuilder_.addAllMessages(values); @@ -672,11 +753,14 @@ public Builder addAllRuleActionsPairs( return this; } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public Builder clearRuleActionsPairs() { if (ruleActionsPairsBuilder_ == null) { @@ -689,11 +773,14 @@ public Builder clearRuleActionsPairs() { return this; } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public Builder removeRuleActionsPairs(int index) { if (ruleActionsPairsBuilder_ == null) { @@ -706,39 +793,49 @@ public Builder removeRuleActionsPairs(int index) { return this; } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder getRuleActionsPairsBuilder( int index) { return getRuleActionsPairsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ - public com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder getRuleActionsPairsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder + getRuleActionsPairsOrBuilder(int index) { if (ruleActionsPairsBuilder_ == null) { - return ruleActionsPairs_.get(index); } else { + return ruleActionsPairs_.get(index); + } else { return ruleActionsPairsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ - public java.util.List - getRuleActionsPairsOrBuilderList() { + public java.util.List + getRuleActionsPairsOrBuilderList() { if (ruleActionsPairsBuilder_ != null) { return ruleActionsPairsBuilder_.getMessageOrBuilderList(); } else { @@ -746,45 +843,62 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder getRuleActi } } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ - public com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder addRuleActionsPairsBuilder() { - return getRuleActionsPairsFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.RuleActionsPair.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder + addRuleActionsPairsBuilder() { + return getRuleActionsPairsFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.RuleActionsPair.getDefaultInstance()); } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ public com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder addRuleActionsPairsBuilder( int index) { - return getRuleActionsPairsFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.RuleActionsPair.getDefaultInstance()); + return getRuleActionsPairsFieldBuilder() + .addBuilder( + index, com.google.cloud.contentwarehouse.v1.RuleActionsPair.getDefaultInstance()); } /** + * + * *
      * List of rule and corresponding actions result.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; + * */ - public java.util.List - getRuleActionsPairsBuilderList() { + public java.util.List + getRuleActionsPairsBuilderList() { return getRuleActionsPairsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleActionsPair, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder, com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder> + com.google.cloud.contentwarehouse.v1.RuleActionsPair, + com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder, + com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder> getRuleActionsPairsFieldBuilder() { if (ruleActionsPairsBuilder_ == null) { - ruleActionsPairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleActionsPair, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder, com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder>( + ruleActionsPairsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RuleActionsPair, + com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder, + com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder>( ruleActionsPairs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -793,9 +907,9 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder addRuleActio } return ruleActionsPairsBuilder_; } + @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); } @@ -805,12 +919,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ActionExecutorOutput) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ActionExecutorOutput) private static final com.google.cloud.contentwarehouse.v1.ActionExecutorOutput DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ActionExecutorOutput(); } @@ -819,27 +933,27 @@ public static com.google.cloud.contentwarehouse.v1.ActionExecutorOutput getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActionExecutorOutput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ActionExecutorOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,6 +968,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java similarity index 68% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java index 7edc4c07b9cc..9da31e16321a 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionExecutorOutputOrBuilder.java @@ -1,22 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface ActionExecutorOutputOrBuilder extends +public interface ActionExecutorOutputOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ActionExecutorOutput) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of rule and corresponding actions result.
    * 
* * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ - java.util.List - getRuleActionsPairsList(); + java.util.List getRuleActionsPairsList(); /** + * + * *
    * List of rule and corresponding actions result.
    * 
@@ -25,6 +44,8 @@ public interface ActionExecutorOutputOrBuilder extends */ com.google.cloud.contentwarehouse.v1.RuleActionsPair getRuleActionsPairs(int index); /** + * + * *
    * List of rule and corresponding actions result.
    * 
@@ -33,15 +54,19 @@ public interface ActionExecutorOutputOrBuilder extends */ int getRuleActionsPairsCount(); /** + * + * *
    * List of rule and corresponding actions result.
    * 
* * repeated .google.cloud.contentwarehouse.v1.RuleActionsPair rule_actions_pairs = 1; */ - java.util.List + java.util.List getRuleActionsPairsOrBuilderList(); /** + * + * *
    * List of rule and corresponding actions result.
    * 
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java similarity index 82% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java index e85b75af84ae..26f88a93b89a 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOrBuilder.java @@ -1,51 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface ActionOrBuilder extends +public interface ActionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.Action) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * ID of the action. Managed internally.
    * 
* * string action_id = 1; + * * @return The actionId. */ java.lang.String getActionId(); /** + * + * *
    * ID of the action. Managed internally.
    * 
* * string action_id = 1; + * * @return The bytes for actionId. */ - com.google.protobuf.ByteString - getActionIdBytes(); + com.google.protobuf.ByteString getActionIdBytes(); /** + * + * *
    * Action triggering access control operations.
    * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; + * * @return Whether the accessControl field is set. */ boolean hasAccessControl(); /** + * + * *
    * Action triggering access control operations.
    * 
* * .google.cloud.contentwarehouse.v1.AccessControlAction access_control = 2; + * * @return The accessControl. */ com.google.cloud.contentwarehouse.v1.AccessControlAction getAccessControl(); /** + * + * *
    * Action triggering access control operations.
    * 
@@ -55,24 +84,32 @@ public interface ActionOrBuilder extends com.google.cloud.contentwarehouse.v1.AccessControlActionOrBuilder getAccessControlOrBuilder(); /** + * + * *
    * Action triggering data validation operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; + * * @return Whether the dataValidation field is set. */ boolean hasDataValidation(); /** + * + * *
    * Action triggering data validation operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataValidationAction data_validation = 3; + * * @return The dataValidation. */ com.google.cloud.contentwarehouse.v1.DataValidationAction getDataValidation(); /** + * + * *
    * Action triggering data validation operations.
    * 
@@ -82,24 +119,32 @@ public interface ActionOrBuilder extends com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder getDataValidationOrBuilder(); /** + * + * *
    * Action triggering data update operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; + * * @return Whether the dataUpdate field is set. */ boolean hasDataUpdate(); /** + * + * *
    * Action triggering data update operations.
    * 
* * .google.cloud.contentwarehouse.v1.DataUpdateAction data_update = 4; + * * @return The dataUpdate. */ com.google.cloud.contentwarehouse.v1.DataUpdateAction getDataUpdate(); /** + * + * *
    * Action triggering data update operations.
    * 
@@ -109,24 +154,32 @@ public interface ActionOrBuilder extends com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder getDataUpdateOrBuilder(); /** + * + * *
    * Action triggering create document link operation.
    * 
* * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; + * * @return Whether the addToFolder field is set. */ boolean hasAddToFolder(); /** + * + * *
    * Action triggering create document link operation.
    * 
* * .google.cloud.contentwarehouse.v1.AddToFolderAction add_to_folder = 5; + * * @return The addToFolder. */ com.google.cloud.contentwarehouse.v1.AddToFolderAction getAddToFolder(); /** + * + * *
    * Action triggering create document link operation.
    * 
@@ -136,24 +189,32 @@ public interface ActionOrBuilder extends com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder getAddToFolderOrBuilder(); /** + * + * *
    * Action publish to Pub/Sub operation.
    * 
* * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; + * * @return Whether the publishToPubSub field is set. */ boolean hasPublishToPubSub(); /** + * + * *
    * Action publish to Pub/Sub operation.
    * 
* * .google.cloud.contentwarehouse.v1.PublishAction publish_to_pub_sub = 6; + * * @return The publishToPubSub. */ com.google.cloud.contentwarehouse.v1.PublishAction getPublishToPubSub(); /** + * + * *
    * Action publish to Pub/Sub operation.
    * 
@@ -163,58 +224,82 @@ public interface ActionOrBuilder extends com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder getPublishToPubSubOrBuilder(); /** + * + * *
    * Action removing a document from a folder.
    * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * + * * @return Whether the removeFromFolderAction field is set. */ boolean hasRemoveFromFolderAction(); /** + * + * *
    * Action removing a document from a folder.
    * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * + * * @return The removeFromFolderAction. */ com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction getRemoveFromFolderAction(); /** + * + * *
    * Action removing a document from a folder.
    * 
* - * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * .google.cloud.contentwarehouse.v1.RemoveFromFolderAction remove_from_folder_action = 9; + * */ - com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder getRemoveFromFolderActionOrBuilder(); + com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder + getRemoveFromFolderActionOrBuilder(); /** + * + * *
    * Action deleting the document.
    * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * + * * @return Whether the deleteDocumentAction field is set. */ boolean hasDeleteDocumentAction(); /** + * + * *
    * Action deleting the document.
    * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * + * * @return The deleteDocumentAction. */ com.google.cloud.contentwarehouse.v1.DeleteDocumentAction getDeleteDocumentAction(); /** + * + * *
    * Action deleting the document.
    * 
* - * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * .google.cloud.contentwarehouse.v1.DeleteDocumentAction delete_document_action = 10; + * */ - com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder getDeleteDocumentActionOrBuilder(); + com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder + getDeleteDocumentActionOrBuilder(); com.google.cloud.contentwarehouse.v1.Action.ActionCase getActionCase(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java index fcd2532e3266..15ce4fb811ff 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutput.java @@ -1,24 +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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents the result of executing an action.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ActionOutput} */ -public final class ActionOutput extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ActionOutput extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ActionOutput) ActionOutputOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ActionOutput.newBuilder() to construct. private ActionOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ActionOutput() { actionId_ = ""; actionState_ = 0; @@ -27,34 +45,38 @@ private ActionOutput() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ActionOutput(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionOutput_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_ActionOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ActionOutput.class, com.google.cloud.contentwarehouse.v1.ActionOutput.Builder.class); + com.google.cloud.contentwarehouse.v1.ActionOutput.class, + com.google.cloud.contentwarehouse.v1.ActionOutput.Builder.class); } /** + * + * *
    * Represents execution state of the action.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.ActionOutput.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The unknown state.
      * 
@@ -63,6 +85,8 @@ public enum State */ UNKNOWN(0), /** + * + * *
      * State indicating action executed successfully.
      * 
@@ -71,6 +95,8 @@ public enum State */ ACTION_SUCCEEDED(1), /** + * + * *
      * State indicating action failed.
      * 
@@ -79,6 +105,8 @@ public enum State */ ACTION_FAILED(2), /** + * + * *
      * State indicating action timed out.
      * 
@@ -87,6 +115,8 @@ public enum State */ ACTION_TIMED_OUT(3), /** + * + * *
      * State indicating action is pending.
      * 
@@ -98,6 +128,8 @@ public enum State ; /** + * + * *
      * The unknown state.
      * 
@@ -106,6 +138,8 @@ public enum State */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * State indicating action executed successfully.
      * 
@@ -114,6 +148,8 @@ public enum State */ public static final int ACTION_SUCCEEDED_VALUE = 1; /** + * + * *
      * State indicating action failed.
      * 
@@ -122,6 +158,8 @@ public enum State */ public static final int ACTION_FAILED_VALUE = 2; /** + * + * *
      * State indicating action timed out.
      * 
@@ -130,6 +168,8 @@ public enum State */ public static final int ACTION_TIMED_OUT_VALUE = 3; /** + * + * *
      * State indicating action is pending.
      * 
@@ -138,7 +178,6 @@ public enum State */ public static final int ACTION_PENDING_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -163,51 +202,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return ACTION_SUCCEEDED; - case 2: return ACTION_FAILED; - case 3: return ACTION_TIMED_OUT; - case 4: return ACTION_PENDING; - default: return null; + case 0: + return UNKNOWN; + case 1: + return ACTION_SUCCEEDED; + case 2: + return ACTION_FAILED; + case 3: + return ACTION_TIMED_OUT; + case 4: + return ACTION_PENDING; + 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); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.ActionOutput.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.ActionOutput.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,14 +268,18 @@ private State(int value) { } public static final int ACTION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object actionId_ = ""; /** + * + * *
    * ID of the action.
    * 
* * string action_id = 1; + * * @return The actionId. */ @java.lang.Override @@ -241,29 +288,29 @@ public java.lang.String getActionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionId_ = s; return s; } } /** + * + * *
    * ID of the action.
    * 
* * string action_id = 1; + * * @return The bytes for actionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getActionIdBytes() { + public com.google.protobuf.ByteString getActionIdBytes() { java.lang.Object ref = actionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); actionId_ = b; return b; } else { @@ -274,38 +321,53 @@ public java.lang.String getActionId() { public static final int ACTION_STATE_FIELD_NUMBER = 2; private int actionState_ = 0; /** + * + * *
    * State of an action.
    * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; + * * @return The enum numeric value on the wire for actionState. */ - @java.lang.Override public int getActionStateValue() { + @java.lang.Override + public int getActionStateValue() { return actionState_; } /** + * + * *
    * State of an action.
    * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; + * * @return The actionState. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.ActionOutput.State getActionState() { - com.google.cloud.contentwarehouse.v1.ActionOutput.State result = com.google.cloud.contentwarehouse.v1.ActionOutput.State.forNumber(actionState_); - return result == null ? com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.ActionOutput.State getActionState() { + com.google.cloud.contentwarehouse.v1.ActionOutput.State result = + com.google.cloud.contentwarehouse.v1.ActionOutput.State.forNumber(actionState_); + return result == null + ? com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNRECOGNIZED + : result; } public static final int OUTPUT_MESSAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object outputMessage_ = ""; /** + * + * *
    * Action execution output message.
    * 
* * string output_message = 3; + * * @return The outputMessage. */ @java.lang.Override @@ -314,29 +376,29 @@ public java.lang.String getOutputMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputMessage_ = s; return s; } } /** + * + * *
    * Action execution output message.
    * 
* * string output_message = 3; + * * @return The bytes for outputMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputMessageBytes() { + public com.google.protobuf.ByteString getOutputMessageBytes() { java.lang.Object ref = outputMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputMessage_ = b; return b; } else { @@ -345,6 +407,7 @@ public java.lang.String getOutputMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -356,12 +419,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(actionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionId_); } - if (actionState_ != com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNKNOWN.getNumber()) { + if (actionState_ + != com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNKNOWN.getNumber()) { output.writeEnum(2, actionState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputMessage_)) { @@ -379,9 +442,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, actionId_); } - if (actionState_ != com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, actionState_); + if (actionState_ + != com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, actionState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputMessage_); @@ -394,18 +457,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.contentwarehouse.v1.ActionOutput)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ActionOutput other = (com.google.cloud.contentwarehouse.v1.ActionOutput) obj; + com.google.cloud.contentwarehouse.v1.ActionOutput other = + (com.google.cloud.contentwarehouse.v1.ActionOutput) obj; - if (!getActionId() - .equals(other.getActionId())) return false; + if (!getActionId().equals(other.getActionId())) return false; if (actionState_ != other.actionState_) return false; - if (!getOutputMessage() - .equals(other.getOutputMessage())) return false; + if (!getOutputMessage().equals(other.getOutputMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -429,131 +491,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ActionOutput 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.contentwarehouse.v1.ActionOutput parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ActionOutput parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ActionOutput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ActionOutput 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.contentwarehouse.v1.ActionOutput parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ActionOutput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ActionOutput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the result of executing an action.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ActionOutput} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ActionOutput) com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionOutput_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_ActionOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ActionOutput.class, com.google.cloud.contentwarehouse.v1.ActionOutput.Builder.class); + com.google.cloud.contentwarehouse.v1.ActionOutput.class, + com.google.cloud.contentwarehouse.v1.ActionOutput.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ActionOutput.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -565,9 +631,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; } @java.lang.Override @@ -586,8 +652,11 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ActionOutput buildPartial() { - com.google.cloud.contentwarehouse.v1.ActionOutput result = new com.google.cloud.contentwarehouse.v1.ActionOutput(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.ActionOutput result = + new com.google.cloud.contentwarehouse.v1.ActionOutput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -609,38 +678,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ActionOutput 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.contentwarehouse.v1.ActionOutput) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ActionOutput)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ActionOutput) other); } else { super.mergeFrom(other); return this; @@ -648,7 +718,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ActionOutput other) { - if (other == com.google.cloud.contentwarehouse.v1.ActionOutput.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.ActionOutput.getDefaultInstance()) + return this; if (!other.getActionId().isEmpty()) { actionId_ = other.actionId_; bitField0_ |= 0x00000001; @@ -688,27 +759,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - actionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - actionState_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - outputMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + actionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + actionState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + outputMessage_ = 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) { @@ -718,22 +793,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object actionId_ = ""; /** + * + * *
      * ID of the action.
      * 
* * string action_id = 1; + * * @return The actionId. */ public java.lang.String getActionId() { java.lang.Object ref = actionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionId_ = s; return s; @@ -742,20 +820,21 @@ public java.lang.String getActionId() { } } /** + * + * *
      * ID of the action.
      * 
* * string action_id = 1; + * * @return The bytes for actionId. */ - public com.google.protobuf.ByteString - getActionIdBytes() { + public com.google.protobuf.ByteString getActionIdBytes() { java.lang.Object ref = actionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); actionId_ = b; return b; } else { @@ -763,28 +842,35 @@ public java.lang.String getActionId() { } } /** + * + * *
      * ID of the action.
      * 
* * string action_id = 1; + * * @param value The actionId to set. * @return This builder for chaining. */ - public Builder setActionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setActionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } actionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * ID of the action.
      * 
* * string action_id = 1; + * * @return This builder for chaining. */ public Builder clearActionId() { @@ -794,17 +880,21 @@ public Builder clearActionId() { return this; } /** + * + * *
      * ID of the action.
      * 
* * string action_id = 1; + * * @param value The bytes for actionId to set. * @return This builder for chaining. */ - public Builder setActionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setActionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); actionId_ = value; bitField0_ |= 0x00000001; @@ -814,22 +904,29 @@ public Builder setActionIdBytes( private int actionState_ = 0; /** + * + * *
      * State of an action.
      * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; + * * @return The enum numeric value on the wire for actionState. */ - @java.lang.Override public int getActionStateValue() { + @java.lang.Override + public int getActionStateValue() { return actionState_; } /** + * + * *
      * State of an action.
      * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; + * * @param value The enum numeric value on the wire for actionState to set. * @return This builder for chaining. */ @@ -840,24 +937,33 @@ public Builder setActionStateValue(int value) { return this; } /** + * + * *
      * State of an action.
      * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; + * * @return The actionState. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ActionOutput.State getActionState() { - com.google.cloud.contentwarehouse.v1.ActionOutput.State result = com.google.cloud.contentwarehouse.v1.ActionOutput.State.forNumber(actionState_); - return result == null ? com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNRECOGNIZED : result; + com.google.cloud.contentwarehouse.v1.ActionOutput.State result = + com.google.cloud.contentwarehouse.v1.ActionOutput.State.forNumber(actionState_); + return result == null + ? com.google.cloud.contentwarehouse.v1.ActionOutput.State.UNRECOGNIZED + : result; } /** + * + * *
      * State of an action.
      * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; + * * @param value The actionState to set. * @return This builder for chaining. */ @@ -871,11 +977,14 @@ public Builder setActionState(com.google.cloud.contentwarehouse.v1.ActionOutput. return this; } /** + * + * *
      * State of an action.
      * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; + * * @return This builder for chaining. */ public Builder clearActionState() { @@ -887,18 +996,20 @@ public Builder clearActionState() { private java.lang.Object outputMessage_ = ""; /** + * + * *
      * Action execution output message.
      * 
* * string output_message = 3; + * * @return The outputMessage. */ public java.lang.String getOutputMessage() { java.lang.Object ref = outputMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputMessage_ = s; return s; @@ -907,20 +1018,21 @@ public java.lang.String getOutputMessage() { } } /** + * + * *
      * Action execution output message.
      * 
* * string output_message = 3; + * * @return The bytes for outputMessage. */ - public com.google.protobuf.ByteString - getOutputMessageBytes() { + public com.google.protobuf.ByteString getOutputMessageBytes() { java.lang.Object ref = outputMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputMessage_ = b; return b; } else { @@ -928,28 +1040,35 @@ public java.lang.String getOutputMessage() { } } /** + * + * *
      * Action execution output message.
      * 
* * string output_message = 3; + * * @param value The outputMessage to set. * @return This builder for chaining. */ - public Builder setOutputMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } outputMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Action execution output message.
      * 
* * string output_message = 3; + * * @return This builder for chaining. */ public Builder clearOutputMessage() { @@ -959,26 +1078,30 @@ public Builder clearOutputMessage() { return this; } /** + * + * *
      * Action execution output message.
      * 
* * string output_message = 3; + * * @param value The bytes for outputMessage to set. * @return This builder for chaining. */ - public Builder setOutputMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); outputMessage_ = 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); } @@ -988,12 +1111,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ActionOutput) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ActionOutput) private static final com.google.cloud.contentwarehouse.v1.ActionOutput DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ActionOutput(); } @@ -1002,27 +1125,27 @@ public static com.google.cloud.contentwarehouse.v1.ActionOutput getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActionOutput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ActionOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,6 +1160,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ActionOutput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java similarity index 63% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java index 75324a8dcf12..600b03305793 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ActionOutputOrBuilder.java @@ -1,68 +1,100 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface ActionOutputOrBuilder extends +public interface ActionOutputOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ActionOutput) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * ID of the action.
    * 
* * string action_id = 1; + * * @return The actionId. */ java.lang.String getActionId(); /** + * + * *
    * ID of the action.
    * 
* * string action_id = 1; + * * @return The bytes for actionId. */ - com.google.protobuf.ByteString - getActionIdBytes(); + com.google.protobuf.ByteString getActionIdBytes(); /** + * + * *
    * State of an action.
    * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; + * * @return The enum numeric value on the wire for actionState. */ int getActionStateValue(); /** + * + * *
    * State of an action.
    * 
* * .google.cloud.contentwarehouse.v1.ActionOutput.State action_state = 2; + * * @return The actionState. */ com.google.cloud.contentwarehouse.v1.ActionOutput.State getActionState(); /** + * + * *
    * Action execution output message.
    * 
* * string output_message = 3; + * * @return The outputMessage. */ java.lang.String getOutputMessage(); /** + * + * *
    * Action execution output message.
    * 
* * string output_message = 3; + * * @return The bytes for outputMessage. */ - com.google.protobuf.ByteString - getOutputMessageBytes(); + com.google.protobuf.ByteString getOutputMessageBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java similarity index 70% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java index bfaec8fa3d09..80c9f18acfc2 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderAction.java @@ -1,54 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents the action responsible for adding document under a folder.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.AddToFolderAction} */ -public final class AddToFolderAction extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AddToFolderAction extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.AddToFolderAction) AddToFolderActionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AddToFolderAction.newBuilder() to construct. private AddToFolderAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AddToFolderAction() { - folders_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + folders_ = 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 AddToFolderAction(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.AddToFolderAction.class, com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder.class); + com.google.cloud.contentwarehouse.v1.AddToFolderAction.class, + com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder.class); } public static final int FOLDERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -56,13 +77,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the folders. */ - public com.google.protobuf.ProtocolStringList - getFoldersList() { + public com.google.protobuf.ProtocolStringList getFoldersList() { return folders_; } /** + * + * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -70,12 +93,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of folders. */ public int getFoldersCount() { return folders_.size(); } /** + * + * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -83,6 +109,7 @@ public int getFoldersCount() {
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -90,6 +117,8 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** + * + * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -97,15 +126,16 @@ public java.lang.String getFolders(int index) {
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - public com.google.protobuf.ByteString - getFoldersBytes(int index) { + public com.google.protobuf.ByteString getFoldersBytes(int index) { return folders_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -117,8 +147,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < folders_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folders_.getRaw(i)); } @@ -147,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.AddToFolderAction)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.AddToFolderAction other = (com.google.cloud.contentwarehouse.v1.AddToFolderAction) obj; + com.google.cloud.contentwarehouse.v1.AddToFolderAction other = + (com.google.cloud.contentwarehouse.v1.AddToFolderAction) obj; - if (!getFoldersList() - .equals(other.getFoldersList())) return false; + if (!getFoldersList().equals(other.getFoldersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,144 +206,148 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.AddToFolderAction 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.contentwarehouse.v1.AddToFolderAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.AddToFolderAction 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.contentwarehouse.v1.AddToFolderAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.AddToFolderAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.AddToFolderAction prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.AddToFolderAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the action responsible for adding document under a folder.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.AddToFolderAction} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.AddToFolderAction) com.google.cloud.contentwarehouse.v1.AddToFolderActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.AddToFolderAction.class, com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder.class); + com.google.cloud.contentwarehouse.v1.AddToFolderAction.class, + com.google.cloud.contentwarehouse.v1.AddToFolderAction.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.AddToFolderAction.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - folders_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; } @java.lang.Override @@ -333,8 +366,11 @@ public com.google.cloud.contentwarehouse.v1.AddToFolderAction build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.AddToFolderAction buildPartial() { - com.google.cloud.contentwarehouse.v1.AddToFolderAction result = new com.google.cloud.contentwarehouse.v1.AddToFolderAction(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.AddToFolderAction result = + new com.google.cloud.contentwarehouse.v1.AddToFolderAction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -351,38 +387,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.AddToFolderActio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.AddToFolderAction) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.AddToFolderAction)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.AddToFolderAction) other); } else { super.mergeFrom(other); return this; @@ -390,7 +427,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.AddToFolderAction other) { - if (other == com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.AddToFolderAction.getDefaultInstance()) + return this; if (!other.folders_.isEmpty()) { if (folders_.isEmpty()) { folders_ = other.folders_; @@ -427,18 +465,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureFoldersIsMutable(); - folders_.add(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(); + ensureFoldersIsMutable(); + folders_.add(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) { @@ -448,10 +488,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureFoldersIsMutable() { if (!folders_.isModifiable()) { folders_ = new com.google.protobuf.LazyStringArrayList(folders_); @@ -459,6 +501,8 @@ private void ensureFoldersIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -466,14 +510,16 @@ private void ensureFoldersIsMutable() {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the folders. */ - public com.google.protobuf.ProtocolStringList - getFoldersList() { + public com.google.protobuf.ProtocolStringList getFoldersList() { folders_.makeImmutable(); return folders_; } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -481,12 +527,15 @@ private void ensureFoldersIsMutable() {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of folders. */ public int getFoldersCount() { return folders_.size(); } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -494,6 +543,7 @@ public int getFoldersCount() {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -501,6 +551,8 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -508,14 +560,16 @@ public java.lang.String getFolders(int index) {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - public com.google.protobuf.ByteString - getFoldersBytes(int index) { + public com.google.protobuf.ByteString getFoldersBytes(int index) { return folders_.getByteString(index); } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -523,13 +577,15 @@ public java.lang.String getFolders(int index) {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index to set the value at. * @param value The folders to set. * @return This builder for chaining. */ - public Builder setFolders( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFolders(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureFoldersIsMutable(); folders_.set(index, value); bitField0_ |= 0x00000001; @@ -537,6 +593,8 @@ public Builder setFolders( return this; } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -544,12 +602,14 @@ public Builder setFolders(
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @param value The folders to add. * @return This builder for chaining. */ - public Builder addFolders( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addFolders(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureFoldersIsMutable(); folders_.add(value); bitField0_ |= 0x00000001; @@ -557,6 +617,8 @@ public Builder addFolders( return this; } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -564,19 +626,20 @@ public Builder addFolders(
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @param values The folders to add. * @return This builder for chaining. */ - public Builder addAllFolders( - java.lang.Iterable values) { + public Builder addAllFolders(java.lang.Iterable values) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -584,16 +647,19 @@ public Builder addAllFolders(
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearFolders() { - folders_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Names of the folder under which new document is to be added.
      * Format:
@@ -601,12 +667,14 @@ public Builder clearFolders() {
      * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes of the folders to add. * @return This builder for chaining. */ - public Builder addFoldersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addFoldersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureFoldersIsMutable(); folders_.add(value); @@ -614,9 +682,9 @@ public Builder addFoldersBytes( 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); } @@ -626,12 +694,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.AddToFolderAction) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.AddToFolderAction) private static final com.google.cloud.contentwarehouse.v1.AddToFolderAction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.AddToFolderAction(); } @@ -640,27 +708,27 @@ public static com.google.cloud.contentwarehouse.v1.AddToFolderAction getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddToFolderAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 AddToFolderAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -675,6 +743,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.AddToFolderAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java similarity index 68% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java index 67dc066dd6f4..0f7f41716189 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AddToFolderActionOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface AddToFolderActionOrBuilder extends +public interface AddToFolderActionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.AddToFolderAction) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -15,11 +33,13 @@ public interface AddToFolderActionOrBuilder extends
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the folders. */ - java.util.List - getFoldersList(); + java.util.List getFoldersList(); /** + * + * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -27,10 +47,13 @@ public interface AddToFolderActionOrBuilder extends
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of folders. */ int getFoldersCount(); /** + * + * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -38,11 +61,14 @@ public interface AddToFolderActionOrBuilder extends
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The folders at the given index. */ java.lang.String getFolders(int index); /** + * + * *
    * Names of the folder under which new document is to be added.
    * Format:
@@ -50,9 +76,9 @@ public interface AddToFolderActionOrBuilder extends
    * 
* * repeated string folders = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - com.google.protobuf.ByteString - getFoldersBytes(int index); + com.google.protobuf.ByteString getFoldersBytes(int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java new file mode 100644 index 000000000000..c7ac6c381907 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java @@ -0,0 +1,85 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/async_document_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class AsyncDocumentServiceRequestProto { + private AsyncDocumentServiceRequestProto() {} + + 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_contentwarehouse_v1_CreateDocumentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_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/contentwarehouse/v1/async" + + "_document_service_request.proto\022 google." + + "cloud.contentwarehouse.v1\032\037google/api/fi" + + "eld_behavior.proto\032\031google/api/resource." + + "proto\"\030\n\026CreateDocumentMetadata\"\030\n\026Updat" + + "eDocumentMetadataB\210\002\n$com.google.cloud.c" + + "ontentwarehouse.v1B AsyncDocumentService" + + "RequestProtoP\001ZPcloud.google.com/go/cont" + + "entwarehouse/apiv1/contentwarehousepb;co" + + "ntentwarehousepb\252\002 Google.Cloud.ContentW" + + "arehouse.V1\312\002 Google\\Cloud\\ContentWareho" + + "use\\V1\352\002#Google::Cloud::ContentWarehouse" + + "::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(), + }); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor, + new java.lang.String[] {}); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java similarity index 64% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java index 8179c0122f66..d9265860c35b 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOption.java @@ -1,67 +1,87 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request Option for processing Cloud AI Document in CW Document.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CloudAIDocumentOption} */ -public final class CloudAIDocumentOption extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CloudAIDocumentOption extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CloudAIDocumentOption) CloudAIDocumentOptionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudAIDocumentOption.newBuilder() to construct. private CloudAIDocumentOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudAIDocumentOption() { - } + + private CloudAIDocumentOption() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudAIDocumentOption(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetCustomizedEntitiesPropertiesConversions(); 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.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.class, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder.class); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.class, + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder.class); } public static final int ENABLE_ENTITIES_CONVERSIONS_FIELD_NUMBER = 1; private boolean enableEntitiesConversions_ = false; /** + * + * *
    * Whether to convert all the entities to properties.
    * 
* * bool enable_entities_conversions = 1; + * * @return The enableEntitiesConversions. */ @java.lang.Override @@ -70,32 +90,37 @@ public boolean getEnableEntitiesConversions() { } public static final int CUSTOMIZED_ENTITIES_PROPERTIES_CONVERSIONS_FIELD_NUMBER = 2; + private static final class CustomizedEntitiesPropertiesConversionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_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> customizedEntitiesPropertiesConversions_; private com.google.protobuf.MapField - internalGetCustomizedEntitiesPropertiesConversions() { + customizedEntitiesPropertiesConversions_; + + private com.google.protobuf.MapField + internalGetCustomizedEntitiesPropertiesConversions() { if (customizedEntitiesPropertiesConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry); } return customizedEntitiesPropertiesConversions_; } + public int getCustomizedEntitiesPropertiesConversionsCount() { return internalGetCustomizedEntitiesPropertiesConversions().getMap().size(); } /** + * + * *
    * If set, only selected entities will be converted to properties.
    * 
@@ -103,20 +128,22 @@ public int getCustomizedEntitiesPropertiesConversionsCount() { * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public boolean containsCustomizedEntitiesPropertiesConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetCustomizedEntitiesPropertiesConversions().getMap().containsKey(key); } - /** - * Use {@link #getCustomizedEntitiesPropertiesConversionsMap()} instead. - */ + /** Use {@link #getCustomizedEntitiesPropertiesConversionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getCustomizedEntitiesPropertiesConversions() { + public java.util.Map + getCustomizedEntitiesPropertiesConversions() { return getCustomizedEntitiesPropertiesConversionsMap(); } /** + * + * *
    * If set, only selected entities will be converted to properties.
    * 
@@ -124,10 +151,13 @@ public java.util.Map getCustomizedEntitiesPr * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public java.util.Map getCustomizedEntitiesPropertiesConversionsMap() { + public java.util.Map + getCustomizedEntitiesPropertiesConversionsMap() { return internalGetCustomizedEntitiesPropertiesConversions().getMap(); } /** + * + * *
    * If set, only selected entities will be converted to properties.
    * 
@@ -135,17 +165,20 @@ public java.util.Map getCustomizedEntitiesPr * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public /* nullable */ -java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( + public /* nullable */ java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetCustomizedEntitiesPropertiesConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * If set, only selected entities will be converted to properties.
    * 
@@ -153,9 +186,10 @@ java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetCustomizedEntitiesPropertiesConversions().getMap(); if (!map.containsKey(key)) { @@ -165,6 +199,7 @@ public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,13 +211,11 @@ public final boolean isInitialized() { } @java.lang.Override - 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 (enableEntitiesConversions_ != false) { output.writeBool(1, enableEntitiesConversions_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetCustomizedEntitiesPropertiesConversions(), CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry, @@ -197,18 +230,20 @@ public int getSerializedSize() { size = 0; if (enableEntitiesConversions_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableEntitiesConversions_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableEntitiesConversions_); } - for (java.util.Map.Entry entry - : internalGetCustomizedEntitiesPropertiesConversions().getMap().entrySet()) { + for (java.util.Map.Entry entry : + internalGetCustomizedEntitiesPropertiesConversions().getMap().entrySet()) { com.google.protobuf.MapEntry - customizedEntitiesPropertiesConversions__ = CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, customizedEntitiesPropertiesConversions__); + customizedEntitiesPropertiesConversions__ = + CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, customizedEntitiesPropertiesConversions__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,17 +253,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.contentwarehouse.v1.CloudAIDocumentOption)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption other = (com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption) obj; + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption other = + (com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption) obj; - if (getEnableEntitiesConversions() - != other.getEnableEntitiesConversions()) return false; - if (!internalGetCustomizedEntitiesPropertiesConversions().equals( - other.internalGetCustomizedEntitiesPropertiesConversions())) return false; + if (getEnableEntitiesConversions() != other.getEnableEntitiesConversions()) return false; + if (!internalGetCustomizedEntitiesPropertiesConversions() + .equals(other.internalGetCustomizedEntitiesPropertiesConversions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,8 +276,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_ENTITIES_CONVERSIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableEntitiesConversions()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableEntitiesConversions()); if (!internalGetCustomizedEntitiesPropertiesConversions().getMap().isEmpty()) { hash = (37 * hash) + CUSTOMIZED_ENTITIES_PROPERTIES_CONVERSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetCustomizedEntitiesPropertiesConversions().hashCode(); @@ -253,153 +287,156 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption 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.contentwarehouse.v1.CloudAIDocumentOption parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption 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.contentwarehouse.v1.CloudAIDocumentOption parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 Option for processing Cloud AI Document in CW Document.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CloudAIDocumentOption} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CloudAIDocumentOption) com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetCustomizedEntitiesPropertiesConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableCustomizedEntitiesPropertiesConversions(); 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.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.class, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder.class); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.class, + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +447,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor; } @java.lang.Override @@ -431,8 +468,11 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption buildPartial() { - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption result = new com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption result = + new com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -443,7 +483,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CloudAIDocumentO result.enableEntitiesConversions_ = enableEntitiesConversions_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.customizedEntitiesPropertiesConversions_ = internalGetCustomizedEntitiesPropertiesConversions(); + result.customizedEntitiesPropertiesConversions_ = + internalGetCustomizedEntitiesPropertiesConversions(); result.customizedEntitiesPropertiesConversions_.makeImmutable(); } } @@ -452,38 +493,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CloudAIDocumentO public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.CloudAIDocumentOption) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption) other); } else { super.mergeFrom(other); return this; @@ -491,12 +533,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption other) { - if (other == com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance()) + return this; if (other.getEnableEntitiesConversions() != false) { setEnableEntitiesConversions(other.getEnableEntitiesConversions()); } - internalGetMutableCustomizedEntitiesPropertiesConversions().mergeFrom( - other.internalGetCustomizedEntitiesPropertiesConversions()); + internalGetMutableCustomizedEntitiesPropertiesConversions() + .mergeFrom(other.internalGetCustomizedEntitiesPropertiesConversions()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -524,26 +567,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableEntitiesConversions_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - com.google.protobuf.MapEntry - customizedEntitiesPropertiesConversions__ = input.readMessage( - CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().put( - customizedEntitiesPropertiesConversions__.getKey(), customizedEntitiesPropertiesConversions__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableEntitiesConversions_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.protobuf.MapEntry + customizedEntitiesPropertiesConversions__ = + input.readMessage( + CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableCustomizedEntitiesPropertiesConversions() + .getMutableMap() + .put( + customizedEntitiesPropertiesConversions__.getKey(), + customizedEntitiesPropertiesConversions__.getValue()); + 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,15 +605,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableEntitiesConversions_ ; + private boolean enableEntitiesConversions_; /** + * + * *
      * Whether to convert all the entities to properties.
      * 
* * bool enable_entities_conversions = 1; + * * @return The enableEntitiesConversions. */ @java.lang.Override @@ -569,11 +625,14 @@ public boolean getEnableEntitiesConversions() { return enableEntitiesConversions_; } /** + * + * *
      * Whether to convert all the entities to properties.
      * 
* * bool enable_entities_conversions = 1; + * * @param value The enableEntitiesConversions to set. * @return This builder for chaining. */ @@ -585,11 +644,14 @@ public Builder setEnableEntitiesConversions(boolean value) { return this; } /** + * + * *
      * Whether to convert all the entities to properties.
      * 
* * bool enable_entities_conversions = 1; + * * @return This builder for chaining. */ public Builder clearEnableEntitiesConversions() { @@ -599,8 +661,9 @@ public Builder clearEnableEntitiesConversions() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> customizedEntitiesPropertiesConversions_; + private com.google.protobuf.MapField + customizedEntitiesPropertiesConversions_; + private com.google.protobuf.MapField internalGetCustomizedEntitiesPropertiesConversions() { if (customizedEntitiesPropertiesConversions_ == null) { @@ -609,11 +672,13 @@ public Builder clearEnableEntitiesConversions() { } return customizedEntitiesPropertiesConversions_; } + private com.google.protobuf.MapField internalGetMutableCustomizedEntitiesPropertiesConversions() { if (customizedEntitiesPropertiesConversions_ == null) { - customizedEntitiesPropertiesConversions_ = com.google.protobuf.MapField.newMapField( - CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry); + customizedEntitiesPropertiesConversions_ = + com.google.protobuf.MapField.newMapField( + CustomizedEntitiesPropertiesConversionsDefaultEntryHolder.defaultEntry); } if (!customizedEntitiesPropertiesConversions_.isMutable()) { customizedEntitiesPropertiesConversions_ = customizedEntitiesPropertiesConversions_.copy(); @@ -622,10 +687,13 @@ public Builder clearEnableEntitiesConversions() { onChanged(); return customizedEntitiesPropertiesConversions_; } + public int getCustomizedEntitiesPropertiesConversionsCount() { return internalGetCustomizedEntitiesPropertiesConversions().getMap().size(); } /** + * + * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -633,20 +701,22 @@ public int getCustomizedEntitiesPropertiesConversionsCount() { * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public boolean containsCustomizedEntitiesPropertiesConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetCustomizedEntitiesPropertiesConversions().getMap().containsKey(key); } - /** - * Use {@link #getCustomizedEntitiesPropertiesConversionsMap()} instead. - */ + /** Use {@link #getCustomizedEntitiesPropertiesConversionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getCustomizedEntitiesPropertiesConversions() { + public java.util.Map + getCustomizedEntitiesPropertiesConversions() { return getCustomizedEntitiesPropertiesConversionsMap(); } /** + * + * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -654,10 +724,13 @@ public java.util.Map getCustomizedEntitiesPr * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public java.util.Map getCustomizedEntitiesPropertiesConversionsMap() { + public java.util.Map + getCustomizedEntitiesPropertiesConversionsMap() { return internalGetCustomizedEntitiesPropertiesConversions().getMap(); } /** + * + * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -665,17 +738,20 @@ public java.util.Map getCustomizedEntitiesPr * map<string, string> customized_entities_properties_conversions = 2; */ @java.lang.Override - public /* nullable */ -java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( + public /* nullable */ java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetCustomizedEntitiesPropertiesConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -685,7 +761,9 @@ java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( @java.lang.Override public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetCustomizedEntitiesPropertiesConversions().getMap(); if (!map.containsKey(key)) { @@ -693,29 +771,29 @@ public java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow( } return map.get(key); } + public Builder clearCustomizedEntitiesPropertiesConversions() { bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap() - .clear(); + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().clear(); return this; } /** + * + * *
      * If set, only selected entities will be converted to properties.
      * 
* * map<string, string> customized_entities_properties_conversions = 2; */ - public Builder removeCustomizedEntitiesPropertiesConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap() - .remove(key); + public Builder removeCustomizedEntitiesPropertiesConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCustomizedEntitiesPropertiesConversions() { @@ -723,6 +801,8 @@ public Builder removeCustomizedEntitiesPropertiesConversions( return internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap(); } /** + * + * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -730,16 +810,20 @@ public Builder removeCustomizedEntitiesPropertiesConversions( * map<string, string> customized_entities_properties_conversions = 2; */ public Builder putCustomizedEntitiesPropertiesConversions( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap() - .put(key, value); + java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().put(key, value); bitField0_ |= 0x00000002; return this; } /** + * + * *
      * If set, only selected entities will be converted to properties.
      * 
@@ -748,14 +832,13 @@ public Builder putCustomizedEntitiesPropertiesConversions( */ public Builder putAllCustomizedEntitiesPropertiesConversions( java.util.Map values) { - internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap() - .putAll(values); + internalGetMutableCustomizedEntitiesPropertiesConversions().getMutableMap().putAll(values); bitField0_ |= 0x00000002; 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); } @@ -765,12 +848,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CloudAIDocumentOption) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CloudAIDocumentOption) private static final com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption(); } @@ -779,27 +862,27 @@ public static com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudAIDocumentOption parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CloudAIDocumentOption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -814,6 +897,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java similarity index 59% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java index 23e01ad46307..ff358d977b29 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CloudAIDocumentOptionOrBuilder.java @@ -1,23 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface CloudAIDocumentOptionOrBuilder extends +public interface CloudAIDocumentOptionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CloudAIDocumentOption) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Whether to convert all the entities to properties.
    * 
* * bool enable_entities_conversions = 1; + * * @return The enableEntitiesConversions. */ boolean getEnableEntitiesConversions(); /** + * + * *
    * If set, only selected entities will be converted to properties.
    * 
@@ -26,30 +47,31 @@ public interface CloudAIDocumentOptionOrBuilder extends */ int getCustomizedEntitiesPropertiesConversionsCount(); /** + * + * *
    * If set, only selected entities will be converted to properties.
    * 
* * map<string, string> customized_entities_properties_conversions = 2; */ - boolean containsCustomizedEntitiesPropertiesConversions( - java.lang.String key); - /** - * Use {@link #getCustomizedEntitiesPropertiesConversionsMap()} instead. - */ + boolean containsCustomizedEntitiesPropertiesConversions(java.lang.String key); + /** Use {@link #getCustomizedEntitiesPropertiesConversionsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getCustomizedEntitiesPropertiesConversions(); + java.util.Map getCustomizedEntitiesPropertiesConversions(); /** + * + * *
    * If set, only selected entities will be converted to properties.
    * 
* * map<string, string> customized_entities_properties_conversions = 2; */ - java.util.Map - getCustomizedEntitiesPropertiesConversionsMap(); + java.util.Map getCustomizedEntitiesPropertiesConversionsMap(); /** + * + * *
    * If set, only selected entities will be converted to properties.
    * 
@@ -57,17 +79,18 @@ boolean containsCustomizedEntitiesPropertiesConversions( * map<string, string> customized_entities_properties_conversions = 2; */ /* nullable */ -java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( + java.lang.String getCustomizedEntitiesPropertiesConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * If set, only selected entities will be converted to properties.
    * 
* * map<string, string> customized_entities_properties_conversions = 2; */ - java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow( - java.lang.String key); + java.lang.String getCustomizedEntitiesPropertiesConversionsOrThrow(java.lang.String key); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java new file mode 100644 index 000000000000..85572ff65a01 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java @@ -0,0 +1,163 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/common.proto + +package com.google.cloud.contentwarehouse.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_contentwarehouse_v1_RequestMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_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/contentwarehouse/v1/commo" + + "n.proto\022 google.cloud.contentwarehouse.v" + + "1\032\031google/api/resource.proto\032 google/pro" + + "tobuf/field_mask.proto\"P\n\017RequestMetadat" + + "a\022=\n\tuser_info\030\001 \001(\0132*.google.cloud.cont" + + "entwarehouse.v1.UserInfo\"&\n\020ResponseMeta" + + "data\022\022\n\nrequest_id\030\001 \001(\t\")\n\010UserInfo\022\n\n\002" + + "id\030\001 \001(\t\022\021\n\tgroup_ids\030\002 \003(\t\"\327\001\n\rUpdateOp" + + "tions\022A\n\013update_type\030\001 \001(\0162,.google.clou" + + "d.contentwarehouse.v1.UpdateType\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "k\022R\n\024merge_fields_options\030\003 \001(\01324.google" + + ".cloud.contentwarehouse.v1.MergeFieldsOp" + + "tions\"\226\001\n\022MergeFieldsOptions\022#\n\026replace_" + + "message_fields\030\001 \001(\010H\000\210\001\001\022$\n\027replace_rep" + + "eated_fields\030\002 \001(\010H\001\210\001\001B\031\n\027_replace_mess" + + "age_fieldsB\032\n\030_replace_repeated_fields*\237" + + "\002\n\nUpdateType\022\033\n\027UPDATE_TYPE_UNSPECIFIED" + + "\020\000\022\027\n\023UPDATE_TYPE_REPLACE\020\001\022\025\n\021UPDATE_TY" + + "PE_MERGE\020\002\022*\n&UPDATE_TYPE_INSERT_PROPERT" + + "IES_BY_NAMES\020\003\022+\n\'UPDATE_TYPE_REPLACE_PR" + + "OPERTIES_BY_NAMES\020\004\022*\n&UPDATE_TYPE_DELET" + + "E_PROPERTIES_BY_NAMES\020\005\022?\n;UPDATE_TYPE_M" + + "ERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY" + + "_NAMES\020\006*S\n\014DatabaseType\022\016\n\nDB_UNKNOWN\020\000" + + "\022\024\n\020DB_INFRA_SPANNER\020\001\022\035\n\025DB_CLOUD_SQL_P" + + "OSTGRES\020\002\032\002\010\001*\252\001\n\021AccessControlMode\022\024\n\020A" + + "CL_MODE_UNKNOWN\020\000\022\035\n\031ACL_MODE_UNIVERSAL_" + + "ACCESS\020\001\0220\n,ACL_MODE_DOCUMENT_LEVEL_ACCE" + + "SS_CONTROL_BYOID\020\002\022.\n*ACL_MODE_DOCUMENT_" + + "LEVEL_ACCESS_CONTROL_GCI\020\003*\211\001\n\032DocumentC" + + "reatorDefaultRole\022-\n)DOCUMENT_CREATOR_DE" + + "FAULT_ROLE_UNSPECIFIED\020\000\022\022\n\016DOCUMENT_ADM" + + "IN\020\001\022\023\n\017DOCUMENT_EDITOR\020\002\022\023\n\017DOCUMENT_VI" + + "EWER\020\003B\311\002\n$com.google.cloud.contentwareh" + + "ouse.v1B\013CommonProtoP\001ZPcloud.google.com" + + "/go/contentwarehouse/apiv1/contentwareho" + + "usepb;contentwarehousepb\252\002 Google.Cloud." + + "ContentWarehouse.V1\312\002 Google\\Cloud\\Conte" + + "ntWarehouse\\V1\352\002#Google::Cloud::ContentW" + + "arehouse::V1\352AS\n(contentwarehouse.google" + + "apis.com/Location\022\'projects/{project}/lo" + + "cations/{location}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor, + new java.lang.String[] { + "UserInfo", + }); + internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor, + new java.lang.String[] { + "RequestId", + }); + internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor, + new java.lang.String[] { + "Id", "GroupIds", + }); + internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor, + new java.lang.String[] { + "UpdateType", "UpdateMask", "MergeFieldsOptions", + }); + internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor, + new java.lang.String[] { + "ReplaceMessageFields", + "ReplaceRepeatedFields", + "ReplaceMessageFields", + "ReplaceRepeatedFields", + }); + 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(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java similarity index 68% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java index fa422a6ead4e..f28fee3d8881 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ContentCategory.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * When a raw document or structured content is supplied, this stores the
  * content category.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.contentwarehouse.v1.ContentCategory}
  */
-public enum ContentCategory
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum ContentCategory implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No category is specified.
    * 
@@ -22,6 +40,8 @@ public enum ContentCategory */ CONTENT_CATEGORY_UNSPECIFIED(0), /** + * + * *
    * Content is of image type.
    * 
@@ -30,6 +50,8 @@ public enum ContentCategory */ CONTENT_CATEGORY_IMAGE(1), /** + * + * *
    * Content is of audio type.
    * 
@@ -38,6 +60,8 @@ public enum ContentCategory */ CONTENT_CATEGORY_AUDIO(2), /** + * + * *
    * Content is of video type.
    * 
@@ -49,6 +73,8 @@ public enum ContentCategory ; /** + * + * *
    * No category is specified.
    * 
@@ -57,6 +83,8 @@ public enum ContentCategory */ public static final int CONTENT_CATEGORY_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Content is of image type.
    * 
@@ -65,6 +93,8 @@ public enum ContentCategory */ public static final int CONTENT_CATEGORY_IMAGE_VALUE = 1; /** + * + * *
    * Content is of audio type.
    * 
@@ -73,6 +103,8 @@ public enum ContentCategory */ public static final int CONTENT_CATEGORY_AUDIO_VALUE = 2; /** + * + * *
    * Content is of video type.
    * 
@@ -81,7 +113,6 @@ public enum ContentCategory */ public static final int CONTENT_CATEGORY_VIDEO_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -106,50 +137,51 @@ public static ContentCategory valueOf(int value) { */ public static ContentCategory forNumber(int value) { switch (value) { - case 0: return CONTENT_CATEGORY_UNSPECIFIED; - case 1: return CONTENT_CATEGORY_IMAGE; - case 2: return CONTENT_CATEGORY_AUDIO; - case 3: return CONTENT_CATEGORY_VIDEO; - default: return null; + case 0: + return CONTENT_CATEGORY_UNSPECIFIED; + case 1: + return CONTENT_CATEGORY_IMAGE; + case 2: + return CONTENT_CATEGORY_AUDIO; + case 3: + return CONTENT_CATEGORY_VIDEO; + 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< - ContentCategory> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ContentCategory findValueByNumber(int number) { - return ContentCategory.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContentCategory findValueByNumber(int number) { + return ContentCategory.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor().getEnumTypes().get(1); } private static final ContentCategory[] VALUES = values(); - public static ContentCategory valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ContentCategory 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; @@ -165,4 +197,3 @@ private ContentCategory(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.ContentCategory) } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java similarity index 64% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java index a9af806302db..5fa654363bac 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentLinkService.CreateDocumentLink.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest} */ -public final class CreateDocumentLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateDocumentLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) CreateDocumentLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateDocumentLinkRequest.newBuilder() to construct. private CreateDocumentLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateDocumentLinkRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDocumentLinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.class, com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.class, + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent of the document-link to be created.
    * parent of document-link should be a document.
@@ -54,7 +76,10 @@ protected java.lang.Object newInstance(
    * projects/{project_number}/locations/{location}/documents/{source_document_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 @@ -63,14 +88,15 @@ 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 of the document-link to be created.
    * parent of document-link should be a document.
@@ -78,17 +104,18 @@ public java.lang.String getParent() {
    * projects/{project_number}/locations/{location}/documents/{source_document_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 { @@ -99,12 +126,17 @@ public java.lang.String getParent() { public static final int DOCUMENT_LINK_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.DocumentLink documentLink_; /** + * + * *
    * Required. Document links associated with the source documents
    * (source_document_id).
    * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentLink field is set. */ @java.lang.Override @@ -112,40 +144,56 @@ public boolean hasDocumentLink() { return documentLink_ != null; } /** + * + * *
    * Required. Document links associated with the source documents
    * (source_document_id).
    * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentLink. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLink() { - return documentLink_ == null ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() : documentLink_; + return documentLink_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() + : documentLink_; } /** + * + * *
    * Required. Document links associated with the source documents
    * (source_document_id).
    * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinkOrBuilder() { - return documentLink_ == null ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() : documentLink_; + return documentLink_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() + : documentLink_; } public static final int REQUEST_METADATA_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -153,19 +201,26 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
@@ -174,11 +229,15 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+        : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -190,8 +249,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -214,12 +272,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (documentLink_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getDocumentLink());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentLink());
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -229,24 +285,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.contentwarehouse.v1.CreateDocumentLinkRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest other = (com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) obj;
+    com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest other =
+        (com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
+    if (!getParent().equals(other.getParent())) return false;
     if (hasDocumentLink() != other.hasDocumentLink()) return false;
     if (hasDocumentLink()) {
-      if (!getDocumentLink()
-          .equals(other.getDocumentLink())) return false;
+      if (!getDocumentLink().equals(other.getDocumentLink())) return false;
     }
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata()
-          .equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -275,131 +329,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest 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.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest 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.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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 DocumentLinkService.CreateDocumentLink.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.class, com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.class, + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -419,13 +478,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.getDefaultInstance(); } @@ -440,26 +500,28 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest result = new com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest result = + new com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.documentLink_ = documentLinkBuilder_ == null - ? documentLink_ - : documentLinkBuilder_.build(); + result.documentLink_ = + documentLinkBuilder_ == null ? documentLink_ : documentLinkBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.requestMetadata_ = requestMetadataBuilder_ == null - ? requestMetadata_ - : requestMetadataBuilder_.build(); + result.requestMetadata_ = + requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); } } @@ -467,38 +529,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentLi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.CreateDocumentLinkRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) other); } else { super.mergeFrom(other); return this; @@ -506,7 +569,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -544,31 +609,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDocumentLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - 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(getDocumentLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getRequestMetadataFieldBuilder().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) { @@ -578,10 +643,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -589,14 +657,16 @@ public Builder mergeFrom(
      * projects/{project_number}/locations/{location}/documents/{source_document_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; @@ -605,6 +675,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -612,16 +684,17 @@ public java.lang.String getParent() {
      * projects/{project_number}/locations/{location}/documents/{source_document_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 { @@ -629,6 +702,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -636,19 +711,25 @@ public java.lang.String getParent() {
      * projects/{project_number}/locations/{location}/documents/{source_document_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. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -656,7 +737,10 @@ public Builder setParent(
      * projects/{project_number}/locations/{location}/documents/{source_document_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() { @@ -666,6 +750,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent of the document-link to be created.
      * parent of document-link should be a document.
@@ -673,13 +759,17 @@ public Builder clearParent() {
      * projects/{project_number}/locations/{location}/documents/{source_document_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; @@ -689,42 +779,61 @@ public Builder setParentBytes( private com.google.cloud.contentwarehouse.v1.DocumentLink documentLink_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> documentLinkBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentLink, + com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> + documentLinkBuilder_; /** + * + * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentLink field is set. */ public boolean hasDocumentLink() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentLink. */ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLink() { if (documentLinkBuilder_ == null) { - return documentLink_ == null ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() : documentLink_; + return documentLink_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() + : documentLink_; } else { return documentLinkBuilder_.getMessage(); } } /** + * + * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocumentLink(com.google.cloud.contentwarehouse.v1.DocumentLink value) { if (documentLinkBuilder_ == null) { @@ -740,12 +849,16 @@ public Builder setDocumentLink(com.google.cloud.contentwarehouse.v1.DocumentLink return this; } /** + * + * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocumentLink( com.google.cloud.contentwarehouse.v1.DocumentLink.Builder builderForValue) { @@ -759,18 +872,23 @@ public Builder setDocumentLink( return this; } /** + * + * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDocumentLink(com.google.cloud.contentwarehouse.v1.DocumentLink value) { if (documentLinkBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - documentLink_ != null && - documentLink_ != com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && documentLink_ != null + && documentLink_ + != com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()) { getDocumentLinkBuilder().mergeFrom(value); } else { documentLink_ = value; @@ -783,12 +901,16 @@ public Builder mergeDocumentLink(com.google.cloud.contentwarehouse.v1.DocumentLi return this; } /** + * + * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDocumentLink() { bitField0_ = (bitField0_ & ~0x00000002); @@ -801,12 +923,16 @@ public Builder clearDocumentLink() { return this; } /** + * + * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLinkBuilder() { bitField0_ |= 0x00000002; @@ -814,38 +940,50 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink return getDocumentLinkFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinkOrBuilder() { if (documentLinkBuilder_ != null) { return documentLinkBuilder_.getMessageOrBuilder(); } else { - return documentLink_ == null ? - com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() : documentLink_; + return documentLink_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance() + : documentLink_; } } /** + * + * *
      * Required. Document links associated with the source documents
      * (source_document_id).
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentLink, + com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> getDocumentLinkFieldBuilder() { if (documentLinkBuilder_ == null) { - documentLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>( - getDocumentLink(), - getParentForChildren(), - isClean()); + documentLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentLink, + com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>( + getDocumentLink(), getParentForChildren(), isClean()); documentLink_ = null; } return documentLinkBuilder_; @@ -853,36 +991,49 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> + requestMetadataBuilder_; /** + * + * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -904,6 +1055,8 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -923,6 +1076,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -930,11 +1085,13 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(
+        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          requestMetadata_ != null &&
-          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && requestMetadata_ != null
+            && requestMetadata_
+                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -947,6 +1104,8 @@ public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.Request
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -965,6 +1124,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -972,12 +1133,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+        getRequestMetadataBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -985,15 +1149,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMe
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+        getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+        return requestMetadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+            : requestMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1002,21 +1170,24 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(),
-                getParentForChildren(),
-                isClean());
+        requestMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RequestMetadata,
+                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(), getParentForChildren(), isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
+
     @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);
     }
 
@@ -1026,41 +1197,43 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest)
-  private static final com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest();
   }
 
-  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest getDefaultInstance() {
+  public static com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CreateDocumentLinkRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 CreateDocumentLinkRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1072,9 +1245,8 @@ public com.google.protobuf.Parser getParserForType()
   }
 
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest getDefaultInstanceForType() {
+  public com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java
similarity index 63%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java
index c676f3518a31..57b451f36f00 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentLinkRequestOrBuilder.java
@@ -1,13 +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/contentwarehouse/v1/document_link_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface CreateDocumentLinkRequestOrBuilder extends
+public interface CreateDocumentLinkRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Parent of the document-link to be created.
    * parent of document-link should be a document.
@@ -15,11 +33,16 @@ public interface CreateDocumentLinkRequestOrBuilder extends
    * projects/{project_number}/locations/{location}/documents/{source_document_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. Parent of the document-link to be created.
    * parent of document-link should be a document.
@@ -27,63 +50,87 @@ public interface CreateDocumentLinkRequestOrBuilder extends
    * projects/{project_number}/locations/{location}/documents/{source_document_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(); /** + * + * *
    * Required. Document links associated with the source documents
    * (source_document_id).
    * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentLink field is set. */ boolean hasDocumentLink(); /** + * + * *
    * Required. Document links associated with the source documents
    * (source_document_id).
    * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentLink. */ com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLink(); /** + * + * *
    * Required. Document links associated with the source documents
    * (source_document_id).
    * 
* - * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentLink document_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinkOrBuilder(); /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java
similarity index 63%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java
index 5113f1a22294..42d8a74f2376 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadata.java
@@ -1,48 +1,67 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/async_document_service_request.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Metadata object for CreateDocument request (currently empty).
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentMetadata} */ -public final class CreateDocumentMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CreateDocumentMetadata) CreateDocumentMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateDocumentMetadata.newBuilder() to construct. private CreateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDocumentMetadata() { - } + + private CreateDocumentMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDocumentMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.class, com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.class, + com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -73,12 +91,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata other = (com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata) obj; + com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata other = + (com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata 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.contentwarehouse.v1.CreateDocumentMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata 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.contentwarehouse.v1.CreateDocumentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 object for CreateDocument request (currently empty).
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CreateDocumentMetadata) com.google.cloud.contentwarehouse.v1.CreateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.class, com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.class, + com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -229,9 +253,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor; } @java.lang.Override @@ -250,7 +274,8 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata result = new com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata(this); + com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata result = + new com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata(this); onBuilt(); return result; } @@ -259,38 +284,39 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata) other); } else { super.mergeFrom(other); return this; @@ -298,7 +324,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -325,12 +352,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -340,9 +368,9 @@ public Builder mergeFrom( } // finally 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); } @@ -352,12 +380,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateDocumentMetadata) private static final com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata(); } @@ -366,27 +394,27 @@ public static com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -401,6 +429,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.CreateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java new file mode 100644 index 000000000000..3d70907522a8 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java @@ -0,0 +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/contentwarehouse/v1/async_document_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface CreateDocumentMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java similarity index 70% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java index 993d4fc8e3a6..4fa9e7f3ae72 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequest.java @@ -1,58 +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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentService.CreateDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.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_ = ""; } @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.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.class, com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.class, + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 @@ -61,30 +86,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 { @@ -95,11 +122,16 @@ public java.lang.String getParent() { public static final int DOCUMENT_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.Document document_; /** + * + * *
    * Required. The document to create.
    * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the document field is set. */ @java.lang.Override @@ -107,38 +139,54 @@ public boolean hasDocument() { return document_ != null; } /** + * + * *
    * Required. The document to create.
    * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The document. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.Document getDocument() { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } /** + * + * *
    * Required. The document to create.
    * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } public static final int REQUEST_METADATA_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -146,19 +194,26 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -167,13 +222,18 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+        : requestMetadata_;
   }
 
   public static final int POLICY_FIELD_NUMBER = 4;
   private com.google.iam.v1.Policy policy_;
   /**
+   *
+   *
    * 
    * Default document policy during creation.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -182,6 +242,7 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
    * 
* * .google.iam.v1.Policy policy = 4; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -189,6 +250,8 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Default document policy during creation.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -197,6 +260,7 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 4; + * * @return The policy. */ @java.lang.Override @@ -204,6 +268,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * Default document policy during creation.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -221,6 +287,8 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
   public static final int CLOUD_AI_DOCUMENT_OPTION_FIELD_NUMBER = 5;
   private com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloudAiDocumentOption_;
   /**
+   *
+   *
    * 
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -228,7 +296,9 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * + * * @return Whether the cloudAiDocumentOption field is set. */ @java.lang.Override @@ -236,6 +306,8 @@ public boolean hasCloudAiDocumentOption() { return cloudAiDocumentOption_ != null; } /** + * + * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -243,14 +315,20 @@ public boolean hasCloudAiDocumentOption() {
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * + * * @return The cloudAiDocumentOption. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocumentOption() { - return cloudAiDocumentOption_ == null ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; + return cloudAiDocumentOption_ == null + ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() + : cloudAiDocumentOption_; } /** + * + * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -258,16 +336,22 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocu
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder() { - return cloudAiDocumentOption_ == null ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder + getCloudAiDocumentOptionOrBuilder() { + return cloudAiDocumentOption_ == null + ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() + : cloudAiDocumentOption_; } public static final int CREATE_MASK_FIELD_NUMBER = 6; private com.google.protobuf.FieldMask createMask_; /** + * + * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
@@ -277,6 +361,7 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCl
    * 
* * .google.protobuf.FieldMask create_mask = 6; + * * @return Whether the createMask field is set. */ @java.lang.Override @@ -284,6 +369,8 @@ public boolean hasCreateMask() { return createMask_ != null; } /** + * + * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
@@ -293,6 +380,7 @@ public boolean hasCreateMask() {
    * 
* * .google.protobuf.FieldMask create_mask = 6; + * * @return The createMask. */ @java.lang.Override @@ -300,6 +388,8 @@ public com.google.protobuf.FieldMask getCreateMask() { return createMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : createMask_; } /** + * + * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
@@ -316,6 +406,7 @@ public com.google.protobuf.FieldMaskOrBuilder getCreateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -327,8 +418,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -360,24 +450,20 @@ 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 (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata());
     }
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getPolicy());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPolicy());
     }
     if (cloudAiDocumentOption_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getCloudAiDocumentOption());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCloudAiDocumentOption());
     }
     if (createMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getCreateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -387,39 +473,34 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.contentwarehouse.v1.CreateDocumentRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.CreateDocumentRequest other = (com.google.cloud.contentwarehouse.v1.CreateDocumentRequest) obj;
+    com.google.cloud.contentwarehouse.v1.CreateDocumentRequest other =
+        (com.google.cloud.contentwarehouse.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 (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata()
-          .equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
     }
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy()
-          .equals(other.getPolicy())) return false;
+      if (!getPolicy().equals(other.getPolicy())) return false;
     }
     if (hasCloudAiDocumentOption() != other.hasCloudAiDocumentOption()) return false;
     if (hasCloudAiDocumentOption()) {
-      if (!getCloudAiDocumentOption()
-          .equals(other.getCloudAiDocumentOption())) return false;
+      if (!getCloudAiDocumentOption().equals(other.getCloudAiDocumentOption())) return false;
     }
     if (hasCreateMask() != other.hasCreateMask()) return false;
     if (hasCreateMask()) {
-      if (!getCreateMask()
-          .equals(other.getCreateMask())) return false;
+      if (!getCreateMask().equals(other.getCreateMask())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -460,131 +541,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.CreateDocumentRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.CreateDocumentRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.CreateDocumentRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.CreateDocumentRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.CreateDocumentRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.CreateDocumentRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.CreateDocumentRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.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.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.v1.CreateDocumentRequest) com.google.cloud.contentwarehouse.v1.CreateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.class, com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.class, + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -619,9 +705,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; } @java.lang.Override @@ -640,8 +726,11 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateDocumentRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest result = new com.google.cloud.contentwarehouse.v1.CreateDocumentRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest result = + new com.google.cloud.contentwarehouse.v1.CreateDocumentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -652,29 +741,23 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentRe 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.requestMetadata_ = requestMetadataBuilder_ == null - ? requestMetadata_ - : requestMetadataBuilder_.build(); + result.requestMetadata_ = + requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.policy_ = policyBuilder_ == null - ? policy_ - : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.cloudAiDocumentOption_ = cloudAiDocumentOptionBuilder_ == null - ? cloudAiDocumentOption_ - : cloudAiDocumentOptionBuilder_.build(); + result.cloudAiDocumentOption_ = + cloudAiDocumentOptionBuilder_ == null + ? cloudAiDocumentOption_ + : cloudAiDocumentOptionBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.createMask_ = createMaskBuilder_ == null - ? createMask_ - : createMaskBuilder_.build(); + result.createMask_ = createMaskBuilder_ == null ? createMask_ : createMaskBuilder_.build(); } } @@ -682,38 +765,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.CreateDocumentRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentRequest) other); } else { super.mergeFrom(other); return this; @@ -721,7 +805,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateDocumentRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -768,52 +853,50 @@ 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: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getCloudAiDocumentOptionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getCreateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - 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: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getCloudAiDocumentOptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getCreateMaskFieldBuilder().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) { @@ -823,23 +906,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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; @@ -848,21 +936,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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 { @@ -870,30 +961,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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 name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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() { @@ -903,18 +1005,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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; @@ -924,39 +1032,58 @@ public Builder setParentBytes( private com.google.cloud.contentwarehouse.v1.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> documentBuilder_; + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + documentBuilder_; /** + * + * *
      * Required. The document to create.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.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 to create.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The document. */ public com.google.cloud.contentwarehouse.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } else { return documentBuilder_.getMessage(); } } /** + * + * *
      * Required. The document to create.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) { if (documentBuilder_ == null) { @@ -972,11 +1099,15 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) return this; } /** + * + * *
      * Required. The document to create.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocument( com.google.cloud.contentwarehouse.v1.Document.Builder builderForValue) { @@ -990,17 +1121,21 @@ public Builder setDocument( return this; } /** + * + * *
      * Required. The document to create.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - document_ != null && - document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && document_ != null + && document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; @@ -1013,11 +1148,15 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value return this; } /** + * + * *
      * Required. The document to create.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDocument() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1030,11 +1169,15 @@ public Builder clearDocument() { return this; } /** + * + * *
      * Required. The document to create.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder() { bitField0_ |= 0x00000002; @@ -1042,36 +1185,48 @@ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder( return getDocumentFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The document to create.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() { if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null ? - com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } } /** + * + * *
      * Required. The document to create.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( - getDocument(), - getParentForChildren(), - isClean()); + documentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( + getDocument(), getParentForChildren(), isClean()); document_ = null; } return documentBuilder_; @@ -1079,36 +1234,49 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> + requestMetadataBuilder_; /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1130,6 +1298,8 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1149,6 +1319,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1156,11 +1328,13 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(
+        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          requestMetadata_ != null &&
-          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && requestMetadata_ != null
+            && requestMetadata_
+                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -1173,6 +1347,8 @@ public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.Request
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1191,6 +1367,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1198,12 +1376,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+        getRequestMetadataBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1211,15 +1392,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMe
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+        getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+        return requestMetadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+            : requestMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1228,14 +1413,17 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(),
-                getParentForChildren(),
-                isClean());
+        requestMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RequestMetadata,
+                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(), getParentForChildren(), isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
@@ -1243,8 +1431,13 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
 
     private com.google.iam.v1.Policy policy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_;
+            com.google.iam.v1.Policy,
+            com.google.iam.v1.Policy.Builder,
+            com.google.iam.v1.PolicyOrBuilder>
+        policyBuilder_;
     /**
+     *
+     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1253,12 +1446,15 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * 
* * .google.iam.v1.Policy policy = 4; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1267,6 +1463,7 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 4; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -1277,6 +1474,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1300,6 +1499,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1309,8 +1510,7 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
      *
      * .google.iam.v1.Policy policy = 4;
      */
-    public Builder setPolicy(
-        com.google.iam.v1.Policy.Builder builderForValue) {
+    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
       } else {
@@ -1321,6 +1521,8 @@ public Builder setPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1332,9 +1534,9 @@ public Builder setPolicy(
      */
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          policy_ != null &&
-          policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && policy_ != null
+            && policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
           getPolicyBuilder().mergeFrom(value);
         } else {
           policy_ = value;
@@ -1347,6 +1549,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1367,6 +1571,8 @@ public Builder clearPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1382,6 +1588,8 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1395,11 +1603,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ?
-            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
+     *
+     *
      * 
      * Default document policy during creation.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -1410,14 +1619,16 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v1.Policy policy = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
+            com.google.iam.v1.Policy,
+            com.google.iam.v1.Policy.Builder,
+            com.google.iam.v1.PolicyOrBuilder>
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
-                getPolicy(),
-                getParentForChildren(),
-                isClean());
+        policyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.iam.v1.Policy,
+                com.google.iam.v1.Policy.Builder,
+                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
         policy_ = null;
       }
       return policyBuilder_;
@@ -1425,8 +1636,13 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
 
     private com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloudAiDocumentOption_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder> cloudAiDocumentOptionBuilder_;
+            com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption,
+            com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder,
+            com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder>
+        cloudAiDocumentOptionBuilder_;
     /**
+     *
+     *
      * 
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1434,13 +1650,17 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * + * * @return Whether the cloudAiDocumentOption field is set. */ public boolean hasCloudAiDocumentOption() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1448,17 +1668,23 @@ public boolean hasCloudAiDocumentOption() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * + * * @return The cloudAiDocumentOption. */ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocumentOption() { if (cloudAiDocumentOptionBuilder_ == null) { - return cloudAiDocumentOption_ == null ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; + return cloudAiDocumentOption_ == null + ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() + : cloudAiDocumentOption_; } else { return cloudAiDocumentOptionBuilder_.getMessage(); } } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1466,9 +1692,11 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocu
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ - public Builder setCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { + public Builder setCloudAiDocumentOption( + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { if (cloudAiDocumentOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1482,6 +1710,8 @@ public Builder setCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.Clo return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1489,7 +1719,8 @@ public Builder setCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.Clo
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ public Builder setCloudAiDocumentOption( com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder builderForValue) { @@ -1503,6 +1734,8 @@ public Builder setCloudAiDocumentOption( return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1510,13 +1743,17 @@ public Builder setCloudAiDocumentOption(
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ - public Builder mergeCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { + public Builder mergeCloudAiDocumentOption( + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { if (cloudAiDocumentOptionBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - cloudAiDocumentOption_ != null && - cloudAiDocumentOption_ != com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && cloudAiDocumentOption_ != null + && cloudAiDocumentOption_ + != com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption + .getDefaultInstance()) { getCloudAiDocumentOptionBuilder().mergeFrom(value); } else { cloudAiDocumentOption_ = value; @@ -1529,6 +1766,8 @@ public Builder mergeCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.C return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1536,7 +1775,8 @@ public Builder mergeCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.C
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ public Builder clearCloudAiDocumentOption() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1549,6 +1789,8 @@ public Builder clearCloudAiDocumentOption() { return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1556,14 +1798,18 @@ public Builder clearCloudAiDocumentOption() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ - public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder getCloudAiDocumentOptionBuilder() { + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder + getCloudAiDocumentOptionBuilder() { bitField0_ |= 0x00000010; onChanged(); return getCloudAiDocumentOptionFieldBuilder().getBuilder(); } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1571,17 +1817,22 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder getClo
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ - public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder() { + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder + getCloudAiDocumentOptionOrBuilder() { if (cloudAiDocumentOptionBuilder_ != null) { return cloudAiDocumentOptionBuilder_.getMessageOrBuilder(); } else { - return cloudAiDocumentOption_ == null ? - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; + return cloudAiDocumentOption_ == null + ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() + : cloudAiDocumentOption_; } } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1589,17 +1840,21 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCl
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder> + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder> getCloudAiDocumentOptionFieldBuilder() { if (cloudAiDocumentOptionBuilder_ == null) { - cloudAiDocumentOptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder>( - getCloudAiDocumentOption(), - getParentForChildren(), - isClean()); + cloudAiDocumentOptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder>( + getCloudAiDocumentOption(), getParentForChildren(), isClean()); cloudAiDocumentOption_ = null; } return cloudAiDocumentOptionBuilder_; @@ -1607,8 +1862,13 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCl private com.google.protobuf.FieldMask createMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> createMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + createMaskBuilder_; /** + * + * *
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1618,12 +1878,15 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCl
      * 
* * .google.protobuf.FieldMask create_mask = 6; + * * @return Whether the createMask field is set. */ public boolean hasCreateMask() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1633,16 +1896,21 @@ public boolean hasCreateMask() {
      * 
* * .google.protobuf.FieldMask create_mask = 6; + * * @return The createMask. */ public com.google.protobuf.FieldMask getCreateMask() { if (createMaskBuilder_ == null) { - return createMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : createMask_; + return createMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : createMask_; } else { return createMaskBuilder_.getMessage(); } } /** + * + * *
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1667,6 +1935,8 @@ public Builder setCreateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1677,8 +1947,7 @@ public Builder setCreateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask create_mask = 6;
      */
-    public Builder setCreateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setCreateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (createMaskBuilder_ == null) {
         createMask_ = builderForValue.build();
       } else {
@@ -1689,6 +1958,8 @@ public Builder setCreateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1701,9 +1972,9 @@ public Builder setCreateMask(
      */
     public Builder mergeCreateMask(com.google.protobuf.FieldMask value) {
       if (createMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0) &&
-          createMask_ != null &&
-          createMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0)
+            && createMask_ != null
+            && createMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getCreateMaskBuilder().mergeFrom(value);
         } else {
           createMask_ = value;
@@ -1716,6 +1987,8 @@ public Builder mergeCreateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1737,6 +2010,8 @@ public Builder clearCreateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1753,6 +2028,8 @@ public com.google.protobuf.FieldMask.Builder getCreateMaskBuilder() {
       return getCreateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1767,11 +2044,14 @@ public com.google.protobuf.FieldMaskOrBuilder getCreateMaskOrBuilder() {
       if (createMaskBuilder_ != null) {
         return createMaskBuilder_.getMessageOrBuilder();
       } else {
-        return createMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : createMask_;
+        return createMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : createMask_;
       }
     }
     /**
+     *
+     *
      * 
      * Field mask for creating Document fields. If mask path is empty,
      * it means all fields are masked.
@@ -1783,21 +2063,24 @@ public com.google.protobuf.FieldMaskOrBuilder getCreateMaskOrBuilder() {
      * .google.protobuf.FieldMask create_mask = 6;
      */
     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>
         getCreateMaskFieldBuilder() {
       if (createMaskBuilder_ == null) {
-        createMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getCreateMask(),
-                getParentForChildren(),
-                isClean());
+        createMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getCreateMask(), getParentForChildren(), isClean());
         createMask_ = null;
       }
       return createMaskBuilder_;
     }
+
     @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);
     }
 
@@ -1807,12 +2090,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateDocumentRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateDocumentRequest)
   private static final com.google.cloud.contentwarehouse.v1.CreateDocumentRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateDocumentRequest();
   }
@@ -1821,27 +2104,27 @@ public static com.google.cloud.contentwarehouse.v1.CreateDocumentRequest getDefa
     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;
@@ -1856,6 +2139,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.CreateDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java
similarity index 77%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java
index e56a943c0db6..1f8ad31010c6 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentRequestOrBuilder.java
@@ -1,82 +1,129 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_service_request.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface CreateDocumentRequestOrBuilder extends
+public interface CreateDocumentRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 to create.
    * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the document field is set. */ boolean hasDocument(); /** + * + * *
    * Required. The document to create.
    * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The document. */ com.google.cloud.contentwarehouse.v1.Document getDocument(); /** + * + * *
    * Required. The document to create.
    * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -87,6 +134,8 @@ public interface CreateDocumentRequestOrBuilder extends
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
+   *
+   *
    * 
    * Default document policy during creation.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -95,10 +144,13 @@ public interface CreateDocumentRequestOrBuilder extends
    * 
* * .google.iam.v1.Policy policy = 4; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * Default document policy during creation.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -107,10 +159,13 @@ public interface CreateDocumentRequestOrBuilder extends
    * 
* * .google.iam.v1.Policy policy = 4; + * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** + * + * *
    * Default document policy during creation.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -123,6 +178,8 @@ public interface CreateDocumentRequestOrBuilder extends
   com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -130,11 +187,15 @@ public interface CreateDocumentRequestOrBuilder extends
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * + * * @return Whether the cloudAiDocumentOption field is set. */ boolean hasCloudAiDocumentOption(); /** + * + * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -142,11 +203,15 @@ public interface CreateDocumentRequestOrBuilder extends
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * + * * @return The cloudAiDocumentOption. */ com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocumentOption(); /** + * + * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -154,11 +219,15 @@ public interface CreateDocumentRequestOrBuilder extends
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder(); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder + getCloudAiDocumentOptionOrBuilder(); /** + * + * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
@@ -168,10 +237,13 @@ public interface CreateDocumentRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask create_mask = 6; + * * @return Whether the createMask field is set. */ boolean hasCreateMask(); /** + * + * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
@@ -181,10 +253,13 @@ public interface CreateDocumentRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask create_mask = 6; + * * @return The createMask. */ com.google.protobuf.FieldMask getCreateMask(); /** + * + * *
    * Field mask for creating Document fields. If mask path is empty,
    * it means all fields are masked.
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java
similarity index 73%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java
index 698c594498b9..8790676d78f2 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponse.java
@@ -1,56 +1,78 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Response message for DocumentService.CreateDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentResponse} */ -public final class CreateDocumentResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CreateDocumentResponse) CreateDocumentResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateDocumentResponse.newBuilder() to construct. private CreateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateDocumentResponse() { longRunningOperations_ = 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 CreateDocumentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.class, com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.class, + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.Builder.class); } public static final int DOCUMENT_FIELD_NUMBER = 1; private com.google.cloud.contentwarehouse.v1.Document document_; /** + * + * *
    * Document created after executing create request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return Whether the document field is set. */ @java.lang.Override @@ -58,18 +80,25 @@ public boolean hasDocument() { return document_ != null; } /** + * + * *
    * Document created after executing create request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return The document. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.Document getDocument() { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } /** + * + * *
    * Document created after executing create request.
    * 
@@ -78,12 +107,16 @@ public com.google.cloud.contentwarehouse.v1.Document getDocument() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } public static final int RULE_ENGINE_OUTPUT_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RuleEngineOutput ruleEngineOutput_; /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -92,6 +125,7 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; + * * @return Whether the ruleEngineOutput field is set. */ @java.lang.Override @@ -99,6 +133,8 @@ public boolean hasRuleEngineOutput() { return ruleEngineOutput_ != null; } /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -107,13 +143,18 @@ public boolean hasRuleEngineOutput() {
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; + * * @return The ruleEngineOutput. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput() { - return ruleEngineOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_; + return ruleEngineOutput_ == null + ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() + : ruleEngineOutput_; } /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -124,19 +165,25 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput
    * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder() {
-    return ruleEngineOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_;
+  public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder
+      getRuleEngineOutputOrBuilder() {
+    return ruleEngineOutput_ == null
+        ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()
+        : ruleEngineOutput_;
   }
 
   public static final int METADATA_FIELD_NUMBER = 3;
   private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_;
   /**
+   *
+   *
    * 
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -144,19 +191,26 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; + * * @return The metadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -166,13 +220,18 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() {
    */
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder() {
-    return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
+    return metadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
+        : metadata_;
   }
 
   public static final int LONG_RUNNING_OPERATIONS_FIELD_NUMBER = 4;
+
   @SuppressWarnings("serial")
   private java.util.List longRunningOperations_;
   /**
+   *
+   *
    * 
    * post-processing LROs
    * 
@@ -184,6 +243,8 @@ public java.util.List getLongRunningOperations return longRunningOperations_; } /** + * + * *
    * post-processing LROs
    * 
@@ -191,11 +252,13 @@ public java.util.List getLongRunningOperations * repeated .google.longrunning.Operation long_running_operations = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLongRunningOperationsOrBuilderList() { return longRunningOperations_; } /** + * + * *
    * post-processing LROs
    * 
@@ -207,6 +270,8 @@ public int getLongRunningOperationsCount() { return longRunningOperations_.size(); } /** + * + * *
    * post-processing LROs
    * 
@@ -218,6 +283,8 @@ public com.google.longrunning.Operation getLongRunningOperations(int index) { return longRunningOperations_.get(index); } /** + * + * *
    * post-processing LROs
    * 
@@ -225,12 +292,12 @@ public com.google.longrunning.Operation getLongRunningOperations(int index) { * repeated .google.longrunning.Operation long_running_operations = 4; */ @java.lang.Override - public com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuilder( - int index) { + public com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuilder(int index) { return longRunningOperations_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (document_ != null) { output.writeMessage(1, getDocument()); } @@ -266,20 +332,18 @@ 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 (ruleEngineOutput_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRuleEngineOutput()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuleEngineOutput()); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); } for (int i = 0; i < longRunningOperations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, longRunningOperations_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, longRunningOperations_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -289,30 +353,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.contentwarehouse.v1.CreateDocumentResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse other = (com.google.cloud.contentwarehouse.v1.CreateDocumentResponse) obj; + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse other = + (com.google.cloud.contentwarehouse.v1.CreateDocumentResponse) obj; if (hasDocument() != other.hasDocument()) return false; if (hasDocument()) { - if (!getDocument() - .equals(other.getDocument())) return false; + if (!getDocument().equals(other.getDocument())) return false; } if (hasRuleEngineOutput() != other.hasRuleEngineOutput()) return false; if (hasRuleEngineOutput()) { - if (!getRuleEngineOutput() - .equals(other.getRuleEngineOutput())) return false; + if (!getRuleEngineOutput().equals(other.getRuleEngineOutput())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; + if (!getMetadata().equals(other.getMetadata())) return false; } - if (!getLongRunningOperationsList() - .equals(other.getLongRunningOperationsList())) return false; + if (!getLongRunningOperationsList().equals(other.getLongRunningOperationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,131 +407,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse 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.contentwarehouse.v1.CreateDocumentResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse 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.contentwarehouse.v1.CreateDocumentResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CreateDocumentResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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.CreateDocument.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CreateDocumentResponse) com.google.cloud.contentwarehouse.v1.CreateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.class, com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.class, + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -501,9 +567,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor; } @java.lang.Override @@ -522,14 +588,18 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse result = new com.google.cloud.contentwarehouse.v1.CreateDocumentResponse(this); + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse result = + new com.google.cloud.contentwarehouse.v1.CreateDocumentResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.CreateDocumentResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.CreateDocumentResponse result) { if (longRunningOperationsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { longRunningOperations_ = java.util.Collections.unmodifiableList(longRunningOperations_); @@ -544,19 +614,14 @@ private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.Cre private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentResponse 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.ruleEngineOutput_ = ruleEngineOutputBuilder_ == null - ? ruleEngineOutput_ - : ruleEngineOutputBuilder_.build(); + result.ruleEngineOutput_ = + ruleEngineOutputBuilder_ == null ? ruleEngineOutput_ : ruleEngineOutputBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.metadata_ = metadataBuilder_ == null - ? metadata_ - : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); } } @@ -564,38 +629,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.CreateDocumentResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentResponse)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +669,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateDocumentResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.getDefaultInstance()) + return this; if (other.hasDocument()) { mergeDocument(other.getDocument()); } @@ -631,9 +698,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateDocumentResp longRunningOperationsBuilder_ = null; longRunningOperations_ = other.longRunningOperations_; bitField0_ = (bitField0_ & ~0x00000008); - longRunningOperationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLongRunningOperationsFieldBuilder() : null; + longRunningOperationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLongRunningOperationsFieldBuilder() + : null; } else { longRunningOperationsBuilder_.addAllMessages(other.longRunningOperations_); } @@ -665,46 +733,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDocumentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRuleEngineOutputFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - com.google.longrunning.Operation m = - input.readMessage( - com.google.longrunning.Operation.parser(), - extensionRegistry); - if (longRunningOperationsBuilder_ == null) { - ensureLongRunningOperationsIsMutable(); - longRunningOperations_.add(m); - } else { - longRunningOperationsBuilder_.addMessage(m); - } - break; - } // case 34 - 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 18: + { + input.readMessage( + getRuleEngineOutputFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.longrunning.Operation m = + input.readMessage(com.google.longrunning.Operation.parser(), extensionRegistry); + if (longRunningOperationsBuilder_ == null) { + ensureLongRunningOperationsIsMutable(); + longRunningOperations_.add(m); + } else { + longRunningOperationsBuilder_.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) { @@ -714,38 +780,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.contentwarehouse.v1.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> documentBuilder_; + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + documentBuilder_; /** + * + * *
      * Document created after executing create request.
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Document created after executing create request.
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return The document. */ public com.google.cloud.contentwarehouse.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } else { return documentBuilder_.getMessage(); } } /** + * + * *
      * Document created after executing create request.
      * 
@@ -766,6 +846,8 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) return this; } /** + * + * *
      * Document created after executing create request.
      * 
@@ -784,6 +866,8 @@ public Builder setDocument( return this; } /** + * + * *
      * Document created after executing create request.
      * 
@@ -792,9 +876,9 @@ public Builder setDocument( */ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - document_ != null && - document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && document_ != null + && document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; @@ -807,6 +891,8 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value return this; } /** + * + * *
      * Document created after executing create request.
      * 
@@ -824,6 +910,8 @@ public Builder clearDocument() { return this; } /** + * + * *
      * Document created after executing create request.
      * 
@@ -836,6 +924,8 @@ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder( return getDocumentFieldBuilder().getBuilder(); } /** + * + * *
      * Document created after executing create request.
      * 
@@ -846,11 +936,14 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null ? - com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } } /** + * + * *
      * Document created after executing create request.
      * 
@@ -858,14 +951,17 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild * .google.cloud.contentwarehouse.v1.Document document = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( - getDocument(), - getParentForChildren(), - isClean()); + documentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( + getDocument(), getParentForChildren(), isClean()); document_ = null; } return documentBuilder_; @@ -873,8 +969,13 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild private com.google.cloud.contentwarehouse.v1.RuleEngineOutput ruleEngineOutput_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleEngineOutput, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder> ruleEngineOutputBuilder_; + com.google.cloud.contentwarehouse.v1.RuleEngineOutput, + com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, + com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder> + ruleEngineOutputBuilder_; /** + * + * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -883,12 +984,15 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
      * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; + * * @return Whether the ruleEngineOutput field is set. */ public boolean hasRuleEngineOutput() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -897,16 +1001,21 @@ public boolean hasRuleEngineOutput() {
      * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; + * * @return The ruleEngineOutput. */ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput() { if (ruleEngineOutputBuilder_ == null) { - return ruleEngineOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_; + return ruleEngineOutput_ == null + ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() + : ruleEngineOutput_; } else { return ruleEngineOutputBuilder_.getMessage(); } } /** + * + * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -916,7 +1025,8 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public Builder setRuleEngineOutput(com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
+    public Builder setRuleEngineOutput(
+        com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
       if (ruleEngineOutputBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -930,6 +1040,8 @@ public Builder setRuleEngineOutput(com.google.cloud.contentwarehouse.v1.RuleEngi
       return this;
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -951,6 +1063,8 @@ public Builder setRuleEngineOutput(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -960,11 +1074,13 @@ public Builder setRuleEngineOutput(
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public Builder mergeRuleEngineOutput(com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
+    public Builder mergeRuleEngineOutput(
+        com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
       if (ruleEngineOutputBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          ruleEngineOutput_ != null &&
-          ruleEngineOutput_ != com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && ruleEngineOutput_ != null
+            && ruleEngineOutput_
+                != com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()) {
           getRuleEngineOutputBuilder().mergeFrom(value);
         } else {
           ruleEngineOutput_ = value;
@@ -977,6 +1093,8 @@ public Builder mergeRuleEngineOutput(com.google.cloud.contentwarehouse.v1.RuleEn
       return this;
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -997,6 +1115,8 @@ public Builder clearRuleEngineOutput() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -1006,12 +1126,15 @@ public Builder clearRuleEngineOutput() {
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder getRuleEngineOutputBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder
+        getRuleEngineOutputBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRuleEngineOutputFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -1021,15 +1144,19 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder getRuleEngi
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder
+        getRuleEngineOutputOrBuilder() {
       if (ruleEngineOutputBuilder_ != null) {
         return ruleEngineOutputBuilder_.getMessageOrBuilder();
       } else {
-        return ruleEngineOutput_ == null ?
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_;
+        return ruleEngineOutput_ == null
+            ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()
+            : ruleEngineOutput_;
       }
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -1040,14 +1167,17 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEng
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RuleEngineOutput, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput,
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder,
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder>
         getRuleEngineOutputFieldBuilder() {
       if (ruleEngineOutputBuilder_ == null) {
-        ruleEngineOutputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder>(
-                getRuleEngineOutput(),
-                getParentForChildren(),
-                isClean());
+        ruleEngineOutputBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RuleEngineOutput,
+                com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder,
+                com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder>(
+                getRuleEngineOutput(), getParentForChildren(), isClean());
         ruleEngineOutput_ = null;
       }
       return ruleEngineOutputBuilder_;
@@ -1055,36 +1185,49 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEng
 
     private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> metadataBuilder_;
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; + * * @return The metadata. */ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1106,6 +1249,8 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1125,6 +1270,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1134,9 +1281,10 @@ public Builder setMetadata(
      */
     public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          metadata_ != null &&
-          metadata_ != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && metadata_ != null
+            && metadata_
+                != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -1149,6 +1297,8 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1167,6 +1317,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1180,6 +1332,8 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadata
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1191,11 +1345,14 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
+        return metadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
+            : metadata_;
       }
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1204,32 +1361,42 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
-                getMetadata(),
-                getParentForChildren(),
-                isClean());
+        metadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.ResponseMetadata,
+                com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
+                getMetadata(), getParentForChildren(), isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
 
     private java.util.List longRunningOperations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureLongRunningOperationsIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
-        longRunningOperations_ = new java.util.ArrayList(longRunningOperations_);
+        longRunningOperations_ =
+            new java.util.ArrayList(longRunningOperations_);
         bitField0_ |= 0x00000008;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> longRunningOperationsBuilder_;
+            com.google.longrunning.Operation,
+            com.google.longrunning.Operation.Builder,
+            com.google.longrunning.OperationOrBuilder>
+        longRunningOperationsBuilder_;
 
     /**
+     *
+     *
      * 
      * post-processing LROs
      * 
@@ -1244,6 +1411,8 @@ public java.util.List getLongRunningOperations } } /** + * + * *
      * post-processing LROs
      * 
@@ -1258,6 +1427,8 @@ public int getLongRunningOperationsCount() { } } /** + * + * *
      * post-processing LROs
      * 
@@ -1272,14 +1443,15 @@ public com.google.longrunning.Operation getLongRunningOperations(int index) { } } /** + * + * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public Builder setLongRunningOperations( - int index, com.google.longrunning.Operation value) { + public Builder setLongRunningOperations(int index, com.google.longrunning.Operation value) { if (longRunningOperationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1293,6 +1465,8 @@ public Builder setLongRunningOperations( return this; } /** + * + * *
      * post-processing LROs
      * 
@@ -1311,6 +1485,8 @@ public Builder setLongRunningOperations( return this; } /** + * + * *
      * post-processing LROs
      * 
@@ -1331,14 +1507,15 @@ public Builder addLongRunningOperations(com.google.longrunning.Operation value) return this; } /** + * + * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public Builder addLongRunningOperations( - int index, com.google.longrunning.Operation value) { + public Builder addLongRunningOperations(int index, com.google.longrunning.Operation value) { if (longRunningOperationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1352,6 +1529,8 @@ public Builder addLongRunningOperations( return this; } /** + * + * *
      * post-processing LROs
      * 
@@ -1370,6 +1549,8 @@ public Builder addLongRunningOperations( return this; } /** + * + * *
      * post-processing LROs
      * 
@@ -1388,6 +1569,8 @@ public Builder addLongRunningOperations( return this; } /** + * + * *
      * post-processing LROs
      * 
@@ -1398,8 +1581,7 @@ public Builder addAllLongRunningOperations( java.lang.Iterable values) { if (longRunningOperationsBuilder_ == null) { ensureLongRunningOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, longRunningOperations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, longRunningOperations_); onChanged(); } else { longRunningOperationsBuilder_.addAllMessages(values); @@ -1407,6 +1589,8 @@ public Builder addAllLongRunningOperations( return this; } /** + * + * *
      * post-processing LROs
      * 
@@ -1424,6 +1608,8 @@ public Builder clearLongRunningOperations() { return this; } /** + * + * *
      * post-processing LROs
      * 
@@ -1441,39 +1627,44 @@ public Builder removeLongRunningOperations(int index) { return this; } /** + * + * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public com.google.longrunning.Operation.Builder getLongRunningOperationsBuilder( - int index) { + public com.google.longrunning.Operation.Builder getLongRunningOperationsBuilder(int index) { return getLongRunningOperationsFieldBuilder().getBuilder(index); } /** + * + * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuilder( - int index) { + public com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuilder(int index) { if (longRunningOperationsBuilder_ == null) { - return longRunningOperations_.get(index); } else { + return longRunningOperations_.get(index); + } else { return longRunningOperationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public java.util.List - getLongRunningOperationsOrBuilderList() { + public java.util.List + getLongRunningOperationsOrBuilderList() { if (longRunningOperationsBuilder_ != null) { return longRunningOperationsBuilder_.getMessageOrBuilderList(); } else { @@ -1481,6 +1672,8 @@ public com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuild } } /** + * + * *
      * post-processing LROs
      * 
@@ -1488,38 +1681,47 @@ public com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuild * repeated .google.longrunning.Operation long_running_operations = 4; */ public com.google.longrunning.Operation.Builder addLongRunningOperationsBuilder() { - return getLongRunningOperationsFieldBuilder().addBuilder( - com.google.longrunning.Operation.getDefaultInstance()); + return getLongRunningOperationsFieldBuilder() + .addBuilder(com.google.longrunning.Operation.getDefaultInstance()); } /** + * + * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public com.google.longrunning.Operation.Builder addLongRunningOperationsBuilder( - int index) { - return getLongRunningOperationsFieldBuilder().addBuilder( - index, com.google.longrunning.Operation.getDefaultInstance()); + public com.google.longrunning.Operation.Builder addLongRunningOperationsBuilder(int index) { + return getLongRunningOperationsFieldBuilder() + .addBuilder(index, com.google.longrunning.Operation.getDefaultInstance()); } /** + * + * *
      * post-processing LROs
      * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - public java.util.List - getLongRunningOperationsBuilderList() { + public java.util.List + getLongRunningOperationsBuilderList() { return getLongRunningOperationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> + com.google.longrunning.Operation, + com.google.longrunning.Operation.Builder, + com.google.longrunning.OperationOrBuilder> getLongRunningOperationsFieldBuilder() { if (longRunningOperationsBuilder_ == null) { - longRunningOperationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder>( + longRunningOperationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.longrunning.Operation, + com.google.longrunning.Operation.Builder, + com.google.longrunning.OperationOrBuilder>( longRunningOperations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -1528,9 +1730,9 @@ public com.google.longrunning.Operation.Builder addLongRunningOperationsBuilder( } return longRunningOperationsBuilder_; } + @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); } @@ -1540,12 +1742,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateDocumentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateDocumentResponse) private static final com.google.cloud.contentwarehouse.v1.CreateDocumentResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateDocumentResponse(); } @@ -1554,27 +1756,27 @@ public static com.google.cloud.contentwarehouse.v1.CreateDocumentResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDocumentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateDocumentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1589,6 +1791,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java similarity index 81% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java index 2c849f8b05f1..5d1eed1e2029 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentResponseOrBuilder.java @@ -1,31 +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/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; -public interface CreateDocumentResponseOrBuilder extends +public interface CreateDocumentResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Document created after executing create request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return Whether the document field is set. */ boolean hasDocument(); /** + * + * *
    * Document created after executing create request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return The document. */ com.google.cloud.contentwarehouse.v1.Document getDocument(); /** + * + * *
    * Document created after executing create request.
    * 
@@ -35,6 +59,8 @@ public interface CreateDocumentResponseOrBuilder extends com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder(); /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -43,10 +69,13 @@ public interface CreateDocumentResponseOrBuilder extends
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; + * * @return Whether the ruleEngineOutput field is set. */ boolean hasRuleEngineOutput(); /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -55,10 +84,13 @@ public interface CreateDocumentResponseOrBuilder extends
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; + * * @return The ruleEngineOutput. */ com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput(); /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -71,26 +103,34 @@ public interface CreateDocumentResponseOrBuilder extends
   com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder();
 
   /**
+   *
+   *
    * 
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; + * * @return The metadata. */ com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -101,15 +141,18 @@ public interface CreateDocumentResponseOrBuilder extends
   com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder();
 
   /**
+   *
+   *
    * 
    * post-processing LROs
    * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - java.util.List - getLongRunningOperationsList(); + java.util.List getLongRunningOperationsList(); /** + * + * *
    * post-processing LROs
    * 
@@ -118,6 +161,8 @@ public interface CreateDocumentResponseOrBuilder extends */ com.google.longrunning.Operation getLongRunningOperations(int index); /** + * + * *
    * post-processing LROs
    * 
@@ -126,21 +171,24 @@ public interface CreateDocumentResponseOrBuilder extends */ int getLongRunningOperationsCount(); /** + * + * *
    * post-processing LROs
    * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - java.util.List + java.util.List getLongRunningOperationsOrBuilderList(); /** + * + * *
    * post-processing LROs
    * 
* * repeated .google.longrunning.Operation long_running_operations = 4; */ - com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuilder( - int index); + com.google.longrunning.OperationOrBuilder getLongRunningOperationsOrBuilder(int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java similarity index 59% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java index ef468e0732d4..7a8f541e450e 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentSchemaService.CreateDocumentSchema.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest} */ -public final class CreateDocumentSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateDocumentSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) CreateDocumentSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateDocumentSchemaRequest.newBuilder() to construct. private CreateDocumentSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateDocumentSchemaRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDocumentSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.class, + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent name.
    * 
* - * string 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 @@ -60,29 +85,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 name.
    * 
* - * string 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 { @@ -93,11 +120,16 @@ public java.lang.String getParent() { public static final int DOCUMENT_SCHEMA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.DocumentSchema documentSchema_; /** + * + * *
    * Required. The document schema to create.
    * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentSchema field is set. */ @java.lang.Override @@ -105,30 +137,44 @@ public boolean hasDocumentSchema() { return documentSchema_ != null; } /** + * + * *
    * Required. The document schema to create.
    * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentSchema. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema() { - return documentSchema_ == null ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; + return documentSchema_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() + : documentSchema_; } /** + * + * *
    * Required. The document schema to create.
    * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder() { - return documentSchema_ == null ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; + return documentSchema_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() + : documentSchema_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -161,8 +206,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (documentSchema_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDocumentSchema()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentSchema()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -172,19 +216,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.contentwarehouse.v1.CreateDocumentSchemaRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest other = (com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) obj; + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest other = + (com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasDocumentSchema() != other.hasDocumentSchema()) return false; if (hasDocumentSchema()) { - if (!getDocumentSchema() - .equals(other.getDocumentSchema())) return false; + if (!getDocumentSchema().equals(other.getDocumentSchema())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -209,131 +252,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest 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.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest 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.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 DocumentSchemaService.CreateDocumentSchema.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.class, + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -348,13 +396,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.getDefaultInstance(); } @@ -369,21 +418,24 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest build() @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest result = new com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest result = + new com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.documentSchema_ = documentSchemaBuilder_ == null - ? documentSchema_ - : documentSchemaBuilder_.build(); + result.documentSchema_ = + documentSchemaBuilder_ == null ? documentSchema_ : documentSchemaBuilder_.build(); } } @@ -391,46 +443,50 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateDocumentSc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.CreateDocumentSchemaRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest other) { + if (other + == com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -465,24 +521,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDocumentSchemaFieldBuilder().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(getDocumentSchemaFieldBuilder().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) { @@ -492,22 +549,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent name.
      * 
* - * string 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; @@ -516,20 +578,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent name.
      * 
* - * string 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 { @@ -537,28 +602,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent name.
      * 
* - * 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 name.
      * 
* - * string 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() { @@ -568,17 +644,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent name.
      * 
* - * 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; @@ -588,39 +670,58 @@ public Builder setParentBytes( private com.google.cloud.contentwarehouse.v1.DocumentSchema documentSchema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> documentSchemaBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentSchema, + com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> + documentSchemaBuilder_; /** + * + * *
      * Required. The document schema to create.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentSchema field is set. */ public boolean hasDocumentSchema() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The document schema to create.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentSchema. */ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema() { if (documentSchemaBuilder_ == null) { - return documentSchema_ == null ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; + return documentSchema_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() + : documentSchema_; } else { return documentSchemaBuilder_.getMessage(); } } /** + * + * *
      * Required. The document schema to create.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocumentSchema(com.google.cloud.contentwarehouse.v1.DocumentSchema value) { if (documentSchemaBuilder_ == null) { @@ -636,11 +737,15 @@ public Builder setDocumentSchema(com.google.cloud.contentwarehouse.v1.DocumentSc return this; } /** + * + * *
      * Required. The document schema to create.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocumentSchema( com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder builderForValue) { @@ -654,17 +759,22 @@ public Builder setDocumentSchema( return this; } /** + * + * *
      * Required. The document schema to create.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDocumentSchema(com.google.cloud.contentwarehouse.v1.DocumentSchema value) { if (documentSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - documentSchema_ != null && - documentSchema_ != com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && documentSchema_ != null + && documentSchema_ + != com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()) { getDocumentSchemaBuilder().mergeFrom(value); } else { documentSchema_ = value; @@ -677,11 +787,15 @@ public Builder mergeDocumentSchema(com.google.cloud.contentwarehouse.v1.Document return this; } /** + * + * *
      * Required. The document schema to create.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDocumentSchema() { bitField0_ = (bitField0_ & ~0x00000002); @@ -694,11 +808,15 @@ public Builder clearDocumentSchema() { return this; } /** + * + * *
      * Required. The document schema to create.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSchemaBuilder() { bitField0_ |= 0x00000002; @@ -706,43 +824,56 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSc return getDocumentSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The document schema to create.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder + getDocumentSchemaOrBuilder() { if (documentSchemaBuilder_ != null) { return documentSchemaBuilder_.getMessageOrBuilder(); } else { - return documentSchema_ == null ? - com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; + return documentSchema_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() + : documentSchema_; } } /** + * + * *
      * Required. The document schema to create.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentSchema, + com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> getDocumentSchemaFieldBuilder() { if (documentSchemaBuilder_ == null) { - documentSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder>( - getDocumentSchema(), - getParentForChildren(), - isClean()); + documentSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentSchema, + com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder>( + getDocumentSchema(), getParentForChildren(), isClean()); documentSchema_ = null; } return documentSchemaBuilder_; } + @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); } @@ -752,41 +883,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) - private static final com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest(); } - public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDocumentSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateDocumentSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -798,9 +931,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..ebd11f86c159 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface CreateDocumentSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent name.
+   * 
+ * + * + * 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 schema to create.
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the documentSchema field is set. + */ + boolean hasDocumentSchema(); + /** + * + * + *
+   * Required. The document schema to create.
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The documentSchema. + */ + com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema(); + /** + * + * + *
+   * Required. The document schema to create.
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder(); +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java similarity index 61% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java index 1a8d99756c0f..38b1eb9ea1bb 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequest.java @@ -1,58 +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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for RuleSetService.CreateRuleSet.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateRuleSetRequest} */ -public final class CreateRuleSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateRuleSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CreateRuleSetRequest) CreateRuleSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateRuleSetRequest.newBuilder() to construct. private CreateRuleSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateRuleSetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateRuleSetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.class, + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 @@ -61,30 +86,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 { @@ -95,11 +122,16 @@ public java.lang.String getParent() { public static final int RULE_SET_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RuleSet ruleSet_; /** + * + * *
    * Required. The rule set to create.
    * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the ruleSet field is set. */ @java.lang.Override @@ -107,30 +139,44 @@ public boolean hasRuleSet() { return ruleSet_ != null; } /** + * + * *
    * Required. The rule set to create.
    * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The ruleSet. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet() { - return ruleSet_ == null ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; + return ruleSet_ == null + ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() + : ruleSet_; } /** + * + * *
    * Required. The rule set to create.
    * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder() { - return ruleSet_ == null ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; + return ruleSet_ == null + ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() + : ruleSet_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -163,8 +208,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (ruleSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRuleSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuleSet()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +218,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.contentwarehouse.v1.CreateRuleSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest other = (com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest) obj; + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest other = + (com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasRuleSet() != other.hasRuleSet()) return false; if (hasRuleSet()) { - if (!getRuleSet() - .equals(other.getRuleSet())) return false; + if (!getRuleSet().equals(other.getRuleSet())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +254,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest 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.contentwarehouse.v1.CreateRuleSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest 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.contentwarehouse.v1.CreateRuleSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 RuleSetService.CreateRuleSet.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateRuleSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CreateRuleSetRequest) com.google.cloud.contentwarehouse.v1.CreateRuleSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.class, + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor; } @java.lang.Override @@ -371,8 +419,11 @@ public com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest result = new com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest result = + new com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -383,9 +434,7 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateRuleSetReq result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.ruleSet_ = ruleSetBuilder_ == null - ? ruleSet_ - : ruleSetBuilder_.build(); + result.ruleSet_ = ruleSetBuilder_ == null ? ruleSet_ : ruleSetBuilder_.build(); } } @@ -393,38 +442,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateRuleSetReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.CreateRuleSetRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest) other); } else { super.mergeFrom(other); return this; @@ -432,7 +482,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -467,24 +518,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRuleSetFieldBuilder().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(getRuleSetFieldBuilder().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) { @@ -494,23 +546,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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; @@ -519,21 +576,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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 { @@ -541,30 +601,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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 name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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() { @@ -574,18 +645,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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; @@ -595,39 +672,58 @@ public Builder setParentBytes( private com.google.cloud.contentwarehouse.v1.RuleSet ruleSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> ruleSetBuilder_; + com.google.cloud.contentwarehouse.v1.RuleSet, + com.google.cloud.contentwarehouse.v1.RuleSet.Builder, + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> + ruleSetBuilder_; /** + * + * *
      * Required. The rule set to create.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the ruleSet field is set. */ public boolean hasRuleSet() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The rule set to create.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The ruleSet. */ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet() { if (ruleSetBuilder_ == null) { - return ruleSet_ == null ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; + return ruleSet_ == null + ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() + : ruleSet_; } else { return ruleSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The rule set to create.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) { if (ruleSetBuilder_ == null) { @@ -643,11 +739,15 @@ public Builder setRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) { return this; } /** + * + * *
      * Required. The rule set to create.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRuleSet( com.google.cloud.contentwarehouse.v1.RuleSet.Builder builderForValue) { @@ -661,17 +761,21 @@ public Builder setRuleSet( return this; } /** + * + * *
      * Required. The rule set to create.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) { if (ruleSetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - ruleSet_ != null && - ruleSet_ != com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && ruleSet_ != null + && ruleSet_ != com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()) { getRuleSetBuilder().mergeFrom(value); } else { ruleSet_ = value; @@ -684,11 +788,15 @@ public Builder mergeRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) return this; } /** + * + * *
      * Required. The rule set to create.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRuleSet() { bitField0_ = (bitField0_ & ~0x00000002); @@ -701,11 +809,15 @@ public Builder clearRuleSet() { return this; } /** + * + * *
      * Required. The rule set to create.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.RuleSet.Builder getRuleSetBuilder() { bitField0_ |= 0x00000002; @@ -713,43 +825,55 @@ public com.google.cloud.contentwarehouse.v1.RuleSet.Builder getRuleSetBuilder() return getRuleSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The rule set to create.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder() { if (ruleSetBuilder_ != null) { return ruleSetBuilder_.getMessageOrBuilder(); } else { - return ruleSet_ == null ? - com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; + return ruleSet_ == null + ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() + : ruleSet_; } } /** + * + * *
      * Required. The rule set to create.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> + com.google.cloud.contentwarehouse.v1.RuleSet, + com.google.cloud.contentwarehouse.v1.RuleSet.Builder, + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> getRuleSetFieldBuilder() { if (ruleSetBuilder_ == null) { - ruleSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>( - getRuleSet(), - getParentForChildren(), - isClean()); + ruleSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RuleSet, + com.google.cloud.contentwarehouse.v1.RuleSet.Builder, + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>( + getRuleSet(), getParentForChildren(), isClean()); ruleSet_ = null; } return ruleSetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -759,12 +883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateRuleSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateRuleSetRequest) private static final com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest(); } @@ -773,27 +897,27 @@ public static com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRuleSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateRuleSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,6 +932,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java new file mode 100644 index 000000000000..24a8c7eafed5 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface CreateRuleSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateRuleSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent name.
+   * Format: projects/{project_number}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent name.
+   * Format: projects/{project_number}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The rule set to create.
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the ruleSet field is set. + */ + boolean hasRuleSet(); + /** + * + * + *
+   * Required. The rule set to create.
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ruleSet. + */ + com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet(); + /** + * + * + *
+   * Required. The rule set to create.
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder(); +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java similarity index 60% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java index e9d320c2af14..42928808e519 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequest.java @@ -1,58 +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/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for SynonymSetService.CreateSynonymSet.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateSynonymSetRequest} */ -public final class CreateSynonymSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSynonymSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) CreateSynonymSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSynonymSetRequest.newBuilder() to construct. private CreateSynonymSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSynonymSetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSynonymSetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.class, + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 @@ -61,30 +86,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 { @@ -95,11 +122,16 @@ public java.lang.String getParent() { public static final int SYNONYM_SET_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.SynonymSet synonymSet_; /** + * + * *
    * Required. The synonymSet to be created for a context
    * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the synonymSet field is set. */ @java.lang.Override @@ -107,30 +139,44 @@ public boolean hasSynonymSet() { return synonymSet_ != null; } /** + * + * *
    * Required. The synonymSet to be created for a context
    * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The synonymSet. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet() { - return synonymSet_ == null ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; + return synonymSet_ == null + ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() + : synonymSet_; } /** + * + * *
    * Required. The synonymSet to be created for a context
    * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder() { - return synonymSet_ == null ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; + return synonymSet_ == null + ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() + : synonymSet_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -163,8 +208,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (synonymSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSynonymSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSynonymSet()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +218,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.contentwarehouse.v1.CreateSynonymSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest other = (com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) obj; + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest other = + (com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasSynonymSet() != other.hasSynonymSet()) return false; if (hasSynonymSet()) { - if (!getSynonymSet() - .equals(other.getSynonymSet())) return false; + if (!getSynonymSet().equals(other.getSynonymSet())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +254,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest 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.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest 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.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 SynonymSetService.CreateSynonymSet.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CreateSynonymSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.class, + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,13 +398,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.getDefaultInstance(); } @@ -371,21 +420,23 @@ public com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest result = new com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest result = + new com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.synonymSet_ = synonymSetBuilder_ == null - ? synonymSet_ - : synonymSetBuilder_.build(); + result.synonymSet_ = synonymSetBuilder_ == null ? synonymSet_ : synonymSetBuilder_.build(); } } @@ -393,38 +444,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CreateSynonymSet public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.CreateSynonymSetRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) other); } else { super.mergeFrom(other); return this; @@ -432,7 +484,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -467,24 +521,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSynonymSetFieldBuilder().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(getSynonymSetFieldBuilder().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) { @@ -494,23 +549,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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; @@ -519,21 +579,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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 { @@ -541,30 +604,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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 name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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() { @@ -574,18 +648,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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; @@ -595,39 +675,58 @@ public Builder setParentBytes( private com.google.cloud.contentwarehouse.v1.SynonymSet synonymSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> synonymSetBuilder_; + com.google.cloud.contentwarehouse.v1.SynonymSet, + com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> + synonymSetBuilder_; /** + * + * *
      * Required. The synonymSet to be created for a context
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the synonymSet field is set. */ public boolean hasSynonymSet() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The synonymSet to be created for a context
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The synonymSet. */ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet() { if (synonymSetBuilder_ == null) { - return synonymSet_ == null ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; + return synonymSet_ == null + ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() + : synonymSet_; } else { return synonymSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The synonymSet to be created for a context
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet value) { if (synonymSetBuilder_ == null) { @@ -643,11 +742,15 @@ public Builder setSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet val return this; } /** + * + * *
      * Required. The synonymSet to be created for a context
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSynonymSet( com.google.cloud.contentwarehouse.v1.SynonymSet.Builder builderForValue) { @@ -661,17 +764,22 @@ public Builder setSynonymSet( return this; } /** + * + * *
      * Required. The synonymSet to be created for a context
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet value) { if (synonymSetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - synonymSet_ != null && - synonymSet_ != com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && synonymSet_ != null + && synonymSet_ + != com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()) { getSynonymSetBuilder().mergeFrom(value); } else { synonymSet_ = value; @@ -684,11 +792,15 @@ public Builder mergeSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet v return this; } /** + * + * *
      * Required. The synonymSet to be created for a context
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSynonymSet() { bitField0_ = (bitField0_ & ~0x00000002); @@ -701,11 +813,15 @@ public Builder clearSynonymSet() { return this; } /** + * + * *
      * Required. The synonymSet to be created for a context
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetBuilder() { bitField0_ |= 0x00000002; @@ -713,43 +829,55 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetBuil return getSynonymSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The synonymSet to be created for a context
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder() { if (synonymSetBuilder_ != null) { return synonymSetBuilder_.getMessageOrBuilder(); } else { - return synonymSet_ == null ? - com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; + return synonymSet_ == null + ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() + : synonymSet_; } } /** + * + * *
      * Required. The synonymSet to be created for a context
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> + com.google.cloud.contentwarehouse.v1.SynonymSet, + com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> getSynonymSetFieldBuilder() { if (synonymSetBuilder_ == null) { - synonymSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder>( - getSynonymSet(), - getParentForChildren(), - isClean()); + synonymSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.SynonymSet, + com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder>( + getSynonymSet(), getParentForChildren(), isClean()); synonymSet_ = null; } return synonymSetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -759,12 +887,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) - private static final com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest(); } @@ -773,27 +902,27 @@ public static com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSynonymSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateSynonymSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,6 +937,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java new file mode 100644 index 000000000000..7c380ea220a9 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface CreateSynonymSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent name.
+   * Format: projects/{project_number}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent name.
+   * Format: projects/{project_number}/locations/{location}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The synonymSet to be created for a context
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the synonymSet field is set. + */ + boolean hasSynonymSet(); + /** + * + * + *
+   * Required. The synonymSet to be created for a context
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The synonymSet. + */ + com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet(); + /** + * + * + *
+   * Required. The synonymSet to be created for a context
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder(); +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java similarity index 63% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java index 9d3075a9bf91..41cb711bf81b 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadata.java @@ -1,115 +1,160 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * To support the custom weighting across document schemas.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CustomWeightsMetadata} */ -public final class CustomWeightsMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CustomWeightsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.CustomWeightsMetadata) CustomWeightsMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomWeightsMetadata.newBuilder() to construct. private CustomWeightsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CustomWeightsMetadata() { weightedSchemaProperties_ = 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 CustomWeightsMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.class, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.class, + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder.class); } public static final int WEIGHTED_SCHEMA_PROPERTIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List weightedSchemaProperties_; + private java.util.List + weightedSchemaProperties_; /** + * + * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ @java.lang.Override - public java.util.List getWeightedSchemaPropertiesList() { + public java.util.List + getWeightedSchemaPropertiesList() { return weightedSchemaProperties_; } /** + * + * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder> getWeightedSchemaPropertiesOrBuilderList() { return weightedSchemaProperties_; } /** + * + * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ @java.lang.Override public int getWeightedSchemaPropertiesCount() { return weightedSchemaProperties_.size(); } /** + * + * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSchemaProperties(int index) { + public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSchemaProperties( + int index) { return weightedSchemaProperties_.get(index); } /** + * + * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder getWeightedSchemaPropertiesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder + getWeightedSchemaPropertiesOrBuilder(int index) { return weightedSchemaProperties_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +166,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < weightedSchemaProperties_.size(); i++) { output.writeMessage(1, weightedSchemaProperties_.get(i)); } @@ -136,8 +180,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < weightedSchemaProperties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, weightedSchemaProperties_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, weightedSchemaProperties_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -147,15 +192,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.contentwarehouse.v1.CustomWeightsMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata other = (com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata) obj; + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata other = + (com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata) obj; - if (!getWeightedSchemaPropertiesList() - .equals(other.getWeightedSchemaPropertiesList())) return false; + if (!getWeightedSchemaPropertiesList().equals(other.getWeightedSchemaPropertiesList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,131 +223,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata 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.contentwarehouse.v1.CustomWeightsMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata 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.contentwarehouse.v1.CustomWeightsMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * To support the custom weighting across document schemas.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.CustomWeightsMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.CustomWeightsMetadata) com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.class, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.class, + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +368,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; } @java.lang.Override @@ -338,17 +389,22 @@ public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata result = new com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata(this); + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata result = + new com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata result) { if (weightedSchemaPropertiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - weightedSchemaProperties_ = java.util.Collections.unmodifiableList(weightedSchemaProperties_); + weightedSchemaProperties_ = + java.util.Collections.unmodifiableList(weightedSchemaProperties_); bitField0_ = (bitField0_ & ~0x00000001); } result.weightedSchemaProperties_ = weightedSchemaProperties_; @@ -365,38 +421,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.CustomWeightsMet public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.CustomWeightsMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata) other); } else { super.mergeFrom(other); return this; @@ -404,7 +461,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance()) + return this; if (weightedSchemaPropertiesBuilder_ == null) { if (!other.weightedSchemaProperties_.isEmpty()) { if (weightedSchemaProperties_.isEmpty()) { @@ -423,9 +481,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.CustomWeightsMetad weightedSchemaPropertiesBuilder_ = null; weightedSchemaProperties_ = other.weightedSchemaProperties_; bitField0_ = (bitField0_ & ~0x00000001); - weightedSchemaPropertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWeightedSchemaPropertiesFieldBuilder() : null; + weightedSchemaPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWeightedSchemaPropertiesFieldBuilder() + : null; } else { weightedSchemaPropertiesBuilder_.addAllMessages(other.weightedSchemaProperties_); } @@ -457,25 +516,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.parser(), - extensionRegistry); - if (weightedSchemaPropertiesBuilder_ == null) { - ensureWeightedSchemaPropertiesIsMutable(); - weightedSchemaProperties_.add(m); - } else { - weightedSchemaPropertiesBuilder_.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.contentwarehouse.v1.WeightedSchemaProperty m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.parser(), + extensionRegistry); + if (weightedSchemaPropertiesBuilder_ == null) { + ensureWeightedSchemaPropertiesIsMutable(); + weightedSchemaProperties_.add(m); + } else { + weightedSchemaPropertiesBuilder_.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) { @@ -485,29 +546,41 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List weightedSchemaProperties_ = - java.util.Collections.emptyList(); + private java.util.List + weightedSchemaProperties_ = java.util.Collections.emptyList(); + private void ensureWeightedSchemaPropertiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - weightedSchemaProperties_ = new java.util.ArrayList(weightedSchemaProperties_); + weightedSchemaProperties_ = + new java.util.ArrayList( + weightedSchemaProperties_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder, com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder> weightedSchemaPropertiesBuilder_; + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty, + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder, + com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder> + weightedSchemaPropertiesBuilder_; /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - public java.util.List getWeightedSchemaPropertiesList() { + public java.util.List + getWeightedSchemaPropertiesList() { if (weightedSchemaPropertiesBuilder_ == null) { return java.util.Collections.unmodifiableList(weightedSchemaProperties_); } else { @@ -515,12 +588,16 @@ public java.util.List * List of schema and property name. Allows a maximum of 10 schemas to be * specified for relevance boosting. *
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ public int getWeightedSchemaPropertiesCount() { if (weightedSchemaPropertiesBuilder_ == null) { @@ -530,14 +607,19 @@ public int getWeightedSchemaPropertiesCount() { } } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSchemaProperties(int index) { + public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSchemaProperties( + int index) { if (weightedSchemaPropertiesBuilder_ == null) { return weightedSchemaProperties_.get(index); } else { @@ -545,12 +627,16 @@ public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSc } } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ public Builder setWeightedSchemaProperties( int index, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty value) { @@ -567,15 +653,20 @@ public Builder setWeightedSchemaProperties( return this; } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ public Builder setWeightedSchemaProperties( - int index, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder builderForValue) { if (weightedSchemaPropertiesBuilder_ == null) { ensureWeightedSchemaPropertiesIsMutable(); weightedSchemaProperties_.set(index, builderForValue.build()); @@ -586,14 +677,19 @@ public Builder setWeightedSchemaProperties( return this; } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - public Builder addWeightedSchemaProperties(com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty value) { + public Builder addWeightedSchemaProperties( + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty value) { if (weightedSchemaPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -607,12 +703,16 @@ public Builder addWeightedSchemaProperties(com.google.cloud.contentwarehouse.v1. return this; } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ public Builder addWeightedSchemaProperties( int index, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty value) { @@ -629,12 +729,16 @@ public Builder addWeightedSchemaProperties( return this; } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ public Builder addWeightedSchemaProperties( com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder builderForValue) { @@ -648,15 +752,20 @@ public Builder addWeightedSchemaProperties( return this; } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ public Builder addWeightedSchemaProperties( - int index, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder builderForValue) { if (weightedSchemaPropertiesBuilder_ == null) { ensureWeightedSchemaPropertiesIsMutable(); weightedSchemaProperties_.add(index, builderForValue.build()); @@ -667,19 +776,23 @@ public Builder addWeightedSchemaProperties( return this; } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ public Builder addAllWeightedSchemaProperties( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (weightedSchemaPropertiesBuilder_ == null) { ensureWeightedSchemaPropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, weightedSchemaProperties_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, weightedSchemaProperties_); onChanged(); } else { weightedSchemaPropertiesBuilder_.addAllMessages(values); @@ -687,12 +800,16 @@ public Builder addAllWeightedSchemaProperties( return this; } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ public Builder clearWeightedSchemaProperties() { if (weightedSchemaPropertiesBuilder_ == null) { @@ -705,12 +822,16 @@ public Builder clearWeightedSchemaProperties() { return this; } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ public Builder removeWeightedSchemaProperties(int index) { if (weightedSchemaPropertiesBuilder_ == null) { @@ -723,42 +844,56 @@ public Builder removeWeightedSchemaProperties(int index) { return this; } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder getWeightedSchemaPropertiesBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder + getWeightedSchemaPropertiesBuilder(int index) { return getWeightedSchemaPropertiesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - public com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder getWeightedSchemaPropertiesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder + getWeightedSchemaPropertiesOrBuilder(int index) { if (weightedSchemaPropertiesBuilder_ == null) { - return weightedSchemaProperties_.get(index); } else { + return weightedSchemaProperties_.get(index); + } else { return weightedSchemaPropertiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - public java.util.List - getWeightedSchemaPropertiesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder> + getWeightedSchemaPropertiesOrBuilderList() { if (weightedSchemaPropertiesBuilder_ != null) { return weightedSchemaPropertiesBuilder_.getMessageOrBuilderList(); } else { @@ -766,48 +901,70 @@ public com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder getW } } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder addWeightedSchemaPropertiesBuilder() { - return getWeightedSchemaPropertiesFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder + addWeightedSchemaPropertiesBuilder() { + return getWeightedSchemaPropertiesFieldBuilder() + .addBuilder( + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.getDefaultInstance()); } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder addWeightedSchemaPropertiesBuilder( - int index) { - return getWeightedSchemaPropertiesFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder + addWeightedSchemaPropertiesBuilder(int index) { + return getWeightedSchemaPropertiesFieldBuilder() + .addBuilder( + index, + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.getDefaultInstance()); } /** + * + * *
      * List of schema and property name. Allows a maximum of 10 schemas to be
      * specified for relevance boosting.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - public java.util.List - getWeightedSchemaPropertiesBuilderList() { + public java.util.List + getWeightedSchemaPropertiesBuilderList() { return getWeightedSchemaPropertiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder, com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder> + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty, + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder, + com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder> getWeightedSchemaPropertiesFieldBuilder() { if (weightedSchemaPropertiesBuilder_ == null) { - weightedSchemaPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder, com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder>( + weightedSchemaPropertiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty, + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder, + com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder>( weightedSchemaProperties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -816,9 +973,9 @@ public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder addWe } return weightedSchemaPropertiesBuilder_; } + @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); } @@ -828,12 +985,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.CustomWeightsMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.CustomWeightsMetadata) private static final com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata(); } @@ -842,27 +999,27 @@ public static com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomWeightsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CustomWeightsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -877,6 +1034,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java similarity index 50% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java index 6b376af60e49..f2554788254b 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CustomWeightsMetadataOrBuilder.java @@ -1,58 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -public interface CustomWeightsMetadataOrBuilder extends +public interface CustomWeightsMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CustomWeightsMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - java.util.List + java.util.List getWeightedSchemaPropertiesList(); /** + * + * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSchemaProperties(int index); + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getWeightedSchemaProperties( + int index); /** + * + * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ int getWeightedSchemaPropertiesCount(); /** + * + * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - java.util.List + java.util.List getWeightedSchemaPropertiesOrBuilderList(); /** + * + * *
    * List of schema and property name. Allows a maximum of 10 schemas to be
    * specified for relevance boosting.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * + * repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1; + * */ - com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder getWeightedSchemaPropertiesOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder + getWeightedSchemaPropertiesOrBuilder(int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java similarity index 62% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java index 9ab678a56eee..723b291af0e1 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateAction.java @@ -1,86 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents the action responsible for properties update operations.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DataUpdateAction} */ -public final class DataUpdateAction extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DataUpdateAction extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DataUpdateAction) DataUpdateActionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DataUpdateAction.newBuilder() to construct. private DataUpdateAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DataUpdateAction() { - } + + private DataUpdateAction() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataUpdateAction(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetEntries(); 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.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DataUpdateAction.class, com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder.class); + com.google.cloud.contentwarehouse.v1.DataUpdateAction.class, + com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder.class); } public static final int ENTRIES_FIELD_NUMBER = 1; + private static final class EntriesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_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> entries_; - private com.google.protobuf.MapField - internalGetEntries() { + private com.google.protobuf.MapField entries_; + + private com.google.protobuf.MapField internalGetEntries() { if (entries_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EntriesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EntriesDefaultEntryHolder.defaultEntry); } return entries_; } + public int getEntriesCount() { return internalGetEntries().getMap().size(); } /** + * + * *
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -92,20 +111,21 @@ public int getEntriesCount() {
    * map<string, string> entries = 1;
    */
   @java.lang.Override
-  public boolean containsEntries(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsEntries(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetEntries().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getEntriesMap()} instead.
-   */
+  /** Use {@link #getEntriesMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getEntries() {
     return getEntriesMap();
   }
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -121,6 +141,8 @@ public java.util.Map getEntriesMap() {
     return internalGetEntries().getMap();
   }
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -132,17 +154,19 @@ public java.util.Map getEntriesMap() {
    * map<string, string> entries = 1;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getEntriesOrDefault(
+  public /* nullable */ java.lang.String getEntriesOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetEntries().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetEntries().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -154,11 +178,11 @@ java.lang.String getEntriesOrDefault(
    * map<string, string> entries = 1;
    */
   @java.lang.Override
-  public java.lang.String getEntriesOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetEntries().getMap();
+  public java.lang.String getEntriesOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetEntries().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -166,6 +190,7 @@ public java.lang.String getEntriesOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -177,14 +202,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetEntries(),
-        EntriesDefaultEntryHolder.defaultEntry,
-        1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetEntries(), EntriesDefaultEntryHolder.defaultEntry, 1);
     getUnknownFields().writeTo(output);
   }
 
@@ -194,15 +214,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry
-         : internalGetEntries().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      entries__ = EntriesDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, entries__);
+    for (java.util.Map.Entry entry :
+        internalGetEntries().getMap().entrySet()) {
+      com.google.protobuf.MapEntry entries__ =
+          EntriesDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -212,15 +232,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.contentwarehouse.v1.DataUpdateAction)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.DataUpdateAction other = (com.google.cloud.contentwarehouse.v1.DataUpdateAction) obj;
+    com.google.cloud.contentwarehouse.v1.DataUpdateAction other =
+        (com.google.cloud.contentwarehouse.v1.DataUpdateAction) obj;
 
-    if (!internalGetEntries().equals(
-        other.internalGetEntries())) return false;
+    if (!internalGetEntries().equals(other.internalGetEntries())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -242,153 +262,156 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction 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.contentwarehouse.v1.DataUpdateAction parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction 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.contentwarehouse.v1.DataUpdateAction parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DataUpdateAction parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DataUpdateAction prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.DataUpdateAction prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Represents the action responsible for properties update operations.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DataUpdateAction} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DataUpdateAction) com.google.cloud.contentwarehouse.v1.DataUpdateActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetEntries(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableEntries(); 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.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DataUpdateAction.class, com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder.class); + com.google.cloud.contentwarehouse.v1.DataUpdateAction.class, + com.google.cloud.contentwarehouse.v1.DataUpdateAction.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DataUpdateAction.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; } @java.lang.Override @@ -419,8 +442,11 @@ public com.google.cloud.contentwarehouse.v1.DataUpdateAction build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DataUpdateAction buildPartial() { - com.google.cloud.contentwarehouse.v1.DataUpdateAction result = new com.google.cloud.contentwarehouse.v1.DataUpdateAction(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.DataUpdateAction result = + new com.google.cloud.contentwarehouse.v1.DataUpdateAction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -437,38 +463,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DataUpdateAction public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.DataUpdateAction) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DataUpdateAction)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DataUpdateAction) other); } else { super.mergeFrom(other); return this; @@ -476,9 +503,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DataUpdateAction other) { - if (other == com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance()) return this; - internalGetMutableEntries().mergeFrom( - other.internalGetEntries()); + if (other == com.google.cloud.contentwarehouse.v1.DataUpdateAction.getDefaultInstance()) + return this; + internalGetMutableEntries().mergeFrom(other.internalGetEntries()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -506,21 +533,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - entries__ = input.readMessage( - EntriesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableEntries().getMutableMap().put( - entries__.getKey(), entries__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry entries__ = + input.readMessage( + EntriesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableEntries() + .getMutableMap() + .put(entries__.getKey(), entries__.getValue()); + 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) { @@ -530,23 +561,22 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> entries_; - private com.google.protobuf.MapField - internalGetEntries() { + private com.google.protobuf.MapField entries_; + + private com.google.protobuf.MapField internalGetEntries() { if (entries_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EntriesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EntriesDefaultEntryHolder.defaultEntry); } return entries_; } + private com.google.protobuf.MapField internalGetMutableEntries() { if (entries_ == null) { - entries_ = com.google.protobuf.MapField.newMapField( - EntriesDefaultEntryHolder.defaultEntry); + entries_ = com.google.protobuf.MapField.newMapField(EntriesDefaultEntryHolder.defaultEntry); } if (!entries_.isMutable()) { entries_ = entries_.copy(); @@ -555,10 +585,13 @@ public Builder mergeFrom( onChanged(); return entries_; } + public int getEntriesCount() { return internalGetEntries().getMap().size(); } /** + * + * *
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -570,20 +603,21 @@ public int getEntriesCount() {
      * map<string, string> entries = 1;
      */
     @java.lang.Override
-    public boolean containsEntries(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsEntries(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetEntries().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getEntriesMap()} instead.
-     */
+    /** Use {@link #getEntriesMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getEntries() {
       return getEntriesMap();
     }
     /**
+     *
+     *
      * 
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -599,6 +633,8 @@ public java.util.Map getEntriesMap() {
       return internalGetEntries().getMap();
     }
     /**
+     *
+     *
      * 
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -610,17 +646,19 @@ public java.util.Map getEntriesMap() {
      * map<string, string> entries = 1;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getEntriesOrDefault(
+    public /* nullable */ java.lang.String getEntriesOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetEntries().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetEntries().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -632,23 +670,25 @@ java.lang.String getEntriesOrDefault(
      * map<string, string> entries = 1;
      */
     @java.lang.Override
-    public java.lang.String getEntriesOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetEntries().getMap();
+    public java.lang.String getEntriesOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetEntries().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearEntries() {
       bitField0_ = (bitField0_ & ~0x00000001);
-      internalGetMutableEntries().getMutableMap()
-          .clear();
+      internalGetMutableEntries().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -659,23 +699,22 @@ public Builder clearEntries() {
      *
      * map<string, string> entries = 1;
      */
-    public Builder removeEntries(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableEntries().getMutableMap()
-          .remove(key);
+    public Builder removeEntries(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableEntries().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableEntries() {
+    public java.util.Map getMutableEntries() {
       bitField0_ |= 0x00000001;
       return internalGetMutableEntries().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -686,17 +725,20 @@ public Builder removeEntries(
      *
      * map<string, string> entries = 1;
      */
-    public Builder putEntries(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableEntries().getMutableMap()
-          .put(key, value);
+    public Builder putEntries(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableEntries().getMutableMap().put(key, value);
       bitField0_ |= 0x00000001;
       return this;
     }
     /**
+     *
+     *
      * 
      * Map of (K, V) -> (valid name of the field, new value of the field)
      * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -707,16 +749,14 @@ public Builder putEntries(
      *
      * map<string, string> entries = 1;
      */
-    public Builder putAllEntries(
-        java.util.Map values) {
-      internalGetMutableEntries().getMutableMap()
-          .putAll(values);
+    public Builder putAllEntries(java.util.Map values) {
+      internalGetMutableEntries().getMutableMap().putAll(values);
       bitField0_ |= 0x00000001;
       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);
     }
 
@@ -726,12 +766,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DataUpdateAction)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DataUpdateAction)
   private static final com.google.cloud.contentwarehouse.v1.DataUpdateAction DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DataUpdateAction();
   }
@@ -740,27 +780,27 @@ public static com.google.cloud.contentwarehouse.v1.DataUpdateAction getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DataUpdateAction parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 DataUpdateAction parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -775,6 +815,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.DataUpdateAction getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java
similarity index 69%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java
index 6a195365e74b..0ad91f7c21a4 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataUpdateActionOrBuilder.java
@@ -1,13 +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/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface DataUpdateActionOrBuilder extends
+public interface DataUpdateActionOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DataUpdateAction)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -20,6 +38,8 @@ public interface DataUpdateActionOrBuilder extends
    */
   int getEntriesCount();
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -30,15 +50,13 @@ public interface DataUpdateActionOrBuilder extends
    *
    * map<string, string> entries = 1;
    */
-  boolean containsEntries(
-      java.lang.String key);
-  /**
-   * Use {@link #getEntriesMap()} instead.
-   */
+  boolean containsEntries(java.lang.String key);
+  /** Use {@link #getEntriesMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getEntries();
+  java.util.Map getEntries();
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -49,9 +67,10 @@ boolean containsEntries(
    *
    * map<string, string> entries = 1;
    */
-  java.util.Map
-  getEntriesMap();
+  java.util.Map getEntriesMap();
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -63,11 +82,13 @@ boolean containsEntries(
    * map<string, string> entries = 1;
    */
   /* nullable */
-java.lang.String getEntriesOrDefault(
+  java.lang.String getEntriesOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (valid name of the field, new value of the field)
    * E.g., ("age", "60") entry triggers update of field age with a value of 60.
@@ -78,6 +99,5 @@ java.lang.String getEntriesOrDefault(
    *
    * map<string, string> entries = 1;
    */
-  java.lang.String getEntriesOrThrow(
-      java.lang.String key);
+  java.lang.String getEntriesOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java
similarity index 62%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java
index 4d2bf0675bc2..532b5cde444c 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationAction.java
@@ -1,86 +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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Represents the action responsible for data validation operations.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DataValidationAction} */ -public final class DataValidationAction extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DataValidationAction extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DataValidationAction) DataValidationActionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DataValidationAction.newBuilder() to construct. private DataValidationAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DataValidationAction() { - } + + private DataValidationAction() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataValidationAction(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetConditions(); 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.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DataValidationAction.class, com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder.class); + com.google.cloud.contentwarehouse.v1.DataValidationAction.class, + com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder.class); } public static final int CONDITIONS_FIELD_NUMBER = 1; + private static final class ConditionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_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> conditions_; - private com.google.protobuf.MapField - internalGetConditions() { + private com.google.protobuf.MapField conditions_; + + private com.google.protobuf.MapField internalGetConditions() { if (conditions_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConditionsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ConditionsDefaultEntryHolder.defaultEntry); } return conditions_; } + public int getConditionsCount() { return internalGetConditions().getMap().size(); } /** + * + * *
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -90,20 +109,21 @@ public int getConditionsCount() {
    * map<string, string> conditions = 1;
    */
   @java.lang.Override
-  public boolean containsConditions(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsConditions(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetConditions().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getConditionsMap()} instead.
-   */
+  /** Use {@link #getConditionsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getConditions() {
     return getConditionsMap();
   }
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -117,6 +137,8 @@ public java.util.Map getConditionsMap() {
     return internalGetConditions().getMap();
   }
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -126,17 +148,19 @@ public java.util.Map getConditionsMap() {
    * map<string, string> conditions = 1;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getConditionsOrDefault(
+  public /* nullable */ java.lang.String getConditionsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetConditions().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetConditions().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -146,11 +170,11 @@ java.lang.String getConditionsOrDefault(
    * map<string, string> conditions = 1;
    */
   @java.lang.Override
-  public java.lang.String getConditionsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetConditions().getMap();
+  public java.lang.String getConditionsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetConditions().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -158,6 +182,7 @@ public java.lang.String getConditionsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -169,14 +194,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetConditions(),
-        ConditionsDefaultEntryHolder.defaultEntry,
-        1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetConditions(), ConditionsDefaultEntryHolder.defaultEntry, 1);
     getUnknownFields().writeTo(output);
   }
 
@@ -186,15 +206,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry
-         : internalGetConditions().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      conditions__ = ConditionsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, conditions__);
+    for (java.util.Map.Entry entry :
+        internalGetConditions().getMap().entrySet()) {
+      com.google.protobuf.MapEntry conditions__ =
+          ConditionsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, conditions__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -204,15 +224,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.contentwarehouse.v1.DataValidationAction)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.DataValidationAction other = (com.google.cloud.contentwarehouse.v1.DataValidationAction) obj;
+    com.google.cloud.contentwarehouse.v1.DataValidationAction other =
+        (com.google.cloud.contentwarehouse.v1.DataValidationAction) obj;
 
-    if (!internalGetConditions().equals(
-        other.internalGetConditions())) return false;
+    if (!internalGetConditions().equals(other.internalGetConditions())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -234,153 +254,156 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction 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.contentwarehouse.v1.DataValidationAction parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction 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.contentwarehouse.v1.DataValidationAction parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DataValidationAction parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DataValidationAction prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.DataValidationAction prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Represents the action responsible for data validation operations.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DataValidationAction} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DataValidationAction) com.google.cloud.contentwarehouse.v1.DataValidationActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetConditions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableConditions(); 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.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DataValidationAction.class, com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder.class); + com.google.cloud.contentwarehouse.v1.DataValidationAction.class, + com.google.cloud.contentwarehouse.v1.DataValidationAction.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DataValidationAction.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -390,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; } @java.lang.Override @@ -411,8 +434,11 @@ public com.google.cloud.contentwarehouse.v1.DataValidationAction build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DataValidationAction buildPartial() { - com.google.cloud.contentwarehouse.v1.DataValidationAction result = new com.google.cloud.contentwarehouse.v1.DataValidationAction(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.DataValidationAction result = + new com.google.cloud.contentwarehouse.v1.DataValidationAction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -429,38 +455,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DataValidationAc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.DataValidationAction) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DataValidationAction)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DataValidationAction) other); } else { super.mergeFrom(other); return this; @@ -468,9 +495,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DataValidationAction other) { - if (other == com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance()) return this; - internalGetMutableConditions().mergeFrom( - other.internalGetConditions()); + if (other == com.google.cloud.contentwarehouse.v1.DataValidationAction.getDefaultInstance()) + return this; + internalGetMutableConditions().mergeFrom(other.internalGetConditions()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -498,21 +525,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - conditions__ = input.readMessage( - ConditionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableConditions().getMutableMap().put( - conditions__.getKey(), conditions__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry conditions__ = + input.readMessage( + ConditionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableConditions() + .getMutableMap() + .put(conditions__.getKey(), conditions__.getValue()); + 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) { @@ -522,10 +553,11 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> conditions_; + private com.google.protobuf.MapField conditions_; + private com.google.protobuf.MapField internalGetConditions() { if (conditions_ == null) { @@ -534,11 +566,12 @@ public Builder mergeFrom( } return conditions_; } + private com.google.protobuf.MapField internalGetMutableConditions() { if (conditions_ == null) { - conditions_ = com.google.protobuf.MapField.newMapField( - ConditionsDefaultEntryHolder.defaultEntry); + conditions_ = + com.google.protobuf.MapField.newMapField(ConditionsDefaultEntryHolder.defaultEntry); } if (!conditions_.isMutable()) { conditions_ = conditions_.copy(); @@ -547,10 +580,13 @@ public Builder mergeFrom( onChanged(); return conditions_; } + public int getConditionsCount() { return internalGetConditions().getMap().size(); } /** + * + * *
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -560,20 +596,21 @@ public int getConditionsCount() {
      * map<string, string> conditions = 1;
      */
     @java.lang.Override
-    public boolean containsConditions(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsConditions(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetConditions().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getConditionsMap()} instead.
-     */
+    /** Use {@link #getConditionsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getConditions() {
       return getConditionsMap();
     }
     /**
+     *
+     *
      * 
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -587,6 +624,8 @@ public java.util.Map getConditionsMap() {
       return internalGetConditions().getMap();
     }
     /**
+     *
+     *
      * 
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -596,17 +635,19 @@ public java.util.Map getConditionsMap() {
      * map<string, string> conditions = 1;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getConditionsOrDefault(
+    public /* nullable */ java.lang.String getConditionsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetConditions().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetConditions().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -616,23 +657,25 @@ java.lang.String getConditionsOrDefault(
      * map<string, string> conditions = 1;
      */
     @java.lang.Override
-    public java.lang.String getConditionsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetConditions().getMap();
+    public java.lang.String getConditionsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetConditions().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearConditions() {
       bitField0_ = (bitField0_ & ~0x00000001);
-      internalGetMutableConditions().getMutableMap()
-          .clear();
+      internalGetMutableConditions().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -641,23 +684,22 @@ public Builder clearConditions() {
      *
      * map<string, string> conditions = 1;
      */
-    public Builder removeConditions(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableConditions().getMutableMap()
-          .remove(key);
+    public Builder removeConditions(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableConditions().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableConditions() {
+    public java.util.Map getMutableConditions() {
       bitField0_ |= 0x00000001;
       return internalGetMutableConditions().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -666,17 +708,20 @@ public Builder removeConditions(
      *
      * map<string, string> conditions = 1;
      */
-    public Builder putConditions(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableConditions().getMutableMap()
-          .put(key, value);
+    public Builder putConditions(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableConditions().getMutableMap().put(key, value);
       bitField0_ |= 0x00000001;
       return this;
     }
     /**
+     *
+     *
      * 
      * Map of (K, V) -> (field, string condition to be evaluated on the field)
      * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -685,16 +730,14 @@ public Builder putConditions(
      *
      * map<string, string> conditions = 1;
      */
-    public Builder putAllConditions(
-        java.util.Map values) {
-      internalGetMutableConditions().getMutableMap()
-          .putAll(values);
+    public Builder putAllConditions(java.util.Map values) {
+      internalGetMutableConditions().getMutableMap().putAll(values);
       bitField0_ |= 0x00000001;
       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);
     }
 
@@ -704,12 +747,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DataValidationAction)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DataValidationAction)
   private static final com.google.cloud.contentwarehouse.v1.DataValidationAction DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DataValidationAction();
   }
@@ -718,27 +761,27 @@ public static com.google.cloud.contentwarehouse.v1.DataValidationAction getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DataValidationAction parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 DataValidationAction parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -753,6 +796,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.DataValidationAction getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java
similarity index 66%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java
index 7d102d5b4375..0d1e836d889b 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DataValidationActionOrBuilder.java
@@ -1,13 +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/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface DataValidationActionOrBuilder extends
+public interface DataValidationActionOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DataValidationAction)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -18,6 +36,8 @@ public interface DataValidationActionOrBuilder extends
    */
   int getConditionsCount();
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -26,15 +46,13 @@ public interface DataValidationActionOrBuilder extends
    *
    * map<string, string> conditions = 1;
    */
-  boolean containsConditions(
-      java.lang.String key);
-  /**
-   * Use {@link #getConditionsMap()} instead.
-   */
+  boolean containsConditions(java.lang.String key);
+  /** Use {@link #getConditionsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getConditions();
+  java.util.Map getConditions();
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -43,9 +61,10 @@ boolean containsConditions(
    *
    * map<string, string> conditions = 1;
    */
-  java.util.Map
-  getConditionsMap();
+  java.util.Map getConditionsMap();
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -55,11 +74,13 @@ boolean containsConditions(
    * map<string, string> conditions = 1;
    */
   /* nullable */
-java.lang.String getConditionsOrDefault(
+  java.lang.String getConditionsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Map of (K, V) -> (field, string condition to be evaluated on the field)
    * E.g., ("age", "age > 18  && age < 60") entry triggers validation of field
@@ -68,6 +89,5 @@ java.lang.String getConditionsOrDefault(
    *
    * map<string, string> conditions = 1;
    */
-  java.lang.String getConditionsOrThrow(
-      java.lang.String key);
+  java.lang.String getConditionsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
similarity index 67%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
index a8607019eeca..e650025b2a95 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DatabaseType.java
@@ -1,18 +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/contentwarehouse/v1/common.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Type of database used by the customer
  * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.DatabaseType} */ -public enum DatabaseType - implements com.google.protobuf.ProtocolMessageEnum { +public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * This value is required by protobuf best practices
    * 
@@ -21,6 +39,8 @@ public enum DatabaseType */ DB_UNKNOWN(0), /** + * + * *
    * Internal Spanner
    * 
@@ -29,6 +49,8 @@ public enum DatabaseType */ DB_INFRA_SPANNER(1), /** + * + * *
    * Cloud Sql with a Postgres Sql instance
    * 
@@ -41,6 +63,8 @@ public enum DatabaseType ; /** + * + * *
    * This value is required by protobuf best practices
    * 
@@ -49,6 +73,8 @@ public enum DatabaseType */ public static final int DB_UNKNOWN_VALUE = 0; /** + * + * *
    * Internal Spanner
    * 
@@ -57,6 +83,8 @@ public enum DatabaseType */ public static final int DB_INFRA_SPANNER_VALUE = 1; /** + * + * *
    * Cloud Sql with a Postgres Sql instance
    * 
@@ -65,7 +93,6 @@ public enum DatabaseType */ @java.lang.Deprecated public static final int DB_CLOUD_SQL_POSTGRES_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -90,49 +117,49 @@ public static DatabaseType valueOf(int value) { */ public static DatabaseType forNumber(int value) { switch (value) { - case 0: return DB_UNKNOWN; - case 1: return DB_INFRA_SPANNER; - case 2: return DB_CLOUD_SQL_POSTGRES; - default: return null; + case 0: + return DB_UNKNOWN; + case 1: + return DB_INFRA_SPANNER; + case 2: + return DB_CLOUD_SQL_POSTGRES; + 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< - DatabaseType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DatabaseType findValueByNumber(int number) { - return DatabaseType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatabaseType findValueByNumber(int number) { + return DatabaseType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor().getEnumTypes().get(1); } private static final DatabaseType[] VALUES = values(); - public static DatabaseType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DatabaseType 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; @@ -148,4 +175,3 @@ private DatabaseType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.DatabaseType) } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java index 28170d8dc08c..34b0382e1b6c 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArray.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * DateTime values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DateTimeArray} */ -public final class DateTimeArray extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DateTimeArray extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DateTimeArray) DateTimeArrayOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DateTimeArray.newBuilder() to construct. private DateTimeArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DateTimeArray() { values_ = 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 DateTimeArray(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DateTimeArray.class, com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder.class); + com.google.cloud.contentwarehouse.v1.DateTimeArray.class, + com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List values_; /** + * + * *
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -59,6 +81,8 @@ public java.util.List getValuesList() {
     return values_;
   }
   /**
+   *
+   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -67,11 +91,12 @@ public java.util.List getValuesList() {
    * repeated .google.type.DateTime values = 1;
    */
   @java.lang.Override
-  public java.util.List 
-      getValuesOrBuilderList() {
+  public java.util.List getValuesOrBuilderList() {
     return values_;
   }
   /**
+   *
+   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -84,6 +109,8 @@ public int getValuesCount() {
     return values_.size();
   }
   /**
+   *
+   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -96,6 +123,8 @@ public com.google.type.DateTime getValues(int index) {
     return values_.get(index);
   }
   /**
+   *
+   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -104,12 +133,12 @@ public com.google.type.DateTime getValues(int index) {
    * repeated .google.type.DateTime values = 1;
    */
   @java.lang.Override
-  public com.google.type.DateTimeOrBuilder getValuesOrBuilder(
-      int index) {
+  public com.google.type.DateTimeOrBuilder getValuesOrBuilder(int index) {
     return values_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -121,8 +150,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < values_.size(); i++) {
       output.writeMessage(1, values_.get(i));
     }
@@ -136,8 +164,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < values_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, values_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -147,15 +174,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.contentwarehouse.v1.DateTimeArray)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.DateTimeArray other = (com.google.cloud.contentwarehouse.v1.DateTimeArray) obj;
+    com.google.cloud.contentwarehouse.v1.DateTimeArray other =
+        (com.google.cloud.contentwarehouse.v1.DateTimeArray) obj;
 
-    if (!getValuesList()
-        .equals(other.getValuesList())) return false;
+    if (!getValuesList().equals(other.getValuesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -177,131 +204,135 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray 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.contentwarehouse.v1.DateTimeArray parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray 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.contentwarehouse.v1.DateTimeArray parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DateTimeArray parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DateTimeArray prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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;
   }
   /**
+   *
+   *
    * 
    * DateTime values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DateTimeArray} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DateTimeArray) com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DateTimeArray.class, com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder.class); + com.google.cloud.contentwarehouse.v1.DateTimeArray.class, + com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DateTimeArray.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; } @java.lang.Override @@ -338,14 +369,18 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DateTimeArray buildPartial() { - com.google.cloud.contentwarehouse.v1.DateTimeArray result = new com.google.cloud.contentwarehouse.v1.DateTimeArray(this); + com.google.cloud.contentwarehouse.v1.DateTimeArray result = + new com.google.cloud.contentwarehouse.v1.DateTimeArray(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.DateTimeArray result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.DateTimeArray result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -365,38 +400,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DateTimeArray 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.contentwarehouse.v1.DateTimeArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DateTimeArray)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DateTimeArray) other); } else { super.mergeFrom(other); return this; @@ -404,7 +440,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DateTimeArray other) { - if (other == com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance()) + return this; if (valuesBuilder_ == null) { if (!other.values_.isEmpty()) { if (values_.isEmpty()) { @@ -423,9 +460,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DateTimeArray othe valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValuesFieldBuilder() : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValuesFieldBuilder() + : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -457,25 +495,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.type.DateTime m = - input.readMessage( - com.google.type.DateTime.parser(), - extensionRegistry); - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(m); - } else { - valuesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.type.DateTime m = + input.readMessage(com.google.type.DateTime.parser(), extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.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) { @@ -485,21 +523,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List values_ = - java.util.Collections.emptyList(); + private java.util.List values_ = java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.type.DateTime, com.google.type.DateTime.Builder, com.google.type.DateTimeOrBuilder> valuesBuilder_; + com.google.type.DateTime, + com.google.type.DateTime.Builder, + com.google.type.DateTimeOrBuilder> + valuesBuilder_; /** + * + * *
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -515,6 +559,8 @@ public java.util.List getValuesList() {
       }
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -530,6 +576,8 @@ public int getValuesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -545,6 +593,8 @@ public com.google.type.DateTime getValues(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -552,8 +602,7 @@ public com.google.type.DateTime getValues(int index) {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public Builder setValues(
-        int index, com.google.type.DateTime value) {
+    public Builder setValues(int index, com.google.type.DateTime value) {
       if (valuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -567,6 +616,8 @@ public Builder setValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -574,8 +625,7 @@ public Builder setValues(
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public Builder setValues(
-        int index, com.google.type.DateTime.Builder builderForValue) {
+    public Builder setValues(int index, com.google.type.DateTime.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.set(index, builderForValue.build());
@@ -586,6 +636,8 @@ public Builder setValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -607,6 +659,8 @@ public Builder addValues(com.google.type.DateTime value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -614,8 +668,7 @@ public Builder addValues(com.google.type.DateTime value) {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public Builder addValues(
-        int index, com.google.type.DateTime value) {
+    public Builder addValues(int index, com.google.type.DateTime value) {
       if (valuesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -629,6 +682,8 @@ public Builder addValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -636,8 +691,7 @@ public Builder addValues(
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public Builder addValues(
-        com.google.type.DateTime.Builder builderForValue) {
+    public Builder addValues(com.google.type.DateTime.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.add(builderForValue.build());
@@ -648,6 +702,8 @@ public Builder addValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -655,8 +711,7 @@ public Builder addValues(
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public Builder addValues(
-        int index, com.google.type.DateTime.Builder builderForValue) {
+    public Builder addValues(int index, com.google.type.DateTime.Builder builderForValue) {
       if (valuesBuilder_ == null) {
         ensureValuesIsMutable();
         values_.add(index, builderForValue.build());
@@ -667,6 +722,8 @@ public Builder addValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -674,12 +731,10 @@ public Builder addValues(
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public Builder addAllValues(
-        java.lang.Iterable values) {
+    public Builder addAllValues(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);
@@ -687,6 +742,8 @@ public Builder addAllValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -705,6 +762,8 @@ public Builder clearValues() {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -723,6 +782,8 @@ public Builder removeValues(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -730,11 +791,12 @@ public Builder removeValues(int index) {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public com.google.type.DateTime.Builder getValuesBuilder(
-        int index) {
+    public com.google.type.DateTime.Builder getValuesBuilder(int index) {
       return getValuesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -742,14 +804,16 @@ public com.google.type.DateTime.Builder getValuesBuilder(
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public com.google.type.DateTimeOrBuilder getValuesOrBuilder(
-        int index) {
+    public com.google.type.DateTimeOrBuilder getValuesOrBuilder(int index) {
       if (valuesBuilder_ == null) {
-        return values_.get(index);  } else {
+        return values_.get(index);
+      } else {
         return valuesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -757,8 +821,7 @@ public com.google.type.DateTimeOrBuilder getValuesOrBuilder(
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public java.util.List 
-         getValuesOrBuilderList() {
+    public java.util.List getValuesOrBuilderList() {
       if (valuesBuilder_ != null) {
         return valuesBuilder_.getMessageOrBuilderList();
       } else {
@@ -766,6 +829,8 @@ public com.google.type.DateTimeOrBuilder getValuesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -774,10 +839,11 @@ public com.google.type.DateTimeOrBuilder getValuesOrBuilder(
      * repeated .google.type.DateTime values = 1;
      */
     public com.google.type.DateTime.Builder addValuesBuilder() {
-      return getValuesFieldBuilder().addBuilder(
-          com.google.type.DateTime.getDefaultInstance());
+      return getValuesFieldBuilder().addBuilder(com.google.type.DateTime.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -785,12 +851,13 @@ public com.google.type.DateTime.Builder addValuesBuilder() {
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public com.google.type.DateTime.Builder addValuesBuilder(
-        int index) {
-      return getValuesFieldBuilder().addBuilder(
-          index, com.google.type.DateTime.getDefaultInstance());
+    public com.google.type.DateTime.Builder addValuesBuilder(int index) {
+      return getValuesFieldBuilder()
+          .addBuilder(index, com.google.type.DateTime.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * List of datetime values.
      * Both OffsetDateTime and ZonedDateTime are supported.
@@ -798,27 +865,29 @@ public com.google.type.DateTime.Builder addValuesBuilder(
      *
      * repeated .google.type.DateTime values = 1;
      */
-    public java.util.List 
-         getValuesBuilderList() {
+    public java.util.List getValuesBuilderList() {
       return getValuesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.type.DateTime, com.google.type.DateTime.Builder, com.google.type.DateTimeOrBuilder> 
+            com.google.type.DateTime,
+            com.google.type.DateTime.Builder,
+            com.google.type.DateTimeOrBuilder>
         getValuesFieldBuilder() {
       if (valuesBuilder_ == null) {
-        valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.type.DateTime, com.google.type.DateTime.Builder, com.google.type.DateTimeOrBuilder>(
-                values_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        valuesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.type.DateTime,
+                com.google.type.DateTime.Builder,
+                com.google.type.DateTimeOrBuilder>(
+                values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         values_ = null;
       }
       return valuesBuilder_;
     }
+
     @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);
     }
 
@@ -828,12 +897,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DateTimeArray)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DateTimeArray)
   private static final com.google.cloud.contentwarehouse.v1.DateTimeArray DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DateTimeArray();
   }
@@ -842,27 +911,27 @@ public static com.google.cloud.contentwarehouse.v1.DateTimeArray getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DateTimeArray parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 DateTimeArray parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -877,6 +946,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.DateTimeArray getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java
similarity index 59%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java
index 368dcf89b9a9..7513f64fa1e1 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeArrayOrBuilder.java
@@ -1,13 +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/contentwarehouse/v1/document.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface DateTimeArrayOrBuilder extends
+public interface DateTimeArrayOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DateTimeArray)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -15,9 +33,10 @@ public interface DateTimeArrayOrBuilder extends
    *
    * repeated .google.type.DateTime values = 1;
    */
-  java.util.List 
-      getValuesList();
+  java.util.List getValuesList();
   /**
+   *
+   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -27,6 +46,8 @@ public interface DateTimeArrayOrBuilder extends
    */
   com.google.type.DateTime getValues(int index);
   /**
+   *
+   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -36,6 +57,8 @@ public interface DateTimeArrayOrBuilder extends
    */
   int getValuesCount();
   /**
+   *
+   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -43,9 +66,10 @@ public interface DateTimeArrayOrBuilder extends
    *
    * repeated .google.type.DateTime values = 1;
    */
-  java.util.List 
-      getValuesOrBuilderList();
+  java.util.List getValuesOrBuilderList();
   /**
+   *
+   *
    * 
    * List of datetime values.
    * Both OffsetDateTime and ZonedDateTime are supported.
@@ -53,6 +77,5 @@ public interface DateTimeArrayOrBuilder extends
    *
    * repeated .google.type.DateTime values = 1;
    */
-  com.google.type.DateTimeOrBuilder getValuesOrBuilder(
-      int index);
+  com.google.type.DateTimeOrBuilder getValuesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java
similarity index 63%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java
index 203de57857e5..af1512467c88 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptions.java
@@ -1,48 +1,67 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_schema.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Configurations for a date time property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DateTimeTypeOptions} */ -public final class DateTimeTypeOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DateTimeTypeOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DateTimeTypeOptions) DateTimeTypeOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DateTimeTypeOptions.newBuilder() to construct. private DateTimeTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DateTimeTypeOptions() { - } + + private DateTimeTypeOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DateTimeTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.class, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.class, + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -73,12 +91,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions other = (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions other = + (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions 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.contentwarehouse.v1.DateTimeTypeOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions 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.contentwarehouse.v1.DateTimeTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Configurations for a date time property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DateTimeTypeOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DateTimeTypeOptions) com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.class, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.class, + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -229,9 +253,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; } @java.lang.Override @@ -250,7 +274,8 @@ public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions result = new com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions(this); + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions result = + new com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions(this); onBuilt(); return result; } @@ -259,38 +284,39 @@ public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) other); } else { super.mergeFrom(other); return this; @@ -298,7 +324,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -325,12 +352,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -340,9 +368,9 @@ public Builder mergeFrom( } // finally 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); } @@ -352,12 +380,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DateTimeTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DateTimeTypeOptions) private static final com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions(); } @@ -366,27 +394,27 @@ public static com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DateTimeTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DateTimeTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -401,6 +429,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..03191b19ca3a --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java @@ -0,0 +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/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface DateTimeTypeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DateTimeTypeOptions) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java similarity index 65% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java index 2b53e1c9ebe1..d1bdc156f189 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentAction.java @@ -1,56 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents the action responsible for deleting the document.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteDocumentAction} */ -public final class DeleteDocumentAction extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteDocumentAction extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DeleteDocumentAction) DeleteDocumentActionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteDocumentAction.newBuilder() to construct. private DeleteDocumentAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteDocumentAction() { - } + + private DeleteDocumentAction() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteDocumentAction(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.class, + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder.class); } public static final int ENABLE_HARD_DELETE_FIELD_NUMBER = 1; private boolean enableHardDelete_ = false; /** + * + * *
    * Boolean field to select between hard vs soft delete options.
    * Set 'true' for 'hard delete' and 'false' for 'soft delete'.
    * 
* * bool enable_hard_delete = 1; + * * @return The enableHardDelete. */ @java.lang.Override @@ -59,6 +80,7 @@ public boolean getEnableHardDelete() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -70,8 +92,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableHardDelete_ != false) { output.writeBool(1, enableHardDelete_); } @@ -85,8 +106,7 @@ public int getSerializedSize() { size = 0; if (enableHardDelete_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableHardDelete_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableHardDelete_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -96,15 +116,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.contentwarehouse.v1.DeleteDocumentAction)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction other = (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) obj; + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction other = + (com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) obj; - if (getEnableHardDelete() - != other.getEnableHardDelete()) return false; + if (getEnableHardDelete() != other.getEnableHardDelete()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -117,139 +137,143 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_HARD_DELETE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableHardDelete()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHardDelete()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction 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.contentwarehouse.v1.DeleteDocumentAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction 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.contentwarehouse.v1.DeleteDocumentAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DeleteDocumentAction prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the action responsible for deleting the document.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteDocumentAction} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DeleteDocumentAction) com.google.cloud.contentwarehouse.v1.DeleteDocumentActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.class, + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -259,9 +283,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; } @java.lang.Override @@ -280,8 +304,11 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction buildPartial() { - com.google.cloud.contentwarehouse.v1.DeleteDocumentAction result = new com.google.cloud.contentwarehouse.v1.DeleteDocumentAction(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.DeleteDocumentAction result = + new com.google.cloud.contentwarehouse.v1.DeleteDocumentAction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -297,38 +324,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteDocumentAc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.DeleteDocumentAction) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentAction)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentAction) other); } else { super.mergeFrom(other); return this; @@ -336,7 +364,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DeleteDocumentAction other) { - if (other == com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.DeleteDocumentAction.getDefaultInstance()) + return this; if (other.getEnableHardDelete() != false) { setEnableHardDelete(other.getEnableHardDelete()); } @@ -366,17 +395,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableHardDelete_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableHardDelete_ = input.readBool(); + 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) { @@ -386,16 +417,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableHardDelete_ ; + private boolean enableHardDelete_; /** + * + * *
      * Boolean field to select between hard vs soft delete options.
      * Set 'true' for 'hard delete' and 'false' for 'soft delete'.
      * 
* * bool enable_hard_delete = 1; + * * @return The enableHardDelete. */ @java.lang.Override @@ -403,12 +438,15 @@ public boolean getEnableHardDelete() { return enableHardDelete_; } /** + * + * *
      * Boolean field to select between hard vs soft delete options.
      * Set 'true' for 'hard delete' and 'false' for 'soft delete'.
      * 
* * bool enable_hard_delete = 1; + * * @param value The enableHardDelete to set. * @return This builder for chaining. */ @@ -420,12 +458,15 @@ public Builder setEnableHardDelete(boolean value) { return this; } /** + * + * *
      * Boolean field to select between hard vs soft delete options.
      * Set 'true' for 'hard delete' and 'false' for 'soft delete'.
      * 
* * bool enable_hard_delete = 1; + * * @return This builder for chaining. */ public Builder clearEnableHardDelete() { @@ -434,9 +475,9 @@ public Builder clearEnableHardDelete() { 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); } @@ -446,12 +487,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DeleteDocumentAction) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DeleteDocumentAction) private static final com.google.cloud.contentwarehouse.v1.DeleteDocumentAction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DeleteDocumentAction(); } @@ -460,27 +501,27 @@ public static com.google.cloud.contentwarehouse.v1.DeleteDocumentAction getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDocumentAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteDocumentAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -495,6 +536,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DeleteDocumentAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java new file mode 100644 index 000000000000..b9a61f3206d1 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/rule_engine.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface DeleteDocumentActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteDocumentAction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Boolean field to select between hard vs soft delete options.
+   * Set 'true' for 'hard delete' and 'false' for 'soft delete'.
+   * 
+ * + * bool enable_hard_delete = 1; + * + * @return The enableHardDelete. + */ + boolean getEnableHardDelete(); +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java similarity index 66% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java index 2832a9db46d2..ea8a797cbee2 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequest.java @@ -1,59 +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/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentLinkService.DeleteDocumentLink.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest} */ -public final class DeleteDocumentLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteDocumentLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) DeleteDocumentLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteDocumentLinkRequest.newBuilder() to construct. private DeleteDocumentLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteDocumentLinkRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteDocumentLinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.class, + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the document-link to be deleted.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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 @@ -62,31 +87,33 @@ 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 name of the document-link to be deleted.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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 { @@ -97,12 +124,15 @@ public java.lang.String getName() { public static final int REQUEST_METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -110,19 +140,26 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
@@ -131,11 +168,15 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+        : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -147,8 +188,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -168,8 +208,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -179,19 +218,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.contentwarehouse.v1.DeleteDocumentLinkRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest other = (com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) obj;
+    com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest other =
+        (com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata()
-          .equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -216,131 +254,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest 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.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest 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.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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 DocumentLinkService.DeleteDocumentLink.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.class, + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,13 +398,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.getDefaultInstance(); } @@ -376,21 +420,24 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest result = new com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest result = + new com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMetadata_ = requestMetadataBuilder_ == null - ? requestMetadata_ - : requestMetadataBuilder_.build(); + result.requestMetadata_ = + requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); } } @@ -398,38 +445,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteDocumentLi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.DeleteDocumentLinkRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) other); } else { super.mergeFrom(other); return this; @@ -437,7 +485,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -472,24 +522,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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(getRequestMetadataFieldBuilder().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) { @@ -499,24 +550,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the document-link to be deleted.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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; @@ -525,22 +581,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document-link to be deleted.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -548,32 +607,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document-link to be deleted.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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 name of the document-link to be deleted.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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() { @@ -583,19 +653,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the document-link to be deleted.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_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; @@ -605,36 +681,49 @@ public Builder setNameBytes( private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> + requestMetadataBuilder_; /** + * + * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -656,6 +745,8 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -675,6 +766,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -682,11 +775,13 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(
+        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          requestMetadata_ != null &&
-          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && requestMetadata_ != null
+            && requestMetadata_
+                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -699,6 +794,8 @@ public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.Request
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -717,6 +814,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -724,12 +823,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+        getRequestMetadataBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -737,15 +839,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMe
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+        getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+        return requestMetadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+            : requestMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -754,21 +860,24 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(),
-                getParentForChildren(),
-                isClean());
+        requestMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RequestMetadata,
+                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(), getParentForChildren(), isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
+
     @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);
     }
 
@@ -778,41 +887,43 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest)
-  private static final com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest();
   }
 
-  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest getDefaultInstance() {
+  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DeleteDocumentLinkRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 DeleteDocumentLinkRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -824,9 +935,8 @@ public com.google.protobuf.Parser getParserForType()
   }
 
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest getDefaultInstanceForType() {
+  public com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java
index bff322048550..e36af647f018 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentLinkRequestOrBuilder.java
@@ -1,57 +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/contentwarehouse/v1/document_link_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface DeleteDocumentLinkRequestOrBuilder extends
+public interface DeleteDocumentLinkRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The name of the document-link to be deleted.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the document-link to be deleted.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java
similarity index 67%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java
index 6586eeef2a0d..219df528efdc 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequest.java
@@ -1,52 +1,74 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_service_request.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Request message for DocumentService.DeleteDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.class, + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the document to delete.
    * Format:
@@ -55,7 +77,10 @@ protected java.lang.Object newInstance(
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 @@ -64,14 +89,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the document to delete.
    * Format:
@@ -80,17 +106,18 @@ public java.lang.String getName() {
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 { @@ -101,12 +128,15 @@ public java.lang.String getName() { public static final int REQUEST_METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -114,19 +144,26 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -135,11 +172,15 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+        : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -151,8 +192,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -172,8 +212,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -183,19 +222,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.contentwarehouse.v1.DeleteDocumentRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest other = (com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest) obj;
+    com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest other =
+        (com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata()
-          .equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -220,131 +258,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.DeleteDocumentRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.DeleteDocumentRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.DeleteDocumentRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.DeleteDocumentRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.DeleteDocumentRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.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.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.v1.DeleteDocumentRequest) com.google.cloud.contentwarehouse.v1.DeleteDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.class, + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -359,9 +402,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; } @java.lang.Override @@ -380,8 +423,11 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest result = new com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest result = + new com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -392,9 +438,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteDocumentRe result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMetadata_ = requestMetadataBuilder_ == null - ? requestMetadata_ - : requestMetadataBuilder_.build(); + result.requestMetadata_ = + requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); } } @@ -402,38 +447,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteDocumentRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.DeleteDocumentRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest) other); } else { super.mergeFrom(other); return this; @@ -441,7 +487,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -476,24 +523,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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(getRequestMetadataFieldBuilder().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) { @@ -503,10 +551,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the document to delete.
      * Format:
@@ -515,14 +566,16 @@ public Builder mergeFrom(
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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; @@ -531,6 +584,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to delete.
      * Format:
@@ -539,16 +594,17 @@ public java.lang.String getName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 { @@ -556,6 +612,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to delete.
      * Format:
@@ -564,19 +622,25 @@ public java.lang.String getName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 name of the document to delete.
      * Format:
@@ -585,7 +649,10 @@ public Builder setName(
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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() { @@ -595,6 +662,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the document to delete.
      * Format:
@@ -603,13 +672,17 @@ public Builder clearName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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; @@ -619,36 +692,49 @@ public Builder setNameBytes( private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> + requestMetadataBuilder_; /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -670,6 +756,8 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -689,6 +777,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -696,11 +786,13 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(
+        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          requestMetadata_ != null &&
-          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && requestMetadata_ != null
+            && requestMetadata_
+                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -713,6 +805,8 @@ public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.Request
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -731,6 +825,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -738,12 +834,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+        getRequestMetadataBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -751,15 +850,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMe
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+        getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+        return requestMetadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+            : requestMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -768,21 +871,24 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(),
-                getParentForChildren(),
-                isClean());
+        requestMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RequestMetadata,
+                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(), getParentForChildren(), isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
+
     @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);
     }
 
@@ -792,12 +898,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DeleteDocumentRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DeleteDocumentRequest)
   private static final com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest();
   }
@@ -806,27 +912,27 @@ public static com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest getDefa
     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;
@@ -841,6 +947,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java
similarity index 65%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java
index 7f8147233052..9cef55d8a48e 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentRequestOrBuilder.java
@@ -1,13 +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/contentwarehouse/v1/document_service_request.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface DeleteDocumentRequestOrBuilder extends
+public interface DeleteDocumentRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteDocumentRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The name of the document to delete.
    * Format:
@@ -16,11 +34,16 @@ public interface DeleteDocumentRequestOrBuilder extends
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the document to delete.
    * Format:
@@ -29,33 +52,43 @@ public interface DeleteDocumentRequestOrBuilder extends
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java
similarity index 60%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java
index a574e63d1ccd..30792221aa33 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequest.java
@@ -1,57 +1,82 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_schema_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Request message for DocumentSchemaService.DeleteDocumentSchema.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest} */ -public final class DeleteDocumentSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteDocumentSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) DeleteDocumentSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteDocumentSchemaRequest.newBuilder() to construct. private DeleteDocumentSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteDocumentSchemaRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteDocumentSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.class, + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the document schema to delete.
    * 
* - * 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 @@ -60,29 +85,31 @@ 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 name of the document schema to delete.
    * 
* - * 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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -127,15 +154,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.contentwarehouse.v1.DeleteDocumentSchemaRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest other = (com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) obj; + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest other = + (com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest 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.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest 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.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 DocumentSchemaService.DeleteDocumentSchema.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.class, + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,13 +321,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.getDefaultInstance(); } @@ -310,13 +343,17 @@ public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest build() @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest result = new com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest result = + new com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -327,46 +364,50 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteDocumentSc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.DeleteDocumentSchemaRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest other) { + if (other + == com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +439,19 @@ 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) { @@ -418,22 +461,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the document schema to delete.
      * 
* - * 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; @@ -442,20 +490,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document schema to delete.
      * 
* - * 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 { @@ -463,28 +514,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document schema to delete.
      * 
* - * 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 name of the document schema to delete.
      * 
* - * 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() { @@ -494,26 +556,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the document schema to delete.
      * 
* - * 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); } @@ -523,41 +591,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) - private static final com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest(); } - public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDocumentSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteDocumentSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,9 +639,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..0c58a06ecced --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface DeleteDocumentSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the document schema to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the document schema to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java similarity index 64% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java index 1271e4b1f73a..24a28c73009b 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequest.java @@ -1,59 +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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for RuleSetService.DeleteRuleSet.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteRuleSetRequest} */ -public final class DeleteRuleSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteRuleSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) DeleteRuleSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteRuleSetRequest.newBuilder() to construct. private DeleteRuleSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteRuleSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteRuleSetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.class, + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the rule set to delete.
    * Format:
    * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 @@ -62,31 +87,33 @@ 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 name of the rule set to delete.
    * Format:
    * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +158,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.contentwarehouse.v1.DeleteRuleSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest other = (com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) obj; + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest other = + (com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest 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.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest 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.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 RuleSetService.DeleteRuleSet.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteRuleSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.class, + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; } @java.lang.Override @@ -314,8 +346,11 @@ public com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest result = new com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest result = + new com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +366,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteRuleSetReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.DeleteRuleSetRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) other); } else { super.mergeFrom(other); return this; @@ -370,7 +406,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -402,17 +439,19 @@ 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) { @@ -422,24 +461,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the rule set to delete.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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; @@ -448,22 +492,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the rule set to delete.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 { @@ -471,32 +518,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the rule set to delete.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 name of the rule set to delete.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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() { @@ -506,28 +564,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the rule set to delete.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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); } @@ -537,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) private static final com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest(); } @@ -551,27 +615,27 @@ public static com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRuleSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteRuleSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java new file mode 100644 index 000000000000..93de1bea19a5 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface DeleteRuleSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the rule set to delete.
+   * Format:
+   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the rule set to delete.
+   * Format:
+   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java similarity index 62% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java index a0dd27317f59..4b3f94e0142d 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequest.java @@ -1,59 +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/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for SynonymSetService.DeleteSynonymSet.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest} */ -public final class DeleteSynonymSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSynonymSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) DeleteSynonymSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSynonymSetRequest.newBuilder() to construct. private DeleteSynonymSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSynonymSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSynonymSetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.class, + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the synonymSet to delete
    * Format:
    * projects/{project_number}/locations/{location}/synonymSets/{context}.
    * 
* - * 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 @@ -62,31 +87,33 @@ 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 name of the synonymSet to delete
    * Format:
    * projects/{project_number}/locations/{location}/synonymSets/{context}.
    * 
* - * 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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +158,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.contentwarehouse.v1.DeleteSynonymSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest other = (com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) obj; + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest other = + (com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest 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.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest 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.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 SynonymSetService.DeleteSynonymSet.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.class, + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,13 +325,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.getDefaultInstance(); } @@ -314,13 +347,17 @@ public com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest result = new com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest result = + new com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -331,38 +368,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DeleteSynonymSet public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.DeleteSynonymSetRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) other); } else { super.mergeFrom(other); return this; @@ -370,7 +408,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -402,17 +442,19 @@ 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) { @@ -422,24 +464,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the synonymSet to delete
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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; @@ -448,22 +495,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the synonymSet to delete
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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 { @@ -471,32 +521,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the synonymSet to delete
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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 name of the synonymSet to delete
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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() { @@ -506,28 +567,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the synonymSet to delete
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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); } @@ -537,12 +604,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) - private static final com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest(); } @@ -551,27 +619,27 @@ public static com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSynonymSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteSynonymSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java new file mode 100644 index 000000000000..e7687e154577 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface DeleteSynonymSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the synonymSet to delete
+   * Format:
+   * projects/{project_number}/locations/{location}/synonymSets/{context}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the synonymSet to delete
+   * Format:
+   * projects/{project_number}/locations/{location}/synonymSets/{context}.
+   * 
+ * + * + * 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-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java similarity index 72% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java index d19a43f2c9eb..4020d3846778 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Document.java @@ -1,24 +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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Defines the structure for content warehouse document proto.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.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_ = ""; referenceId_ = ""; @@ -36,34 +54,39 @@ 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.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Document_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_Document_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Document.class, com.google.cloud.contentwarehouse.v1.Document.Builder.class); + com.google.cloud.contentwarehouse.v1.Document.class, + com.google.cloud.contentwarehouse.v1.Document.Builder.class); } private int structuredContentCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object structuredContent_; + public enum StructuredContentCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PLAIN_TEXT(15), CLOUD_AI_DOCUMENT(4), STRUCTUREDCONTENT_NOT_SET(0); private final int value; + private StructuredContentCase(int value) { this.value = value; } @@ -79,33 +102,40 @@ public static StructuredContentCase valueOf(int value) { public static StructuredContentCase forNumber(int value) { switch (value) { - case 15: return PLAIN_TEXT; - case 4: return CLOUD_AI_DOCUMENT; - case 0: return STRUCTUREDCONTENT_NOT_SET; - default: return null; + case 15: + return PLAIN_TEXT; + case 4: + return CLOUD_AI_DOCUMENT; + case 0: + return STRUCTUREDCONTENT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public StructuredContentCase - getStructuredContentCase() { - return StructuredContentCase.forNumber( - structuredContentCase_); + public StructuredContentCase getStructuredContentCase() { + return StructuredContentCase.forNumber(structuredContentCase_); } private int rawDocumentCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object rawDocument_; + public enum RawDocumentCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RAW_DOCUMENT_PATH(5), INLINE_RAW_DOCUMENT(6), RAWDOCUMENT_NOT_SET(0); private final int value; + private RawDocumentCase(int value) { this.value = value; } @@ -121,27 +151,33 @@ public static RawDocumentCase valueOf(int value) { public static RawDocumentCase forNumber(int value) { switch (value) { - case 5: return RAW_DOCUMENT_PATH; - case 6: return INLINE_RAW_DOCUMENT; - case 0: return RAWDOCUMENT_NOT_SET; - default: return null; + case 5: + return RAW_DOCUMENT_PATH; + case 6: + return INLINE_RAW_DOCUMENT; + case 0: + return RAWDOCUMENT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RawDocumentCase - getRawDocumentCase() { - return RawDocumentCase.forNumber( - rawDocumentCase_); + public RawDocumentCase getRawDocumentCase() { + return RawDocumentCase.forNumber(rawDocumentCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the document.
    * Format:
@@ -151,6 +187,7 @@ public int getNumber() {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -159,14 +196,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the document.
    * Format:
@@ -176,16 +214,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -194,14 +231,18 @@ public java.lang.String getName() { } public static final int REFERENCE_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object referenceId_ = ""; /** + * + * *
    * The reference ID set by customers. Must be unique per project and location.
    * 
* * string reference_id = 11; + * * @return The referenceId. */ @java.lang.Override @@ -210,29 +251,29 @@ public java.lang.String getReferenceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceId_ = s; return s; } } /** + * + * *
    * The reference ID set by customers. Must be unique per project and location.
    * 
* * string reference_id = 11; + * * @return The bytes for referenceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getReferenceIdBytes() { + public com.google.protobuf.ByteString getReferenceIdBytes() { java.lang.Object ref = referenceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); referenceId_ = b; return b; } else { @@ -241,9 +282,12 @@ public java.lang.String getReferenceId() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. Display name of the document given by the user. This name will be
    * displayed in the UI. Customer can populate this field with the name of the
@@ -252,6 +296,7 @@ public java.lang.String getReferenceId() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -260,14 +305,15 @@ 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; } } /** + * + * *
    * Required. Display name of the document given by the user. This name will be
    * displayed in the UI. Customer can populate this field with the name of the
@@ -276,16 +322,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -294,15 +339,19 @@ public java.lang.String getDisplayName() { } public static final int TITLE_FIELD_NUMBER = 18; + @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** + * + * *
    * Title that describes the document.
    * This can be the top heading or text that describes the document.
    * 
* * string title = 18; + * * @return The title. */ @java.lang.Override @@ -311,30 +360,30 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** + * + * *
    * Title that describes the document.
    * This can be the top heading or text that describes the document.
    * 
* * string title = 18; + * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString - getTitleBytes() { + public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -343,14 +392,18 @@ public java.lang.String getTitle() { } public static final int DISPLAY_URI_FIELD_NUMBER = 17; + @SuppressWarnings("serial") private volatile java.lang.Object displayUri_ = ""; /** + * + * *
    * Uri to display the document, for example, in the UI.
    * 
* * string display_uri = 17; + * * @return The displayUri. */ @java.lang.Override @@ -359,29 +412,29 @@ public java.lang.String getDisplayUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayUri_ = s; return s; } } /** + * + * *
    * Uri to display the document, for example, in the UI.
    * 
* * string display_uri = 17; + * * @return The bytes for displayUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayUriBytes() { + public com.google.protobuf.ByteString getDisplayUriBytes() { java.lang.Object ref = displayUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayUri_ = b; return b; } else { @@ -390,9 +443,12 @@ public java.lang.String getDisplayUri() { } public static final int DOCUMENT_SCHEMA_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object documentSchemaName_ = ""; /** + * + * *
    * The Document schema name.
    * Format:
@@ -400,6 +456,7 @@ public java.lang.String getDisplayUri() {
    * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } + * * @return The documentSchemaName. */ @java.lang.Override @@ -408,14 +465,15 @@ public java.lang.String getDocumentSchemaName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentSchemaName_ = s; return s; } } /** + * + * *
    * The Document schema name.
    * Format:
@@ -423,16 +481,15 @@ public java.lang.String getDocumentSchemaName() {
    * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for documentSchemaName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDocumentSchemaNameBytes() { + public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { java.lang.Object ref = documentSchemaName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentSchemaName_ = b; return b; } else { @@ -442,22 +499,28 @@ public java.lang.String getDocumentSchemaName() { public static final int PLAIN_TEXT_FIELD_NUMBER = 15; /** + * + * *
    * Other document format, such as PPTX, XLXS
    * 
* * string plain_text = 15; + * * @return Whether the plainText field is set. */ public boolean hasPlainText() { return structuredContentCase_ == 15; } /** + * + * *
    * Other document format, such as PPTX, XLXS
    * 
* * string plain_text = 15; + * * @return The plainText. */ public java.lang.String getPlainText() { @@ -468,8 +531,7 @@ public java.lang.String getPlainText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (structuredContentCase_ == 15) { structuredContent_ = s; @@ -478,23 +540,24 @@ public java.lang.String getPlainText() { } } /** + * + * *
    * Other document format, such as PPTX, XLXS
    * 
* * string plain_text = 15; + * * @return The bytes for plainText. */ - public com.google.protobuf.ByteString - getPlainTextBytes() { + public com.google.protobuf.ByteString getPlainTextBytes() { java.lang.Object ref = ""; if (structuredContentCase_ == 15) { ref = structuredContent_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (structuredContentCase_ == 15) { structuredContent_ = b; } @@ -506,11 +569,14 @@ public java.lang.String getPlainText() { public static final int CLOUD_AI_DOCUMENT_FIELD_NUMBER = 4; /** + * + * *
    * Document AI format to save the structured content, including OCR.
    * 
* * .google.cloud.documentai.v1.Document cloud_ai_document = 4; + * * @return Whether the cloudAiDocument field is set. */ @java.lang.Override @@ -518,21 +584,26 @@ public boolean hasCloudAiDocument() { return structuredContentCase_ == 4; } /** + * + * *
    * Document AI format to save the structured content, including OCR.
    * 
* * .google.cloud.documentai.v1.Document cloud_ai_document = 4; + * * @return The cloudAiDocument. */ @java.lang.Override public com.google.cloud.documentai.v1.Document getCloudAiDocument() { if (structuredContentCase_ == 4) { - return (com.google.cloud.documentai.v1.Document) structuredContent_; + return (com.google.cloud.documentai.v1.Document) structuredContent_; } return com.google.cloud.documentai.v1.Document.getDefaultInstance(); } /** + * + * *
    * Document AI format to save the structured content, including OCR.
    * 
@@ -542,55 +613,61 @@ public com.google.cloud.documentai.v1.Document getCloudAiDocument() { @java.lang.Override public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuilder() { if (structuredContentCase_ == 4) { - return (com.google.cloud.documentai.v1.Document) structuredContent_; + return (com.google.cloud.documentai.v1.Document) structuredContent_; } return com.google.cloud.documentai.v1.Document.getDefaultInstance(); } public static final int STRUCTURED_CONTENT_URI_FIELD_NUMBER = 16; + @SuppressWarnings("serial") private volatile java.lang.Object structuredContentUri_ = ""; /** + * + * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. - * See google/cloud/contentwarehouse/v1/document.proto;l=79 + * + * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. See + * google/cloud/contentwarehouse/v1/document.proto;l=79 * @return The structuredContentUri. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getStructuredContentUri() { + @java.lang.Deprecated + public java.lang.String getStructuredContentUri() { java.lang.Object ref = structuredContentUri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); structuredContentUri_ = s; return s; } } /** + * + * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. - * See google/cloud/contentwarehouse/v1/document.proto;l=79 + * + * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. See + * google/cloud/contentwarehouse/v1/document.proto;l=79 * @return The bytes for structuredContentUri. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getStructuredContentUriBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getStructuredContentUriBytes() { java.lang.Object ref = structuredContentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); structuredContentUri_ = b; return b; } else { @@ -600,22 +677,28 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil public static final int RAW_DOCUMENT_PATH_FIELD_NUMBER = 5; /** + * + * *
    * Raw document file in Cloud Storage path.
    * 
* * string raw_document_path = 5; + * * @return Whether the rawDocumentPath field is set. */ public boolean hasRawDocumentPath() { return rawDocumentCase_ == 5; } /** + * + * *
    * Raw document file in Cloud Storage path.
    * 
* * string raw_document_path = 5; + * * @return The rawDocumentPath. */ public java.lang.String getRawDocumentPath() { @@ -626,8 +709,7 @@ public java.lang.String getRawDocumentPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (rawDocumentCase_ == 5) { rawDocument_ = s; @@ -636,23 +718,24 @@ public java.lang.String getRawDocumentPath() { } } /** + * + * *
    * Raw document file in Cloud Storage path.
    * 
* * string raw_document_path = 5; + * * @return The bytes for rawDocumentPath. */ - public com.google.protobuf.ByteString - getRawDocumentPathBytes() { + public com.google.protobuf.ByteString getRawDocumentPathBytes() { java.lang.Object ref = ""; if (rawDocumentCase_ == 5) { ref = rawDocument_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (rawDocumentCase_ == 5) { rawDocument_ = b; } @@ -664,11 +747,14 @@ public java.lang.String getRawDocumentPath() { public static final int INLINE_RAW_DOCUMENT_FIELD_NUMBER = 6; /** + * + * *
    * Raw document content.
    * 
* * bytes inline_raw_document = 6; + * * @return Whether the inlineRawDocument field is set. */ @java.lang.Override @@ -676,11 +762,14 @@ public boolean hasInlineRawDocument() { return rawDocumentCase_ == 6; } /** + * + * *
    * Raw document content.
    * 
* * bytes inline_raw_document = 6; + * * @return The inlineRawDocument. */ @java.lang.Override @@ -692,9 +781,12 @@ public com.google.protobuf.ByteString getInlineRawDocument() { } public static final int PROPERTIES_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private java.util.List properties_; /** + * + * *
    * List of values that are user supplied metadata.
    * 
@@ -706,6 +798,8 @@ public java.util.List getProperti return properties_; } /** + * + * *
    * List of values that are user supplied metadata.
    * 
@@ -713,11 +807,13 @@ public java.util.List getProperti * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ @java.lang.Override - public java.util.List + public java.util.List getPropertiesOrBuilderList() { return properties_; } /** + * + * *
    * List of values that are user supplied metadata.
    * 
@@ -729,6 +825,8 @@ public int getPropertiesCount() { return properties_.size(); } /** + * + * *
    * List of values that are user supplied metadata.
    * 
@@ -740,6 +838,8 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { return properties_.get(index); } /** + * + * *
    * List of values that are user supplied metadata.
    * 
@@ -747,19 +847,22 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder(int index) { return properties_.get(index); } public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -767,11 +870,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -779,11 +886,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -793,11 +903,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -805,11 +919,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -817,11 +935,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -831,6 +952,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int RAW_DOCUMENT_FILE_TYPE_FIELD_NUMBER = 10; private int rawDocumentFileType_ = 0; /** + * + * *
    * This is used when DocAI was not used to load the document and parsing/
    * extracting is needed for the inline_raw_document.  For example, if
@@ -839,12 +962,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * * @return The enum numeric value on the wire for rawDocumentFileType. */ - @java.lang.Override public int getRawDocumentFileTypeValue() { + @java.lang.Override + public int getRawDocumentFileTypeValue() { return rawDocumentFileType_; } /** + * + * *
    * This is used when DocAI was not used to load the document and parsing/
    * extracting is needed for the inline_raw_document.  For example, if
@@ -853,81 +980,108 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * * @return The rawDocumentFileType. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.RawDocumentFileType getRawDocumentFileType() { - com.google.cloud.contentwarehouse.v1.RawDocumentFileType result = com.google.cloud.contentwarehouse.v1.RawDocumentFileType.forNumber(rawDocumentFileType_); - return result == null ? com.google.cloud.contentwarehouse.v1.RawDocumentFileType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.RawDocumentFileType getRawDocumentFileType() { + com.google.cloud.contentwarehouse.v1.RawDocumentFileType result = + com.google.cloud.contentwarehouse.v1.RawDocumentFileType.forNumber(rawDocumentFileType_); + return result == null + ? com.google.cloud.contentwarehouse.v1.RawDocumentFileType.UNRECOGNIZED + : result; } public static final int ASYNC_ENABLED_FIELD_NUMBER = 12; private boolean asyncEnabled_ = false; /** + * + * *
    * If true, makes the document visible to asynchronous policies and rules.
    * 
* * bool async_enabled = 12 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. - * See google/cloud/contentwarehouse/v1/document.proto;l=108 + * + * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. See + * google/cloud/contentwarehouse/v1/document.proto;l=108 * @return The asyncEnabled. */ @java.lang.Override - @java.lang.Deprecated public boolean getAsyncEnabled() { + @java.lang.Deprecated + public boolean getAsyncEnabled() { return asyncEnabled_; } public static final int CONTENT_CATEGORY_FIELD_NUMBER = 20; private int contentCategory_ = 0; /** + * + * *
    * Indicates the category (image, audio, video etc.) of the original content.
    * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; + * * @return The enum numeric value on the wire for contentCategory. */ - @java.lang.Override public int getContentCategoryValue() { + @java.lang.Override + public int getContentCategoryValue() { return contentCategory_; } /** + * + * *
    * Indicates the category (image, audio, video etc.) of the original content.
    * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; + * * @return The contentCategory. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.ContentCategory getContentCategory() { - com.google.cloud.contentwarehouse.v1.ContentCategory result = com.google.cloud.contentwarehouse.v1.ContentCategory.forNumber(contentCategory_); - return result == null ? com.google.cloud.contentwarehouse.v1.ContentCategory.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.ContentCategory getContentCategory() { + com.google.cloud.contentwarehouse.v1.ContentCategory result = + com.google.cloud.contentwarehouse.v1.ContentCategory.forNumber(contentCategory_); + return result == null + ? com.google.cloud.contentwarehouse.v1.ContentCategory.UNRECOGNIZED + : result; } public static final int TEXT_EXTRACTION_DISABLED_FIELD_NUMBER = 19; private boolean textExtractionDisabled_ = false; /** + * + * *
    * If true, text extraction will not be performed.
    * 
* * bool text_extraction_disabled = 19 [deprecated = true]; + * * @deprecated google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=114 * @return The textExtractionDisabled. */ @java.lang.Override - @java.lang.Deprecated public boolean getTextExtractionDisabled() { + @java.lang.Deprecated + public boolean getTextExtractionDisabled() { return textExtractionDisabled_; } public static final int TEXT_EXTRACTION_ENABLED_FIELD_NUMBER = 21; private boolean textExtractionEnabled_ = false; /** + * + * *
    * If true, text extraction will be performed.
    * 
* * bool text_extraction_enabled = 21; + * * @return The textExtractionEnabled. */ @java.lang.Override @@ -936,14 +1090,18 @@ public boolean getTextExtractionEnabled() { } public static final int CREATOR_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private volatile java.lang.Object creator_ = ""; /** + * + * *
    * The user who creates the document.
    * 
* * string creator = 13; + * * @return The creator. */ @java.lang.Override @@ -952,29 +1110,29 @@ public java.lang.String getCreator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; } } /** + * + * *
    * The user who creates the document.
    * 
* * string creator = 13; + * * @return The bytes for creator. */ @java.lang.Override - public com.google.protobuf.ByteString - getCreatorBytes() { + public com.google.protobuf.ByteString getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); creator_ = b; return b; } else { @@ -983,14 +1141,18 @@ public java.lang.String getCreator() { } public static final int UPDATER_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private volatile java.lang.Object updater_ = ""; /** + * + * *
    * The user who lastly updates the document.
    * 
* * string updater = 14; + * * @return The updater. */ @java.lang.Override @@ -999,29 +1161,29 @@ public java.lang.String getUpdater() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); updater_ = s; return s; } } /** + * + * *
    * The user who lastly updates the document.
    * 
* * string updater = 14; + * * @return The bytes for updater. */ @java.lang.Override - public com.google.protobuf.ByteString - getUpdaterBytes() { + public com.google.protobuf.ByteString getUpdaterBytes() { java.lang.Object ref = updater_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); updater_ = b; return b; } else { @@ -1032,12 +1194,17 @@ public java.lang.String getUpdater() { public static final int DISPOSITION_TIME_FIELD_NUMBER = 22; private com.google.protobuf.Timestamp dispositionTime_; /** + * + * *
    * Output only. If linked to a Collection with RetentionPolicy, the date when
    * the document becomes mutable.
    * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dispositionTime field is set. */ @java.lang.Override @@ -1045,39 +1212,55 @@ public boolean hasDispositionTime() { return dispositionTime_ != null; } /** + * + * *
    * Output only. If linked to a Collection with RetentionPolicy, the date when
    * the document becomes mutable.
    * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dispositionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDispositionTime() { - return dispositionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dispositionTime_; + return dispositionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dispositionTime_; } /** + * + * *
    * Output only. If linked to a Collection with RetentionPolicy, the date when
    * the document becomes mutable.
    * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDispositionTimeOrBuilder() { - return dispositionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dispositionTime_; + return dispositionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dispositionTime_; } public static final int LEGAL_HOLD_FIELD_NUMBER = 23; private boolean legalHold_ = false; /** + * + * *
    * Output only. Indicates if the document has a legal hold on it.
    * 
* * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The legalHold. */ @java.lang.Override @@ -1086,6 +1269,7 @@ public boolean getLegalHold() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1097,8 +1281,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1115,8 +1298,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 5, rawDocument_); } if (rawDocumentCase_ == 6) { - output.writeBytes( - 6, (com.google.protobuf.ByteString) rawDocument_); + output.writeBytes(6, (com.google.protobuf.ByteString) rawDocument_); } for (int i = 0; i < properties_.size(); i++) { output.writeMessage(7, properties_.get(i)); @@ -1127,7 +1309,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createTime_ != null) { output.writeMessage(9, getCreateTime()); } - if (rawDocumentFileType_ != com.google.cloud.contentwarehouse.v1.RawDocumentFileType.RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED.getNumber()) { + if (rawDocumentFileType_ + != com.google.cloud.contentwarehouse.v1.RawDocumentFileType + .RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(10, rawDocumentFileType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceId_)) { @@ -1157,7 +1342,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (textExtractionDisabled_ != false) { output.writeBool(19, textExtractionDisabled_); } - if (contentCategory_ != com.google.cloud.contentwarehouse.v1.ContentCategory.CONTENT_CATEGORY_UNSPECIFIED.getNumber()) { + if (contentCategory_ + != com.google.cloud.contentwarehouse.v1.ContentCategory.CONTENT_CATEGORY_UNSPECIFIED + .getNumber()) { output.writeEnum(20, contentCategory_); } if (textExtractionEnabled_ != false) { @@ -1188,39 +1375,38 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, documentSchemaName_); } if (structuredContentCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.documentai.v1.Document) structuredContent_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.documentai.v1.Document) structuredContent_); } if (rawDocumentCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, rawDocument_); } if (rawDocumentCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 6, (com.google.protobuf.ByteString) rawDocument_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 6, (com.google.protobuf.ByteString) rawDocument_); } for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, properties_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties_.get(i)); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } - if (rawDocumentFileType_ != com.google.cloud.contentwarehouse.v1.RawDocumentFileType.RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, rawDocumentFileType_); + if (rawDocumentFileType_ + != com.google.cloud.contentwarehouse.v1.RawDocumentFileType + .RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, rawDocumentFileType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, referenceId_); } if (asyncEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, asyncEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, asyncEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, creator_); @@ -1241,24 +1427,21 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, title_); } if (textExtractionDisabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(19, textExtractionDisabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, textExtractionDisabled_); } - if (contentCategory_ != com.google.cloud.contentwarehouse.v1.ContentCategory.CONTENT_CATEGORY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(20, contentCategory_); + if (contentCategory_ + != com.google.cloud.contentwarehouse.v1.ContentCategory.CONTENT_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, contentCategory_); } if (textExtractionEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(21, textExtractionEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, textExtractionEnabled_); } if (dispositionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getDispositionTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getDispositionTime()); } if (legalHold_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(23, legalHold_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, legalHold_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1268,67 +1451,49 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.Document)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.Document other = (com.google.cloud.contentwarehouse.v1.Document) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getReferenceId() - .equals(other.getReferenceId())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDisplayUri() - .equals(other.getDisplayUri())) return false; - if (!getDocumentSchemaName() - .equals(other.getDocumentSchemaName())) return false; - if (!getStructuredContentUri() - .equals(other.getStructuredContentUri())) return false; - if (!getPropertiesList() - .equals(other.getPropertiesList())) return false; + com.google.cloud.contentwarehouse.v1.Document other = + (com.google.cloud.contentwarehouse.v1.Document) obj; + + if (!getName().equals(other.getName())) return false; + if (!getReferenceId().equals(other.getReferenceId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getDisplayUri().equals(other.getDisplayUri())) return false; + if (!getDocumentSchemaName().equals(other.getDocumentSchemaName())) return false; + if (!getStructuredContentUri().equals(other.getStructuredContentUri())) return false; + if (!getPropertiesList().equals(other.getPropertiesList())) 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 (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (rawDocumentFileType_ != other.rawDocumentFileType_) return false; - if (getAsyncEnabled() - != other.getAsyncEnabled()) return false; + if (getAsyncEnabled() != other.getAsyncEnabled()) return false; if (contentCategory_ != other.contentCategory_) return false; - if (getTextExtractionDisabled() - != other.getTextExtractionDisabled()) return false; - if (getTextExtractionEnabled() - != other.getTextExtractionEnabled()) return false; - if (!getCreator() - .equals(other.getCreator())) return false; - if (!getUpdater() - .equals(other.getUpdater())) return false; + if (getTextExtractionDisabled() != other.getTextExtractionDisabled()) return false; + if (getTextExtractionEnabled() != other.getTextExtractionEnabled()) return false; + if (!getCreator().equals(other.getCreator())) return false; + if (!getUpdater().equals(other.getUpdater())) return false; if (hasDispositionTime() != other.hasDispositionTime()) return false; if (hasDispositionTime()) { - if (!getDispositionTime() - .equals(other.getDispositionTime())) return false; + if (!getDispositionTime().equals(other.getDispositionTime())) return false; } - if (getLegalHold() - != other.getLegalHold()) return false; + if (getLegalHold() != other.getLegalHold()) return false; if (!getStructuredContentCase().equals(other.getStructuredContentCase())) return false; switch (structuredContentCase_) { case 15: - if (!getPlainText() - .equals(other.getPlainText())) return false; + if (!getPlainText().equals(other.getPlainText())) return false; break; case 4: - if (!getCloudAiDocument() - .equals(other.getCloudAiDocument())) return false; + if (!getCloudAiDocument().equals(other.getCloudAiDocument())) return false; break; case 0: default: @@ -1336,12 +1501,10 @@ public boolean equals(final java.lang.Object obj) { if (!getRawDocumentCase().equals(other.getRawDocumentCase())) return false; switch (rawDocumentCase_) { case 5: - if (!getRawDocumentPath() - .equals(other.getRawDocumentPath())) return false; + if (!getRawDocumentPath().equals(other.getRawDocumentPath())) return false; break; case 6: - if (!getInlineRawDocument() - .equals(other.getInlineRawDocument())) return false; + if (!getInlineRawDocument().equals(other.getInlineRawDocument())) return false; break; case 0: default: @@ -1386,16 +1549,13 @@ public int hashCode() { hash = (37 * hash) + RAW_DOCUMENT_FILE_TYPE_FIELD_NUMBER; hash = (53 * hash) + rawDocumentFileType_; hash = (37 * hash) + ASYNC_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAsyncEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAsyncEnabled()); hash = (37 * hash) + CONTENT_CATEGORY_FIELD_NUMBER; hash = (53 * hash) + contentCategory_; hash = (37 * hash) + TEXT_EXTRACTION_DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTextExtractionDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTextExtractionDisabled()); hash = (37 * hash) + TEXT_EXTRACTION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTextExtractionEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTextExtractionEnabled()); hash = (37 * hash) + CREATOR_FIELD_NUMBER; hash = (53 * hash) + getCreator().hashCode(); hash = (37 * hash) + UPDATER_FIELD_NUMBER; @@ -1405,8 +1565,7 @@ public int hashCode() { hash = (53 * hash) + getDispositionTime().hashCode(); } hash = (37 * hash) + LEGAL_HOLD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLegalHold()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLegalHold()); switch (structuredContentCase_) { case 15: hash = (37 * hash) + PLAIN_TEXT_FIELD_NUMBER; @@ -1436,132 +1595,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.Document parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.Document parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.Document parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.Document parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.Document parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.Document parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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; } /** + * + * *
    * Defines the structure for content warehouse document proto.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.v1.Document) com.google.cloud.contentwarehouse.v1.DocumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Document_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_Document_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Document.class, com.google.cloud.contentwarehouse.v1.Document.Builder.class); + com.google.cloud.contentwarehouse.v1.Document.class, + com.google.cloud.contentwarehouse.v1.Document.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.Document.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1614,9 +1777,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Document_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_Document_descriptor; } @java.lang.Override @@ -1635,9 +1798,12 @@ public com.google.cloud.contentwarehouse.v1.Document build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.Document buildPartial() { - com.google.cloud.contentwarehouse.v1.Document result = new com.google.cloud.contentwarehouse.v1.Document(this); + com.google.cloud.contentwarehouse.v1.Document result = + new com.google.cloud.contentwarehouse.v1.Document(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1679,14 +1845,10 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Document result) result.structuredContentUri_ = structuredContentUri_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00002000) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00004000) != 0)) { result.rawDocumentFileType_ = rawDocumentFileType_; @@ -1710,9 +1872,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Document result) result.updater_ = updater_; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.dispositionTime_ = dispositionTimeBuilder_ == null - ? dispositionTime_ - : dispositionTimeBuilder_.build(); + result.dispositionTime_ = + dispositionTimeBuilder_ == null ? dispositionTime_ : dispositionTimeBuilder_.build(); } if (((from_bitField0_ & 0x00400000) != 0)) { result.legalHold_ = legalHold_; @@ -1722,8 +1883,7 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Document result) private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Document result) { result.structuredContentCase_ = structuredContentCase_; result.structuredContent_ = this.structuredContent_; - if (structuredContentCase_ == 4 && - cloudAiDocumentBuilder_ != null) { + if (structuredContentCase_ == 4 && cloudAiDocumentBuilder_ != null) { result.structuredContent_ = cloudAiDocumentBuilder_.build(); } result.rawDocumentCase_ = rawDocumentCase_; @@ -1734,38 +1894,39 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Document 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.contentwarehouse.v1.Document) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.Document)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.Document) other); } else { super.mergeFrom(other); return this; @@ -1827,9 +1988,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Document other) { propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000800); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertiesFieldBuilder() : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertiesFieldBuilder() + : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -1873,34 +2035,40 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Document other) { setLegalHold(other.getLegalHold()); } switch (other.getStructuredContentCase()) { - case PLAIN_TEXT: { - structuredContentCase_ = 15; - structuredContent_ = other.structuredContent_; - onChanged(); - break; - } - case CLOUD_AI_DOCUMENT: { - mergeCloudAiDocument(other.getCloudAiDocument()); - break; - } - case STRUCTUREDCONTENT_NOT_SET: { - break; - } + case PLAIN_TEXT: + { + structuredContentCase_ = 15; + structuredContent_ = other.structuredContent_; + onChanged(); + break; + } + case CLOUD_AI_DOCUMENT: + { + mergeCloudAiDocument(other.getCloudAiDocument()); + break; + } + case STRUCTUREDCONTENT_NOT_SET: + { + break; + } } switch (other.getRawDocumentCase()) { - case RAW_DOCUMENT_PATH: { - rawDocumentCase_ = 5; - rawDocument_ = other.rawDocument_; - onChanged(); - break; - } - case INLINE_RAW_DOCUMENT: { - setInlineRawDocument(other.getInlineRawDocument()); - break; - } - case RAWDOCUMENT_NOT_SET: { - break; - } + case RAW_DOCUMENT_PATH: + { + rawDocumentCase_ = 5; + rawDocument_ = other.rawDocument_; + onChanged(); + break; + } + case INLINE_RAW_DOCUMENT: + { + setInlineRawDocument(other.getInlineRawDocument()); + break; + } + case RAWDOCUMENT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1928,145 +2096,160 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - documentSchemaName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 26 - case 34: { - input.readMessage( - getCloudAiDocumentFieldBuilder().getBuilder(), - extensionRegistry); - structuredContentCase_ = 4; - break; - } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - rawDocumentCase_ = 5; - rawDocument_ = s; - break; - } // case 42 - case 50: { - rawDocument_ = input.readBytes(); - rawDocumentCase_ = 6; - break; - } // case 50 - case 58: { - com.google.cloud.contentwarehouse.v1.Property m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.Property.parser(), - extensionRegistry); - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(m); - } else { - propertiesBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 66 - case 74: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 74 - case 80: { - rawDocumentFileType_ = input.readEnum(); - bitField0_ |= 0x00004000; - break; - } // case 80 - case 90: { - referenceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 90 - case 96: { - asyncEnabled_ = input.readBool(); - bitField0_ |= 0x00008000; - break; - } // case 96 - case 106: { - creator_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; - break; - } // case 106 - case 114: { - updater_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; - break; - } // case 114 - case 122: { - java.lang.String s = input.readStringRequireUtf8(); - structuredContentCase_ = 15; - structuredContent_ = s; - break; - } // case 122 - case 130: { - structuredContentUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 130 - case 138: { - displayUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 138 - case 146: { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 146 - case 152: { - textExtractionDisabled_ = input.readBool(); - bitField0_ |= 0x00020000; - break; - } // case 152 - case 160: { - contentCategory_ = input.readEnum(); - bitField0_ |= 0x00010000; - break; - } // case 160 - case 168: { - textExtractionEnabled_ = input.readBool(); - bitField0_ |= 0x00040000; - break; - } // case 168 - case 178: { - input.readMessage( - getDispositionTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 178 - case 184: { - legalHold_ = input.readBool(); - bitField0_ |= 0x00400000; - break; - } // case 184 - 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + documentSchemaName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 34: + { + input.readMessage(getCloudAiDocumentFieldBuilder().getBuilder(), extensionRegistry); + structuredContentCase_ = 4; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + rawDocumentCase_ = 5; + rawDocument_ = s; + break; + } // case 42 + case 50: + { + rawDocument_ = input.readBytes(); + rawDocumentCase_ = 6; + break; + } // case 50 + case 58: + { + com.google.cloud.contentwarehouse.v1.Property m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.Property.parser(), extensionRegistry); + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(m); + } else { + propertiesBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 66 + case 74: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 74 + case 80: + { + rawDocumentFileType_ = input.readEnum(); + bitField0_ |= 0x00004000; + break; + } // case 80 + case 90: + { + referenceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 90 + case 96: + { + asyncEnabled_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 96 + case 106: + { + creator_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 106 + case 114: + { + updater_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 114 + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + structuredContentCase_ = 15; + structuredContent_ = s; + break; + } // case 122 + case 130: + { + structuredContentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 130 + case 138: + { + displayUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 138 + case 146: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 146 + case 152: + { + textExtractionDisabled_ = input.readBool(); + bitField0_ |= 0x00020000; + break; + } // case 152 + case 160: + { + contentCategory_ = input.readEnum(); + bitField0_ |= 0x00010000; + break; + } // case 160 + case 168: + { + textExtractionEnabled_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 168 + case 178: + { + input.readMessage(getDispositionTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 178 + case 184: + { + legalHold_ = input.readBool(); + bitField0_ |= 0x00400000; + break; + } // case 184 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2076,12 +2259,12 @@ public Builder mergeFrom( } // finally return this; } + private int structuredContentCase_ = 0; private java.lang.Object structuredContent_; - public StructuredContentCase - getStructuredContentCase() { - return StructuredContentCase.forNumber( - structuredContentCase_); + + public StructuredContentCase getStructuredContentCase() { + return StructuredContentCase.forNumber(structuredContentCase_); } public Builder clearStructuredContent() { @@ -2093,10 +2276,9 @@ public Builder clearStructuredContent() { private int rawDocumentCase_ = 0; private java.lang.Object rawDocument_; - public RawDocumentCase - getRawDocumentCase() { - return RawDocumentCase.forNumber( - rawDocumentCase_); + + public RawDocumentCase getRawDocumentCase() { + return RawDocumentCase.forNumber(rawDocumentCase_); } public Builder clearRawDocument() { @@ -2110,6 +2292,8 @@ public Builder clearRawDocument() { private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the document.
      * Format:
@@ -2119,13 +2303,13 @@ public Builder clearRawDocument() {
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2134,6 +2318,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the document.
      * Format:
@@ -2143,15 +2329,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2159,6 +2344,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the document.
      * Format:
@@ -2168,18 +2355,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the document.
      * Format:
@@ -2189,6 +2380,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2198,6 +2390,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the document.
      * Format:
@@ -2207,12 +2401,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2222,18 +2418,20 @@ public Builder setNameBytes( private java.lang.Object referenceId_ = ""; /** + * + * *
      * The reference ID set by customers. Must be unique per project and location.
      * 
* * string reference_id = 11; + * * @return The referenceId. */ public java.lang.String getReferenceId() { java.lang.Object ref = referenceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceId_ = s; return s; @@ -2242,20 +2440,21 @@ public java.lang.String getReferenceId() { } } /** + * + * *
      * The reference ID set by customers. Must be unique per project and location.
      * 
* * string reference_id = 11; + * * @return The bytes for referenceId. */ - public com.google.protobuf.ByteString - getReferenceIdBytes() { + public com.google.protobuf.ByteString getReferenceIdBytes() { java.lang.Object ref = referenceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); referenceId_ = b; return b; } else { @@ -2263,28 +2462,35 @@ public java.lang.String getReferenceId() { } } /** + * + * *
      * The reference ID set by customers. Must be unique per project and location.
      * 
* * string reference_id = 11; + * * @param value The referenceId to set. * @return This builder for chaining. */ - public Builder setReferenceId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReferenceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } referenceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The reference ID set by customers. Must be unique per project and location.
      * 
* * string reference_id = 11; + * * @return This builder for chaining. */ public Builder clearReferenceId() { @@ -2294,17 +2500,21 @@ public Builder clearReferenceId() { return this; } /** + * + * *
      * The reference ID set by customers. Must be unique per project and location.
      * 
* * string reference_id = 11; + * * @param value The bytes for referenceId to set. * @return This builder for chaining. */ - public Builder setReferenceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReferenceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); referenceId_ = value; bitField0_ |= 0x00000002; @@ -2314,6 +2524,8 @@ public Builder setReferenceIdBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Display name of the document given by the user. This name will be
      * displayed in the UI. Customer can populate this field with the name of the
@@ -2322,13 +2534,13 @@ public Builder setReferenceIdBytes(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2337,6 +2549,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name of the document given by the user. This name will be
      * displayed in the UI. Customer can populate this field with the name of the
@@ -2345,15 +2559,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -2361,6 +2574,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name of the document given by the user. This name will be
      * displayed in the UI. Customer can populate this field with the name of the
@@ -2369,18 +2584,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Display name of the document given by the user. This name will be
      * displayed in the UI. Customer can populate this field with the name of the
@@ -2389,6 +2608,7 @@ public Builder setDisplayName(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2398,6 +2618,8 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. Display name of the document given by the user. This name will be
      * displayed in the UI. Customer can populate this field with the name of the
@@ -2406,12 +2628,14 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -2421,19 +2645,21 @@ public Builder setDisplayNameBytes( private java.lang.Object title_ = ""; /** + * + * *
      * Title that describes the document.
      * This can be the top heading or text that describes the document.
      * 
* * string title = 18; + * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -2442,21 +2668,22 @@ public java.lang.String getTitle() { } } /** + * + * *
      * Title that describes the document.
      * This can be the top heading or text that describes the document.
      * 
* * string title = 18; + * * @return The bytes for title. */ - public com.google.protobuf.ByteString - getTitleBytes() { + public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -2464,30 +2691,37 @@ public java.lang.String getTitle() { } } /** + * + * *
      * Title that describes the document.
      * This can be the top heading or text that describes the document.
      * 
* * string title = 18; + * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } title_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Title that describes the document.
      * This can be the top heading or text that describes the document.
      * 
* * string title = 18; + * * @return This builder for chaining. */ public Builder clearTitle() { @@ -2497,18 +2731,22 @@ public Builder clearTitle() { return this; } /** + * + * *
      * Title that describes the document.
      * This can be the top heading or text that describes the document.
      * 
* * string title = 18; + * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000008; @@ -2518,18 +2756,20 @@ public Builder setTitleBytes( private java.lang.Object displayUri_ = ""; /** + * + * *
      * Uri to display the document, for example, in the UI.
      * 
* * string display_uri = 17; + * * @return The displayUri. */ public java.lang.String getDisplayUri() { java.lang.Object ref = displayUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayUri_ = s; return s; @@ -2538,20 +2778,21 @@ public java.lang.String getDisplayUri() { } } /** + * + * *
      * Uri to display the document, for example, in the UI.
      * 
* * string display_uri = 17; + * * @return The bytes for displayUri. */ - public com.google.protobuf.ByteString - getDisplayUriBytes() { + public com.google.protobuf.ByteString getDisplayUriBytes() { java.lang.Object ref = displayUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayUri_ = b; return b; } else { @@ -2559,28 +2800,35 @@ public java.lang.String getDisplayUri() { } } /** + * + * *
      * Uri to display the document, for example, in the UI.
      * 
* * string display_uri = 17; + * * @param value The displayUri to set. * @return This builder for chaining. */ - public Builder setDisplayUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayUri_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Uri to display the document, for example, in the UI.
      * 
* * string display_uri = 17; + * * @return This builder for chaining. */ public Builder clearDisplayUri() { @@ -2590,17 +2838,21 @@ public Builder clearDisplayUri() { return this; } /** + * + * *
      * Uri to display the document, for example, in the UI.
      * 
* * string display_uri = 17; + * * @param value The bytes for displayUri to set. * @return This builder for chaining. */ - public Builder setDisplayUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayUri_ = value; bitField0_ |= 0x00000010; @@ -2610,6 +2862,8 @@ public Builder setDisplayUriBytes( private java.lang.Object documentSchemaName_ = ""; /** + * + * *
      * The Document schema name.
      * Format:
@@ -2617,13 +2871,13 @@ public Builder setDisplayUriBytes(
      * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } + * * @return The documentSchemaName. */ public java.lang.String getDocumentSchemaName() { java.lang.Object ref = documentSchemaName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentSchemaName_ = s; return s; @@ -2632,6 +2886,8 @@ public java.lang.String getDocumentSchemaName() { } } /** + * + * *
      * The Document schema name.
      * Format:
@@ -2639,15 +2895,14 @@ public java.lang.String getDocumentSchemaName() {
      * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for documentSchemaName. */ - public com.google.protobuf.ByteString - getDocumentSchemaNameBytes() { + public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { java.lang.Object ref = documentSchemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentSchemaName_ = b; return b; } else { @@ -2655,6 +2910,8 @@ public java.lang.String getDocumentSchemaName() { } } /** + * + * *
      * The Document schema name.
      * Format:
@@ -2662,18 +2919,22 @@ public java.lang.String getDocumentSchemaName() {
      * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } + * * @param value The documentSchemaName to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentSchemaName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } documentSchemaName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The Document schema name.
      * Format:
@@ -2681,6 +2942,7 @@ public Builder setDocumentSchemaName(
      * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearDocumentSchemaName() { @@ -2690,6 +2952,8 @@ public Builder clearDocumentSchemaName() { return this; } /** + * + * *
      * The Document schema name.
      * Format:
@@ -2697,12 +2961,14 @@ public Builder clearDocumentSchemaName() {
      * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for documentSchemaName to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentSchemaNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); documentSchemaName_ = value; bitField0_ |= 0x00000020; @@ -2711,11 +2977,14 @@ public Builder setDocumentSchemaNameBytes( } /** + * + * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; + * * @return Whether the plainText field is set. */ @java.lang.Override @@ -2723,11 +2992,14 @@ public boolean hasPlainText() { return structuredContentCase_ == 15; } /** + * + * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; + * * @return The plainText. */ @java.lang.Override @@ -2737,8 +3009,7 @@ public java.lang.String getPlainText() { ref = structuredContent_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (structuredContentCase_ == 15) { structuredContent_ = s; @@ -2749,24 +3020,25 @@ public java.lang.String getPlainText() { } } /** + * + * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; + * * @return The bytes for plainText. */ @java.lang.Override - public com.google.protobuf.ByteString - getPlainTextBytes() { + public com.google.protobuf.ByteString getPlainTextBytes() { java.lang.Object ref = ""; if (structuredContentCase_ == 15) { ref = structuredContent_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (structuredContentCase_ == 15) { structuredContent_ = b; } @@ -2776,28 +3048,35 @@ public java.lang.String getPlainText() { } } /** + * + * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; + * * @param value The plainText to set. * @return This builder for chaining. */ - public Builder setPlainText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPlainText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } structuredContentCase_ = 15; structuredContent_ = value; onChanged(); return this; } /** + * + * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; + * * @return This builder for chaining. */ public Builder clearPlainText() { @@ -2809,17 +3088,21 @@ public Builder clearPlainText() { return this; } /** + * + * *
      * Other document format, such as PPTX, XLXS
      * 
* * string plain_text = 15; + * * @param value The bytes for plainText to set. * @return This builder for chaining. */ - public Builder setPlainTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPlainTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); structuredContentCase_ = 15; structuredContent_ = value; @@ -2828,13 +3111,19 @@ public Builder setPlainTextBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.Document, com.google.cloud.documentai.v1.Document.Builder, com.google.cloud.documentai.v1.DocumentOrBuilder> cloudAiDocumentBuilder_; + com.google.cloud.documentai.v1.Document, + com.google.cloud.documentai.v1.Document.Builder, + com.google.cloud.documentai.v1.DocumentOrBuilder> + cloudAiDocumentBuilder_; /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
* * .google.cloud.documentai.v1.Document cloud_ai_document = 4; + * * @return Whether the cloudAiDocument field is set. */ @java.lang.Override @@ -2842,11 +3131,14 @@ public boolean hasCloudAiDocument() { return structuredContentCase_ == 4; } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
* * .google.cloud.documentai.v1.Document cloud_ai_document = 4; + * * @return The cloudAiDocument. */ @java.lang.Override @@ -2864,6 +3156,8 @@ public com.google.cloud.documentai.v1.Document getCloudAiDocument() { } } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2884,6 +3178,8 @@ public Builder setCloudAiDocument(com.google.cloud.documentai.v1.Document value) return this; } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2902,6 +3198,8 @@ public Builder setCloudAiDocument( return this; } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2910,10 +3208,13 @@ public Builder setCloudAiDocument( */ public Builder mergeCloudAiDocument(com.google.cloud.documentai.v1.Document value) { if (cloudAiDocumentBuilder_ == null) { - if (structuredContentCase_ == 4 && - structuredContent_ != com.google.cloud.documentai.v1.Document.getDefaultInstance()) { - structuredContent_ = com.google.cloud.documentai.v1.Document.newBuilder((com.google.cloud.documentai.v1.Document) structuredContent_) - .mergeFrom(value).buildPartial(); + if (structuredContentCase_ == 4 + && structuredContent_ != com.google.cloud.documentai.v1.Document.getDefaultInstance()) { + structuredContent_ = + com.google.cloud.documentai.v1.Document.newBuilder( + (com.google.cloud.documentai.v1.Document) structuredContent_) + .mergeFrom(value) + .buildPartial(); } else { structuredContent_ = value; } @@ -2929,6 +3230,8 @@ public Builder mergeCloudAiDocument(com.google.cloud.documentai.v1.Document valu return this; } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2952,6 +3255,8 @@ public Builder clearCloudAiDocument() { return this; } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2962,6 +3267,8 @@ public com.google.cloud.documentai.v1.Document.Builder getCloudAiDocumentBuilder return getCloudAiDocumentFieldBuilder().getBuilder(); } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2980,6 +3287,8 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil } } /** + * + * *
      * Document AI format to save the structured content, including OCR.
      * 
@@ -2987,14 +3296,19 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil * .google.cloud.documentai.v1.Document cloud_ai_document = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.Document, com.google.cloud.documentai.v1.Document.Builder, com.google.cloud.documentai.v1.DocumentOrBuilder> + com.google.cloud.documentai.v1.Document, + com.google.cloud.documentai.v1.Document.Builder, + com.google.cloud.documentai.v1.DocumentOrBuilder> getCloudAiDocumentFieldBuilder() { if (cloudAiDocumentBuilder_ == null) { if (!(structuredContentCase_ == 4)) { structuredContent_ = com.google.cloud.documentai.v1.Document.getDefaultInstance(); } - cloudAiDocumentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.Document, com.google.cloud.documentai.v1.Document.Builder, com.google.cloud.documentai.v1.DocumentOrBuilder>( + cloudAiDocumentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1.Document, + com.google.cloud.documentai.v1.Document.Builder, + com.google.cloud.documentai.v1.DocumentOrBuilder>( (com.google.cloud.documentai.v1.Document) structuredContent_, getParentForChildren(), isClean()); @@ -3007,20 +3321,23 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil private java.lang.Object structuredContentUri_ = ""; /** + * + * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16 [deprecated = true]; + * * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @return The structuredContentUri. */ - @java.lang.Deprecated public java.lang.String getStructuredContentUri() { + @java.lang.Deprecated + public java.lang.String getStructuredContentUri() { java.lang.Object ref = structuredContentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); structuredContentUri_ = s; return s; @@ -3029,22 +3346,24 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil } } /** + * + * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16 [deprecated = true]; + * * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @return The bytes for structuredContentUri. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getStructuredContentUriBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getStructuredContentUriBytes() { java.lang.Object ref = structuredContentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); structuredContentUri_ = b; return b; } else { @@ -3052,54 +3371,68 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil } } /** + * + * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16 [deprecated = true]; + * * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @param value The structuredContentUri to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setStructuredContentUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setStructuredContentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } structuredContentUri_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16 [deprecated = true]; + * * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearStructuredContentUri() { + @java.lang.Deprecated + public Builder clearStructuredContentUri() { structuredContentUri_ = getDefaultInstance().getStructuredContentUri(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** + * + * *
      * A path linked to structured content file.
      * 
* * string structured_content_uri = 16 [deprecated = true]; + * * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=79 * @param value The bytes for structuredContentUri to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setStructuredContentUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setStructuredContentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); structuredContentUri_ = value; bitField0_ |= 0x00000100; @@ -3108,11 +3441,14 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuil } /** + * + * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; + * * @return Whether the rawDocumentPath field is set. */ @java.lang.Override @@ -3120,11 +3456,14 @@ public boolean hasRawDocumentPath() { return rawDocumentCase_ == 5; } /** + * + * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; + * * @return The rawDocumentPath. */ @java.lang.Override @@ -3134,8 +3473,7 @@ public java.lang.String getRawDocumentPath() { ref = rawDocument_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (rawDocumentCase_ == 5) { rawDocument_ = s; @@ -3146,24 +3484,25 @@ public java.lang.String getRawDocumentPath() { } } /** + * + * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; + * * @return The bytes for rawDocumentPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getRawDocumentPathBytes() { + public com.google.protobuf.ByteString getRawDocumentPathBytes() { java.lang.Object ref = ""; if (rawDocumentCase_ == 5) { ref = rawDocument_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (rawDocumentCase_ == 5) { rawDocument_ = b; } @@ -3173,28 +3512,35 @@ public java.lang.String getRawDocumentPath() { } } /** + * + * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; + * * @param value The rawDocumentPath to set. * @return This builder for chaining. */ - public Builder setRawDocumentPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRawDocumentPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } rawDocumentCase_ = 5; rawDocument_ = value; onChanged(); return this; } /** + * + * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; + * * @return This builder for chaining. */ public Builder clearRawDocumentPath() { @@ -3206,17 +3552,21 @@ public Builder clearRawDocumentPath() { return this; } /** + * + * *
      * Raw document file in Cloud Storage path.
      * 
* * string raw_document_path = 5; + * * @param value The bytes for rawDocumentPath to set. * @return This builder for chaining. */ - public Builder setRawDocumentPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRawDocumentPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); rawDocumentCase_ = 5; rawDocument_ = value; @@ -3225,22 +3575,28 @@ public Builder setRawDocumentPathBytes( } /** + * + * *
      * Raw document content.
      * 
* * bytes inline_raw_document = 6; + * * @return Whether the inlineRawDocument field is set. */ public boolean hasInlineRawDocument() { return rawDocumentCase_ == 6; } /** + * + * *
      * Raw document content.
      * 
* * bytes inline_raw_document = 6; + * * @return The inlineRawDocument. */ public com.google.protobuf.ByteString getInlineRawDocument() { @@ -3250,27 +3606,35 @@ public com.google.protobuf.ByteString getInlineRawDocument() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * Raw document content.
      * 
* * bytes inline_raw_document = 6; + * * @param value The inlineRawDocument to set. * @return This builder for chaining. */ public Builder setInlineRawDocument(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } rawDocumentCase_ = 6; rawDocument_ = value; onChanged(); return this; } /** + * + * *
      * Raw document content.
      * 
* * bytes inline_raw_document = 6; + * * @return This builder for chaining. */ public Builder clearInlineRawDocument() { @@ -3283,18 +3647,25 @@ public Builder clearInlineRawDocument() { } private java.util.List properties_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePropertiesIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - properties_ = new java.util.ArrayList(properties_); + properties_ = + new java.util.ArrayList(properties_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Property, com.google.cloud.contentwarehouse.v1.Property.Builder, com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> propertiesBuilder_; + com.google.cloud.contentwarehouse.v1.Property, + com.google.cloud.contentwarehouse.v1.Property.Builder, + com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> + propertiesBuilder_; /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3309,6 +3680,8 @@ public java.util.List getProperti } } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3323,6 +3696,8 @@ public int getPropertiesCount() { } } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3337,14 +3712,15 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { } } /** + * + * *
      * List of values that are user supplied metadata.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - public Builder setProperties( - int index, com.google.cloud.contentwarehouse.v1.Property value) { + public Builder setProperties(int index, com.google.cloud.contentwarehouse.v1.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3358,6 +3734,8 @@ public Builder setProperties( return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3376,6 +3754,8 @@ public Builder setProperties( return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3396,14 +3776,15 @@ public Builder addProperties(com.google.cloud.contentwarehouse.v1.Property value return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - public Builder addProperties( - int index, com.google.cloud.contentwarehouse.v1.Property value) { + public Builder addProperties(int index, com.google.cloud.contentwarehouse.v1.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3417,6 +3798,8 @@ public Builder addProperties( return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3435,6 +3818,8 @@ public Builder addProperties( return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3453,6 +3838,8 @@ public Builder addProperties( return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3463,8 +3850,7 @@ public Builder addAllProperties( java.lang.Iterable values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, properties_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); @@ -3472,6 +3858,8 @@ public Builder addAllProperties( return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3489,6 +3877,8 @@ public Builder clearProperties() { return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3506,17 +3896,20 @@ public Builder removeProperties(int index) { return this; } /** + * + * *
      * List of values that are user supplied metadata.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - public com.google.cloud.contentwarehouse.v1.Property.Builder getPropertiesBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.Property.Builder getPropertiesBuilder(int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3526,19 +3919,22 @@ public com.google.cloud.contentwarehouse.v1.Property.Builder getPropertiesBuilde public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder( int index) { if (propertiesBuilder_ == null) { - return properties_.get(index); } else { + return properties_.get(index); + } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of values that are user supplied metadata.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - public java.util.List - getPropertiesOrBuilderList() { + public java.util.List + getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { @@ -3546,6 +3942,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBui } } /** + * + * *
      * List of values that are user supplied metadata.
      * 
@@ -3553,42 +3951,48 @@ public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBui * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilder() { - return getPropertiesFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); + return getPropertiesFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); } /** + * + * *
      * List of values that are user supplied metadata.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilder( - int index) { - return getPropertiesFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilder(int index) { + return getPropertiesFieldBuilder() + .addBuilder(index, com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); } /** + * + * *
      * List of values that are user supplied metadata.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - public java.util.List - getPropertiesBuilderList() { + public java.util.List + getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Property, com.google.cloud.contentwarehouse.v1.Property.Builder, com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> + com.google.cloud.contentwarehouse.v1.Property, + com.google.cloud.contentwarehouse.v1.Property.Builder, + com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { - propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Property, com.google.cloud.contentwarehouse.v1.Property.Builder, com.google.cloud.contentwarehouse.v1.PropertyOrBuilder>( - properties_, - ((bitField0_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); + propertiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Property, + com.google.cloud.contentwarehouse.v1.Property.Builder, + com.google.cloud.contentwarehouse.v1.PropertyOrBuilder>( + properties_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; @@ -3596,39 +4000,58 @@ public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilde 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_; /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3644,14 +4067,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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 { @@ -3662,17 +4088,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3685,11 +4115,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00001000); @@ -3702,11 +4136,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00001000; @@ -3714,36 +4152,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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_; @@ -3751,39 +4201,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00002000) != 0); } /** + * + * *
      * Output only. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.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. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3799,14 +4268,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.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 { @@ -3817,17 +4289,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3840,11 +4316,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00002000); @@ -3857,11 +4337,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00002000; @@ -3869,36 +4353,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.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. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.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_; @@ -3906,6 +4402,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int rawDocumentFileType_ = 0; /** + * + * *
      * This is used when DocAI was not used to load the document and parsing/
      * extracting is needed for the inline_raw_document.  For example, if
@@ -3913,13 +4411,18 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
      * 
* - * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * + * * @return The enum numeric value on the wire for rawDocumentFileType. */ - @java.lang.Override public int getRawDocumentFileTypeValue() { + @java.lang.Override + public int getRawDocumentFileTypeValue() { return rawDocumentFileType_; } /** + * + * *
      * This is used when DocAI was not used to load the document and parsing/
      * extracting is needed for the inline_raw_document.  For example, if
@@ -3927,7 +4430,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
      * 
* - * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * + * * @param value The enum numeric value on the wire for rawDocumentFileType to set. * @return This builder for chaining. */ @@ -3938,6 +4443,8 @@ public Builder setRawDocumentFileTypeValue(int value) { return this; } /** + * + * *
      * This is used when DocAI was not used to load the document and parsing/
      * extracting is needed for the inline_raw_document.  For example, if
@@ -3945,15 +4452,22 @@ public Builder setRawDocumentFileTypeValue(int value) {
      * this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
      * 
* - * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * + * * @return The rawDocumentFileType. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RawDocumentFileType getRawDocumentFileType() { - com.google.cloud.contentwarehouse.v1.RawDocumentFileType result = com.google.cloud.contentwarehouse.v1.RawDocumentFileType.forNumber(rawDocumentFileType_); - return result == null ? com.google.cloud.contentwarehouse.v1.RawDocumentFileType.UNRECOGNIZED : result; + com.google.cloud.contentwarehouse.v1.RawDocumentFileType result = + com.google.cloud.contentwarehouse.v1.RawDocumentFileType.forNumber(rawDocumentFileType_); + return result == null + ? com.google.cloud.contentwarehouse.v1.RawDocumentFileType.UNRECOGNIZED + : result; } /** + * + * *
      * This is used when DocAI was not used to load the document and parsing/
      * extracting is needed for the inline_raw_document.  For example, if
@@ -3961,11 +4475,14 @@ public com.google.cloud.contentwarehouse.v1.RawDocumentFileType getRawDocumentFi
      * this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
      * 
* - * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * + * * @param value The rawDocumentFileType to set. * @return This builder for chaining. */ - public Builder setRawDocumentFileType(com.google.cloud.contentwarehouse.v1.RawDocumentFileType value) { + public Builder setRawDocumentFileType( + com.google.cloud.contentwarehouse.v1.RawDocumentFileType value) { if (value == null) { throw new NullPointerException(); } @@ -3975,6 +4492,8 @@ public Builder setRawDocumentFileType(com.google.cloud.contentwarehouse.v1.RawDo return this; } /** + * + * *
      * This is used when DocAI was not used to load the document and parsing/
      * extracting is needed for the inline_raw_document.  For example, if
@@ -3982,7 +4501,9 @@ public Builder setRawDocumentFileType(com.google.cloud.contentwarehouse.v1.RawDo
      * this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
      * 
* - * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * + * * @return This builder for chaining. */ public Builder clearRawDocumentFileType() { @@ -3992,33 +4513,41 @@ public Builder clearRawDocumentFileType() { return this; } - private boolean asyncEnabled_ ; + private boolean asyncEnabled_; /** + * + * *
      * If true, makes the document visible to asynchronous policies and rules.
      * 
* * bool async_enabled = 12 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. - * See google/cloud/contentwarehouse/v1/document.proto;l=108 + * + * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. See + * google/cloud/contentwarehouse/v1/document.proto;l=108 * @return The asyncEnabled. */ @java.lang.Override - @java.lang.Deprecated public boolean getAsyncEnabled() { + @java.lang.Deprecated + public boolean getAsyncEnabled() { return asyncEnabled_; } /** + * + * *
      * If true, makes the document visible to asynchronous policies and rules.
      * 
* * bool async_enabled = 12 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. - * See google/cloud/contentwarehouse/v1/document.proto;l=108 + * + * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. See + * google/cloud/contentwarehouse/v1/document.proto;l=108 * @param value The asyncEnabled to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setAsyncEnabled(boolean value) { + @java.lang.Deprecated + public Builder setAsyncEnabled(boolean value) { asyncEnabled_ = value; bitField0_ |= 0x00008000; @@ -4026,16 +4555,20 @@ public Builder clearRawDocumentFileType() { return this; } /** + * + * *
      * If true, makes the document visible to asynchronous policies and rules.
      * 
* * bool async_enabled = 12 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. - * See google/cloud/contentwarehouse/v1/document.proto;l=108 + * + * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. See + * google/cloud/contentwarehouse/v1/document.proto;l=108 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearAsyncEnabled() { + @java.lang.Deprecated + public Builder clearAsyncEnabled() { bitField0_ = (bitField0_ & ~0x00008000); asyncEnabled_ = false; onChanged(); @@ -4044,22 +4577,29 @@ public Builder clearRawDocumentFileType() { private int contentCategory_ = 0; /** + * + * *
      * Indicates the category (image, audio, video etc.) of the original content.
      * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; + * * @return The enum numeric value on the wire for contentCategory. */ - @java.lang.Override public int getContentCategoryValue() { + @java.lang.Override + public int getContentCategoryValue() { return contentCategory_; } /** + * + * *
      * Indicates the category (image, audio, video etc.) of the original content.
      * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; + * * @param value The enum numeric value on the wire for contentCategory to set. * @return This builder for chaining. */ @@ -4070,24 +4610,33 @@ public Builder setContentCategoryValue(int value) { return this; } /** + * + * *
      * Indicates the category (image, audio, video etc.) of the original content.
      * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; + * * @return The contentCategory. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ContentCategory getContentCategory() { - com.google.cloud.contentwarehouse.v1.ContentCategory result = com.google.cloud.contentwarehouse.v1.ContentCategory.forNumber(contentCategory_); - return result == null ? com.google.cloud.contentwarehouse.v1.ContentCategory.UNRECOGNIZED : result; + com.google.cloud.contentwarehouse.v1.ContentCategory result = + com.google.cloud.contentwarehouse.v1.ContentCategory.forNumber(contentCategory_); + return result == null + ? com.google.cloud.contentwarehouse.v1.ContentCategory.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the category (image, audio, video etc.) of the original content.
      * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; + * * @param value The contentCategory to set. * @return This builder for chaining. */ @@ -4101,11 +4650,14 @@ public Builder setContentCategory(com.google.cloud.contentwarehouse.v1.ContentCa return this; } /** + * + * *
      * Indicates the category (image, audio, video etc.) of the original content.
      * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; + * * @return This builder for chaining. */ public Builder clearContentCategory() { @@ -4115,33 +4667,41 @@ public Builder clearContentCategory() { return this; } - private boolean textExtractionDisabled_ ; + private boolean textExtractionDisabled_; /** + * + * *
      * If true, text extraction will not be performed.
      * 
* * bool text_extraction_disabled = 19 [deprecated = true]; + * * @deprecated google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=114 * @return The textExtractionDisabled. */ @java.lang.Override - @java.lang.Deprecated public boolean getTextExtractionDisabled() { + @java.lang.Deprecated + public boolean getTextExtractionDisabled() { return textExtractionDisabled_; } /** + * + * *
      * If true, text extraction will not be performed.
      * 
* * bool text_extraction_disabled = 19 [deprecated = true]; + * * @deprecated google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=114 * @param value The textExtractionDisabled to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setTextExtractionDisabled(boolean value) { + @java.lang.Deprecated + public Builder setTextExtractionDisabled(boolean value) { textExtractionDisabled_ = value; bitField0_ |= 0x00020000; @@ -4149,29 +4709,36 @@ public Builder clearContentCategory() { return this; } /** + * + * *
      * If true, text extraction will not be performed.
      * 
* * bool text_extraction_disabled = 19 [deprecated = true]; + * * @deprecated google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=114 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearTextExtractionDisabled() { + @java.lang.Deprecated + public Builder clearTextExtractionDisabled() { bitField0_ = (bitField0_ & ~0x00020000); textExtractionDisabled_ = false; onChanged(); return this; } - private boolean textExtractionEnabled_ ; + private boolean textExtractionEnabled_; /** + * + * *
      * If true, text extraction will be performed.
      * 
* * bool text_extraction_enabled = 21; + * * @return The textExtractionEnabled. */ @java.lang.Override @@ -4179,11 +4746,14 @@ public boolean getTextExtractionEnabled() { return textExtractionEnabled_; } /** + * + * *
      * If true, text extraction will be performed.
      * 
* * bool text_extraction_enabled = 21; + * * @param value The textExtractionEnabled to set. * @return This builder for chaining. */ @@ -4195,11 +4765,14 @@ public Builder setTextExtractionEnabled(boolean value) { return this; } /** + * + * *
      * If true, text extraction will be performed.
      * 
* * bool text_extraction_enabled = 21; + * * @return This builder for chaining. */ public Builder clearTextExtractionEnabled() { @@ -4211,18 +4784,20 @@ public Builder clearTextExtractionEnabled() { private java.lang.Object creator_ = ""; /** + * + * *
      * The user who creates the document.
      * 
* * string creator = 13; + * * @return The creator. */ public java.lang.String getCreator() { java.lang.Object ref = creator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; @@ -4231,20 +4806,21 @@ public java.lang.String getCreator() { } } /** + * + * *
      * The user who creates the document.
      * 
* * string creator = 13; + * * @return The bytes for creator. */ - public com.google.protobuf.ByteString - getCreatorBytes() { + public com.google.protobuf.ByteString getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); creator_ = b; return b; } else { @@ -4252,28 +4828,35 @@ public java.lang.String getCreator() { } } /** + * + * *
      * The user who creates the document.
      * 
* * string creator = 13; + * * @param value The creator to set. * @return This builder for chaining. */ - public Builder setCreator( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCreator(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } creator_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** + * + * *
      * The user who creates the document.
      * 
* * string creator = 13; + * * @return This builder for chaining. */ public Builder clearCreator() { @@ -4283,17 +4866,21 @@ public Builder clearCreator() { return this; } /** + * + * *
      * The user who creates the document.
      * 
* * string creator = 13; + * * @param value The bytes for creator to set. * @return This builder for chaining. */ - public Builder setCreatorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCreatorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); creator_ = value; bitField0_ |= 0x00080000; @@ -4303,18 +4890,20 @@ public Builder setCreatorBytes( private java.lang.Object updater_ = ""; /** + * + * *
      * The user who lastly updates the document.
      * 
* * string updater = 14; + * * @return The updater. */ public java.lang.String getUpdater() { java.lang.Object ref = updater_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); updater_ = s; return s; @@ -4323,20 +4912,21 @@ public java.lang.String getUpdater() { } } /** + * + * *
      * The user who lastly updates the document.
      * 
* * string updater = 14; + * * @return The bytes for updater. */ - public com.google.protobuf.ByteString - getUpdaterBytes() { + public com.google.protobuf.ByteString getUpdaterBytes() { java.lang.Object ref = updater_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); updater_ = b; return b; } else { @@ -4344,28 +4934,35 @@ public java.lang.String getUpdater() { } } /** + * + * *
      * The user who lastly updates the document.
      * 
* * string updater = 14; + * * @param value The updater to set. * @return This builder for chaining. */ - public Builder setUpdater( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUpdater(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } updater_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** + * + * *
      * The user who lastly updates the document.
      * 
* * string updater = 14; + * * @return This builder for chaining. */ public Builder clearUpdater() { @@ -4375,17 +4972,21 @@ public Builder clearUpdater() { return this; } /** + * + * *
      * The user who lastly updates the document.
      * 
* * string updater = 14; + * * @param value The bytes for updater to set. * @return This builder for chaining. */ - public Builder setUpdaterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUpdaterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); updater_ = value; bitField0_ |= 0x00100000; @@ -4395,42 +4996,61 @@ public Builder setUpdaterBytes( private com.google.protobuf.Timestamp dispositionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dispositionTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + dispositionTimeBuilder_; /** + * + * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dispositionTime field is set. */ public boolean hasDispositionTime() { return ((bitField0_ & 0x00200000) != 0); } /** + * + * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dispositionTime. */ public com.google.protobuf.Timestamp getDispositionTime() { if (dispositionTimeBuilder_ == null) { - return dispositionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dispositionTime_; + return dispositionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dispositionTime_; } else { return dispositionTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDispositionTime(com.google.protobuf.Timestamp value) { if (dispositionTimeBuilder_ == null) { @@ -4446,15 +5066,18 @@ public Builder setDispositionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDispositionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDispositionTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (dispositionTimeBuilder_ == null) { dispositionTime_ = builderForValue.build(); } else { @@ -4465,18 +5088,22 @@ public Builder setDispositionTime( return this; } /** + * + * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDispositionTime(com.google.protobuf.Timestamp value) { if (dispositionTimeBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) && - dispositionTime_ != null && - dispositionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00200000) != 0) + && dispositionTime_ != null + && dispositionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDispositionTimeBuilder().mergeFrom(value); } else { dispositionTime_ = value; @@ -4489,12 +5116,16 @@ public Builder mergeDispositionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDispositionTime() { bitField0_ = (bitField0_ & ~0x00200000); @@ -4507,12 +5138,16 @@ public Builder clearDispositionTime() { return this; } /** + * + * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDispositionTimeBuilder() { bitField0_ |= 0x00200000; @@ -4520,50 +5155,65 @@ public com.google.protobuf.Timestamp.Builder getDispositionTimeBuilder() { return getDispositionTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDispositionTimeOrBuilder() { if (dispositionTimeBuilder_ != null) { return dispositionTimeBuilder_.getMessageOrBuilder(); } else { - return dispositionTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : dispositionTime_; + return dispositionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dispositionTime_; } } /** + * + * *
      * Output only. If linked to a Collection with RetentionPolicy, the date when
      * the document becomes mutable.
      * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.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> getDispositionTimeFieldBuilder() { if (dispositionTimeBuilder_ == null) { - dispositionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDispositionTime(), - getParentForChildren(), - isClean()); + dispositionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDispositionTime(), getParentForChildren(), isClean()); dispositionTime_ = null; } return dispositionTimeBuilder_; } - private boolean legalHold_ ; + private boolean legalHold_; /** + * + * *
      * Output only. Indicates if the document has a legal hold on it.
      * 
* * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The legalHold. */ @java.lang.Override @@ -4571,11 +5221,14 @@ public boolean getLegalHold() { return legalHold_; } /** + * + * *
      * Output only. Indicates if the document has a legal hold on it.
      * 
* * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The legalHold to set. * @return This builder for chaining. */ @@ -4587,11 +5240,14 @@ public Builder setLegalHold(boolean value) { return this; } /** + * + * *
      * Output only. Indicates if the document has a legal hold on it.
      * 
* * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLegalHold() { @@ -4600,9 +5256,9 @@ public Builder clearLegalHold() { 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); } @@ -4612,12 +5268,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.Document) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.Document) private static final com.google.cloud.contentwarehouse.v1.Document DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.Document(); } @@ -4626,27 +5282,27 @@ public static com.google.cloud.contentwarehouse.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; @@ -4661,6 +5317,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.Document getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java similarity index 71% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java index d9535284e8e3..e2b9bc96a1d3 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentCreatorDefaultRole.java @@ -1,18 +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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * The default role of the document creator.
  * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.DocumentCreatorDefaultRole} */ -public enum DocumentCreatorDefaultRole - implements com.google.protobuf.ProtocolMessageEnum { +public enum DocumentCreatorDefaultRole implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified, will be default to document admin role.
    * 
@@ -21,6 +39,8 @@ public enum DocumentCreatorDefaultRole */ DOCUMENT_CREATOR_DEFAULT_ROLE_UNSPECIFIED(0), /** + * + * *
    * Document Admin, same as contentwarehouse.googleapis.com/documentAdmin.
    * 
@@ -29,6 +49,8 @@ public enum DocumentCreatorDefaultRole */ DOCUMENT_ADMIN(1), /** + * + * *
    * Document Editor, same as contentwarehouse.googleapis.com/documentEditor.
    * 
@@ -37,6 +59,8 @@ public enum DocumentCreatorDefaultRole */ DOCUMENT_EDITOR(2), /** + * + * *
    * Document Viewer, same as contentwarehouse.googleapis.com/documentViewer.
    * 
@@ -48,6 +72,8 @@ public enum DocumentCreatorDefaultRole ; /** + * + * *
    * Unspecified, will be default to document admin role.
    * 
@@ -56,6 +82,8 @@ public enum DocumentCreatorDefaultRole */ public static final int DOCUMENT_CREATOR_DEFAULT_ROLE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Document Admin, same as contentwarehouse.googleapis.com/documentAdmin.
    * 
@@ -64,6 +92,8 @@ public enum DocumentCreatorDefaultRole */ public static final int DOCUMENT_ADMIN_VALUE = 1; /** + * + * *
    * Document Editor, same as contentwarehouse.googleapis.com/documentEditor.
    * 
@@ -72,6 +102,8 @@ public enum DocumentCreatorDefaultRole */ public static final int DOCUMENT_EDITOR_VALUE = 2; /** + * + * *
    * Document Viewer, same as contentwarehouse.googleapis.com/documentViewer.
    * 
@@ -80,7 +112,6 @@ public enum DocumentCreatorDefaultRole */ public static final int DOCUMENT_VIEWER_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -105,11 +136,16 @@ public static DocumentCreatorDefaultRole valueOf(int value) { */ public static DocumentCreatorDefaultRole forNumber(int value) { switch (value) { - case 0: return DOCUMENT_CREATOR_DEFAULT_ROLE_UNSPECIFIED; - case 1: return DOCUMENT_ADMIN; - case 2: return DOCUMENT_EDITOR; - case 3: return DOCUMENT_VIEWER; - default: return null; + case 0: + return DOCUMENT_CREATOR_DEFAULT_ROLE_UNSPECIFIED; + case 1: + return DOCUMENT_ADMIN; + case 2: + return DOCUMENT_EDITOR; + case 3: + return DOCUMENT_VIEWER; + default: + return null; } } @@ -117,28 +153,28 @@ public static DocumentCreatorDefaultRole forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DocumentCreatorDefaultRole> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DocumentCreatorDefaultRole findValueByNumber(int number) { - return DocumentCreatorDefaultRole.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DocumentCreatorDefaultRole findValueByNumber(int number) { + return DocumentCreatorDefaultRole.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor().getEnumTypes().get(3); } @@ -147,8 +183,7 @@ public DocumentCreatorDefaultRole findValueByNumber(int number) { public static DocumentCreatorDefaultRole 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; @@ -164,4 +199,3 @@ private DocumentCreatorDefaultRole(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.DocumentCreatorDefaultRole) } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java similarity index 68% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java index c42ee22ea5d8..a08b5cc6aa33 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLink.java @@ -1,24 +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/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * A document-link between source and target document.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentLink} */ -public final class DocumentLink extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentLink extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DocumentLink) DocumentLinkOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentLink.newBuilder() to construct. private DocumentLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentLink() { name_ = ""; description_ = ""; @@ -27,34 +45,38 @@ private DocumentLink() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentLink(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DocumentLink_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentLink_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentLink.class, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentLink.class, + com.google.cloud.contentwarehouse.v1.DocumentLink.Builder.class); } /** + * + * *
    * The state of a document-link.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.DocumentLink.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown state of documentlink.
      * 
@@ -63,6 +85,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The documentlink has both source and target documents detected.
      * 
@@ -71,6 +95,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * Target document is deleted, and mark the documentlink as soft-deleted.
      * 
@@ -82,6 +108,8 @@ public enum State ; /** + * + * *
      * Unknown state of documentlink.
      * 
@@ -90,6 +118,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The documentlink has both source and target documents detected.
      * 
@@ -98,6 +128,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * Target document is deleted, and mark the documentlink as soft-deleted.
      * 
@@ -106,7 +138,6 @@ public enum State */ public static final int SOFT_DELETED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -131,49 +162,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ACTIVE; - case 2: return SOFT_DELETED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return SOFT_DELETED; + 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); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLink.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLink.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; @@ -191,9 +224,12 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Name of this document-link.
    * It is required that the parent derived form the name to be consistent with
@@ -203,6 +239,7 @@ private State(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -211,14 +248,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Name of this document-link.
    * It is required that the parent derived form the name to be consistent with
@@ -228,16 +266,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -248,11 +285,14 @@ public java.lang.String getName() { public static final int SOURCE_DOCUMENT_REFERENCE_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.DocumentReference sourceDocumentReference_; /** + * + * *
    * Document references of the source document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * * @return Whether the sourceDocumentReference field is set. */ @java.lang.Override @@ -260,18 +300,25 @@ public boolean hasSourceDocumentReference() { return sourceDocumentReference_ != null; } /** + * + * *
    * Document references of the source document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * * @return The sourceDocumentReference. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentReference getSourceDocumentReference() { - return sourceDocumentReference_ == null ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : sourceDocumentReference_; + return sourceDocumentReference_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() + : sourceDocumentReference_; } /** + * + * *
    * Document references of the source document.
    * 
@@ -279,18 +326,24 @@ public com.google.cloud.contentwarehouse.v1.DocumentReference getSourceDocumentR * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getSourceDocumentReferenceOrBuilder() { - return sourceDocumentReference_ == null ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : sourceDocumentReference_; + public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder + getSourceDocumentReferenceOrBuilder() { + return sourceDocumentReference_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() + : sourceDocumentReference_; } public static final int TARGET_DOCUMENT_REFERENCE_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.DocumentReference targetDocumentReference_; /** + * + * *
    * Document references of the target document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * * @return Whether the targetDocumentReference field is set. */ @java.lang.Override @@ -298,18 +351,25 @@ public boolean hasTargetDocumentReference() { return targetDocumentReference_ != null; } /** + * + * *
    * Document references of the target document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * * @return The targetDocumentReference. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentReference getTargetDocumentReference() { - return targetDocumentReference_ == null ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : targetDocumentReference_; + return targetDocumentReference_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() + : targetDocumentReference_; } /** + * + * *
    * Document references of the target document.
    * 
@@ -317,19 +377,26 @@ public com.google.cloud.contentwarehouse.v1.DocumentReference getTargetDocumentR * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getTargetDocumentReferenceOrBuilder() { - return targetDocumentReference_ == null ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : targetDocumentReference_; + public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder + getTargetDocumentReferenceOrBuilder() { + return targetDocumentReference_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() + : targetDocumentReference_; } public static final int DESCRIPTION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Description of this document-link.
    * 
* * string description = 4; + * * @return The description. */ @java.lang.Override @@ -338,29 +405,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Description of this document-link.
    * 
* * string description = 4; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -371,11 +438,15 @@ public java.lang.String getDescription() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time when the documentLink is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -383,11 +454,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time when the documentLink is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -395,11 +470,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time when the documentLink is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -409,11 +487,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the documentLink is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -421,11 +503,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the documentLink is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -433,11 +519,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the documentLink is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -447,6 +536,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 7; private int state_ = 0; /** + * + * *
    * The state of the documentlink. If target node has been deleted, the
    * link is marked as invalid. Removing a source node will result in removal
@@ -454,12 +545,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; + * * @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 documentlink. If target node has been deleted, the
    * link is marked as invalid. Removing a source node will result in removal
@@ -467,14 +562,20 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; + * * @return The state. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentLink.State getState() { - com.google.cloud.contentwarehouse.v1.DocumentLink.State result = com.google.cloud.contentwarehouse.v1.DocumentLink.State.forNumber(state_); - return result == null ? com.google.cloud.contentwarehouse.v1.DocumentLink.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.DocumentLink.State getState() { + com.google.cloud.contentwarehouse.v1.DocumentLink.State result = + com.google.cloud.contentwarehouse.v1.DocumentLink.State.forNumber(state_); + return result == null + ? com.google.cloud.contentwarehouse.v1.DocumentLink.State.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -486,8 +587,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -506,7 +606,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } - if (state_ != com.google.cloud.contentwarehouse.v1.DocumentLink.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.contentwarehouse.v1.DocumentLink.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(7, state_); } getUnknownFields().writeTo(output); @@ -522,27 +623,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (sourceDocumentReference_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSourceDocumentReference()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSourceDocumentReference()); } if (targetDocumentReference_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTargetDocumentReference()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTargetDocumentReference()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } - if (state_ != com.google.cloud.contentwarehouse.v1.DocumentLink.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, state_); + if (state_ + != com.google.cloud.contentwarehouse.v1.DocumentLink.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -552,36 +651,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.DocumentLink)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DocumentLink other = (com.google.cloud.contentwarehouse.v1.DocumentLink) obj; + com.google.cloud.contentwarehouse.v1.DocumentLink other = + (com.google.cloud.contentwarehouse.v1.DocumentLink) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasSourceDocumentReference() != other.hasSourceDocumentReference()) return false; if (hasSourceDocumentReference()) { - if (!getSourceDocumentReference() - .equals(other.getSourceDocumentReference())) return false; + if (!getSourceDocumentReference().equals(other.getSourceDocumentReference())) return false; } if (hasTargetDocumentReference() != other.hasTargetDocumentReference()) return false; if (hasTargetDocumentReference()) { - if (!getTargetDocumentReference() - .equals(other.getTargetDocumentReference())) return false; + if (!getTargetDocumentReference().equals(other.getTargetDocumentReference())) return false; } - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) 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 (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -623,131 +717,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DocumentLink 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.contentwarehouse.v1.DocumentLink parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentLink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DocumentLink parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DocumentLink 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.contentwarehouse.v1.DocumentLink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DocumentLink parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DocumentLink prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 document-link between source and target document.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentLink} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DocumentLink) com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DocumentLink_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentLink_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentLink.class, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentLink.class, + com.google.cloud.contentwarehouse.v1.DocumentLink.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DocumentLink.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -779,9 +877,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; } @java.lang.Override @@ -800,8 +898,11 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentLink buildPartial() { - com.google.cloud.contentwarehouse.v1.DocumentLink result = new com.google.cloud.contentwarehouse.v1.DocumentLink(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.DocumentLink result = + new com.google.cloud.contentwarehouse.v1.DocumentLink(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -812,27 +913,25 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentLink res result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.sourceDocumentReference_ = sourceDocumentReferenceBuilder_ == null - ? sourceDocumentReference_ - : sourceDocumentReferenceBuilder_.build(); + result.sourceDocumentReference_ = + sourceDocumentReferenceBuilder_ == null + ? sourceDocumentReference_ + : sourceDocumentReferenceBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.targetDocumentReference_ = targetDocumentReferenceBuilder_ == null - ? targetDocumentReference_ - : targetDocumentReferenceBuilder_.build(); + result.targetDocumentReference_ = + targetDocumentReferenceBuilder_ == null + ? targetDocumentReference_ + : targetDocumentReferenceBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.state_ = state_; @@ -843,38 +942,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentLink 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.contentwarehouse.v1.DocumentLink) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentLink)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentLink) other); } else { super.mergeFrom(other); return this; @@ -882,7 +982,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentLink other) { - if (other == com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -934,55 +1035,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSourceDocumentReferenceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getTargetDocumentReferenceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - state_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 56 - 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( + getSourceDocumentReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getTargetDocumentReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + 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) { @@ -992,10 +1095,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1005,13 +1111,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1020,6 +1126,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1029,15 +1137,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1045,6 +1152,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1054,18 +1163,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1075,6 +1188,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1084,6 +1198,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Name of this document-link.
      * It is required that the parent derived form the name to be consistent with
@@ -1093,12 +1209,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1108,41 +1226,58 @@ public Builder setNameBytes( private com.google.cloud.contentwarehouse.v1.DocumentReference sourceDocumentReference_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentReference, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> sourceDocumentReferenceBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentReference, + com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, + com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> + sourceDocumentReferenceBuilder_; /** + * + * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * + * * @return Whether the sourceDocumentReference field is set. */ public boolean hasSourceDocumentReference() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * + * * @return The sourceDocumentReference. */ public com.google.cloud.contentwarehouse.v1.DocumentReference getSourceDocumentReference() { if (sourceDocumentReferenceBuilder_ == null) { - return sourceDocumentReference_ == null ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : sourceDocumentReference_; + return sourceDocumentReference_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() + : sourceDocumentReference_; } else { return sourceDocumentReferenceBuilder_.getMessage(); } } /** + * + * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * */ - public Builder setSourceDocumentReference(com.google.cloud.contentwarehouse.v1.DocumentReference value) { + public Builder setSourceDocumentReference( + com.google.cloud.contentwarehouse.v1.DocumentReference value) { if (sourceDocumentReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1156,11 +1291,14 @@ public Builder setSourceDocumentReference(com.google.cloud.contentwarehouse.v1.D return this; } /** + * + * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * */ public Builder setSourceDocumentReference( com.google.cloud.contentwarehouse.v1.DocumentReference.Builder builderForValue) { @@ -1174,17 +1312,22 @@ public Builder setSourceDocumentReference( return this; } /** + * + * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * */ - public Builder mergeSourceDocumentReference(com.google.cloud.contentwarehouse.v1.DocumentReference value) { + public Builder mergeSourceDocumentReference( + com.google.cloud.contentwarehouse.v1.DocumentReference value) { if (sourceDocumentReferenceBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - sourceDocumentReference_ != null && - sourceDocumentReference_ != com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && sourceDocumentReference_ != null + && sourceDocumentReference_ + != com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance()) { getSourceDocumentReferenceBuilder().mergeFrom(value); } else { sourceDocumentReference_ = value; @@ -1197,11 +1340,14 @@ public Builder mergeSourceDocumentReference(com.google.cloud.contentwarehouse.v1 return this; } /** + * + * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * */ public Builder clearSourceDocumentReference() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1214,48 +1360,63 @@ public Builder clearSourceDocumentReference() { return this; } /** + * + * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * */ - public com.google.cloud.contentwarehouse.v1.DocumentReference.Builder getSourceDocumentReferenceBuilder() { + public com.google.cloud.contentwarehouse.v1.DocumentReference.Builder + getSourceDocumentReferenceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSourceDocumentReferenceFieldBuilder().getBuilder(); } /** + * + * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * */ - public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getSourceDocumentReferenceOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder + getSourceDocumentReferenceOrBuilder() { if (sourceDocumentReferenceBuilder_ != null) { return sourceDocumentReferenceBuilder_.getMessageOrBuilder(); } else { - return sourceDocumentReference_ == null ? - com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : sourceDocumentReference_; + return sourceDocumentReference_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() + : sourceDocumentReference_; } } /** + * + * *
      * Document references of the source document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentReference, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentReference, + com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, + com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> getSourceDocumentReferenceFieldBuilder() { if (sourceDocumentReferenceBuilder_ == null) { - sourceDocumentReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentReference, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder>( - getSourceDocumentReference(), - getParentForChildren(), - isClean()); + sourceDocumentReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentReference, + com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, + com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder>( + getSourceDocumentReference(), getParentForChildren(), isClean()); sourceDocumentReference_ = null; } return sourceDocumentReferenceBuilder_; @@ -1263,41 +1424,58 @@ public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getSource private com.google.cloud.contentwarehouse.v1.DocumentReference targetDocumentReference_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentReference, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> targetDocumentReferenceBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentReference, + com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, + com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> + targetDocumentReferenceBuilder_; /** + * + * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * + * * @return Whether the targetDocumentReference field is set. */ public boolean hasTargetDocumentReference() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * + * * @return The targetDocumentReference. */ public com.google.cloud.contentwarehouse.v1.DocumentReference getTargetDocumentReference() { if (targetDocumentReferenceBuilder_ == null) { - return targetDocumentReference_ == null ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : targetDocumentReference_; + return targetDocumentReference_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() + : targetDocumentReference_; } else { return targetDocumentReferenceBuilder_.getMessage(); } } /** + * + * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * */ - public Builder setTargetDocumentReference(com.google.cloud.contentwarehouse.v1.DocumentReference value) { + public Builder setTargetDocumentReference( + com.google.cloud.contentwarehouse.v1.DocumentReference value) { if (targetDocumentReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1311,11 +1489,14 @@ public Builder setTargetDocumentReference(com.google.cloud.contentwarehouse.v1.D return this; } /** + * + * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * */ public Builder setTargetDocumentReference( com.google.cloud.contentwarehouse.v1.DocumentReference.Builder builderForValue) { @@ -1329,17 +1510,22 @@ public Builder setTargetDocumentReference( return this; } /** + * + * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * */ - public Builder mergeTargetDocumentReference(com.google.cloud.contentwarehouse.v1.DocumentReference value) { + public Builder mergeTargetDocumentReference( + com.google.cloud.contentwarehouse.v1.DocumentReference value) { if (targetDocumentReferenceBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - targetDocumentReference_ != null && - targetDocumentReference_ != com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && targetDocumentReference_ != null + && targetDocumentReference_ + != com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance()) { getTargetDocumentReferenceBuilder().mergeFrom(value); } else { targetDocumentReference_ = value; @@ -1352,11 +1538,14 @@ public Builder mergeTargetDocumentReference(com.google.cloud.contentwarehouse.v1 return this; } /** + * + * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * */ public Builder clearTargetDocumentReference() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1369,48 +1558,63 @@ public Builder clearTargetDocumentReference() { return this; } /** + * + * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * */ - public com.google.cloud.contentwarehouse.v1.DocumentReference.Builder getTargetDocumentReferenceBuilder() { + public com.google.cloud.contentwarehouse.v1.DocumentReference.Builder + getTargetDocumentReferenceBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTargetDocumentReferenceFieldBuilder().getBuilder(); } /** + * + * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * */ - public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getTargetDocumentReferenceOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder + getTargetDocumentReferenceOrBuilder() { if (targetDocumentReferenceBuilder_ != null) { return targetDocumentReferenceBuilder_.getMessageOrBuilder(); } else { - return targetDocumentReference_ == null ? - com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() : targetDocumentReference_; + return targetDocumentReference_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance() + : targetDocumentReference_; } } /** + * + * *
      * Document references of the target document.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentReference, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentReference, + com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, + com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder> getTargetDocumentReferenceFieldBuilder() { if (targetDocumentReferenceBuilder_ == null) { - targetDocumentReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentReference, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder>( - getTargetDocumentReference(), - getParentForChildren(), - isClean()); + targetDocumentReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentReference, + com.google.cloud.contentwarehouse.v1.DocumentReference.Builder, + com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder>( + getTargetDocumentReference(), getParentForChildren(), isClean()); targetDocumentReference_ = null; } return targetDocumentReferenceBuilder_; @@ -1418,18 +1622,20 @@ public com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getTarget private java.lang.Object description_ = ""; /** + * + * *
      * Description of this document-link.
      * 
* * string description = 4; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1438,20 +1644,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Description of this document-link.
      * 
* * string description = 4; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1459,28 +1666,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Description of this document-link.
      * 
* * string description = 4; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Description of this document-link.
      * 
* * string description = 4; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1490,17 +1704,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Description of this document-link.
      * 
* * string description = 4; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000008; @@ -1510,39 +1728,58 @@ public Builder setDescriptionBytes( 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_; /** + * + * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1558,14 +1795,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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 { @@ -1576,17 +1816,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1599,11 +1843,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1616,11 +1864,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1628,36 +1880,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time when the documentLink is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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_; @@ -1665,39 +1929,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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. The time when the documentLink is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. The time when the documentLink is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the documentLink is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1713,14 +1996,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the documentLink is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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 { @@ -1731,17 +2017,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the documentLink is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1754,11 +2044,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the documentLink is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1771,11 +2065,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the documentLink is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000020; @@ -1783,36 +2081,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the documentLink is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the documentLink is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> 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_; @@ -1820,6 +2130,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * The state of the documentlink. If target node has been deleted, the
      * link is marked as invalid. Removing a source node will result in removal
@@ -1827,12 +2139,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; + * * @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 documentlink. If target node has been deleted, the
      * link is marked as invalid. Removing a source node will result in removal
@@ -1840,6 +2156,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1850,6 +2167,8 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The state of the documentlink. If target node has been deleted, the
      * link is marked as invalid. Removing a source node will result in removal
@@ -1857,14 +2176,20 @@ public Builder setStateValue(int value) {
      * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; + * * @return The state. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentLink.State getState() { - com.google.cloud.contentwarehouse.v1.DocumentLink.State result = com.google.cloud.contentwarehouse.v1.DocumentLink.State.forNumber(state_); - return result == null ? com.google.cloud.contentwarehouse.v1.DocumentLink.State.UNRECOGNIZED : result; + com.google.cloud.contentwarehouse.v1.DocumentLink.State result = + com.google.cloud.contentwarehouse.v1.DocumentLink.State.forNumber(state_); + return result == null + ? com.google.cloud.contentwarehouse.v1.DocumentLink.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the documentlink. If target node has been deleted, the
      * link is marked as invalid. Removing a source node will result in removal
@@ -1872,6 +2197,7 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.State getState() {
      * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1885,6 +2211,8 @@ public Builder setState(com.google.cloud.contentwarehouse.v1.DocumentLink.State return this; } /** + * + * *
      * The state of the documentlink. If target node has been deleted, the
      * link is marked as invalid. Removing a source node will result in removal
@@ -1892,6 +2220,7 @@ public Builder setState(com.google.cloud.contentwarehouse.v1.DocumentLink.State
      * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; + * * @return This builder for chaining. */ public Builder clearState() { @@ -1900,9 +2229,9 @@ public Builder clearState() { 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); } @@ -1912,12 +2241,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DocumentLink) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DocumentLink) private static final com.google.cloud.contentwarehouse.v1.DocumentLink DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DocumentLink(); } @@ -1926,27 +2255,27 @@ public static com.google.cloud.contentwarehouse.v1.DocumentLink getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DocumentLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1961,6 +2290,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DocumentLink getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java similarity index 79% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java index 7ba1835d2839..bf1e03857bbe 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; -public interface DocumentLinkOrBuilder extends +public interface DocumentLinkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DocumentLink) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of this document-link.
    * It is required that the parent derived form the name to be consistent with
@@ -17,10 +35,13 @@ public interface DocumentLinkOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of this document-link.
    * It is required that the parent derived form the name to be consistent with
@@ -30,140 +51,187 @@ public interface DocumentLinkOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Document references of the source document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * * @return Whether the sourceDocumentReference field is set. */ boolean hasSourceDocumentReference(); /** + * + * *
    * Document references of the source document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; + * * @return The sourceDocumentReference. */ com.google.cloud.contentwarehouse.v1.DocumentReference getSourceDocumentReference(); /** + * + * *
    * Document references of the source document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference source_document_reference = 2; */ - com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getSourceDocumentReferenceOrBuilder(); + com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder + getSourceDocumentReferenceOrBuilder(); /** + * + * *
    * Document references of the target document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * * @return Whether the targetDocumentReference field is set. */ boolean hasTargetDocumentReference(); /** + * + * *
    * Document references of the target document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; + * * @return The targetDocumentReference. */ com.google.cloud.contentwarehouse.v1.DocumentReference getTargetDocumentReference(); /** + * + * *
    * Document references of the target document.
    * 
* * .google.cloud.contentwarehouse.v1.DocumentReference target_document_reference = 3; */ - com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder getTargetDocumentReferenceOrBuilder(); + com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder + getTargetDocumentReferenceOrBuilder(); /** + * + * *
    * Description of this document-link.
    * 
* * string description = 4; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Description of this document-link.
    * 
* * string description = 4; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The time when the documentLink is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time when the documentLink is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time when the documentLink is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time when the documentLink is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the documentLink is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the documentLink is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The state of the documentlink. If target node has been deleted, the
    * link is marked as invalid. Removing a source node will result in removal
@@ -171,10 +239,13 @@ public interface DocumentLinkOrBuilder extends
    * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the documentlink. If target node has been deleted, the
    * link is marked as invalid. Removing a source node will result in removal
@@ -182,6 +253,7 @@ public interface DocumentLinkOrBuilder extends
    * 
* * .google.cloud.contentwarehouse.v1.DocumentLink.State state = 7; + * * @return The state. */ com.google.cloud.contentwarehouse.v1.DocumentLink.State getState(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java new file mode 100644 index 000000000000..01ecad39e87c --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java @@ -0,0 +1,248 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_link_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class DocumentLinkServiceProto { + private DocumentLinkServiceProto() {} + + 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_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DocumentLink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_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 * The resource name of the document. * Format: @@ -17,10 +35,13 @@ public interface DocumentOrBuilder extends *
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the document.
    * Format:
@@ -30,32 +51,39 @@ public interface DocumentOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The reference ID set by customers. Must be unique per project and location.
    * 
* * string reference_id = 11; + * * @return The referenceId. */ java.lang.String getReferenceId(); /** + * + * *
    * The reference ID set by customers. Must be unique per project and location.
    * 
* * string reference_id = 11; + * * @return The bytes for referenceId. */ - com.google.protobuf.ByteString - getReferenceIdBytes(); + com.google.protobuf.ByteString getReferenceIdBytes(); /** + * + * *
    * Required. Display name of the document given by the user. This name will be
    * displayed in the UI. Customer can populate this field with the name of the
@@ -64,10 +92,13 @@ public interface DocumentOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name of the document given by the user. This name will be
    * displayed in the UI. Customer can populate this field with the name of the
@@ -76,54 +107,66 @@ public interface DocumentOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Title that describes the document.
    * This can be the top heading or text that describes the document.
    * 
* * string title = 18; + * * @return The title. */ java.lang.String getTitle(); /** + * + * *
    * Title that describes the document.
    * This can be the top heading or text that describes the document.
    * 
* * string title = 18; + * * @return The bytes for title. */ - com.google.protobuf.ByteString - getTitleBytes(); + com.google.protobuf.ByteString getTitleBytes(); /** + * + * *
    * Uri to display the document, for example, in the UI.
    * 
* * string display_uri = 17; + * * @return The displayUri. */ java.lang.String getDisplayUri(); /** + * + * *
    * Uri to display the document, for example, in the UI.
    * 
* * string display_uri = 17; + * * @return The bytes for displayUri. */ - com.google.protobuf.ByteString - getDisplayUriBytes(); + com.google.protobuf.ByteString getDisplayUriBytes(); /** + * + * *
    * The Document schema name.
    * Format:
@@ -131,10 +174,13 @@ public interface DocumentOrBuilder extends
    * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } + * * @return The documentSchemaName. */ java.lang.String getDocumentSchemaName(); /** + * + * *
    * The Document schema name.
    * Format:
@@ -142,59 +188,75 @@ public interface DocumentOrBuilder extends
    * 
* * string document_schema_name = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for documentSchemaName. */ - com.google.protobuf.ByteString - getDocumentSchemaNameBytes(); + com.google.protobuf.ByteString getDocumentSchemaNameBytes(); /** + * + * *
    * Other document format, such as PPTX, XLXS
    * 
* * string plain_text = 15; + * * @return Whether the plainText field is set. */ boolean hasPlainText(); /** + * + * *
    * Other document format, such as PPTX, XLXS
    * 
* * string plain_text = 15; + * * @return The plainText. */ java.lang.String getPlainText(); /** + * + * *
    * Other document format, such as PPTX, XLXS
    * 
* * string plain_text = 15; + * * @return The bytes for plainText. */ - com.google.protobuf.ByteString - getPlainTextBytes(); + com.google.protobuf.ByteString getPlainTextBytes(); /** + * + * *
    * Document AI format to save the structured content, including OCR.
    * 
* * .google.cloud.documentai.v1.Document cloud_ai_document = 4; + * * @return Whether the cloudAiDocument field is set. */ boolean hasCloudAiDocument(); /** + * + * *
    * Document AI format to save the structured content, including OCR.
    * 
* * .google.cloud.documentai.v1.Document cloud_ai_document = 4; + * * @return The cloudAiDocument. */ com.google.cloud.documentai.v1.Document getCloudAiDocument(); /** + * + * *
    * Document AI format to save the structured content, including OCR.
    * 
@@ -204,87 +266,111 @@ public interface DocumentOrBuilder extends com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuilder(); /** + * + * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. - * See google/cloud/contentwarehouse/v1/document.proto;l=79 + * + * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. See + * google/cloud/contentwarehouse/v1/document.proto;l=79 * @return The structuredContentUri. */ - @java.lang.Deprecated java.lang.String getStructuredContentUri(); + @java.lang.Deprecated + java.lang.String getStructuredContentUri(); /** + * + * *
    * A path linked to structured content file.
    * 
* * string structured_content_uri = 16 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. - * See google/cloud/contentwarehouse/v1/document.proto;l=79 + * + * @deprecated google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. See + * google/cloud/contentwarehouse/v1/document.proto;l=79 * @return The bytes for structuredContentUri. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getStructuredContentUriBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getStructuredContentUriBytes(); /** + * + * *
    * Raw document file in Cloud Storage path.
    * 
* * string raw_document_path = 5; + * * @return Whether the rawDocumentPath field is set. */ boolean hasRawDocumentPath(); /** + * + * *
    * Raw document file in Cloud Storage path.
    * 
* * string raw_document_path = 5; + * * @return The rawDocumentPath. */ java.lang.String getRawDocumentPath(); /** + * + * *
    * Raw document file in Cloud Storage path.
    * 
* * string raw_document_path = 5; + * * @return The bytes for rawDocumentPath. */ - com.google.protobuf.ByteString - getRawDocumentPathBytes(); + com.google.protobuf.ByteString getRawDocumentPathBytes(); /** + * + * *
    * Raw document content.
    * 
* * bytes inline_raw_document = 6; + * * @return Whether the inlineRawDocument field is set. */ boolean hasInlineRawDocument(); /** + * + * *
    * Raw document content.
    * 
* * bytes inline_raw_document = 6; + * * @return The inlineRawDocument. */ com.google.protobuf.ByteString getInlineRawDocument(); /** + * + * *
    * List of values that are user supplied metadata.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - java.util.List - getPropertiesList(); + java.util.List getPropertiesList(); /** + * + * *
    * List of values that are user supplied metadata.
    * 
@@ -293,6 +379,8 @@ public interface DocumentOrBuilder extends */ com.google.cloud.contentwarehouse.v1.Property getProperties(int index); /** + * + * *
    * List of values that are user supplied metadata.
    * 
@@ -301,79 +389,106 @@ public interface DocumentOrBuilder extends */ int getPropertiesCount(); /** + * + * *
    * List of values that are user supplied metadata.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - java.util.List + java.util.List getPropertiesOrBuilderList(); /** + * + * *
    * List of values that are user supplied metadata.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 7; */ - com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder(int index); /** + * + * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * This is used when DocAI was not used to load the document and parsing/
    * extracting is needed for the inline_raw_document.  For example, if
@@ -382,10 +497,13 @@ com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder(
    * 
* * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * * @return The enum numeric value on the wire for rawDocumentFileType. */ int getRawDocumentFileTypeValue(); /** + * + * *
    * This is used when DocAI was not used to load the document and parsing/
    * extracting is needed for the inline_raw_document.  For example, if
@@ -394,139 +512,184 @@ com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder(
    * 
* * .google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10; + * * @return The rawDocumentFileType. */ com.google.cloud.contentwarehouse.v1.RawDocumentFileType getRawDocumentFileType(); /** + * + * *
    * If true, makes the document visible to asynchronous policies and rules.
    * 
* * bool async_enabled = 12 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. - * See google/cloud/contentwarehouse/v1/document.proto;l=108 + * + * @deprecated google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. See + * google/cloud/contentwarehouse/v1/document.proto;l=108 * @return The asyncEnabled. */ - @java.lang.Deprecated boolean getAsyncEnabled(); + @java.lang.Deprecated + boolean getAsyncEnabled(); /** + * + * *
    * Indicates the category (image, audio, video etc.) of the original content.
    * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; + * * @return The enum numeric value on the wire for contentCategory. */ int getContentCategoryValue(); /** + * + * *
    * Indicates the category (image, audio, video etc.) of the original content.
    * 
* * .google.cloud.contentwarehouse.v1.ContentCategory content_category = 20; + * * @return The contentCategory. */ com.google.cloud.contentwarehouse.v1.ContentCategory getContentCategory(); /** + * + * *
    * If true, text extraction will not be performed.
    * 
* * bool text_extraction_disabled = 19 [deprecated = true]; + * * @deprecated google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated. * See google/cloud/contentwarehouse/v1/document.proto;l=114 * @return The textExtractionDisabled. */ - @java.lang.Deprecated boolean getTextExtractionDisabled(); + @java.lang.Deprecated + boolean getTextExtractionDisabled(); /** + * + * *
    * If true, text extraction will be performed.
    * 
* * bool text_extraction_enabled = 21; + * * @return The textExtractionEnabled. */ boolean getTextExtractionEnabled(); /** + * + * *
    * The user who creates the document.
    * 
* * string creator = 13; + * * @return The creator. */ java.lang.String getCreator(); /** + * + * *
    * The user who creates the document.
    * 
* * string creator = 13; + * * @return The bytes for creator. */ - com.google.protobuf.ByteString - getCreatorBytes(); + com.google.protobuf.ByteString getCreatorBytes(); /** + * + * *
    * The user who lastly updates the document.
    * 
* * string updater = 14; + * * @return The updater. */ java.lang.String getUpdater(); /** + * + * *
    * The user who lastly updates the document.
    * 
* * string updater = 14; + * * @return The bytes for updater. */ - com.google.protobuf.ByteString - getUpdaterBytes(); + com.google.protobuf.ByteString getUpdaterBytes(); /** + * + * *
    * Output only. If linked to a Collection with RetentionPolicy, the date when
    * the document becomes mutable.
    * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dispositionTime field is set. */ boolean hasDispositionTime(); /** + * + * *
    * Output only. If linked to a Collection with RetentionPolicy, the date when
    * the document becomes mutable.
    * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dispositionTime. */ com.google.protobuf.Timestamp getDispositionTime(); /** + * + * *
    * Output only. If linked to a Collection with RetentionPolicy, the date when
    * the document becomes mutable.
    * 
* - * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDispositionTimeOrBuilder(); /** + * + * *
    * Output only. Indicates if the document has a legal hold on it.
    * 
* * bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The legalHold. */ boolean getLegalHold(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java new file mode 100644 index 000000000000..19f804438f33 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentProto.java @@ -0,0 +1,397 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document.proto + +package com.google.cloud.contentwarehouse.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_contentwarehouse_v1_Document_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_Value_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_EnumValue_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/contentwarehouse/v1/docum" + + "ent.proto\022 google.cloud.contentwarehouse" + + ".v1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032)google/cloud/do" + + "cumentai/v1/document.proto\032\037google/proto" + + "buf/timestamp.proto\032\032google/type/datetim" + + "e.proto\"\211\t\n\010Document\022\014\n\004name\030\001 \001(\t\022\024\n\014re" + + "ference_id\030\013 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004" + + "\342A\001\002\022\r\n\005title\030\022 \001(\t\022\023\n\013display_uri\030\021 \001(\t" + + "\022Q\n\024document_schema_name\030\003 \001(\tB3\372A0\n.con" + + "tentwarehouse.googleapis.com/DocumentSch" + + "ema\022\024\n\nplain_text\030\017 \001(\tH\000\022A\n\021cloud_ai_do" + + "cument\030\004 \001(\0132$.google.cloud.documentai.v" + + "1.DocumentH\000\022\"\n\026structured_content_uri\030\020" + + " \001(\tB\002\030\001\022\033\n\021raw_document_path\030\005 \001(\tH\001\022\035\n" + + "\023inline_raw_document\030\006 \001(\014H\001\022>\n\nproperti" + + "es\030\007 \003(\0132*.google.cloud.contentwarehouse" + + ".v1.Property\0225\n\013update_time\030\010 \001(\0132\032.goog" + + "le.protobuf.TimestampB\004\342A\001\003\0225\n\013create_ti" + + "me\030\t \001(\0132\032.google.protobuf.TimestampB\004\342A" + + "\001\003\022U\n\026raw_document_file_type\030\n \001(\01625.goo" + + "gle.cloud.contentwarehouse.v1.RawDocumen" + + "tFileType\022\031\n\rasync_enabled\030\014 \001(\010B\002\030\001\022K\n\020" + + "content_category\030\024 \001(\01621.google.cloud.co" + + "ntentwarehouse.v1.ContentCategory\022$\n\030tex" + + "t_extraction_disabled\030\023 \001(\010B\002\030\001\022\037\n\027text_" + + "extraction_enabled\030\025 \001(\010\022\017\n\007creator\030\r \001(" + + "\t\022\017\n\007updater\030\016 \001(\t\022:\n\020disposition_time\030\026" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\030" + + "\n\nlegal_hold\030\027 \001(\010B\004\342A\001\003:\272\001\352A\266\001\n(content" + + "warehouse.googleapis.com/Document\022\n\nproperties\030\001 \003" + + "(\0132*.google.cloud.contentwarehouse.v1.Pr" + + "operty\"\260\001\n\013MapProperty\022I\n\006fields\030\001 \003(\01329" + + ".google.cloud.contentwarehouse.v1.MapPro" + + "perty.FieldsEntry\032V\n\013FieldsEntry\022\013\n\003key\030" + + "\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google.cloud.cont" + + "entwarehouse.v1.Value:\0028\001\"\255\002\n\005Value\022\025\n\013f" + + "loat_value\030\001 \001(\002H\000\022\023\n\tint_value\030\002 \001(\005H\000\022" + + "\026\n\014string_value\030\003 \001(\tH\000\022A\n\nenum_value\030\004 " + + "\001(\0132+.google.cloud.contentwarehouse.v1.E" + + "numValueH\000\022/\n\016datetime_value\030\005 \001(\0132\025.goo" + + "gle.type.DateTimeH\000\022K\n\017timestamp_value\030\006" + + " \001(\01320.google.cloud.contentwarehouse.v1." + + "TimestampValueH\000\022\027\n\rboolean_value\030\007 \001(\010H" + + "\000B\006\n\004kind\"\032\n\tEnumValue\022\r\n\005value\030\001 \001(\t*\202\002" + + "\n\023RawDocumentFileType\022&\n\"RAW_DOCUMENT_FI" + + "LE_TYPE_UNSPECIFIED\020\000\022\036\n\032RAW_DOCUMENT_FI" + + "LE_TYPE_PDF\020\001\022\037\n\033RAW_DOCUMENT_FILE_TYPE_" + + "DOCX\020\002\022\037\n\033RAW_DOCUMENT_FILE_TYPE_XLSX\020\003\022" + + "\037\n\033RAW_DOCUMENT_FILE_TYPE_PPTX\020\004\022\037\n\033RAW_" + + "DOCUMENT_FILE_TYPE_TEXT\020\005\022\037\n\033RAW_DOCUMEN" + + "T_FILE_TYPE_TIFF\020\006*\207\001\n\017ContentCategory\022 " + + "\n\034CONTENT_CATEGORY_UNSPECIFIED\020\000\022\032\n\026CONT" + + "ENT_CATEGORY_IMAGE\020\001\022\032\n\026CONTENT_CATEGORY" + + "_AUDIO\020\002\022\032\n\026CONTENT_CATEGORY_VIDEO\020\003B\365\001\n" + + "$com.google.cloud.contentwarehouse.v1B\rD" + + "ocumentProtoP\001ZPcloud.google.com/go/cont" + + "entwarehouse/apiv1/contentwarehousepb;co" + + "ntentwarehousepb\252\002 Google.Cloud.ContentW" + + "arehouse.V1\312\002 Google\\Cloud\\ContentWareho" + + "use\\V1\352\002#Google::Cloud::ContentWarehouse" + + "::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.documentai.v1.DocumentProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateTimeProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_Document_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_Document_descriptor, + new java.lang.String[] { + "Name", + "ReferenceId", + "DisplayName", + "Title", + "DisplayUri", + "DocumentSchemaName", + "PlainText", + "CloudAiDocument", + "StructuredContentUri", + "RawDocumentPath", + "InlineRawDocument", + "Properties", + "UpdateTime", + "CreateTime", + "RawDocumentFileType", + "AsyncEnabled", + "ContentCategory", + "TextExtractionDisabled", + "TextExtractionEnabled", + "Creator", + "Updater", + "DispositionTime", + "LegalHold", + "StructuredContent", + "RawDocument", + }); + internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor, + new java.lang.String[] { + "DocumentName", + "DisplayName", + "Snippet", + "DocumentIsFolder", + "UpdateTime", + "CreateTime", + "DeleteTime", + "DocumentIsRetentionFolder", + "DocumentIsLegalHoldFolder", + }); + internal_static_google_cloud_contentwarehouse_v1_Property_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_Property_descriptor, + new java.lang.String[] { + "Name", + "IntegerValues", + "FloatValues", + "TextValues", + "EnumValues", + "PropertyValues", + "DateTimeValues", + "MapProperty", + "TimestampValues", + "Values", + }); + internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor, + new java.lang.String[] { + "TimestampValue", "TextValue", "Value", + }); + internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor, + new java.lang.String[] { + "Properties", + }); + internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor, + new java.lang.String[] { + "Fields", + }); + internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor = + internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_contentwarehouse_v1_Value_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_Value_descriptor, + new java.lang.String[] { + "FloatValue", + "IntValue", + "StringValue", + "EnumValue", + "DatetimeValue", + "TimestampValue", + "BooleanValue", + "Kind", + }); + internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_contentwarehouse_v1_EnumValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor, + new java.lang.String[] { + "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.documentai.v1.DocumentProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateTimeProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java similarity index 82% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java index 3e20ec687b24..c8baf8b88c56 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQuery.java @@ -1,60 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -/** - * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentQuery} - */ -public final class DocumentQuery extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentQuery} */ +public final class DocumentQuery extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DocumentQuery) DocumentQueryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentQuery.newBuilder() to construct. private DocumentQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentQuery() { query_ = ""; customPropertyFilter_ = ""; timeFilters_ = java.util.Collections.emptyList(); - documentSchemaNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + documentSchemaNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); propertyFilter_ = java.util.Collections.emptyList(); folderNameFilter_ = ""; - documentNameFilter_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - queryContext_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - documentCreatorFilter_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); + queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documentCreatorFilter_ = 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 DocumentQuery(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentQuery.class, com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentQuery.class, + com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder.class); } public static final int QUERY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** + * + * *
    * The query string that matches against the full text of the document and
    * the searchable properties.
@@ -103,6 +117,7 @@ protected java.lang.Object newInstance(
    * 
* * string query = 1; + * * @return The query. */ @java.lang.Override @@ -111,14 +126,15 @@ 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; } } /** + * + * *
    * The query string that matches against the full text of the document and
    * the searchable properties.
@@ -167,16 +183,15 @@ public java.lang.String getQuery() {
    * 
* * string query = 1; + * * @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 { @@ -187,6 +202,8 @@ public java.lang.String getQuery() { public static final int IS_NL_QUERY_FIELD_NUMBER = 12; private boolean isNlQuery_ = false; /** + * + * *
    * Experimental, do not use.
    * If the query is a natural language question. False by default. If true,
@@ -198,6 +215,7 @@ public java.lang.String getQuery() {
    * 
* * bool is_nl_query = 12; + * * @return The isNlQuery. */ @java.lang.Override @@ -206,9 +224,12 @@ public boolean getIsNlQuery() { } public static final int CUSTOM_PROPERTY_FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object customPropertyFilter_ = ""; /** + * + * *
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -232,24 +253,27 @@ public boolean getIsNlQuery() {
    * 
* * string custom_property_filter = 4 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. - * See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return The customPropertyFilter. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getCustomPropertyFilter() { + @java.lang.Deprecated + public java.lang.String getCustomPropertyFilter() { java.lang.Object ref = customPropertyFilter_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customPropertyFilter_ = s; return s; } } /** + * + * *
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -273,18 +297,18 @@ public boolean getIsNlQuery() {
    * 
* * string custom_property_filter = 4 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. - * See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return The bytes for customPropertyFilter. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getCustomPropertyFilterBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getCustomPropertyFilterBytes() { java.lang.Object ref = customPropertyFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customPropertyFilter_ = b; return b; } else { @@ -293,9 +317,12 @@ public boolean getIsNlQuery() { } public static final int TIME_FILTERS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List timeFilters_; /** + * + * *
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -308,6 +335,8 @@ public java.util.List getTimeFi
     return timeFilters_;
   }
   /**
+   *
+   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -316,11 +345,13 @@ public java.util.List getTimeFi
    * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getTimeFiltersOrBuilderList() {
     return timeFilters_;
   }
   /**
+   *
+   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -333,6 +364,8 @@ public int getTimeFiltersCount() {
     return timeFilters_.size();
   }
   /**
+   *
+   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -345,6 +378,8 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter getTimeFilters(int index)
     return timeFilters_.get(index);
   }
   /**
+   *
+   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -359,10 +394,13 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
   }
 
   public static final int DOCUMENT_SCHEMA_NAMES_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList documentSchemaNames_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -377,13 +415,15 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
    * 
* * repeated string document_schema_names = 6; + * * @return A list containing the documentSchemaNames. */ - public com.google.protobuf.ProtocolStringList - getDocumentSchemaNamesList() { + public com.google.protobuf.ProtocolStringList getDocumentSchemaNamesList() { return documentSchemaNames_; } /** + * + * *
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -398,12 +438,15 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
    * 
* * repeated string document_schema_names = 6; + * * @return The count of documentSchemaNames. */ public int getDocumentSchemaNamesCount() { return documentSchemaNames_.size(); } /** + * + * *
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -418,6 +461,7 @@ public int getDocumentSchemaNamesCount() {
    * 
* * repeated string document_schema_names = 6; + * * @param index The index of the element to return. * @return The documentSchemaNames at the given index. */ @@ -425,6 +469,8 @@ public java.lang.String getDocumentSchemaNames(int index) { return documentSchemaNames_.get(index); } /** + * + * *
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -439,18 +485,21 @@ public java.lang.String getDocumentSchemaNames(int index) {
    * 
* * repeated string document_schema_names = 6; + * * @param index The index of the value to return. * @return The bytes of the documentSchemaNames at the given index. */ - public com.google.protobuf.ByteString - getDocumentSchemaNamesBytes(int index) { + public com.google.protobuf.ByteString getDocumentSchemaNamesBytes(int index) { return documentSchemaNames_.getByteString(index); } public static final int PROPERTY_FILTER_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private java.util.List propertyFilter_; /** + * + * *
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -460,10 +509,13 @@ public java.lang.String getDocumentSchemaNames(int index) {
    * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
    */
   @java.lang.Override
-  public java.util.List getPropertyFilterList() {
+  public java.util.List
+      getPropertyFilterList() {
     return propertyFilter_;
   }
   /**
+   *
+   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -473,11 +525,13 @@ public java.util.List getPr
    * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPropertyFilterOrBuilderList() {
     return propertyFilter_;
   }
   /**
+   *
+   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -491,6 +545,8 @@ public int getPropertyFilterCount() {
     return propertyFilter_.size();
   }
   /**
+   *
+   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -504,6 +560,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter getPropertyFilter(int
     return propertyFilter_.get(index);
   }
   /**
+   *
+   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -521,6 +579,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyF
   public static final int FILE_TYPE_FILTER_FIELD_NUMBER = 8;
   private com.google.cloud.contentwarehouse.v1.FileTypeFilter fileTypeFilter_;
   /**
+   *
+   *
    * 
    * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
    * If FOLDER or FILE is specified, then only either folders or files will be
@@ -531,6 +591,7 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyF
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8; + * * @return Whether the fileTypeFilter field is set. */ @java.lang.Override @@ -538,6 +599,8 @@ public boolean hasFileTypeFilter() { return fileTypeFilter_ != null; } /** + * + * *
    * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
    * If FOLDER or FILE is specified, then only either folders or files will be
@@ -548,13 +611,18 @@ public boolean hasFileTypeFilter() {
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8; + * * @return The fileTypeFilter. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.FileTypeFilter getFileTypeFilter() { - return fileTypeFilter_ == null ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance() : fileTypeFilter_; + return fileTypeFilter_ == null + ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance() + : fileTypeFilter_; } /** + * + * *
    * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
    * If FOLDER or FILE is specified, then only either folders or files will be
@@ -568,13 +636,18 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter getFileTypeFilter() {
    */
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeFilterOrBuilder() {
-    return fileTypeFilter_ == null ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance() : fileTypeFilter_;
+    return fileTypeFilter_ == null
+        ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance()
+        : fileTypeFilter_;
   }
 
   public static final int FOLDER_NAME_FILTER_FIELD_NUMBER = 9;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object folderNameFilter_ = "";
   /**
+   *
+   *
    * 
    * Search all the documents under this specified folder.
    * Format:
@@ -582,6 +655,7 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeF
    * 
* * string folder_name_filter = 9; + * * @return The folderNameFilter. */ @java.lang.Override @@ -590,14 +664,15 @@ public java.lang.String getFolderNameFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderNameFilter_ = s; return s; } } /** + * + * *
    * Search all the documents under this specified folder.
    * Format:
@@ -605,16 +680,15 @@ public java.lang.String getFolderNameFilter() {
    * 
* * string folder_name_filter = 9; + * * @return The bytes for folderNameFilter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFolderNameFilterBytes() { + public com.google.protobuf.ByteString getFolderNameFilterBytes() { java.lang.Object ref = folderNameFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); folderNameFilter_ = b; return b; } else { @@ -623,10 +697,13 @@ public java.lang.String getFolderNameFilter() { } public static final int DOCUMENT_NAME_FILTER_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Search the documents in the list.
    * Format:
@@ -634,13 +711,15 @@ public java.lang.String getFolderNameFilter() {
    * 
* * repeated string document_name_filter = 14; + * * @return A list containing the documentNameFilter. */ - public com.google.protobuf.ProtocolStringList - getDocumentNameFilterList() { + public com.google.protobuf.ProtocolStringList getDocumentNameFilterList() { return documentNameFilter_; } /** + * + * *
    * Search the documents in the list.
    * Format:
@@ -648,12 +727,15 @@ public java.lang.String getFolderNameFilter() {
    * 
* * repeated string document_name_filter = 14; + * * @return The count of documentNameFilter. */ public int getDocumentNameFilterCount() { return documentNameFilter_.size(); } /** + * + * *
    * Search the documents in the list.
    * Format:
@@ -661,6 +743,7 @@ public int getDocumentNameFilterCount() {
    * 
* * repeated string document_name_filter = 14; + * * @param index The index of the element to return. * @return The documentNameFilter at the given index. */ @@ -668,6 +751,8 @@ public java.lang.String getDocumentNameFilter(int index) { return documentNameFilter_.get(index); } /** + * + * *
    * Search the documents in the list.
    * Format:
@@ -675,19 +760,22 @@ public java.lang.String getDocumentNameFilter(int index) {
    * 
* * repeated string document_name_filter = 14; + * * @param index The index of the value to return. * @return The bytes of the documentNameFilter at the given index. */ - public com.google.protobuf.ByteString - getDocumentNameFilterBytes(int index) { + public com.google.protobuf.ByteString getDocumentNameFilterBytes(int index) { return documentNameFilter_.getByteString(index); } public static final int QUERY_CONTEXT_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -699,13 +787,15 @@ public java.lang.String getDocumentNameFilter(int index) {
    * 
* * repeated string query_context = 10; + * * @return A list containing the queryContext. */ - public com.google.protobuf.ProtocolStringList - getQueryContextList() { + public com.google.protobuf.ProtocolStringList getQueryContextList() { return queryContext_; } /** + * + * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -717,12 +807,15 @@ public java.lang.String getDocumentNameFilter(int index) {
    * 
* * repeated string query_context = 10; + * * @return The count of queryContext. */ public int getQueryContextCount() { return queryContext_.size(); } /** + * + * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -734,6 +827,7 @@ public int getQueryContextCount() {
    * 
* * repeated string query_context = 10; + * * @param index The index of the element to return. * @return The queryContext at the given index. */ @@ -741,6 +835,8 @@ public java.lang.String getQueryContext(int index) { return queryContext_.get(index); } /** + * + * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -752,19 +848,22 @@ public java.lang.String getQueryContext(int index) {
    * 
* * repeated string query_context = 10; + * * @param index The index of the value to return. * @return The bytes of the queryContext at the given index. */ - public com.google.protobuf.ByteString - getQueryContextBytes(int index) { + public com.google.protobuf.ByteString getQueryContextBytes(int index) { return queryContext_.getByteString(index); } public static final int DOCUMENT_CREATOR_FILTER_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * The exact creator(s) of the documents to search against.
    *
@@ -775,13 +874,15 @@ public java.lang.String getQueryContext(int index) {
    * 
* * repeated string document_creator_filter = 11; + * * @return A list containing the documentCreatorFilter. */ - public com.google.protobuf.ProtocolStringList - getDocumentCreatorFilterList() { + public com.google.protobuf.ProtocolStringList getDocumentCreatorFilterList() { return documentCreatorFilter_; } /** + * + * *
    * The exact creator(s) of the documents to search against.
    *
@@ -792,12 +893,15 @@ public java.lang.String getQueryContext(int index) {
    * 
* * repeated string document_creator_filter = 11; + * * @return The count of documentCreatorFilter. */ public int getDocumentCreatorFilterCount() { return documentCreatorFilter_.size(); } /** + * + * *
    * The exact creator(s) of the documents to search against.
    *
@@ -808,6 +912,7 @@ public int getDocumentCreatorFilterCount() {
    * 
* * repeated string document_creator_filter = 11; + * * @param index The index of the element to return. * @return The documentCreatorFilter at the given index. */ @@ -815,6 +920,8 @@ public java.lang.String getDocumentCreatorFilter(int index) { return documentCreatorFilter_.get(index); } /** + * + * *
    * The exact creator(s) of the documents to search against.
    *
@@ -825,17 +932,19 @@ public java.lang.String getDocumentCreatorFilter(int index) {
    * 
* * repeated string document_creator_filter = 11; + * * @param index The index of the value to return. * @return The bytes of the documentCreatorFilter at the given index. */ - public com.google.protobuf.ByteString - getDocumentCreatorFilterBytes(int index) { + public com.google.protobuf.ByteString getDocumentCreatorFilterBytes(int index) { return documentCreatorFilter_.getByteString(index); } public static final int CUSTOM_WEIGHTS_METADATA_FIELD_NUMBER = 13; private com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata customWeightsMetadata_; /** + * + * *
    * To support the custom weighting across document schemas, customers need to
    * provide the properties to be used to boost the ranking in the search
@@ -844,7 +953,9 @@ public java.lang.String getDocumentCreatorFilter(int index) {
    * be honored.
    * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * + * * @return Whether the customWeightsMetadata field is set. */ @java.lang.Override @@ -852,6 +963,8 @@ public boolean hasCustomWeightsMetadata() { return customWeightsMetadata_ != null; } /** + * + * *
    * To support the custom weighting across document schemas, customers need to
    * provide the properties to be used to boost the ranking in the search
@@ -860,14 +973,20 @@ public boolean hasCustomWeightsMetadata() {
    * be honored.
    * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * + * * @return The customWeightsMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getCustomWeightsMetadata() { - return customWeightsMetadata_ == null ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() : customWeightsMetadata_; + return customWeightsMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() + : customWeightsMetadata_; } /** + * + * *
    * To support the custom weighting across document schemas, customers need to
    * provide the properties to be used to boost the ranking in the search
@@ -876,14 +995,19 @@ public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getCustomWeigh
    * be honored.
    * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder getCustomWeightsMetadataOrBuilder() { - return customWeightsMetadata_ == null ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() : customWeightsMetadata_; + public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder + getCustomWeightsMetadataOrBuilder() { + return customWeightsMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() + : customWeightsMetadata_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -895,8 +1019,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } @@ -922,7 +1045,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 10, queryContext_.getRaw(i)); } for (int i = 0; i < documentCreatorFilter_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, documentCreatorFilter_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 11, documentCreatorFilter_.getRaw(i)); } if (isNlQuery_ != false) { output.writeBool(12, isNlQuery_); @@ -949,8 +1073,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, customPropertyFilter_); } for (int i = 0; i < timeFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, timeFilters_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, timeFilters_.get(i)); } { int dataSize = 0; @@ -961,12 +1084,10 @@ public int getSerializedSize() { size += 1 * getDocumentSchemaNamesList().size(); } for (int i = 0; i < propertyFilter_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, propertyFilter_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, propertyFilter_.get(i)); } if (fileTypeFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getFileTypeFilter()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFileTypeFilter()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderNameFilter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, folderNameFilter_); @@ -988,12 +1109,11 @@ public int getSerializedSize() { size += 1 * getDocumentCreatorFilterList().size(); } if (isNlQuery_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, isNlQuery_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, isNlQuery_); } if (customWeightsMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getCustomWeightsMetadata()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCustomWeightsMetadata()); } { int dataSize = 0; @@ -1011,42 +1131,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.DocumentQuery)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DocumentQuery other = (com.google.cloud.contentwarehouse.v1.DocumentQuery) obj; + com.google.cloud.contentwarehouse.v1.DocumentQuery other = + (com.google.cloud.contentwarehouse.v1.DocumentQuery) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (getIsNlQuery() - != other.getIsNlQuery()) return false; - if (!getCustomPropertyFilter() - .equals(other.getCustomPropertyFilter())) return false; - if (!getTimeFiltersList() - .equals(other.getTimeFiltersList())) return false; - if (!getDocumentSchemaNamesList() - .equals(other.getDocumentSchemaNamesList())) return false; - if (!getPropertyFilterList() - .equals(other.getPropertyFilterList())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (getIsNlQuery() != other.getIsNlQuery()) return false; + if (!getCustomPropertyFilter().equals(other.getCustomPropertyFilter())) return false; + if (!getTimeFiltersList().equals(other.getTimeFiltersList())) return false; + if (!getDocumentSchemaNamesList().equals(other.getDocumentSchemaNamesList())) return false; + if (!getPropertyFilterList().equals(other.getPropertyFilterList())) return false; if (hasFileTypeFilter() != other.hasFileTypeFilter()) return false; if (hasFileTypeFilter()) { - if (!getFileTypeFilter() - .equals(other.getFileTypeFilter())) return false; - } - if (!getFolderNameFilter() - .equals(other.getFolderNameFilter())) return false; - if (!getDocumentNameFilterList() - .equals(other.getDocumentNameFilterList())) return false; - if (!getQueryContextList() - .equals(other.getQueryContextList())) return false; - if (!getDocumentCreatorFilterList() - .equals(other.getDocumentCreatorFilterList())) return false; + if (!getFileTypeFilter().equals(other.getFileTypeFilter())) return false; + } + if (!getFolderNameFilter().equals(other.getFolderNameFilter())) return false; + if (!getDocumentNameFilterList().equals(other.getDocumentNameFilterList())) return false; + if (!getQueryContextList().equals(other.getQueryContextList())) return false; + if (!getDocumentCreatorFilterList().equals(other.getDocumentCreatorFilterList())) return false; if (hasCustomWeightsMetadata() != other.hasCustomWeightsMetadata()) return false; if (hasCustomWeightsMetadata()) { - if (!getCustomWeightsMetadata() - .equals(other.getCustomWeightsMetadata())) return false; + if (!getCustomWeightsMetadata().equals(other.getCustomWeightsMetadata())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1062,8 +1171,7 @@ public int hashCode() { hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); hash = (37 * hash) + IS_NL_QUERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsNlQuery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsNlQuery()); hash = (37 * hash) + CUSTOM_PROPERTY_FILTER_FIELD_NUMBER; hash = (53 * hash) + getCustomPropertyFilter().hashCode(); if (getTimeFiltersCount() > 0) { @@ -1106,127 +1214,127 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DocumentQuery 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.contentwarehouse.v1.DocumentQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DocumentQuery 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.contentwarehouse.v1.DocumentQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DocumentQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DocumentQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentQuery} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DocumentQuery) com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentQuery.class, com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentQuery.class, + com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DocumentQuery.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1241,8 +1349,7 @@ public Builder clear() { timeFiltersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); - documentSchemaNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + documentSchemaNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (propertyFilterBuilder_ == null) { propertyFilter_ = java.util.Collections.emptyList(); } else { @@ -1256,12 +1363,9 @@ public Builder clear() { fileTypeFilterBuilder_ = null; } folderNameFilter_ = ""; - documentNameFilter_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - queryContext_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - documentCreatorFilter_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); + queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList(); + documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); customWeightsMetadata_ = null; if (customWeightsMetadataBuilder_ != null) { customWeightsMetadataBuilder_.dispose(); @@ -1271,9 +1375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor; } @java.lang.Override @@ -1292,14 +1396,18 @@ public com.google.cloud.contentwarehouse.v1.DocumentQuery build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentQuery buildPartial() { - com.google.cloud.contentwarehouse.v1.DocumentQuery result = new com.google.cloud.contentwarehouse.v1.DocumentQuery(this); + com.google.cloud.contentwarehouse.v1.DocumentQuery result = + new com.google.cloud.contentwarehouse.v1.DocumentQuery(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.DocumentQuery result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.DocumentQuery result) { if (timeFiltersBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { timeFilters_ = java.util.Collections.unmodifiableList(timeFilters_); @@ -1336,9 +1444,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentQuery re result.documentSchemaNames_ = documentSchemaNames_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.fileTypeFilter_ = fileTypeFilterBuilder_ == null - ? fileTypeFilter_ - : fileTypeFilterBuilder_.build(); + result.fileTypeFilter_ = + fileTypeFilterBuilder_ == null ? fileTypeFilter_ : fileTypeFilterBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.folderNameFilter_ = folderNameFilter_; @@ -1356,9 +1463,10 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentQuery re result.documentCreatorFilter_ = documentCreatorFilter_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.customWeightsMetadata_ = customWeightsMetadataBuilder_ == null - ? customWeightsMetadata_ - : customWeightsMetadataBuilder_.build(); + result.customWeightsMetadata_ = + customWeightsMetadataBuilder_ == null + ? customWeightsMetadata_ + : customWeightsMetadataBuilder_.build(); } } @@ -1366,38 +1474,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentQuery 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.contentwarehouse.v1.DocumentQuery) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentQuery)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentQuery) other); } else { super.mergeFrom(other); return this; @@ -1405,7 +1514,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentQuery other) { - if (other == com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance()) + return this; if (!other.getQuery().isEmpty()) { query_ = other.query_; bitField0_ |= 0x00000001; @@ -1437,9 +1547,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentQuery othe timeFiltersBuilder_ = null; timeFilters_ = other.timeFilters_; bitField0_ = (bitField0_ & ~0x00000008); - timeFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTimeFiltersFieldBuilder() : null; + timeFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTimeFiltersFieldBuilder() + : null; } else { timeFiltersBuilder_.addAllMessages(other.timeFilters_); } @@ -1473,9 +1584,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentQuery othe propertyFilterBuilder_ = null; propertyFilter_ = other.propertyFilter_; bitField0_ = (bitField0_ & ~0x00000020); - propertyFilterBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertyFilterFieldBuilder() : null; + propertyFilterBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertyFilterFieldBuilder() + : null; } else { propertyFilterBuilder_.addAllMessages(other.propertyFilter_); } @@ -1548,96 +1660,106 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 34: { - customPropertyFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - com.google.cloud.contentwarehouse.v1.TimeFilter m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.TimeFilter.parser(), - extensionRegistry); - if (timeFiltersBuilder_ == null) { - ensureTimeFiltersIsMutable(); - timeFilters_.add(m); - } else { - timeFiltersBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDocumentSchemaNamesIsMutable(); - documentSchemaNames_.add(s); - break; - } // case 50 - case 58: { - com.google.cloud.contentwarehouse.v1.PropertyFilter m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.PropertyFilter.parser(), - extensionRegistry); - if (propertyFilterBuilder_ == null) { - ensurePropertyFilterIsMutable(); - propertyFilter_.add(m); - } else { - propertyFilterBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: { - input.readMessage( - getFileTypeFilterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 74: { - folderNameFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 74 - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - ensureQueryContextIsMutable(); - queryContext_.add(s); - break; - } // case 82 - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDocumentCreatorFilterIsMutable(); - documentCreatorFilter_.add(s); - break; - } // case 90 - case 96: { - isNlQuery_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 96 - case 106: { - input.readMessage( - getCustomWeightsMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 106 - case 114: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDocumentNameFilterIsMutable(); - documentNameFilter_.add(s); - break; - } // case 114 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + customPropertyFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + com.google.cloud.contentwarehouse.v1.TimeFilter m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.TimeFilter.parser(), + extensionRegistry); + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.add(m); + } else { + timeFiltersBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDocumentSchemaNamesIsMutable(); + documentSchemaNames_.add(s); + break; + } // case 50 + case 58: + { + com.google.cloud.contentwarehouse.v1.PropertyFilter m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.PropertyFilter.parser(), + extensionRegistry); + if (propertyFilterBuilder_ == null) { + ensurePropertyFilterIsMutable(); + propertyFilter_.add(m); + } else { + propertyFilterBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + input.readMessage(getFileTypeFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + folderNameFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureQueryContextIsMutable(); + queryContext_.add(s); + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDocumentCreatorFilterIsMutable(); + documentCreatorFilter_.add(s); + break; + } // case 90 + case 96: + { + isNlQuery_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 96 + case 106: + { + input.readMessage( + getCustomWeightsMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDocumentNameFilterIsMutable(); + documentNameFilter_.add(s); + 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) { @@ -1647,10 +1769,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object query_ = ""; /** + * + * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1699,13 +1824,13 @@ public Builder mergeFrom(
      * 
* * string query = 1; + * * @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; @@ -1714,6 +1839,8 @@ public java.lang.String getQuery() { } } /** + * + * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1762,15 +1889,14 @@ public java.lang.String getQuery() {
      * 
* * string query = 1; + * * @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 { @@ -1778,6 +1904,8 @@ public java.lang.String getQuery() { } } /** + * + * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1826,18 +1954,22 @@ public java.lang.String getQuery() {
      * 
* * string query = 1; + * * @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_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1886,6 +2018,7 @@ public Builder setQuery(
      * 
* * string query = 1; + * * @return This builder for chaining. */ public Builder clearQuery() { @@ -1895,6 +2028,8 @@ public Builder clearQuery() { return this; } /** + * + * *
      * The query string that matches against the full text of the document and
      * the searchable properties.
@@ -1943,12 +2078,14 @@ public Builder clearQuery() {
      * 
* * string query = 1; + * * @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_ |= 0x00000001; @@ -1956,8 +2093,10 @@ public Builder setQueryBytes( return this; } - private boolean isNlQuery_ ; + private boolean isNlQuery_; /** + * + * *
      * Experimental, do not use.
      * If the query is a natural language question. False by default. If true,
@@ -1969,6 +2108,7 @@ public Builder setQueryBytes(
      * 
* * bool is_nl_query = 12; + * * @return The isNlQuery. */ @java.lang.Override @@ -1976,6 +2116,8 @@ public boolean getIsNlQuery() { return isNlQuery_; } /** + * + * *
      * Experimental, do not use.
      * If the query is a natural language question. False by default. If true,
@@ -1987,6 +2129,7 @@ public boolean getIsNlQuery() {
      * 
* * bool is_nl_query = 12; + * * @param value The isNlQuery to set. * @return This builder for chaining. */ @@ -1998,6 +2141,8 @@ public Builder setIsNlQuery(boolean value) { return this; } /** + * + * *
      * Experimental, do not use.
      * If the query is a natural language question. False by default. If true,
@@ -2009,6 +2154,7 @@ public Builder setIsNlQuery(boolean value) {
      * 
* * bool is_nl_query = 12; + * * @return This builder for chaining. */ public Builder clearIsNlQuery() { @@ -2020,6 +2166,8 @@ public Builder clearIsNlQuery() { private java.lang.Object customPropertyFilter_ = ""; /** + * + * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -2043,15 +2191,16 @@ public Builder clearIsNlQuery() {
      * 
* * string custom_property_filter = 4 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. - * See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return The customPropertyFilter. */ - @java.lang.Deprecated public java.lang.String getCustomPropertyFilter() { + @java.lang.Deprecated + public java.lang.String getCustomPropertyFilter() { java.lang.Object ref = customPropertyFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customPropertyFilter_ = s; return s; @@ -2060,6 +2209,8 @@ public Builder clearIsNlQuery() { } } /** + * + * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -2083,17 +2234,17 @@ public Builder clearIsNlQuery() {
      * 
* * string custom_property_filter = 4 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. - * See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return The bytes for customPropertyFilter. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getCustomPropertyFilterBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getCustomPropertyFilterBytes() { java.lang.Object ref = customPropertyFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customPropertyFilter_ = b; return b; } else { @@ -2101,6 +2252,8 @@ public Builder clearIsNlQuery() { } } /** + * + * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -2124,20 +2277,25 @@ public Builder clearIsNlQuery() {
      * 
* * string custom_property_filter = 4 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. - * See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @param value The customPropertyFilter to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setCustomPropertyFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setCustomPropertyFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customPropertyFilter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -2161,17 +2319,21 @@ public Builder clearIsNlQuery() {
      * 
* * string custom_property_filter = 4 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. - * See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearCustomPropertyFilter() { + @java.lang.Deprecated + public Builder clearCustomPropertyFilter() { customPropertyFilter_ = getDefaultInstance().getCustomPropertyFilter(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** + * + * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -2195,14 +2357,17 @@ public Builder clearIsNlQuery() {
      * 
* * string custom_property_filter = 4 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. - * See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @param value The bytes for customPropertyFilter to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setCustomPropertyFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setCustomPropertyFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customPropertyFilter_ = value; bitField0_ |= 0x00000004; @@ -2211,18 +2376,25 @@ public Builder clearIsNlQuery() { } private java.util.List timeFilters_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTimeFiltersIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - timeFilters_ = new java.util.ArrayList(timeFilters_); + timeFilters_ = + new java.util.ArrayList(timeFilters_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimeFilter, com.google.cloud.contentwarehouse.v1.TimeFilter.Builder, com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder> timeFiltersBuilder_; + com.google.cloud.contentwarehouse.v1.TimeFilter, + com.google.cloud.contentwarehouse.v1.TimeFilter.Builder, + com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder> + timeFiltersBuilder_; /** + * + * *
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2238,6 +2410,8 @@ public java.util.List getTimeFi
       }
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2253,6 +2427,8 @@ public int getTimeFiltersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2268,6 +2444,8 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter getTimeFilters(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2290,6 +2468,8 @@ public Builder setTimeFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2309,6 +2489,8 @@ public Builder setTimeFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2330,6 +2512,8 @@ public Builder addTimeFilters(com.google.cloud.contentwarehouse.v1.TimeFilter va
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2352,6 +2536,8 @@ public Builder addTimeFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2371,6 +2557,8 @@ public Builder addTimeFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2390,6 +2578,8 @@ public Builder addTimeFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2401,8 +2591,7 @@ public Builder addAllTimeFilters(
         java.lang.Iterable values) {
       if (timeFiltersBuilder_ == null) {
         ensureTimeFiltersIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, timeFilters_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeFilters_);
         onChanged();
       } else {
         timeFiltersBuilder_.addAllMessages(values);
@@ -2410,6 +2599,8 @@ public Builder addAllTimeFilters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2428,6 +2619,8 @@ public Builder clearTimeFilters() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2446,6 +2639,8 @@ public Builder removeTimeFilters(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2458,6 +2653,8 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder getTimeFiltersBui
       return getTimeFiltersFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2468,11 +2665,14 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder getTimeFiltersBui
     public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder(
         int index) {
       if (timeFiltersBuilder_ == null) {
-        return timeFilters_.get(index);  } else {
+        return timeFilters_.get(index);
+      } else {
         return timeFiltersBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2480,8 +2680,8 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
      *
      * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
      */
-    public java.util.List 
-         getTimeFiltersOrBuilderList() {
+    public java.util.List
+        getTimeFiltersOrBuilderList() {
       if (timeFiltersBuilder_ != null) {
         return timeFiltersBuilder_.getMessageOrBuilderList();
       } else {
@@ -2489,6 +2689,8 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
       }
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2497,10 +2699,12 @@ public com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOr
      * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
      */
     public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder addTimeFiltersBuilder() {
-      return getTimeFiltersFieldBuilder().addBuilder(
-          com.google.cloud.contentwarehouse.v1.TimeFilter.getDefaultInstance());
+      return getTimeFiltersFieldBuilder()
+          .addBuilder(com.google.cloud.contentwarehouse.v1.TimeFilter.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2510,10 +2714,12 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder addTimeFiltersBui
      */
     public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder addTimeFiltersBuilder(
         int index) {
-      return getTimeFiltersFieldBuilder().addBuilder(
-          index, com.google.cloud.contentwarehouse.v1.TimeFilter.getDefaultInstance());
+      return getTimeFiltersFieldBuilder()
+          .addBuilder(index, com.google.cloud.contentwarehouse.v1.TimeFilter.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Documents created/updated within a range specified by this filter are
      * searched against.
@@ -2521,20 +2727,23 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder addTimeFiltersBui
      *
      * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
      */
-    public java.util.List 
-         getTimeFiltersBuilderList() {
+    public java.util.List
+        getTimeFiltersBuilderList() {
       return getTimeFiltersFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.TimeFilter, com.google.cloud.contentwarehouse.v1.TimeFilter.Builder, com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.TimeFilter,
+            com.google.cloud.contentwarehouse.v1.TimeFilter.Builder,
+            com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder>
         getTimeFiltersFieldBuilder() {
       if (timeFiltersBuilder_ == null) {
-        timeFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.TimeFilter, com.google.cloud.contentwarehouse.v1.TimeFilter.Builder, com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder>(
-                timeFilters_,
-                ((bitField0_ & 0x00000008) != 0),
-                getParentForChildren(),
-                isClean());
+        timeFiltersBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.TimeFilter,
+                com.google.cloud.contentwarehouse.v1.TimeFilter.Builder,
+                com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder>(
+                timeFilters_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
         timeFilters_ = null;
       }
       return timeFiltersBuilder_;
@@ -2542,6 +2751,7 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter.Builder addTimeFiltersBui
 
     private com.google.protobuf.LazyStringArrayList documentSchemaNames_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
+
     private void ensureDocumentSchemaNamesIsMutable() {
       if (!documentSchemaNames_.isModifiable()) {
         documentSchemaNames_ = new com.google.protobuf.LazyStringArrayList(documentSchemaNames_);
@@ -2549,6 +2759,8 @@ private void ensureDocumentSchemaNamesIsMutable() {
       bitField0_ |= 0x00000010;
     }
     /**
+     *
+     *
      * 
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2563,14 +2775,16 @@ private void ensureDocumentSchemaNamesIsMutable() {
      * 
* * repeated string document_schema_names = 6; + * * @return A list containing the documentSchemaNames. */ - public com.google.protobuf.ProtocolStringList - getDocumentSchemaNamesList() { + public com.google.protobuf.ProtocolStringList getDocumentSchemaNamesList() { documentSchemaNames_.makeImmutable(); return documentSchemaNames_; } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2585,12 +2799,15 @@ private void ensureDocumentSchemaNamesIsMutable() {
      * 
* * repeated string document_schema_names = 6; + * * @return The count of documentSchemaNames. */ public int getDocumentSchemaNamesCount() { return documentSchemaNames_.size(); } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2605,6 +2822,7 @@ public int getDocumentSchemaNamesCount() {
      * 
* * repeated string document_schema_names = 6; + * * @param index The index of the element to return. * @return The documentSchemaNames at the given index. */ @@ -2612,6 +2830,8 @@ public java.lang.String getDocumentSchemaNames(int index) { return documentSchemaNames_.get(index); } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2626,14 +2846,16 @@ public java.lang.String getDocumentSchemaNames(int index) {
      * 
* * repeated string document_schema_names = 6; + * * @param index The index of the value to return. * @return The bytes of the documentSchemaNames at the given index. */ - public com.google.protobuf.ByteString - getDocumentSchemaNamesBytes(int index) { + public com.google.protobuf.ByteString getDocumentSchemaNamesBytes(int index) { return documentSchemaNames_.getByteString(index); } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2648,13 +2870,15 @@ public java.lang.String getDocumentSchemaNames(int index) {
      * 
* * repeated string document_schema_names = 6; + * * @param index The index to set the value at. * @param value The documentSchemaNames to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentSchemaNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentSchemaNamesIsMutable(); documentSchemaNames_.set(index, value); bitField0_ |= 0x00000010; @@ -2662,6 +2886,8 @@ public Builder setDocumentSchemaNames( return this; } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2676,12 +2902,14 @@ public Builder setDocumentSchemaNames(
      * 
* * repeated string document_schema_names = 6; + * * @param value The documentSchemaNames to add. * @return This builder for chaining. */ - public Builder addDocumentSchemaNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocumentSchemaNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentSchemaNamesIsMutable(); documentSchemaNames_.add(value); bitField0_ |= 0x00000010; @@ -2689,6 +2917,8 @@ public Builder addDocumentSchemaNames( return this; } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2703,19 +2933,20 @@ public Builder addDocumentSchemaNames(
      * 
* * repeated string document_schema_names = 6; + * * @param values The documentSchemaNames to add. * @return This builder for chaining. */ - public Builder addAllDocumentSchemaNames( - java.lang.Iterable values) { + public Builder addAllDocumentSchemaNames(java.lang.Iterable values) { ensureDocumentSchemaNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, documentSchemaNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentSchemaNames_); bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2730,16 +2961,19 @@ public Builder addAllDocumentSchemaNames(
      * 
* * repeated string document_schema_names = 6; + * * @return This builder for chaining. */ public Builder clearDocumentSchemaNames() { - documentSchemaNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; + documentSchemaNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; onChanged(); return this; } /** + * + * *
      * This filter specifies the exact document schema
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -2754,12 +2988,14 @@ public Builder clearDocumentSchemaNames() {
      * 
* * repeated string document_schema_names = 6; + * * @param value The bytes of the documentSchemaNames to add. * @return This builder for chaining. */ - public Builder addDocumentSchemaNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocumentSchemaNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDocumentSchemaNamesIsMutable(); documentSchemaNames_.add(value); @@ -2769,18 +3005,26 @@ public Builder addDocumentSchemaNamesBytes( } private java.util.List propertyFilter_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePropertyFilterIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - propertyFilter_ = new java.util.ArrayList(propertyFilter_); + propertyFilter_ = + new java.util.ArrayList( + propertyFilter_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyFilter, com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder, com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder> propertyFilterBuilder_; + com.google.cloud.contentwarehouse.v1.PropertyFilter, + com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder, + com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder> + propertyFilterBuilder_; /** + * + * *
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -2789,7 +3033,8 @@ private void ensurePropertyFilterIsMutable() {
      *
      * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
      */
-    public java.util.List getPropertyFilterList() {
+    public java.util.List
+        getPropertyFilterList() {
       if (propertyFilterBuilder_ == null) {
         return java.util.Collections.unmodifiableList(propertyFilter_);
       } else {
@@ -2797,6 +3042,8 @@ public java.util.List getPr
       }
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -2813,6 +3060,8 @@ public int getPropertyFilterCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -2829,6 +3078,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter getPropertyFilter(int
       }
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -2852,6 +3103,8 @@ public Builder setPropertyFilter(
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -2872,6 +3125,8 @@ public Builder setPropertyFilter(
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -2894,6 +3149,8 @@ public Builder addPropertyFilter(com.google.cloud.contentwarehouse.v1.PropertyFi
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -2917,6 +3174,8 @@ public Builder addPropertyFilter(
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -2937,6 +3196,8 @@ public Builder addPropertyFilter(
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -2957,6 +3218,8 @@ public Builder addPropertyFilter(
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -2969,8 +3232,7 @@ public Builder addAllPropertyFilter(
         java.lang.Iterable values) {
       if (propertyFilterBuilder_ == null) {
         ensurePropertyFilterIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, propertyFilter_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyFilter_);
         onChanged();
       } else {
         propertyFilterBuilder_.addAllMessages(values);
@@ -2978,6 +3240,8 @@ public Builder addAllPropertyFilter(
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -2997,6 +3261,8 @@ public Builder clearPropertyFilter() {
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3016,6 +3282,8 @@ public Builder removePropertyFilter(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3029,6 +3297,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder getPropertyFi
       return getPropertyFilterFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3040,11 +3310,14 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder getPropertyFi
     public com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOrBuilder(
         int index) {
       if (propertyFilterBuilder_ == null) {
-        return propertyFilter_.get(index);  } else {
+        return propertyFilter_.get(index);
+      } else {
         return propertyFilterBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3053,8 +3326,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyF
      *
      * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
      */
-    public java.util.List 
-         getPropertyFilterOrBuilderList() {
+    public java.util.List
+        getPropertyFilterOrBuilderList() {
       if (propertyFilterBuilder_ != null) {
         return propertyFilterBuilder_.getMessageOrBuilderList();
       } else {
@@ -3062,6 +3335,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyF
       }
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3071,10 +3346,12 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyF
      * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
      */
     public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder addPropertyFilterBuilder() {
-      return getPropertyFilterFieldBuilder().addBuilder(
-          com.google.cloud.contentwarehouse.v1.PropertyFilter.getDefaultInstance());
+      return getPropertyFilterFieldBuilder()
+          .addBuilder(com.google.cloud.contentwarehouse.v1.PropertyFilter.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3085,10 +3362,13 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder addPropertyFi
      */
     public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder addPropertyFilterBuilder(
         int index) {
-      return getPropertyFilterFieldBuilder().addBuilder(
-          index, com.google.cloud.contentwarehouse.v1.PropertyFilter.getDefaultInstance());
+      return getPropertyFilterFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.contentwarehouse.v1.PropertyFilter.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * This filter specifies a structured syntax to match against the
      * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -3097,16 +3377,22 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder addPropertyFi
      *
      * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
      */
-    public java.util.List 
-         getPropertyFilterBuilderList() {
+    public java.util.List
+        getPropertyFilterBuilderList() {
       return getPropertyFilterFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.PropertyFilter, com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder, com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.PropertyFilter,
+            com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder,
+            com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder>
         getPropertyFilterFieldBuilder() {
       if (propertyFilterBuilder_ == null) {
-        propertyFilterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.PropertyFilter, com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder, com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder>(
+        propertyFilterBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.PropertyFilter,
+                com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder,
+                com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder>(
                 propertyFilter_,
                 ((bitField0_ & 0x00000020) != 0),
                 getParentForChildren(),
@@ -3118,8 +3404,13 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder addPropertyFi
 
     private com.google.cloud.contentwarehouse.v1.FileTypeFilter fileTypeFilter_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.FileTypeFilter, com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder, com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder> fileTypeFilterBuilder_;
+            com.google.cloud.contentwarehouse.v1.FileTypeFilter,
+            com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder,
+            com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder>
+        fileTypeFilterBuilder_;
     /**
+     *
+     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3130,12 +3421,15 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder addPropertyFi
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8; + * * @return Whether the fileTypeFilter field is set. */ public boolean hasFileTypeFilter() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3146,16 +3440,21 @@ public boolean hasFileTypeFilter() {
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8; + * * @return The fileTypeFilter. */ public com.google.cloud.contentwarehouse.v1.FileTypeFilter getFileTypeFilter() { if (fileTypeFilterBuilder_ == null) { - return fileTypeFilter_ == null ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance() : fileTypeFilter_; + return fileTypeFilter_ == null + ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance() + : fileTypeFilter_; } else { return fileTypeFilterBuilder_.getMessage(); } } /** + * + * *
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3181,6 +3480,8 @@ public Builder setFileTypeFilter(com.google.cloud.contentwarehouse.v1.FileTypeFi
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3204,6 +3505,8 @@ public Builder setFileTypeFilter(
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3217,9 +3520,10 @@ public Builder setFileTypeFilter(
      */
     public Builder mergeFileTypeFilter(com.google.cloud.contentwarehouse.v1.FileTypeFilter value) {
       if (fileTypeFilterBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0) &&
-          fileTypeFilter_ != null &&
-          fileTypeFilter_ != com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0)
+            && fileTypeFilter_ != null
+            && fileTypeFilter_
+                != com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance()) {
           getFileTypeFilterBuilder().mergeFrom(value);
         } else {
           fileTypeFilter_ = value;
@@ -3232,6 +3536,8 @@ public Builder mergeFileTypeFilter(com.google.cloud.contentwarehouse.v1.FileType
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3254,6 +3560,8 @@ public Builder clearFileTypeFilter() {
       return this;
     }
     /**
+     *
+     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3271,6 +3579,8 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder getFileTypeFi
       return getFileTypeFilterFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3282,15 +3592,19 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder getFileTypeFi
      *
      * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8;
      */
-    public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeFilterOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder
+        getFileTypeFilterOrBuilder() {
       if (fileTypeFilterBuilder_ != null) {
         return fileTypeFilterBuilder_.getMessageOrBuilder();
       } else {
-        return fileTypeFilter_ == null ?
-            com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance() : fileTypeFilter_;
+        return fileTypeFilter_ == null
+            ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance()
+            : fileTypeFilter_;
       }
     }
     /**
+     *
+     *
      * 
      * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
      * If FOLDER or FILE is specified, then only either folders or files will be
@@ -3303,14 +3617,17 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeF
      * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.FileTypeFilter, com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder, com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.FileTypeFilter,
+            com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder,
+            com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder>
         getFileTypeFilterFieldBuilder() {
       if (fileTypeFilterBuilder_ == null) {
-        fileTypeFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.FileTypeFilter, com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder, com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder>(
-                getFileTypeFilter(),
-                getParentForChildren(),
-                isClean());
+        fileTypeFilterBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.FileTypeFilter,
+                com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder,
+                com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder>(
+                getFileTypeFilter(), getParentForChildren(), isClean());
         fileTypeFilter_ = null;
       }
       return fileTypeFilterBuilder_;
@@ -3318,6 +3635,8 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeF
 
     private java.lang.Object folderNameFilter_ = "";
     /**
+     *
+     *
      * 
      * Search all the documents under this specified folder.
      * Format:
@@ -3325,13 +3644,13 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeF
      * 
* * string folder_name_filter = 9; + * * @return The folderNameFilter. */ public java.lang.String getFolderNameFilter() { java.lang.Object ref = folderNameFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderNameFilter_ = s; return s; @@ -3340,6 +3659,8 @@ public java.lang.String getFolderNameFilter() { } } /** + * + * *
      * Search all the documents under this specified folder.
      * Format:
@@ -3347,15 +3668,14 @@ public java.lang.String getFolderNameFilter() {
      * 
* * string folder_name_filter = 9; + * * @return The bytes for folderNameFilter. */ - public com.google.protobuf.ByteString - getFolderNameFilterBytes() { + public com.google.protobuf.ByteString getFolderNameFilterBytes() { java.lang.Object ref = folderNameFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); folderNameFilter_ = b; return b; } else { @@ -3363,6 +3683,8 @@ public java.lang.String getFolderNameFilter() { } } /** + * + * *
      * Search all the documents under this specified folder.
      * Format:
@@ -3370,18 +3692,22 @@ public java.lang.String getFolderNameFilter() {
      * 
* * string folder_name_filter = 9; + * * @param value The folderNameFilter to set. * @return This builder for chaining. */ - public Builder setFolderNameFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFolderNameFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } folderNameFilter_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * Search all the documents under this specified folder.
      * Format:
@@ -3389,6 +3715,7 @@ public Builder setFolderNameFilter(
      * 
* * string folder_name_filter = 9; + * * @return This builder for chaining. */ public Builder clearFolderNameFilter() { @@ -3398,6 +3725,8 @@ public Builder clearFolderNameFilter() { return this; } /** + * + * *
      * Search all the documents under this specified folder.
      * Format:
@@ -3405,12 +3734,14 @@ public Builder clearFolderNameFilter() {
      * 
* * string folder_name_filter = 9; + * * @param value The bytes for folderNameFilter to set. * @return This builder for chaining. */ - public Builder setFolderNameFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFolderNameFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); folderNameFilter_ = value; bitField0_ |= 0x00000080; @@ -3420,6 +3751,7 @@ public Builder setFolderNameFilterBytes( private com.google.protobuf.LazyStringArrayList documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDocumentNameFilterIsMutable() { if (!documentNameFilter_.isModifiable()) { documentNameFilter_ = new com.google.protobuf.LazyStringArrayList(documentNameFilter_); @@ -3427,6 +3759,8 @@ private void ensureDocumentNameFilterIsMutable() { bitField0_ |= 0x00000100; } /** + * + * *
      * Search the documents in the list.
      * Format:
@@ -3434,14 +3768,16 @@ private void ensureDocumentNameFilterIsMutable() {
      * 
* * repeated string document_name_filter = 14; + * * @return A list containing the documentNameFilter. */ - public com.google.protobuf.ProtocolStringList - getDocumentNameFilterList() { + public com.google.protobuf.ProtocolStringList getDocumentNameFilterList() { documentNameFilter_.makeImmutable(); return documentNameFilter_; } /** + * + * *
      * Search the documents in the list.
      * Format:
@@ -3449,12 +3785,15 @@ private void ensureDocumentNameFilterIsMutable() {
      * 
* * repeated string document_name_filter = 14; + * * @return The count of documentNameFilter. */ public int getDocumentNameFilterCount() { return documentNameFilter_.size(); } /** + * + * *
      * Search the documents in the list.
      * Format:
@@ -3462,6 +3801,7 @@ public int getDocumentNameFilterCount() {
      * 
* * repeated string document_name_filter = 14; + * * @param index The index of the element to return. * @return The documentNameFilter at the given index. */ @@ -3469,6 +3809,8 @@ public java.lang.String getDocumentNameFilter(int index) { return documentNameFilter_.get(index); } /** + * + * *
      * Search the documents in the list.
      * Format:
@@ -3476,14 +3818,16 @@ public java.lang.String getDocumentNameFilter(int index) {
      * 
* * repeated string document_name_filter = 14; + * * @param index The index of the value to return. * @return The bytes of the documentNameFilter at the given index. */ - public com.google.protobuf.ByteString - getDocumentNameFilterBytes(int index) { + public com.google.protobuf.ByteString getDocumentNameFilterBytes(int index) { return documentNameFilter_.getByteString(index); } /** + * + * *
      * Search the documents in the list.
      * Format:
@@ -3491,13 +3835,15 @@ public java.lang.String getDocumentNameFilter(int index) {
      * 
* * repeated string document_name_filter = 14; + * * @param index The index to set the value at. * @param value The documentNameFilter to set. * @return This builder for chaining. */ - public Builder setDocumentNameFilter( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentNameFilter(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentNameFilterIsMutable(); documentNameFilter_.set(index, value); bitField0_ |= 0x00000100; @@ -3505,6 +3851,8 @@ public Builder setDocumentNameFilter( return this; } /** + * + * *
      * Search the documents in the list.
      * Format:
@@ -3512,12 +3860,14 @@ public Builder setDocumentNameFilter(
      * 
* * repeated string document_name_filter = 14; + * * @param value The documentNameFilter to add. * @return This builder for chaining. */ - public Builder addDocumentNameFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocumentNameFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentNameFilterIsMutable(); documentNameFilter_.add(value); bitField0_ |= 0x00000100; @@ -3525,6 +3875,8 @@ public Builder addDocumentNameFilter( return this; } /** + * + * *
      * Search the documents in the list.
      * Format:
@@ -3532,19 +3884,20 @@ public Builder addDocumentNameFilter(
      * 
* * repeated string document_name_filter = 14; + * * @param values The documentNameFilter to add. * @return This builder for chaining. */ - public Builder addAllDocumentNameFilter( - java.lang.Iterable values) { + public Builder addAllDocumentNameFilter(java.lang.Iterable values) { ensureDocumentNameFilterIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, documentNameFilter_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentNameFilter_); bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Search the documents in the list.
      * Format:
@@ -3552,16 +3905,19 @@ public Builder addAllDocumentNameFilter(
      * 
* * repeated string document_name_filter = 14; + * * @return This builder for chaining. */ public Builder clearDocumentNameFilter() { - documentNameFilter_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100);; + documentNameFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; onChanged(); return this; } /** + * + * *
      * Search the documents in the list.
      * Format:
@@ -3569,12 +3925,14 @@ public Builder clearDocumentNameFilter() {
      * 
* * repeated string document_name_filter = 14; + * * @param value The bytes of the documentNameFilter to add. * @return This builder for chaining. */ - public Builder addDocumentNameFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocumentNameFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDocumentNameFilterIsMutable(); documentNameFilter_.add(value); @@ -3585,6 +3943,7 @@ public Builder addDocumentNameFilterBytes( private com.google.protobuf.LazyStringArrayList queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureQueryContextIsMutable() { if (!queryContext_.isModifiable()) { queryContext_ = new com.google.protobuf.LazyStringArrayList(queryContext_); @@ -3592,6 +3951,8 @@ private void ensureQueryContextIsMutable() { bitField0_ |= 0x00000200; } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3603,14 +3964,16 @@ private void ensureQueryContextIsMutable() {
      * 
* * repeated string query_context = 10; + * * @return A list containing the queryContext. */ - public com.google.protobuf.ProtocolStringList - getQueryContextList() { + public com.google.protobuf.ProtocolStringList getQueryContextList() { queryContext_.makeImmutable(); return queryContext_; } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3622,12 +3985,15 @@ private void ensureQueryContextIsMutable() {
      * 
* * repeated string query_context = 10; + * * @return The count of queryContext. */ public int getQueryContextCount() { return queryContext_.size(); } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3639,6 +4005,7 @@ public int getQueryContextCount() {
      * 
* * repeated string query_context = 10; + * * @param index The index of the element to return. * @return The queryContext at the given index. */ @@ -3646,6 +4013,8 @@ public java.lang.String getQueryContext(int index) { return queryContext_.get(index); } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3657,14 +4026,16 @@ public java.lang.String getQueryContext(int index) {
      * 
* * repeated string query_context = 10; + * * @param index The index of the value to return. * @return The bytes of the queryContext at the given index. */ - public com.google.protobuf.ByteString - getQueryContextBytes(int index) { + public com.google.protobuf.ByteString getQueryContextBytes(int index) { return queryContext_.getByteString(index); } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3676,13 +4047,15 @@ public java.lang.String getQueryContext(int index) {
      * 
* * repeated string query_context = 10; + * * @param index The index to set the value at. * @param value The queryContext to set. * @return This builder for chaining. */ - public Builder setQueryContext( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQueryContext(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureQueryContextIsMutable(); queryContext_.set(index, value); bitField0_ |= 0x00000200; @@ -3690,6 +4063,8 @@ public Builder setQueryContext( return this; } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3701,12 +4076,14 @@ public Builder setQueryContext(
      * 
* * repeated string query_context = 10; + * * @param value The queryContext to add. * @return This builder for chaining. */ - public Builder addQueryContext( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addQueryContext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureQueryContextIsMutable(); queryContext_.add(value); bitField0_ |= 0x00000200; @@ -3714,6 +4091,8 @@ public Builder addQueryContext( return this; } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3725,19 +4104,20 @@ public Builder addQueryContext(
      * 
* * repeated string query_context = 10; + * * @param values The queryContext to add. * @return This builder for chaining. */ - public Builder addAllQueryContext( - java.lang.Iterable values) { + public Builder addAllQueryContext(java.lang.Iterable values) { ensureQueryContextIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, queryContext_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queryContext_); bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3749,16 +4129,19 @@ public Builder addAllQueryContext(
      * 
* * repeated string query_context = 10; + * * @return This builder for chaining. */ public Builder clearQueryContext() { - queryContext_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200);; + queryContext_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; onChanged(); return this; } /** + * + * *
      * For custom synonyms.
      * Customers provide the synonyms based on context. One customer can provide
@@ -3770,12 +4153,14 @@ public Builder clearQueryContext() {
      * 
* * repeated string query_context = 10; + * * @param value The bytes of the queryContext to add. * @return This builder for chaining. */ - public Builder addQueryContextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addQueryContextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureQueryContextIsMutable(); queryContext_.add(value); @@ -3786,13 +4171,17 @@ public Builder addQueryContextBytes( private com.google.protobuf.LazyStringArrayList documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDocumentCreatorFilterIsMutable() { if (!documentCreatorFilter_.isModifiable()) { - documentCreatorFilter_ = new com.google.protobuf.LazyStringArrayList(documentCreatorFilter_); + documentCreatorFilter_ = + new com.google.protobuf.LazyStringArrayList(documentCreatorFilter_); } bitField0_ |= 0x00000400; } /** + * + * *
      * The exact creator(s) of the documents to search against.
      *
@@ -3803,14 +4192,16 @@ private void ensureDocumentCreatorFilterIsMutable() {
      * 
* * repeated string document_creator_filter = 11; + * * @return A list containing the documentCreatorFilter. */ - public com.google.protobuf.ProtocolStringList - getDocumentCreatorFilterList() { + public com.google.protobuf.ProtocolStringList getDocumentCreatorFilterList() { documentCreatorFilter_.makeImmutable(); return documentCreatorFilter_; } /** + * + * *
      * The exact creator(s) of the documents to search against.
      *
@@ -3821,12 +4212,15 @@ private void ensureDocumentCreatorFilterIsMutable() {
      * 
* * repeated string document_creator_filter = 11; + * * @return The count of documentCreatorFilter. */ public int getDocumentCreatorFilterCount() { return documentCreatorFilter_.size(); } /** + * + * *
      * The exact creator(s) of the documents to search against.
      *
@@ -3837,6 +4231,7 @@ public int getDocumentCreatorFilterCount() {
      * 
* * repeated string document_creator_filter = 11; + * * @param index The index of the element to return. * @return The documentCreatorFilter at the given index. */ @@ -3844,6 +4239,8 @@ public java.lang.String getDocumentCreatorFilter(int index) { return documentCreatorFilter_.get(index); } /** + * + * *
      * The exact creator(s) of the documents to search against.
      *
@@ -3854,14 +4251,16 @@ public java.lang.String getDocumentCreatorFilter(int index) {
      * 
* * repeated string document_creator_filter = 11; + * * @param index The index of the value to return. * @return The bytes of the documentCreatorFilter at the given index. */ - public com.google.protobuf.ByteString - getDocumentCreatorFilterBytes(int index) { + public com.google.protobuf.ByteString getDocumentCreatorFilterBytes(int index) { return documentCreatorFilter_.getByteString(index); } /** + * + * *
      * The exact creator(s) of the documents to search against.
      *
@@ -3872,13 +4271,15 @@ public java.lang.String getDocumentCreatorFilter(int index) {
      * 
* * repeated string document_creator_filter = 11; + * * @param index The index to set the value at. * @param value The documentCreatorFilter to set. * @return This builder for chaining. */ - public Builder setDocumentCreatorFilter( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentCreatorFilter(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentCreatorFilterIsMutable(); documentCreatorFilter_.set(index, value); bitField0_ |= 0x00000400; @@ -3886,6 +4287,8 @@ public Builder setDocumentCreatorFilter( return this; } /** + * + * *
      * The exact creator(s) of the documents to search against.
      *
@@ -3896,12 +4299,14 @@ public Builder setDocumentCreatorFilter(
      * 
* * repeated string document_creator_filter = 11; + * * @param value The documentCreatorFilter to add. * @return This builder for chaining. */ - public Builder addDocumentCreatorFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocumentCreatorFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentCreatorFilterIsMutable(); documentCreatorFilter_.add(value); bitField0_ |= 0x00000400; @@ -3909,6 +4314,8 @@ public Builder addDocumentCreatorFilter( return this; } /** + * + * *
      * The exact creator(s) of the documents to search against.
      *
@@ -3919,19 +4326,20 @@ public Builder addDocumentCreatorFilter(
      * 
* * repeated string document_creator_filter = 11; + * * @param values The documentCreatorFilter to add. * @return This builder for chaining. */ - public Builder addAllDocumentCreatorFilter( - java.lang.Iterable values) { + public Builder addAllDocumentCreatorFilter(java.lang.Iterable values) { ensureDocumentCreatorFilterIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, documentCreatorFilter_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentCreatorFilter_); bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * The exact creator(s) of the documents to search against.
      *
@@ -3942,16 +4350,19 @@ public Builder addAllDocumentCreatorFilter(
      * 
* * repeated string document_creator_filter = 11; + * * @return This builder for chaining. */ public Builder clearDocumentCreatorFilter() { - documentCreatorFilter_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400);; + documentCreatorFilter_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + ; onChanged(); return this; } /** + * + * *
      * The exact creator(s) of the documents to search against.
      *
@@ -3962,12 +4373,14 @@ public Builder clearDocumentCreatorFilter() {
      * 
* * repeated string document_creator_filter = 11; + * * @param value The bytes of the documentCreatorFilter to add. * @return This builder for chaining. */ - public Builder addDocumentCreatorFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocumentCreatorFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDocumentCreatorFilterIsMutable(); documentCreatorFilter_.add(value); @@ -3978,8 +4391,13 @@ public Builder addDocumentCreatorFilterBytes( private com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata customWeightsMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder> customWeightsMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata, + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder, + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder> + customWeightsMetadataBuilder_; /** + * + * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -3988,13 +4406,17 @@ public Builder addDocumentCreatorFilterBytes(
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * + * * @return Whether the customWeightsMetadata field is set. */ public boolean hasCustomWeightsMetadata() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4003,17 +4425,23 @@ public boolean hasCustomWeightsMetadata() {
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * + * * @return The customWeightsMetadata. */ public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getCustomWeightsMetadata() { if (customWeightsMetadataBuilder_ == null) { - return customWeightsMetadata_ == null ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() : customWeightsMetadata_; + return customWeightsMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() + : customWeightsMetadata_; } else { return customWeightsMetadataBuilder_.getMessage(); } } /** + * + * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4022,9 +4450,11 @@ public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getCustomWeigh
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * */ - public Builder setCustomWeightsMetadata(com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata value) { + public Builder setCustomWeightsMetadata( + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata value) { if (customWeightsMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4038,6 +4468,8 @@ public Builder setCustomWeightsMetadata(com.google.cloud.contentwarehouse.v1.Cus return this; } /** + * + * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4046,7 +4478,8 @@ public Builder setCustomWeightsMetadata(com.google.cloud.contentwarehouse.v1.Cus
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * */ public Builder setCustomWeightsMetadata( com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder builderForValue) { @@ -4060,6 +4493,8 @@ public Builder setCustomWeightsMetadata( return this; } /** + * + * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4068,13 +4503,17 @@ public Builder setCustomWeightsMetadata(
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * */ - public Builder mergeCustomWeightsMetadata(com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata value) { + public Builder mergeCustomWeightsMetadata( + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata value) { if (customWeightsMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - customWeightsMetadata_ != null && - customWeightsMetadata_ != com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && customWeightsMetadata_ != null + && customWeightsMetadata_ + != com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata + .getDefaultInstance()) { getCustomWeightsMetadataBuilder().mergeFrom(value); } else { customWeightsMetadata_ = value; @@ -4087,6 +4526,8 @@ public Builder mergeCustomWeightsMetadata(com.google.cloud.contentwarehouse.v1.C return this; } /** + * + * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4095,7 +4536,8 @@ public Builder mergeCustomWeightsMetadata(com.google.cloud.contentwarehouse.v1.C
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * */ public Builder clearCustomWeightsMetadata() { bitField0_ = (bitField0_ & ~0x00000800); @@ -4108,6 +4550,8 @@ public Builder clearCustomWeightsMetadata() { return this; } /** + * + * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4116,14 +4560,18 @@ public Builder clearCustomWeightsMetadata() {
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * */ - public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder getCustomWeightsMetadataBuilder() { + public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder + getCustomWeightsMetadataBuilder() { bitField0_ |= 0x00000800; onChanged(); return getCustomWeightsMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4132,17 +4580,22 @@ public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder getCus
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * */ - public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder getCustomWeightsMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder + getCustomWeightsMetadataOrBuilder() { if (customWeightsMetadataBuilder_ != null) { return customWeightsMetadataBuilder_.getMessageOrBuilder(); } else { - return customWeightsMetadata_ == null ? - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() : customWeightsMetadata_; + return customWeightsMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.getDefaultInstance() + : customWeightsMetadata_; } } /** + * + * *
      * To support the custom weighting across document schemas, customers need to
      * provide the properties to be used to boost the ranking in the search
@@ -4151,24 +4604,28 @@ public com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder getCu
      * be honored.
      * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder> + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata, + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder, + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder> getCustomWeightsMetadataFieldBuilder() { if (customWeightsMetadataBuilder_ == null) { - customWeightsMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder, com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder>( - getCustomWeightsMetadata(), - getParentForChildren(), - isClean()); + customWeightsMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata, + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata.Builder, + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder>( + getCustomWeightsMetadata(), getParentForChildren(), isClean()); customWeightsMetadata_ = null; } return customWeightsMetadataBuilder_; } + @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); } @@ -4178,12 +4635,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DocumentQuery) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DocumentQuery) private static final com.google.cloud.contentwarehouse.v1.DocumentQuery DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DocumentQuery(); } @@ -4192,27 +4649,27 @@ public static com.google.cloud.contentwarehouse.v1.DocumentQuery getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DocumentQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4227,6 +4684,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DocumentQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java similarity index 90% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java index 3a128c4e45fd..d17479994c71 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentQueryOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -public interface DocumentQueryOrBuilder extends +public interface DocumentQueryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DocumentQuery) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The query string that matches against the full text of the document and
    * the searchable properties.
@@ -56,10 +74,13 @@ public interface DocumentQueryOrBuilder extends
    * 
* * string query = 1; + * * @return The query. */ java.lang.String getQuery(); /** + * + * *
    * The query string that matches against the full text of the document and
    * the searchable properties.
@@ -108,12 +129,14 @@ public interface DocumentQueryOrBuilder extends
    * 
* * string query = 1; + * * @return The bytes for query. */ - com.google.protobuf.ByteString - getQueryBytes(); + com.google.protobuf.ByteString getQueryBytes(); /** + * + * *
    * Experimental, do not use.
    * If the query is a natural language question. False by default. If true,
@@ -125,11 +148,14 @@ public interface DocumentQueryOrBuilder extends
    * 
* * bool is_nl_query = 12; + * * @return The isNlQuery. */ boolean getIsNlQuery(); /** + * + * *
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -153,12 +179,16 @@ public interface DocumentQueryOrBuilder extends
    * 
* * string custom_property_filter = 4 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. - * See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return The customPropertyFilter. */ - @java.lang.Deprecated java.lang.String getCustomPropertyFilter(); + @java.lang.Deprecated + java.lang.String getCustomPropertyFilter(); /** + * + * *
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for
@@ -182,14 +212,17 @@ public interface DocumentQueryOrBuilder extends
    * 
* * string custom_property_filter = 4 [deprecated = true]; - * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. - * See google/cloud/contentwarehouse/v1/filters.proto;l=104 + * + * @deprecated google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is + * deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104 * @return The bytes for customPropertyFilter. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getCustomPropertyFilterBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getCustomPropertyFilterBytes(); /** + * + * *
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -197,9 +230,10 @@ public interface DocumentQueryOrBuilder extends
    *
    * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
    */
-  java.util.List 
-      getTimeFiltersList();
+  java.util.List getTimeFiltersList();
   /**
+   *
+   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -209,6 +243,8 @@ public interface DocumentQueryOrBuilder extends
    */
   com.google.cloud.contentwarehouse.v1.TimeFilter getTimeFilters(int index);
   /**
+   *
+   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -218,6 +254,8 @@ public interface DocumentQueryOrBuilder extends
    */
   int getTimeFiltersCount();
   /**
+   *
+   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -225,9 +263,11 @@ public interface DocumentQueryOrBuilder extends
    *
    * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
    */
-  java.util.List 
+  java.util.List
       getTimeFiltersOrBuilderList();
   /**
+   *
+   *
    * 
    * Documents created/updated within a range specified by this filter are
    * searched against.
@@ -235,10 +275,11 @@ public interface DocumentQueryOrBuilder extends
    *
    * repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;
    */
-  com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder(
-      int index);
+  com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -253,11 +294,13 @@ com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder
    * 
* * repeated string document_schema_names = 6; + * * @return A list containing the documentSchemaNames. */ - java.util.List - getDocumentSchemaNamesList(); + java.util.List getDocumentSchemaNamesList(); /** + * + * *
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -272,10 +315,13 @@ com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder
    * 
* * repeated string document_schema_names = 6; + * * @return The count of documentSchemaNames. */ int getDocumentSchemaNamesCount(); /** + * + * *
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -290,11 +336,14 @@ com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder
    * 
* * repeated string document_schema_names = 6; + * * @param index The index of the element to return. * @return The documentSchemaNames at the given index. */ java.lang.String getDocumentSchemaNames(int index); /** + * + * *
    * This filter specifies the exact document schema
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -309,13 +358,15 @@ com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder
    * 
* * repeated string document_schema_names = 6; + * * @param index The index of the value to return. * @return The bytes of the documentSchemaNames at the given index. */ - com.google.protobuf.ByteString - getDocumentSchemaNamesBytes(int index); + com.google.protobuf.ByteString getDocumentSchemaNamesBytes(int index); /** + * + * *
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -324,9 +375,10 @@ com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder
    *
    * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
    */
-  java.util.List 
-      getPropertyFilterList();
+  java.util.List getPropertyFilterList();
   /**
+   *
+   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -337,6 +389,8 @@ com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder
    */
   com.google.cloud.contentwarehouse.v1.PropertyFilter getPropertyFilter(int index);
   /**
+   *
+   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -347,6 +401,8 @@ com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder
    */
   int getPropertyFilterCount();
   /**
+   *
+   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -355,9 +411,11 @@ com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder getTimeFiltersOrBuilder
    *
    * repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;
    */
-  java.util.List 
+  java.util.List
       getPropertyFilterOrBuilderList();
   /**
+   *
+   *
    * 
    * This filter specifies a structured syntax to match against the
    * [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]
@@ -370,6 +428,8 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
       int index);
 
   /**
+   *
+   *
    * 
    * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
    * If FOLDER or FILE is specified, then only either folders or files will be
@@ -380,10 +440,13 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8; + * * @return Whether the fileTypeFilter field is set. */ boolean hasFileTypeFilter(); /** + * + * *
    * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
    * If FOLDER or FILE is specified, then only either folders or files will be
@@ -394,10 +457,13 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8; + * * @return The fileTypeFilter. */ com.google.cloud.contentwarehouse.v1.FileTypeFilter getFileTypeFilter(); /** + * + * *
    * This filter specifies the types of files to return: ALL, FOLDER, or FILE.
    * If FOLDER or FILE is specified, then only either folders or files will be
@@ -412,6 +478,8 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
   com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder getFileTypeFilterOrBuilder();
 
   /**
+   *
+   *
    * 
    * Search all the documents under this specified folder.
    * Format:
@@ -419,10 +487,13 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * string folder_name_filter = 9; + * * @return The folderNameFilter. */ java.lang.String getFolderNameFilter(); /** + * + * *
    * Search all the documents under this specified folder.
    * Format:
@@ -430,12 +501,14 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * string folder_name_filter = 9; + * * @return The bytes for folderNameFilter. */ - com.google.protobuf.ByteString - getFolderNameFilterBytes(); + com.google.protobuf.ByteString getFolderNameFilterBytes(); /** + * + * *
    * Search the documents in the list.
    * Format:
@@ -443,11 +516,13 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_name_filter = 14; + * * @return A list containing the documentNameFilter. */ - java.util.List - getDocumentNameFilterList(); + java.util.List getDocumentNameFilterList(); /** + * + * *
    * Search the documents in the list.
    * Format:
@@ -455,10 +530,13 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_name_filter = 14; + * * @return The count of documentNameFilter. */ int getDocumentNameFilterCount(); /** + * + * *
    * Search the documents in the list.
    * Format:
@@ -466,11 +544,14 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_name_filter = 14; + * * @param index The index of the element to return. * @return The documentNameFilter at the given index. */ java.lang.String getDocumentNameFilter(int index); /** + * + * *
    * Search the documents in the list.
    * Format:
@@ -478,13 +559,15 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_name_filter = 14; + * * @param index The index of the value to return. * @return The bytes of the documentNameFilter at the given index. */ - com.google.protobuf.ByteString - getDocumentNameFilterBytes(int index); + com.google.protobuf.ByteString getDocumentNameFilterBytes(int index); /** + * + * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -496,11 +579,13 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string query_context = 10; + * * @return A list containing the queryContext. */ - java.util.List - getQueryContextList(); + java.util.List getQueryContextList(); /** + * + * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -512,10 +597,13 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string query_context = 10; + * * @return The count of queryContext. */ int getQueryContextCount(); /** + * + * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -527,11 +615,14 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string query_context = 10; + * * @param index The index of the element to return. * @return The queryContext at the given index. */ java.lang.String getQueryContext(int index); /** + * + * *
    * For custom synonyms.
    * Customers provide the synonyms based on context. One customer can provide
@@ -543,13 +634,15 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string query_context = 10; + * * @param index The index of the value to return. * @return The bytes of the queryContext at the given index. */ - com.google.protobuf.ByteString - getQueryContextBytes(int index); + com.google.protobuf.ByteString getQueryContextBytes(int index); /** + * + * *
    * The exact creator(s) of the documents to search against.
    *
@@ -560,11 +653,13 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_creator_filter = 11; + * * @return A list containing the documentCreatorFilter. */ - java.util.List - getDocumentCreatorFilterList(); + java.util.List getDocumentCreatorFilterList(); /** + * + * *
    * The exact creator(s) of the documents to search against.
    *
@@ -575,10 +670,13 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_creator_filter = 11; + * * @return The count of documentCreatorFilter. */ int getDocumentCreatorFilterCount(); /** + * + * *
    * The exact creator(s) of the documents to search against.
    *
@@ -589,11 +687,14 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_creator_filter = 11; + * * @param index The index of the element to return. * @return The documentCreatorFilter at the given index. */ java.lang.String getDocumentCreatorFilter(int index); /** + * + * *
    * The exact creator(s) of the documents to search against.
    *
@@ -604,13 +705,15 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * 
* * repeated string document_creator_filter = 11; + * * @param index The index of the value to return. * @return The bytes of the documentCreatorFilter at the given index. */ - com.google.protobuf.ByteString - getDocumentCreatorFilterBytes(int index); + com.google.protobuf.ByteString getDocumentCreatorFilterBytes(int index); /** + * + * *
    * To support the custom weighting across document schemas, customers need to
    * provide the properties to be used to boost the ranking in the search
@@ -619,11 +722,15 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * be honored.
    * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * + * * @return Whether the customWeightsMetadata field is set. */ boolean hasCustomWeightsMetadata(); /** + * + * *
    * To support the custom weighting across document schemas, customers need to
    * provide the properties to be used to boost the ranking in the search
@@ -632,11 +739,15 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * be honored.
    * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * + * * @return The customWeightsMetadata. */ com.google.cloud.contentwarehouse.v1.CustomWeightsMetadata getCustomWeightsMetadata(); /** + * + * *
    * To support the custom weighting across document schemas, customers need to
    * provide the properties to be used to boost the ranking in the search
@@ -645,7 +756,9 @@ com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder getPropertyFilterOr
    * be honored.
    * 
* - * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * .google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13; + * */ - com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder getCustomWeightsMetadataOrBuilder(); + com.google.cloud.contentwarehouse.v1.CustomWeightsMetadataOrBuilder + getCustomWeightsMetadataOrBuilder(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java similarity index 67% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java index f9c2a492d25f..8a61da56b7e3 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReference.java @@ -1,24 +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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * References to the documents.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentReference} */ -public final class DocumentReference extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentReference extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DocumentReference) DocumentReferenceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentReference.newBuilder() to construct. private DocumentReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentReference() { documentName_ = ""; displayName_ = ""; @@ -27,33 +45,40 @@ private DocumentReference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentReference(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentReference.class, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentReference.class, + com.google.cloud.contentwarehouse.v1.DocumentReference.Builder.class); } public static final int DOCUMENT_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object documentName_ = ""; /** + * + * *
    * Required. Name of the referenced document.
    * 
* - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The documentName. */ @java.lang.Override @@ -62,29 +87,31 @@ public java.lang.String getDocumentName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentName_ = s; return s; } } /** + * + * *
    * Required. Name of the referenced document.
    * 
* - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for documentName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDocumentNameBytes() { + public com.google.protobuf.ByteString getDocumentNameBytes() { java.lang.Object ref = documentName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentName_ = b; return b; } else { @@ -93,9 +120,12 @@ public java.lang.String getDocumentName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * display_name of the referenced document; this name does not need to be
    * consistent to the display_name in the Document proto, depending on the ACL
@@ -103,6 +133,7 @@ public java.lang.String getDocumentName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -111,14 +142,15 @@ 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; } } /** + * + * *
    * display_name of the referenced document; this name does not need to be
    * consistent to the display_name in the Document proto, depending on the ACL
@@ -126,16 +158,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; + * * @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 { @@ -144,9 +175,12 @@ public java.lang.String getDisplayName() { } public static final int SNIPPET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object snippet_ = ""; /** + * + * *
    * Stores the subset of the referenced document's content.
    * This is useful to allow user peek the information of the referenced
@@ -154,6 +188,7 @@ public java.lang.String getDisplayName() {
    * 
* * string snippet = 3; + * * @return The snippet. */ @java.lang.Override @@ -162,14 +197,15 @@ public java.lang.String getSnippet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snippet_ = s; return s; } } /** + * + * *
    * Stores the subset of the referenced document's content.
    * This is useful to allow user peek the information of the referenced
@@ -177,16 +213,15 @@ public java.lang.String getSnippet() {
    * 
* * string snippet = 3; + * * @return The bytes for snippet. */ @java.lang.Override - public com.google.protobuf.ByteString - getSnippetBytes() { + public com.google.protobuf.ByteString getSnippetBytes() { java.lang.Object ref = snippet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); snippet_ = b; return b; } else { @@ -197,11 +232,14 @@ public java.lang.String getSnippet() { public static final int DOCUMENT_IS_FOLDER_FIELD_NUMBER = 4; private boolean documentIsFolder_ = false; /** + * + * *
    * The document type of the document being referenced.
    * 
* * bool document_is_folder = 4; + * * @return The documentIsFolder. */ @java.lang.Override @@ -212,11 +250,15 @@ public boolean getDocumentIsFolder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -224,11 +266,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -236,11 +282,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -250,11 +299,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -262,11 +315,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -274,11 +331,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -288,11 +348,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The time when the document is deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -300,11 +364,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The time when the document is deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -312,11 +380,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The time when the document is deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -326,11 +397,14 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int DOCUMENT_IS_RETENTION_FOLDER_FIELD_NUMBER = 8; private boolean documentIsRetentionFolder_ = false; /** + * + * *
    * Document is a folder with retention policy.
    * 
* * bool document_is_retention_folder = 8; + * * @return The documentIsRetentionFolder. */ @java.lang.Override @@ -341,11 +415,14 @@ public boolean getDocumentIsRetentionFolder() { public static final int DOCUMENT_IS_LEGAL_HOLD_FOLDER_FIELD_NUMBER = 9; private boolean documentIsLegalHoldFolder_ = false; /** + * + * *
    * Document is a folder with legal hold.
    * 
* * bool document_is_legal_hold_folder = 9; + * * @return The documentIsLegalHoldFolder. */ @java.lang.Override @@ -354,6 +431,7 @@ public boolean getDocumentIsLegalHoldFolder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -365,8 +443,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentName_); } @@ -413,28 +490,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, snippet_); } if (documentIsFolder_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, documentIsFolder_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, documentIsFolder_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDeleteTime()); } if (documentIsRetentionFolder_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, documentIsRetentionFolder_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, documentIsRetentionFolder_); } if (documentIsLegalHoldFolder_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, documentIsLegalHoldFolder_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, documentIsLegalHoldFolder_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -444,40 +515,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.DocumentReference)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DocumentReference other = (com.google.cloud.contentwarehouse.v1.DocumentReference) obj; + com.google.cloud.contentwarehouse.v1.DocumentReference other = + (com.google.cloud.contentwarehouse.v1.DocumentReference) obj; - if (!getDocumentName() - .equals(other.getDocumentName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getSnippet() - .equals(other.getSnippet())) return false; - if (getDocumentIsFolder() - != other.getDocumentIsFolder()) return false; + if (!getDocumentName().equals(other.getDocumentName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getSnippet().equals(other.getSnippet())) return false; + if (getDocumentIsFolder() != other.getDocumentIsFolder()) 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 (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (getDocumentIsRetentionFolder() - != other.getDocumentIsRetentionFolder()) return false; - if (getDocumentIsLegalHoldFolder() - != other.getDocumentIsLegalHoldFolder()) return false; + if (getDocumentIsRetentionFolder() != other.getDocumentIsRetentionFolder()) return false; + if (getDocumentIsLegalHoldFolder() != other.getDocumentIsLegalHoldFolder()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -496,8 +559,7 @@ public int hashCode() { hash = (37 * hash) + SNIPPET_FIELD_NUMBER; hash = (53 * hash) + getSnippet().hashCode(); hash = (37 * hash) + DOCUMENT_IS_FOLDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDocumentIsFolder()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDocumentIsFolder()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); @@ -511,142 +573,145 @@ public int hashCode() { hash = (53 * hash) + getDeleteTime().hashCode(); } hash = (37 * hash) + DOCUMENT_IS_RETENTION_FOLDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDocumentIsRetentionFolder()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDocumentIsRetentionFolder()); hash = (37 * hash) + DOCUMENT_IS_LEGAL_HOLD_FOLDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDocumentIsLegalHoldFolder()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDocumentIsLegalHoldFolder()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.DocumentReference 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.contentwarehouse.v1.DocumentReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentReference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DocumentReference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DocumentReference 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.contentwarehouse.v1.DocumentReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DocumentReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DocumentReference prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.DocumentReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * References to the documents.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentReference} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DocumentReference) com.google.cloud.contentwarehouse.v1.DocumentReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentReference.class, com.google.cloud.contentwarehouse.v1.DocumentReference.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentReference.class, + com.google.cloud.contentwarehouse.v1.DocumentReference.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DocumentReference.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -676,9 +741,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor; } @java.lang.Override @@ -697,8 +762,11 @@ public com.google.cloud.contentwarehouse.v1.DocumentReference build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentReference buildPartial() { - com.google.cloud.contentwarehouse.v1.DocumentReference result = new com.google.cloud.contentwarehouse.v1.DocumentReference(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.DocumentReference result = + new com.google.cloud.contentwarehouse.v1.DocumentReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -718,19 +786,13 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentReferenc result.documentIsFolder_ = documentIsFolder_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.documentIsRetentionFolder_ = documentIsRetentionFolder_; @@ -744,38 +806,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentReferenc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.DocumentReference) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentReference)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentReference) other); } else { super.mergeFrom(other); return this; @@ -783,7 +846,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentReference other) { - if (other == com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.DocumentReference.getDefaultInstance()) + return this; if (!other.getDocumentName().isEmpty()) { documentName_ = other.documentName_; bitField0_ |= 0x00000001; @@ -843,63 +907,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - documentName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - snippet_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - documentIsFolder_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: { - documentIsRetentionFolder_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - documentIsLegalHoldFolder_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 72 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + documentName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + snippet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + documentIsFolder_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + documentIsRetentionFolder_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + documentIsLegalHoldFolder_ = input.readBool(); + bitField0_ |= 0x00000100; + 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) { @@ -909,22 +977,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object documentName_ = ""; /** + * + * *
      * Required. Name of the referenced document.
      * 
* - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The documentName. */ public java.lang.String getDocumentName() { java.lang.Object ref = documentName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentName_ = s; return s; @@ -933,20 +1006,23 @@ public java.lang.String getDocumentName() { } } /** + * + * *
      * Required. Name of the referenced document.
      * 
* - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for documentName. */ - public com.google.protobuf.ByteString - getDocumentNameBytes() { + public com.google.protobuf.ByteString getDocumentNameBytes() { java.lang.Object ref = documentName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentName_ = b; return b; } else { @@ -954,28 +1030,39 @@ public java.lang.String getDocumentName() { } } /** + * + * *
      * Required. Name of the referenced document.
      * 
* - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The documentName to set. * @return This builder for chaining. */ - public Builder setDocumentName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } documentName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the referenced document.
      * 
* - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearDocumentName() { @@ -985,17 +1072,23 @@ public Builder clearDocumentName() { return this; } /** + * + * *
      * Required. Name of the referenced document.
      * 
* - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for documentName to set. * @return This builder for chaining. */ - public Builder setDocumentNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); documentName_ = value; bitField0_ |= 0x00000001; @@ -1005,6 +1098,8 @@ public Builder setDocumentNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * display_name of the referenced document; this name does not need to be
      * consistent to the display_name in the Document proto, depending on the ACL
@@ -1012,13 +1107,13 @@ public Builder setDocumentNameBytes(
      * 
* * string display_name = 2; + * * @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; @@ -1027,6 +1122,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * display_name of the referenced document; this name does not need to be
      * consistent to the display_name in the Document proto, depending on the ACL
@@ -1034,15 +1131,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @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 { @@ -1050,6 +1146,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * display_name of the referenced document; this name does not need to be
      * consistent to the display_name in the Document proto, depending on the ACL
@@ -1057,18 +1155,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @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; } /** + * + * *
      * display_name of the referenced document; this name does not need to be
      * consistent to the display_name in the Document proto, depending on the ACL
@@ -1076,6 +1178,7 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1085,6 +1188,8 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * display_name of the referenced document; this name does not need to be
      * consistent to the display_name in the Document proto, depending on the ACL
@@ -1092,12 +1197,14 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; + * * @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; @@ -1107,6 +1214,8 @@ public Builder setDisplayNameBytes( private java.lang.Object snippet_ = ""; /** + * + * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1114,13 +1223,13 @@ public Builder setDisplayNameBytes(
      * 
* * string snippet = 3; + * * @return The snippet. */ public java.lang.String getSnippet() { java.lang.Object ref = snippet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snippet_ = s; return s; @@ -1129,6 +1238,8 @@ public java.lang.String getSnippet() { } } /** + * + * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1136,15 +1247,14 @@ public java.lang.String getSnippet() {
      * 
* * string snippet = 3; + * * @return The bytes for snippet. */ - public com.google.protobuf.ByteString - getSnippetBytes() { + public com.google.protobuf.ByteString getSnippetBytes() { java.lang.Object ref = snippet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); snippet_ = b; return b; } else { @@ -1152,6 +1262,8 @@ public java.lang.String getSnippet() { } } /** + * + * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1159,18 +1271,22 @@ public java.lang.String getSnippet() {
      * 
* * string snippet = 3; + * * @param value The snippet to set. * @return This builder for chaining. */ - public Builder setSnippet( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } snippet_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1178,6 +1294,7 @@ public Builder setSnippet(
      * 
* * string snippet = 3; + * * @return This builder for chaining. */ public Builder clearSnippet() { @@ -1187,6 +1304,8 @@ public Builder clearSnippet() { return this; } /** + * + * *
      * Stores the subset of the referenced document's content.
      * This is useful to allow user peek the information of the referenced
@@ -1194,12 +1313,14 @@ public Builder clearSnippet() {
      * 
* * string snippet = 3; + * * @param value The bytes for snippet to set. * @return This builder for chaining. */ - public Builder setSnippetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); snippet_ = value; bitField0_ |= 0x00000004; @@ -1207,13 +1328,16 @@ public Builder setSnippetBytes( return this; } - private boolean documentIsFolder_ ; + private boolean documentIsFolder_; /** + * + * *
      * The document type of the document being referenced.
      * 
* * bool document_is_folder = 4; + * * @return The documentIsFolder. */ @java.lang.Override @@ -1221,11 +1345,14 @@ public boolean getDocumentIsFolder() { return documentIsFolder_; } /** + * + * *
      * The document type of the document being referenced.
      * 
* * bool document_is_folder = 4; + * * @param value The documentIsFolder to set. * @return This builder for chaining. */ @@ -1237,11 +1364,14 @@ public Builder setDocumentIsFolder(boolean value) { return this; } /** + * + * *
      * The document type of the document being referenced.
      * 
* * bool document_is_folder = 4; + * * @return This builder for chaining. */ public Builder clearDocumentIsFolder() { @@ -1253,39 +1383,58 @@ public Builder clearDocumentIsFolder() { 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_; /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1301,14 +1450,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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 { @@ -1319,17 +1471,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1342,11 +1498,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1359,11 +1519,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1371,36 +1535,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time when the document is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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_; @@ -1408,39 +1584,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1456,14 +1651,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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 { @@ -1474,17 +1672,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1497,11 +1699,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1514,11 +1720,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000020; @@ -1526,36 +1736,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the document is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> 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_; @@ -1563,39 +1785,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. The time when the document is deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. The time when the document is deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the document is deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -1611,14 +1852,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document is deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -1629,17 +1873,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The time when the document is deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -1652,11 +1900,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document is deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1669,11 +1921,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The time when the document is deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000040; @@ -1681,48 +1937,63 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the document is deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. The time when the document is deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } - private boolean documentIsRetentionFolder_ ; + private boolean documentIsRetentionFolder_; /** + * + * *
      * Document is a folder with retention policy.
      * 
* * bool document_is_retention_folder = 8; + * * @return The documentIsRetentionFolder. */ @java.lang.Override @@ -1730,11 +2001,14 @@ public boolean getDocumentIsRetentionFolder() { return documentIsRetentionFolder_; } /** + * + * *
      * Document is a folder with retention policy.
      * 
* * bool document_is_retention_folder = 8; + * * @param value The documentIsRetentionFolder to set. * @return This builder for chaining. */ @@ -1746,11 +2020,14 @@ public Builder setDocumentIsRetentionFolder(boolean value) { return this; } /** + * + * *
      * Document is a folder with retention policy.
      * 
* * bool document_is_retention_folder = 8; + * * @return This builder for chaining. */ public Builder clearDocumentIsRetentionFolder() { @@ -1760,13 +2037,16 @@ public Builder clearDocumentIsRetentionFolder() { return this; } - private boolean documentIsLegalHoldFolder_ ; + private boolean documentIsLegalHoldFolder_; /** + * + * *
      * Document is a folder with legal hold.
      * 
* * bool document_is_legal_hold_folder = 9; + * * @return The documentIsLegalHoldFolder. */ @java.lang.Override @@ -1774,11 +2054,14 @@ public boolean getDocumentIsLegalHoldFolder() { return documentIsLegalHoldFolder_; } /** + * + * *
      * Document is a folder with legal hold.
      * 
* * bool document_is_legal_hold_folder = 9; + * * @param value The documentIsLegalHoldFolder to set. * @return This builder for chaining. */ @@ -1790,11 +2073,14 @@ public Builder setDocumentIsLegalHoldFolder(boolean value) { return this; } /** + * + * *
      * Document is a folder with legal hold.
      * 
* * bool document_is_legal_hold_folder = 9; + * * @return This builder for chaining. */ public Builder clearDocumentIsLegalHoldFolder() { @@ -1803,9 +2089,9 @@ public Builder clearDocumentIsLegalHoldFolder() { 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); } @@ -1815,12 +2101,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DocumentReference) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DocumentReference) private static final com.google.cloud.contentwarehouse.v1.DocumentReference DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DocumentReference(); } @@ -1829,27 +2115,27 @@ public static com.google.cloud.contentwarehouse.v1.DocumentReference getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DocumentReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1864,6 +2150,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DocumentReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java similarity index 71% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java index 23e1c3eab2c9..5ea193c67f36 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentReferenceOrBuilder.java @@ -1,33 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface DocumentReferenceOrBuilder extends +public interface DocumentReferenceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DocumentReference) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the referenced document.
    * 
* - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The documentName. */ java.lang.String getDocumentName(); /** + * + * *
    * Required. Name of the referenced document.
    * 
* - * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string document_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for documentName. */ - com.google.protobuf.ByteString - getDocumentNameBytes(); + com.google.protobuf.ByteString getDocumentNameBytes(); /** + * + * *
    * display_name of the referenced document; this name does not need to be
    * consistent to the display_name in the Document proto, depending on the ACL
@@ -35,10 +62,13 @@ public interface DocumentReferenceOrBuilder extends
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * display_name of the referenced document; this name does not need to be
    * consistent to the display_name in the Document proto, depending on the ACL
@@ -46,12 +76,14 @@ public interface DocumentReferenceOrBuilder extends
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Stores the subset of the referenced document's content.
    * This is useful to allow user peek the information of the referenced
@@ -59,10 +91,13 @@ public interface DocumentReferenceOrBuilder extends
    * 
* * string snippet = 3; + * * @return The snippet. */ java.lang.String getSnippet(); /** + * + * *
    * Stores the subset of the referenced document's content.
    * This is useful to allow user peek the information of the referenced
@@ -70,118 +105,160 @@ public interface DocumentReferenceOrBuilder extends
    * 
* * string snippet = 3; + * * @return The bytes for snippet. */ - com.google.protobuf.ByteString - getSnippetBytes(); + com.google.protobuf.ByteString getSnippetBytes(); /** + * + * *
    * The document type of the document being referenced.
    * 
* * bool document_is_folder = 4; + * * @return The documentIsFolder. */ boolean getDocumentIsFolder(); /** + * + * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time when the document is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the document is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time when the document is deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The time when the document is deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The time when the document is deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Document is a folder with retention policy.
    * 
* * bool document_is_retention_folder = 8; + * * @return The documentIsRetentionFolder. */ boolean getDocumentIsRetentionFolder(); /** + * + * *
    * Document is a folder with legal hold.
    * 
* * bool document_is_legal_hold_folder = 9; + * * @return The documentIsLegalHoldFolder. */ boolean getDocumentIsLegalHoldFolder(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java similarity index 68% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java index 9ea4121b55d1..d6a157e25f40 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchema.java @@ -1,24 +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/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * A document schema used to define document structure.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentSchema} */ -public final class DocumentSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.DocumentSchema) DocumentSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentSchema.newBuilder() to construct. private DocumentSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentSchema() { name_ = ""; displayName_ = ""; @@ -28,28 +46,32 @@ private DocumentSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentSchema(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentSchema.class, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentSchema.class, + com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the document schema.
    * Format:
@@ -59,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -67,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the document schema.
    * Format:
@@ -84,16 +108,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -102,14 +125,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. Name of the schema given by the user. Must be unique per project.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -118,29 +145,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; } } /** + * + * *
    * Required. Name of the schema given by the user. Must be unique per project.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -149,75 +176,96 @@ public java.lang.String getDisplayName() { } public static final int PROPERTY_DEFINITIONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") - private java.util.List propertyDefinitions_; + private java.util.List + propertyDefinitions_; /** + * + * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ @java.lang.Override - public java.util.List getPropertyDefinitionsList() { + public java.util.List + getPropertyDefinitionsList() { return propertyDefinitions_; } /** + * + * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List getPropertyDefinitionsOrBuilderList() { return propertyDefinitions_; } /** + * + * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ @java.lang.Override public int getPropertyDefinitionsCount() { return propertyDefinitions_.size(); } /** + * + * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index) { return propertyDefinitions_.get(index); } /** + * + * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder + getPropertyDefinitionsOrBuilder(int index) { return propertyDefinitions_.get(index); } public static final int DOCUMENT_IS_FOLDER_FIELD_NUMBER = 4; private boolean documentIsFolder_ = false; /** + * + * *
    * Document Type, true refers the document is a folder, otherwise it is
    * a typical document.
    * 
* * bool document_is_folder = 4; + * * @return The documentIsFolder. */ @java.lang.Override @@ -228,11 +276,15 @@ public boolean getDocumentIsFolder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time when the document schema is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -240,11 +292,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time when the document schema is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -252,11 +308,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time when the document schema is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -266,11 +325,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the document schema is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -278,11 +341,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the document schema is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -290,11 +357,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the document schema is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -302,14 +372,18 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int DESCRIPTION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Schema description.
    * 
* * string description = 7; + * * @return The description. */ @java.lang.Override @@ -318,29 +392,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Schema description.
    * 
* * string description = 7; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -349,6 +423,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -360,8 +435,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -399,20 +473,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < propertyDefinitions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, propertyDefinitions_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, propertyDefinitions_.get(i)); } if (documentIsFolder_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, documentIsFolder_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, documentIsFolder_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); @@ -425,33 +496,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.contentwarehouse.v1.DocumentSchema)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.DocumentSchema other = (com.google.cloud.contentwarehouse.v1.DocumentSchema) obj; + com.google.cloud.contentwarehouse.v1.DocumentSchema other = + (com.google.cloud.contentwarehouse.v1.DocumentSchema) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getPropertyDefinitionsList() - .equals(other.getPropertyDefinitionsList())) return false; - if (getDocumentIsFolder() - != other.getDocumentIsFolder()) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getPropertyDefinitionsList().equals(other.getPropertyDefinitionsList())) return false; + if (getDocumentIsFolder() != other.getDocumentIsFolder()) 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 (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -472,8 +537,7 @@ public int hashCode() { hash = (53 * hash) + getPropertyDefinitionsList().hashCode(); } hash = (37 * hash) + DOCUMENT_IS_FOLDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDocumentIsFolder()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDocumentIsFolder()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); @@ -490,131 +554,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.DocumentSchema 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.contentwarehouse.v1.DocumentSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.DocumentSchema 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.contentwarehouse.v1.DocumentSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.DocumentSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.DocumentSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 document schema used to define document structure.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.DocumentSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.DocumentSchema) com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.DocumentSchema.class, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder.class); + com.google.cloud.contentwarehouse.v1.DocumentSchema.class, + com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.DocumentSchema.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -644,9 +712,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor; } @java.lang.Override @@ -665,14 +733,18 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentSchema buildPartial() { - com.google.cloud.contentwarehouse.v1.DocumentSchema result = new com.google.cloud.contentwarehouse.v1.DocumentSchema(this); + com.google.cloud.contentwarehouse.v1.DocumentSchema result = + new com.google.cloud.contentwarehouse.v1.DocumentSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.DocumentSchema result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.DocumentSchema result) { if (propertyDefinitionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { propertyDefinitions_ = java.util.Collections.unmodifiableList(propertyDefinitions_); @@ -696,14 +768,10 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentSchema r result.documentIsFolder_ = documentIsFolder_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.description_ = description_; @@ -714,38 +782,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.DocumentSchema 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.contentwarehouse.v1.DocumentSchema) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentSchema)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.DocumentSchema) other); } else { super.mergeFrom(other); return this; @@ -753,7 +822,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentSchema other) { - if (other == com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -782,9 +852,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.DocumentSchema oth propertyDefinitionsBuilder_ = null; propertyDefinitions_ = other.propertyDefinitions_; bitField0_ = (bitField0_ & ~0x00000004); - propertyDefinitionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertyDefinitionsFieldBuilder() : null; + propertyDefinitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertyDefinitionsFieldBuilder() + : null; } else { propertyDefinitionsBuilder_.addAllMessages(other.propertyDefinitions_); } @@ -830,59 +901,63 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.cloud.contentwarehouse.v1.PropertyDefinition m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.parser(), - extensionRegistry); - if (propertyDefinitionsBuilder_ == null) { - ensurePropertyDefinitionsIsMutable(); - propertyDefinitions_.add(m); - } else { - propertyDefinitionsBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: { - documentIsFolder_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.contentwarehouse.v1.PropertyDefinition m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.parser(), + extensionRegistry); + if (propertyDefinitionsBuilder_ == null) { + ensurePropertyDefinitionsIsMutable(); + propertyDefinitions_.add(m); + } else { + propertyDefinitionsBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + documentIsFolder_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + description_ = 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) { @@ -892,10 +967,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the document schema.
      * Format:
@@ -905,13 +983,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -920,6 +998,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the document schema.
      * Format:
@@ -929,15 +1009,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -945,6 +1024,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the document schema.
      * Format:
@@ -954,18 +1035,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the document schema.
      * Format:
@@ -975,6 +1060,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -984,6 +1070,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the document schema.
      * Format:
@@ -993,12 +1081,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1008,18 +1098,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Name of the schema given by the user. Must be unique per project.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1028,20 +1120,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Name of the schema given by the user. Must be unique per project.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -1049,28 +1142,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Name of the schema given by the user. Must be unique per project.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Name of the schema given by the user. Must be unique per project.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1080,17 +1180,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. Name of the schema given by the user. Must be unique per project.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1098,26 +1202,36 @@ public Builder setDisplayNameBytes( return this; } - private java.util.List propertyDefinitions_ = - java.util.Collections.emptyList(); + private java.util.List + propertyDefinitions_ = java.util.Collections.emptyList(); + private void ensurePropertyDefinitionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - propertyDefinitions_ = new java.util.ArrayList(propertyDefinitions_); + propertyDefinitions_ = + new java.util.ArrayList( + propertyDefinitions_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> propertyDefinitionsBuilder_; + com.google.cloud.contentwarehouse.v1.PropertyDefinition, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, + com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> + propertyDefinitionsBuilder_; /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ - public java.util.List getPropertyDefinitionsList() { + public java.util.List + getPropertyDefinitionsList() { if (propertyDefinitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(propertyDefinitions_); } else { @@ -1125,11 +1239,14 @@ public java.util.List g } } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ public int getPropertyDefinitionsCount() { if (propertyDefinitionsBuilder_ == null) { @@ -1139,13 +1256,17 @@ public int getPropertyDefinitionsCount() { } } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions( + int index) { if (propertyDefinitionsBuilder_ == null) { return propertyDefinitions_.get(index); } else { @@ -1153,11 +1274,14 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefini } } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ public Builder setPropertyDefinitions( int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { @@ -1174,14 +1298,18 @@ public Builder setPropertyDefinitions( return this; } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ public Builder setPropertyDefinitions( - int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { if (propertyDefinitionsBuilder_ == null) { ensurePropertyDefinitionsIsMutable(); propertyDefinitions_.set(index, builderForValue.build()); @@ -1192,13 +1320,17 @@ public Builder setPropertyDefinitions( return this; } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ - public Builder addPropertyDefinitions(com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { + public Builder addPropertyDefinitions( + com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { if (propertyDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1212,11 +1344,14 @@ public Builder addPropertyDefinitions(com.google.cloud.contentwarehouse.v1.Prope return this; } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ public Builder addPropertyDefinitions( int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { @@ -1233,11 +1368,14 @@ public Builder addPropertyDefinitions( return this; } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ public Builder addPropertyDefinitions( com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { @@ -1251,14 +1389,18 @@ public Builder addPropertyDefinitions( return this; } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ public Builder addPropertyDefinitions( - int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { if (propertyDefinitionsBuilder_ == null) { ensurePropertyDefinitionsIsMutable(); propertyDefinitions_.add(index, builderForValue.build()); @@ -1269,18 +1411,21 @@ public Builder addPropertyDefinitions( return this; } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ public Builder addAllPropertyDefinitions( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (propertyDefinitionsBuilder_ == null) { ensurePropertyDefinitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, propertyDefinitions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyDefinitions_); onChanged(); } else { propertyDefinitionsBuilder_.addAllMessages(values); @@ -1288,11 +1433,14 @@ public Builder addAllPropertyDefinitions( return this; } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ public Builder clearPropertyDefinitions() { if (propertyDefinitionsBuilder_ == null) { @@ -1305,11 +1453,14 @@ public Builder clearPropertyDefinitions() { return this; } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ public Builder removePropertyDefinitions(int index) { if (propertyDefinitionsBuilder_ == null) { @@ -1322,39 +1473,50 @@ public Builder removePropertyDefinitions(int index) { return this; } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder getPropertyDefinitionsBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder + getPropertyDefinitionsBuilder(int index) { return getPropertyDefinitionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder + getPropertyDefinitionsOrBuilder(int index) { if (propertyDefinitionsBuilder_ == null) { - return propertyDefinitions_.get(index); } else { + return propertyDefinitions_.get(index); + } else { return propertyDefinitionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ - public java.util.List - getPropertyDefinitionsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> + getPropertyDefinitionsOrBuilderList() { if (propertyDefinitionsBuilder_ != null) { return propertyDefinitionsBuilder_.getMessageOrBuilderList(); } else { @@ -1362,45 +1524,62 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPrope } } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder addPropertyDefinitionsBuilder() { - return getPropertyDefinitionsFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder + addPropertyDefinitionsBuilder() { + return getPropertyDefinitionsFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder addPropertyDefinitionsBuilder( - int index) { - return getPropertyDefinitionsFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder + addPropertyDefinitionsBuilder(int index) { + return getPropertyDefinitionsFieldBuilder() + .addBuilder( + index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); } /** + * + * *
      * Document details.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ - public java.util.List - getPropertyDefinitionsBuilderList() { + public java.util.List + getPropertyDefinitionsBuilderList() { return getPropertyDefinitionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> + com.google.cloud.contentwarehouse.v1.PropertyDefinition, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, + com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> getPropertyDefinitionsFieldBuilder() { if (propertyDefinitionsBuilder_ == null) { - propertyDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder>( + propertyDefinitionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.PropertyDefinition, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, + com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder>( propertyDefinitions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -1410,14 +1589,17 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder addProper return propertyDefinitionsBuilder_; } - private boolean documentIsFolder_ ; + private boolean documentIsFolder_; /** + * + * *
      * Document Type, true refers the document is a folder, otherwise it is
      * a typical document.
      * 
* * bool document_is_folder = 4; + * * @return The documentIsFolder. */ @java.lang.Override @@ -1425,12 +1607,15 @@ public boolean getDocumentIsFolder() { return documentIsFolder_; } /** + * + * *
      * Document Type, true refers the document is a folder, otherwise it is
      * a typical document.
      * 
* * bool document_is_folder = 4; + * * @param value The documentIsFolder to set. * @return This builder for chaining. */ @@ -1442,12 +1627,15 @@ public Builder setDocumentIsFolder(boolean value) { return this; } /** + * + * *
      * Document Type, true refers the document is a folder, otherwise it is
      * a typical document.
      * 
* * bool document_is_folder = 4; + * * @return This builder for chaining. */ public Builder clearDocumentIsFolder() { @@ -1459,39 +1647,58 @@ public Builder clearDocumentIsFolder() { 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_; /** + * + * *
      * Output only. The time when the document schema is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. The time when the document schema is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the document schema is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1507,14 +1714,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document schema is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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 { @@ -1525,17 +1735,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time when the document schema is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1548,11 +1762,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document schema is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1565,11 +1783,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time when the document schema is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1577,36 +1799,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the document schema is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time when the document schema is last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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_; @@ -1614,39 +1848,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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. The time when the document schema is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. The time when the document schema is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the document schema is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1662,14 +1915,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document schema is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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 { @@ -1680,17 +1936,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the document schema is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1703,11 +1963,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the document schema is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1720,11 +1984,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the document schema is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000020; @@ -1732,36 +2000,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the document schema is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the document schema is created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> 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_; @@ -1769,18 +2049,20 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object description_ = ""; /** + * + * *
      * Schema description.
      * 
* * string description = 7; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1789,20 +2071,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Schema description.
      * 
* * string description = 7; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1810,28 +2093,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Schema description.
      * 
* * string description = 7; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Schema description.
      * 
* * string description = 7; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1841,26 +2131,30 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Schema description.
      * 
* * string description = 7; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000040; 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); } @@ -1870,12 +2164,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.DocumentSchema) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.DocumentSchema) private static final com.google.cloud.contentwarehouse.v1.DocumentSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.DocumentSchema(); } @@ -1884,27 +2178,27 @@ public static com.google.cloud.contentwarehouse.v1.DocumentSchema getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DocumentSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1919,6 +2213,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.DocumentSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java similarity index 74% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java index 1a5b450de0d9..9152fdce193c 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; -public interface DocumentSchemaOrBuilder extends +public interface DocumentSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DocumentSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the document schema.
    * Format:
@@ -17,10 +35,13 @@ public interface DocumentSchemaOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the document schema.
    * Format:
@@ -30,157 +51,207 @@ public interface DocumentSchemaOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Name of the schema given by the user. Must be unique per project.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Name of the schema given by the user. Must be unique per project.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ - java.util.List + java.util.List getPropertyDefinitionsList(); /** + * + * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index); /** + * + * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ int getPropertyDefinitionsCount(); /** + * + * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ - java.util.List + java.util.List getPropertyDefinitionsOrBuilderList(); /** + * + * *
    * Document details.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 3; + * */ com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( int index); /** + * + * *
    * Document Type, true refers the document is a folder, otherwise it is
    * a typical document.
    * 
* * bool document_is_folder = 4; + * * @return The documentIsFolder. */ boolean getDocumentIsFolder(); /** + * + * *
    * Output only. The time when the document schema is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time when the document schema is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time when the document schema is last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time when the document schema is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the document schema is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the document schema is created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Schema description.
    * 
* * string description = 7; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Schema description.
    * 
* * string description = 7; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java new file mode 100644 index 000000000000..28acabee4fbc --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java @@ -0,0 +1,267 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class DocumentSchemaProto { + private DocumentSchemaProto() {} + + 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_contentwarehouse_v1_DocumentSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_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/contentwarehouse/v1/docum" + + "ent_schema.proto\022 google.cloud.contentwa" + + "rehouse.v1\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\255\003\n\016DocumentSche" + + "ma\022\014\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004" + + "\342A\001\002\022R\n\024property_definitions\030\003 \003(\01324.goo" + + "gle.cloud.contentwarehouse.v1.PropertyDe" + + "finition\022\032\n\022document_is_folder\030\004 \001(\010\0225\n\013" + + "update_time\030\005 \001(\0132\032.google.protobuf.Time" + + "stampB\004\342A\001\003\0225\n\013create_time\030\006 \001(\0132\032.googl" + + "e.protobuf.TimestampB\004\342A\001\003\022\023\n\013descriptio" + + "n\030\007 \001(\t:~\352A{\n.contentwarehouse.googleapi" + + "s.com/DocumentSchema\022Iprojects/{project}" + + "/locations/{location}/documentSchemas/{d" + + "ocument_schema}\"\336\t\n\022PropertyDefinition\022\022" + + "\n\004name\030\001 \001(\tB\004\342A\001\002\022\024\n\014display_name\030\014 \001(\t" + + "\022\025\n\ris_repeatable\030\002 \001(\010\022\025\n\ris_filterable" + + "\030\003 \001(\010\022\025\n\ris_searchable\030\004 \001(\010\022\023\n\013is_meta" + + "data\030\005 \001(\010\022\023\n\013is_required\030\016 \001(\010\022f\n\024retri" + + "eval_importance\030\022 \001(\0162H.google.cloud.con" + + "tentwarehouse.v1.PropertyDefinition.Retr" + + "ievalImportance\022T\n\024integer_type_options\030" + + "\007 \001(\01324.google.cloud.contentwarehouse.v1" + + ".IntegerTypeOptionsH\000\022P\n\022float_type_opti" + + "ons\030\010 \001(\01322.google.cloud.contentwarehous" + + "e.v1.FloatTypeOptionsH\000\022N\n\021text_type_opt" + + "ions\030\t \001(\01321.google.cloud.contentwarehou" + + "se.v1.TextTypeOptionsH\000\022V\n\025property_type" + + "_options\030\n \001(\01325.google.cloud.contentwar" + + "ehouse.v1.PropertyTypeOptionsH\000\022N\n\021enum_" + + "type_options\030\013 \001(\01321.google.cloud.conten" + + "twarehouse.v1.EnumTypeOptionsH\000\022W\n\026date_" + + "time_type_options\030\r \001(\01325.google.cloud.c" + + "ontentwarehouse.v1.DateTimeTypeOptionsH\000" + + "\022L\n\020map_type_options\030\017 \001(\01320.google.clou" + + "d.contentwarehouse.v1.MapTypeOptionsH\000\022X" + + "\n\026timestamp_type_options\030\020 \001(\01326.google." + + "cloud.contentwarehouse.v1.TimestampTypeO" + + "ptionsH\000\022Y\n\016schema_sources\030\023 \003(\0132A.googl" + + "e.cloud.contentwarehouse.v1.PropertyDefi" + + "nition.SchemaSource\0324\n\014SchemaSource\022\014\n\004n" + + "ame\030\001 \001(\t\022\026\n\016processor_type\030\002 \001(\t\"\177\n\023Ret" + + "rievalImportance\022$\n RETRIEVAL_IMPORTANCE" + + "_UNSPECIFIED\020\000\022\013\n\007HIGHEST\020\001\022\n\n\006HIGHER\020\002\022" + + "\010\n\004HIGH\020\003\022\n\n\006MEDIUM\020\004\022\007\n\003LOW\020\005\022\n\n\006LOWEST" + + "\020\006B\024\n\022value_type_options\"\024\n\022IntegerTypeO" + + "ptions\"\022\n\020FloatTypeOptions\"\021\n\017TextTypeOp" + + "tions\"\025\n\023DateTimeTypeOptions\"\020\n\016MapTypeO" + + "ptions\"\026\n\024TimestampTypeOptions\"o\n\023Proper" + + "tyTypeOptions\022X\n\024property_definitions\030\001 " + + "\003(\01324.google.cloud.contentwarehouse.v1.P" + + "ropertyDefinitionB\004\342A\001\002\"S\n\017EnumTypeOptio" + + "ns\022\035\n\017possible_values\030\001 \003(\tB\004\342A\001\002\022!\n\031val" + + "idation_check_disabled\030\002 \001(\010B\373\001\n$com.goo" + + "gle.cloud.contentwarehouse.v1B\023DocumentS" + + "chemaProtoP\001ZPcloud.google.com/go/conten" + + "twarehouse/apiv1/contentwarehousepb;cont" + + "entwarehousepb\252\002 Google.Cloud.ContentWar" + + "ehouse.V1\312\002 Google\\Cloud\\ContentWarehous" + + "e\\V1\352\002#Google::Cloud::ContentWarehouse::" + + "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_contentwarehouse_v1_DocumentSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "PropertyDefinitions", + "DocumentIsFolder", + "UpdateTime", + "CreateTime", + "Description", + }); + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "IsRepeatable", + "IsFilterable", + "IsSearchable", + "IsMetadata", + "IsRequired", + "RetrievalImportance", + "IntegerTypeOptions", + "FloatTypeOptions", + "TextTypeOptions", + "PropertyTypeOptions", + "EnumTypeOptions", + "DateTimeTypeOptions", + "MapTypeOptions", + "TimestampTypeOptions", + "SchemaSources", + "ValueTypeOptions", + }); + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor = + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor, + new java.lang.String[] { + "Name", "ProcessorType", + }); + internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor, + new java.lang.String[] { + "PropertyDefinitions", + }); + internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor, + new java.lang.String[] { + "PossibleValues", "ValidationCheckDisabled", + }); + 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.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java new file mode 100644 index 000000000000..4c98e3a6a180 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java @@ -0,0 +1,207 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class DocumentSchemaServiceProto { + private DocumentSchemaServiceProto() {} + + 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_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_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/contentwarehouse/v1/docum" + + "ent_schema_service.proto\022 google.cloud.c" + + "ontentwarehouse.v1\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/r" + + "esource.proto\0326google/cloud/contentwareh" + + "ouse/v1/document_schema.proto\032\033google/pr" + + "otobuf/empty.proto\"\261\001\n\033CreateDocumentSch" + + "emaRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(con" + + "tentwarehouse.googleapis.com/Location\022O\n" + + "\017document_schema\030\002 \001(\01320.google.cloud.co" + + "ntentwarehouse.v1.DocumentSchemaB\004\342A\001\002\"a" + + "\n\030GetDocumentSchemaRequest\022E\n\004name\030\001 \001(\t" + + "B7\342A\001\002\372A0\n.contentwarehouse.googleapis.c" + + "om/DocumentSchema\"\265\001\n\033UpdateDocumentSche" + + "maRequest\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.conten" + + "twarehouse.googleapis.com/DocumentSchema" + + "\022O\n\017document_schema\030\002 \001(\01320.google.cloud" + + ".contentwarehouse.v1.DocumentSchemaB\004\342A\001" + + "\002\"d\n\033DeleteDocumentSchemaRequest\022E\n\004name" + + "\030\001 \001(\tB7\342A\001\002\372A0\n.contentwarehouse.google" + + "apis.com/DocumentSchema\"\206\001\n\032ListDocument" + + "SchemasRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n" + + "(contentwarehouse.googleapis.com/Locatio" + + "n\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\"\202\001\n\033ListDocumentSchemasResponse\022J\n\020docu" + + "ment_schemas\030\001 \003(\01320.google.cloud.conten" + + "twarehouse.v1.DocumentSchema\022\027\n\017next_pag" + + "e_token\030\002 \001(\t2\225\t\n\025DocumentSchemaService\022" + + "\356\001\n\024CreateDocumentSchema\022=.google.cloud." + + "contentwarehouse.v1.CreateDocumentSchema" + + "Request\0320.google.cloud.contentwarehouse." + + "v1.DocumentSchema\"e\332A\026parent,document_sc" + + "hema\202\323\344\223\002F\"3/v1/{parent=projects/*/locat" + + "ions/*}/documentSchemas:\017document_schema" + + "\022\336\001\n\024UpdateDocumentSchema\022=.google.cloud" + + ".contentwarehouse.v1.UpdateDocumentSchem" + + "aRequest\0320.google.cloud.contentwarehouse" + + ".v1.DocumentSchema\"U\332A\024name,document_sch" + + "ema\202\323\344\223\002823/v1/{name=projects/*/location" + + "s/*/documentSchemas/*}:\001*\022\305\001\n\021GetDocumen" + + "tSchema\022:.google.cloud.contentwarehouse." + + "v1.GetDocumentSchemaRequest\0320.google.clo" + + "ud.contentwarehouse.v1.DocumentSchema\"B\332" + + "A\004name\202\323\344\223\0025\0223/v1/{name=projects/*/locat" + + "ions/*/documentSchemas/*}\022\261\001\n\024DeleteDocu" + + "mentSchema\022=.google.cloud.contentwarehou" + + "se.v1.DeleteDocumentSchemaRequest\032\026.goog" + + "le.protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3/v1/{n" + + "ame=projects/*/locations/*/documentSchem" + + "as/*}\022\330\001\n\023ListDocumentSchemas\022<.google.c" + + "loud.contentwarehouse.v1.ListDocumentSch" + + "emasRequest\032=.google.cloud.contentwareho" + + "use.v1.ListDocumentSchemasResponse\"D\332A\006p" + + "arent\202\323\344\223\0025\0223/v1/{parent=projects/*/loca" + + "tions/*}/documentSchemas\032S\312A\037contentware" + + "house.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\202\002\n$com.go" + + "ogle.cloud.contentwarehouse.v1B\032Document" + + "SchemaServiceProtoP\001ZPcloud.google.com/g" + + "o/contentwarehouse/apiv1/contentwarehous" + + "epb;contentwarehousepb\252\002 Google.Cloud.Co" + + "ntentWarehouse.V1\312\002 Google\\Cloud\\Content" + + "Warehouse\\V1\352\002#Google::Cloud::ContentWar" + + "ehouse::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.contentwarehouse.v1.DocumentSchemaProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor, + new java.lang.String[] { + "Parent", "DocumentSchema", + }); + internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor, + new java.lang.String[] { + "Name", "DocumentSchema", + }); + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor, + new java.lang.String[] { + "DocumentSchemas", "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.contentwarehouse.v1.DocumentSchemaProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java new file mode 100644 index 000000000000..342b042f404a --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_service.proto + +package com.google.cloud.contentwarehouse.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_contentwarehouse_v1_CreateDocumentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_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/contentwarehouse/v1/docum" + + "ent_service.proto\022 google.cloud.contentw" + + "arehouse.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\031google/api/r" + + "esource.proto\032-google/cloud/contentwareh" + + "ouse/v1/common.proto\032/google/cloud/conte" + + "ntwarehouse/v1/document.proto\032?google/cl" + + "oud/contentwarehouse/v1/document_service" + + "_request.proto\0320google/cloud/contentware" + + "house/v1/histogram.proto\0322google/cloud/c" + + "ontentwarehouse/v1/rule_engine.proto\032\032go" + + "ogle/iam/v1/policy.proto\032#google/longrun" + + "ning/operations.proto\032\033google/protobuf/e" + + "mpty.proto\"\254\002\n\026CreateDocumentResponse\022<\n" + + "\010document\030\001 \001(\0132*.google.cloud.contentwa" + + "rehouse.v1.Document\022N\n\022rule_engine_outpu" + + "t\030\002 \001(\01322.google.cloud.contentwarehouse." + + "v1.RuleEngineOutput\022D\n\010metadata\030\003 \001(\01322." + + "google.cloud.contentwarehouse.v1.Respons" + + "eMetadata\022>\n\027long_running_operations\030\004 \003" + + "(\0132\035.google.longrunning.Operation\"\354\001\n\026Up" + + "dateDocumentResponse\022<\n\010document\030\001 \001(\0132*" + + ".google.cloud.contentwarehouse.v1.Docume" + + "nt\022N\n\022rule_engine_output\030\002 \001(\01322.google." + + "cloud.contentwarehouse.v1.RuleEngineOutp" + + "ut\022D\n\010metadata\030\003 \001(\01322.google.cloud.cont" + + "entwarehouse.v1.ResponseMetadata\"\243\001\n\010QAR" + + "esult\022H\n\nhighlights\030\001 \003(\01324.google.cloud" + + ".contentwarehouse.v1.QAResult.Highlight\022" + + "\030\n\020confidence_score\030\002 \001(\002\0323\n\tHighlight\022\023" + + "\n\013start_index\030\001 \001(\005\022\021\n\tend_index\030\002 \001(\005\"\225" + + "\004\n\027SearchDocumentsResponse\022f\n\022matching_d" + + "ocuments\030\001 \003(\0132J.google.cloud.contentwar" + + "ehouse.v1.SearchDocumentsResponse.Matchi" + + "ngDocument\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\nt" + + "otal_size\030\003 \001(\005\022D\n\010metadata\030\004 \001(\01322.goog" + + "le.cloud.contentwarehouse.v1.ResponseMet" + + "adata\022W\n\027histogram_query_results\030\006 \003(\01326" + + ".google.cloud.contentwarehouse.v1.Histog" + + "ramQueryResult\022\027\n\017question_answer\030\007 \001(\t\032" + + "\254\001\n\020MatchingDocument\022<\n\010document\030\001 \001(\0132*" + + ".google.cloud.contentwarehouse.v1.Docume" + + "nt\022\033\n\023search_text_snippet\030\002 \001(\t\022=\n\tqa_re" + + "sult\030\003 \001(\0132*.google.cloud.contentwarehou" + + "se.v1.QAResult\"\177\n\020FetchAclResponse\022%\n\006po" + + "licy\030\001 \001(\0132\025.google.iam.v1.Policy\022D\n\010met" + + "adata\030\002 \001(\01322.google.cloud.contentwareho" + + "use.v1.ResponseMetadata\"}\n\016SetAclRespons" + + "e\022%\n\006policy\030\001 \001(\0132\025.google.iam.v1.Policy" + + "\022D\n\010metadata\030\002 \001(\01322.google.cloud.conten" + + "twarehouse.v1.ResponseMetadata2\242\017\n\017Docum" + + "entService\022\317\001\n\016CreateDocument\0227.google.c" + + "loud.contentwarehouse.v1.CreateDocumentR" + + "equest\0328.google.cloud.contentwarehouse.v" + + "1.CreateDocumentResponse\"J\332A\017parent,docu" + + "ment\202\323\344\223\0022\"-/v1/{parent=projects/*/locat" + + "ions/*}/documents:\001*\022\371\001\n\013GetDocument\0224.g" + + "oogle.cloud.contentwarehouse.v1.GetDocum" + + "entRequest\032*.google.cloud.contentwarehou" + + "se.v1.Document\"\207\001\332A\004name\202\323\344\223\002z\"1/v1/{nam" + + "e=projects/*/locations/*/documents/*}:ge" + + "t:\001*ZB\"=/v1/{name=projects/*/locations/*" + + "/documents/referenceId/*}:get:\001*\022\216\002\n\016Upd" + + "ateDocument\0227.google.cloud.contentwareho" + + "use.v1.UpdateDocumentRequest\0328.google.cl" + + "oud.contentwarehouse.v1.UpdateDocumentRe" + + "sponse\"\210\001\332A\rname,document\202\323\344\223\002r2-/v1/{na" + + "me=projects/*/locations/*/documents/*}:\001" + + "*Z>29/v1/{name=projects/*/locations/*/do" + + "cuments/referenceId/*}:\001*\022\362\001\n\016DeleteDocu" + + "ment\0227.google.cloud.contentwarehouse.v1." + + "DeleteDocumentRequest\032\026.google.protobuf." + + "Empty\"\216\001\332A\004name\202\323\344\223\002\200\001\"4/v1/{name=projec" + + "ts/*/locations/*/documents/*}:delete:\001*Z" + + "E\"@/v1/{name=projects/*/locations/*/docu" + + "ments/referenceId/*}:delete:\001*\022\320\001\n\017Searc" + + "hDocuments\0228.google.cloud.contentwarehou" + + "se.v1.SearchDocumentsRequest\0329.google.cl" + + "oud.contentwarehouse.v1.SearchDocumentsR" + + "esponse\"H\332A\006parent\202\323\344\223\0029\"4/v1/{parent=pr" + + "ojects/*/locations/*}/documents:search:\001" + + "*\022\267\001\n\014LockDocument\0225.google.cloud.conten" + + "twarehouse.v1.LockDocumentRequest\032*.goog" + + "le.cloud.contentwarehouse.v1.Document\"D\332" + + "A\004name\202\323\344\223\0027\"2/v1/{name=projects/*/locat" + + "ions/*/documents/*}:lock:\001*\022\354\001\n\010FetchAcl" + + "\0221.google.cloud.contentwarehouse.v1.Fetc" + + "hAclRequest\0322.google.cloud.contentwareho" + + "use.v1.FetchAclResponse\"y\332A\010resource\202\323\344\223" + + "\002h\":/v1/{resource=projects/*/locations/*" + + "/documents/*}:fetchAcl:\001*Z\'\"\"/v1/{resour" + + "ce=projects/*}:fetchAcl:\001*\022\351\001\n\006SetAcl\022/." + + "google.cloud.contentwarehouse.v1.SetAclR" + + "equest\0320.google.cloud.contentwarehouse.v" + + "1.SetAclResponse\"|\332A\017resource,policy\202\323\344\223" + + "\002d\"8/v1/{resource=projects/*/locations/*" + + "/documents/*}:setAcl:\001*Z%\" /v1/{resource" + + "=projects/*}:setAcl:\001*\032S\312A\037contentwareho" + + "use.googleapis.com\322A.https://www.googlea" + + "pis.com/auth/cloud-platformB\374\001\n$com.goog" + + "le.cloud.contentwarehouse.v1B\024DocumentSe" + + "rviceProtoP\001ZPcloud.google.com/go/conten" + + "twarehouse/apiv1/contentwarehousepb;cont" + + "entwarehousepb\252\002 Google.Cloud.ContentWar" + + "ehouse.V1\312\002 Google\\Cloud\\ContentWarehous" + + "e\\V1\352\002#Google::Cloud::ContentWarehouse::" + + "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.ResourceProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor, + new java.lang.String[] { + "Document", "RuleEngineOutput", "Metadata", "LongRunningOperations", + }); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor, + new java.lang.String[] { + "Document", "RuleEngineOutput", "Metadata", + }); + internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor, + new java.lang.String[] { + "Highlights", "ConfidenceScore", + }); + internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor = + internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor, + new java.lang.String[] { + "StartIndex", "EndIndex", + }); + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor, + new java.lang.String[] { + "MatchingDocuments", + "NextPageToken", + "TotalSize", + "Metadata", + "HistogramQueryResults", + "QuestionAnswer", + }); + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor = + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor, + new java.lang.String[] { + "Document", "SearchTextSnippet", "QaResult", + }); + internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor, + new java.lang.String[] { + "Policy", "Metadata", + }); + internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor, + new java.lang.String[] { + "Policy", "Metadata", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java new file mode 100644 index 000000000000..4591b8586f9f --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java @@ -0,0 +1,289 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class DocumentServiceRequestProto { + private DocumentServiceRequestProto() {} + + 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_contentwarehouse_v1_CloudAIDocumentOption_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_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/contentwarehouse/v1/docum" + + "ent_service_request.proto\022 google.cloud." + + "contentwarehouse.v1\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + "-google/cloud/contentwarehouse/v1/common" + + ".proto\032/google/cloud/contentwarehouse/v1" + + "/document.proto\032.google/cloud/contentwar" + + "ehouse/v1/filters.proto\0320google/cloud/co" + + "ntentwarehouse/v1/histogram.proto\032\032googl" + + "e/iam/v1/policy.proto\032 google/protobuf/f" + + "ield_mask.proto\"\247\002\n\025CloudAIDocumentOptio" + + "n\022#\n\033enable_entities_conversions\030\001 \001(\010\022\230" + + "\001\n*customized_entities_properties_conver" + + "sions\030\002 \003(\0132d.google.cloud.contentwareho" + + "use.v1.CloudAIDocumentOption.CustomizedE" + + "ntitiesPropertiesConversionsEntry\032N\n,Cus" + + "tomizedEntitiesPropertiesConversionsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\236\003\n\025Cr" + + "eateDocumentRequest\022A\n\006parent\030\001 \001(\tB1\342A\001" + + "\002\372A*\n(contentwarehouse.googleapis.com/Lo" + + "cation\022B\n\010document\030\002 \001(\0132*.google.cloud." + + "contentwarehouse.v1.DocumentB\004\342A\001\002\022K\n\020re" + + "quest_metadata\030\003 \001(\01321.google.cloud.cont" + + "entwarehouse.v1.RequestMetadata\022%\n\006polic" + + "y\030\004 \001(\0132\025.google.iam.v1.Policy\022Y\n\030cloud_" + + "ai_document_option\030\005 \001(\01327.google.cloud." + + "contentwarehouse.v1.CloudAIDocumentOptio" + + "n\022/\n\013create_mask\030\006 \001(\0132\032.google.protobuf" + + ".FieldMask\"\242\001\n\022GetDocumentRequest\022?\n\004nam" + + "e\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehouse.googl" + + "eapis.com/Document\022K\n\020request_metadata\030\002" + + " \001(\01321.google.cloud.contentwarehouse.v1." + + "RequestMetadata\"\215\003\n\025UpdateDocumentReques" + + "t\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehou" + + "se.googleapis.com/Document\022B\n\010document\030\002" + + " \001(\0132*.google.cloud.contentwarehouse.v1." + + "DocumentB\004\342A\001\002\022K\n\020request_metadata\030\003 \001(\013" + + "21.google.cloud.contentwarehouse.v1.Requ" + + "estMetadata\022Y\n\030cloud_ai_document_option\030" + + "\005 \001(\01327.google.cloud.contentwarehouse.v1" + + ".CloudAIDocumentOption\022G\n\016update_options" + + "\030\006 \001(\0132/.google.cloud.contentwarehouse.v" + + "1.UpdateOptions\"\245\001\n\025DeleteDocumentReques" + + "t\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehou" + + "se.googleapis.com/Document\022K\n\020request_me" + + "tadata\030\002 \001(\01321.google.cloud.contentwareh" + + "ouse.v1.RequestMetadata\"\372\004\n\026SearchDocume" + + "ntsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(con" + + "tentwarehouse.googleapis.com/Location\022K\n" + + "\020request_metadata\030\003 \001(\01321.google.cloud.c" + + "ontentwarehouse.v1.RequestMetadata\022G\n\016do" + + "cument_query\030\004 \001(\0132/.google.cloud.conten" + + "twarehouse.v1.DocumentQuery\022\016\n\006offset\030\005 " + + "\001(\005\022\021\n\tpage_size\030\006 \001(\005\022\022\n\npage_token\030\007 \001" + + "(\t\022\020\n\010order_by\030\010 \001(\t\022K\n\021histogram_querie" + + "s\030\t \003(\01320.google.cloud.contentwarehouse." + + "v1.HistogramQuery\022\032\n\022require_total_size\030" + + "\n \001(\010\022c\n\021total_result_size\030\014 \001(\0162H.googl" + + "e.cloud.contentwarehouse.v1.SearchDocume" + + "ntsRequest.TotalResultSize\022\025\n\rqa_size_li" + + "mit\030\013 \001(\005\"Y\n\017TotalResultSize\022!\n\035TOTAL_RE" + + "SULT_SIZE_UNSPECIFIED\020\000\022\022\n\016ESTIMATED_SIZ" + + "E\020\001\022\017\n\013ACTUAL_SIZE\020\002\"\257\001\n\023LockDocumentReq" + + "uest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentware" + + "house.googleapis.com/Document\022\025\n\rcollect" + + "ion_id\030\002 \001(\t\022@\n\014locking_user\030\003 \001(\0132*.goo" + + "gle.cloud.contentwarehouse.v1.UserInfo\"\215" + + "\001\n\017FetchAclRequest\022\026\n\010resource\030\001 \001(\tB\004\342A" + + "\001\002\022K\n\020request_metadata\030\002 \001(\01321.google.cl" + + "oud.contentwarehouse.v1.RequestMetadata\022" + + "\025\n\rproject_owner\030\003 \001(\010\"\270\001\n\rSetAclRequest" + + "\022\026\n\010resource\030\001 \001(\tB\004\342A\001\002\022+\n\006policy\030\002 \001(\013" + + "2\025.google.iam.v1.PolicyB\004\342A\001\002\022K\n\020request" + + "_metadata\030\003 \001(\01321.google.cloud.contentwa" + + "rehouse.v1.RequestMetadata\022\025\n\rproject_ow" + + "ner\030\004 \001(\010B\203\002\n$com.google.cloud.contentwa" + + "rehouse.v1B\033DocumentServiceRequestProtoP" + + "\001ZPcloud.google.com/go/contentwarehouse/" + + "apiv1/contentwarehousepb;contentwarehous" + + "epb\252\002 Google.Cloud.ContentWarehouse.V1\312\002" + + " Google\\Cloud\\ContentWarehouse\\V1\352\002#Goog" + + "le::Cloud::ContentWarehouse::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.contentwarehouse.v1.CommonProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.FiltersProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor, + new java.lang.String[] { + "EnableEntitiesConversions", "CustomizedEntitiesPropertiesConversions", + }); + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor = + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor, + new java.lang.String[] { + "Parent", + "Document", + "RequestMetadata", + "Policy", + "CloudAiDocumentOption", + "CreateMask", + }); + internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor, + new java.lang.String[] { + "Name", "RequestMetadata", + }); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor, + new java.lang.String[] { + "Name", "Document", "RequestMetadata", "CloudAiDocumentOption", "UpdateOptions", + }); + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor, + new java.lang.String[] { + "Name", "RequestMetadata", + }); + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor, + new java.lang.String[] { + "Parent", + "RequestMetadata", + "DocumentQuery", + "Offset", + "PageSize", + "PageToken", + "OrderBy", + "HistogramQueries", + "RequireTotalSize", + "TotalResultSize", + "QaSizeLimit", + }); + internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor, + new java.lang.String[] { + "Name", "CollectionId", "LockingUser", + }); + internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor, + new java.lang.String[] { + "Resource", "RequestMetadata", "ProjectOwner", + }); + internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor, + new java.lang.String[] { + "Resource", "Policy", "RequestMetadata", "ProjectOwner", + }); + 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.contentwarehouse.v1.CommonProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.FiltersProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java similarity index 66% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java index efab673248ba..f7fe58a22dc8 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArray.java @@ -1,82 +1,109 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Enum values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.EnumArray} */ -public final class EnumArray extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EnumArray extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.EnumArray) EnumArrayOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EnumArray.newBuilder() to construct. private EnumArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EnumArray() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + values_ = 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 EnumArray(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.EnumArray.class, com.google.cloud.contentwarehouse.v1.EnumArray.Builder.class); + com.google.cloud.contentwarehouse.v1.EnumArray.class, + com.google.cloud.contentwarehouse.v1.EnumArray.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * List of enum values.
    * 
* * repeated string values = 1; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** + * + * *
    * List of enum values.
    * 
* * repeated string values = 1; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
    * List of enum values.
    * 
* * repeated string values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -84,20 +111,23 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** + * + * *
    * List of enum values.
    * 
* * repeated string values = 1; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +139,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } @@ -139,15 +168,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.contentwarehouse.v1.EnumArray)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.EnumArray other = (com.google.cloud.contentwarehouse.v1.EnumArray) obj; + com.google.cloud.contentwarehouse.v1.EnumArray other = + (com.google.cloud.contentwarehouse.v1.EnumArray) obj; - if (!getValuesList() - .equals(other.getValuesList())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -168,145 +197,148 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.EnumArray 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.contentwarehouse.v1.EnumArray parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumArray parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.EnumArray parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.EnumArray 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.contentwarehouse.v1.EnumArray parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.EnumArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.EnumArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Enum values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.EnumArray} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.EnumArray) com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.EnumArray.class, com.google.cloud.contentwarehouse.v1.EnumArray.Builder.class); + com.google.cloud.contentwarehouse.v1.EnumArray.class, + com.google.cloud.contentwarehouse.v1.EnumArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.EnumArray.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor; } @java.lang.Override @@ -325,8 +357,11 @@ public com.google.cloud.contentwarehouse.v1.EnumArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumArray buildPartial() { - com.google.cloud.contentwarehouse.v1.EnumArray result = new com.google.cloud.contentwarehouse.v1.EnumArray(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.EnumArray result = + new com.google.cloud.contentwarehouse.v1.EnumArray(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -343,38 +378,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.EnumArray 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.contentwarehouse.v1.EnumArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.EnumArray)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.EnumArray) other); } else { super.mergeFrom(other); return this; @@ -419,18 +455,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(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(); + ensureValuesIsMutable(); + values_.add(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) { @@ -440,10 +478,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValuesIsMutable() { if (!values_.isModifiable()) { values_ = new com.google.protobuf.LazyStringArrayList(values_); @@ -451,35 +491,43 @@ private void ensureValuesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * List of enum values.
      * 
* * repeated string values = 1; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { values_.makeImmutable(); return values_; } /** + * + * *
      * List of enum values.
      * 
* * repeated string values = 1; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
      * List of enum values.
      * 
* * repeated string values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -487,31 +535,37 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** + * + * *
      * List of enum values.
      * 
* * repeated string values = 1; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** + * + * *
      * List of enum values.
      * 
* * repeated string 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, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureValuesIsMutable(); values_.set(index, value); bitField0_ |= 0x00000001; @@ -519,17 +573,21 @@ public Builder setValues( return this; } /** + * + * *
      * List of enum values.
      * 
* * repeated string values = 1; + * * @param value The values to add. * @return This builder for chaining. */ - public Builder addValues( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureValuesIsMutable(); values_.add(value); bitField0_ |= 0x00000001; @@ -537,50 +595,58 @@ public Builder addValues( return this; } /** + * + * *
      * List of enum values.
      * 
* * repeated string 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * List of enum values.
      * 
* * repeated string values = 1; + * * @return This builder for chaining. */ public Builder clearValues() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * List of enum values.
      * 
* * repeated string values = 1; + * * @param value The bytes of the values to add. * @return This builder for chaining. */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); @@ -588,9 +654,9 @@ public Builder addValuesBytes( 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,12 +666,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.EnumArray) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.EnumArray) private static final com.google.cloud.contentwarehouse.v1.EnumArray DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.EnumArray(); } @@ -614,27 +680,27 @@ public static com.google.cloud.contentwarehouse.v1.EnumArray getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 EnumArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,6 +715,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.EnumArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java similarity index 57% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java index 607e56cb3db9..394669a36448 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumArrayOrBuilder.java @@ -1,50 +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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface EnumArrayOrBuilder extends +public interface EnumArrayOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.EnumArray) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of enum values.
    * 
* * repeated string values = 1; + * * @return A list containing the values. */ - java.util.List - getValuesList(); + java.util.List getValuesList(); /** + * + * *
    * List of enum values.
    * 
* * repeated string values = 1; + * * @return The count of values. */ int getValuesCount(); /** + * + * *
    * List of enum values.
    * 
* * repeated string values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** + * + * *
    * List of enum values.
    * 
* * repeated string values = 1; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - com.google.protobuf.ByteString - getValuesBytes(int index); + com.google.protobuf.ByteString getValuesBytes(int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java similarity index 70% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java index 01e41977cb5d..4f0930def192 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptions.java @@ -1,82 +1,109 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Configurations for an enum/categorical property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.EnumTypeOptions} */ -public final class EnumTypeOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EnumTypeOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.EnumTypeOptions) EnumTypeOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EnumTypeOptions.newBuilder() to construct. private EnumTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EnumTypeOptions() { - possibleValues_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + possibleValues_ = 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 EnumTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.EnumTypeOptions.class, com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.EnumTypeOptions.class, + com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder.class); } public static final int POSSIBLE_VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList possibleValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the possibleValues. */ - public com.google.protobuf.ProtocolStringList - getPossibleValuesList() { + public com.google.protobuf.ProtocolStringList getPossibleValuesList() { return possibleValues_; } /** + * + * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of possibleValues. */ public int getPossibleValuesCount() { return possibleValues_.size(); } /** + * + * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The possibleValues at the given index. */ @@ -84,22 +111,26 @@ public java.lang.String getPossibleValues(int index) { return possibleValues_.get(index); } /** + * + * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the possibleValues at the given index. */ - public com.google.protobuf.ByteString - getPossibleValuesBytes(int index) { + public com.google.protobuf.ByteString getPossibleValuesBytes(int index) { return possibleValues_.getByteString(index); } public static final int VALIDATION_CHECK_DISABLED_FIELD_NUMBER = 2; private boolean validationCheckDisabled_ = false; /** + * + * *
    * Make sure the Enum property value provided in the document is in the
    * possile value list during document creation. The validation check runs by
@@ -107,6 +138,7 @@ public java.lang.String getPossibleValues(int index) {
    * 
* * bool validation_check_disabled = 2; + * * @return The validationCheckDisabled. */ @java.lang.Override @@ -115,6 +147,7 @@ public boolean getValidationCheckDisabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,8 +159,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < possibleValues_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, possibleValues_.getRaw(i)); } @@ -152,8 +184,7 @@ public int getSerializedSize() { size += 1 * getPossibleValuesList().size(); } if (validationCheckDisabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validationCheckDisabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validationCheckDisabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -163,17 +194,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.contentwarehouse.v1.EnumTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.EnumTypeOptions other = (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.EnumTypeOptions other = + (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) obj; - if (!getPossibleValuesList() - .equals(other.getPossibleValuesList())) return false; - if (getValidationCheckDisabled() - != other.getValidationCheckDisabled()) return false; + if (!getPossibleValuesList().equals(other.getPossibleValuesList())) return false; + if (getValidationCheckDisabled() != other.getValidationCheckDisabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -190,153 +220,155 @@ public int hashCode() { hash = (53 * hash) + getPossibleValuesList().hashCode(); } hash = (37 * hash) + VALIDATION_CHECK_DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidationCheckDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidationCheckDisabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions 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.contentwarehouse.v1.EnumTypeOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions 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.contentwarehouse.v1.EnumTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.EnumTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Configurations for an enum/categorical property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.EnumTypeOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.EnumTypeOptions) com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.EnumTypeOptions.class, com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.EnumTypeOptions.class, + com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.EnumTypeOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - possibleValues_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + possibleValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); validationCheckDisabled_ = false; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; } @java.lang.Override @@ -355,8 +387,11 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.EnumTypeOptions result = new com.google.cloud.contentwarehouse.v1.EnumTypeOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.EnumTypeOptions result = + new com.google.cloud.contentwarehouse.v1.EnumTypeOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -376,38 +411,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.EnumTypeOptions public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.EnumTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.EnumTypeOptions)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.EnumTypeOptions) other); } else { super.mergeFrom(other); return this; @@ -415,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.EnumTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance()) + return this; if (!other.possibleValues_.isEmpty()) { if (possibleValues_.isEmpty()) { possibleValues_ = other.possibleValues_; @@ -455,23 +492,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePossibleValuesIsMutable(); - possibleValues_.add(s); - break; - } // case 10 - case 16: { - validationCheckDisabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePossibleValuesIsMutable(); + possibleValues_.add(s); + break; + } // case 10 + case 16: + { + validationCheckDisabled_ = 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) { @@ -481,10 +521,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList possibleValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePossibleValuesIsMutable() { if (!possibleValues_.isModifiable()) { possibleValues_ = new com.google.protobuf.LazyStringArrayList(possibleValues_); @@ -492,35 +534,43 @@ private void ensurePossibleValuesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the possibleValues. */ - public com.google.protobuf.ProtocolStringList - getPossibleValuesList() { + public com.google.protobuf.ProtocolStringList getPossibleValuesList() { possibleValues_.makeImmutable(); return possibleValues_; } /** + * + * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of possibleValues. */ public int getPossibleValuesCount() { return possibleValues_.size(); } /** + * + * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The possibleValues at the given index. */ @@ -528,31 +578,37 @@ public java.lang.String getPossibleValues(int index) { return possibleValues_.get(index); } /** + * + * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the possibleValues at the given index. */ - public com.google.protobuf.ByteString - getPossibleValuesBytes(int index) { + public com.google.protobuf.ByteString getPossibleValuesBytes(int index) { return possibleValues_.getByteString(index); } /** + * + * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The possibleValues to set. * @return This builder for chaining. */ - public Builder setPossibleValues( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPossibleValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePossibleValuesIsMutable(); possibleValues_.set(index, value); bitField0_ |= 0x00000001; @@ -560,17 +616,21 @@ public Builder setPossibleValues( return this; } /** + * + * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The possibleValues to add. * @return This builder for chaining. */ - public Builder addPossibleValues( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPossibleValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePossibleValuesIsMutable(); possibleValues_.add(value); bitField0_ |= 0x00000001; @@ -578,50 +638,58 @@ public Builder addPossibleValues( return this; } /** + * + * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The possibleValues to add. * @return This builder for chaining. */ - public Builder addAllPossibleValues( - java.lang.Iterable values) { + public Builder addAllPossibleValues(java.lang.Iterable values) { ensurePossibleValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, possibleValues_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, possibleValues_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPossibleValues() { - possibleValues_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + possibleValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Required. List of possible enum values.
      * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the possibleValues to add. * @return This builder for chaining. */ - public Builder addPossibleValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPossibleValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePossibleValuesIsMutable(); possibleValues_.add(value); @@ -630,8 +698,10 @@ public Builder addPossibleValuesBytes( return this; } - private boolean validationCheckDisabled_ ; + private boolean validationCheckDisabled_; /** + * + * *
      * Make sure the Enum property value provided in the document is in the
      * possile value list during document creation. The validation check runs by
@@ -639,6 +709,7 @@ public Builder addPossibleValuesBytes(
      * 
* * bool validation_check_disabled = 2; + * * @return The validationCheckDisabled. */ @java.lang.Override @@ -646,6 +717,8 @@ public boolean getValidationCheckDisabled() { return validationCheckDisabled_; } /** + * + * *
      * Make sure the Enum property value provided in the document is in the
      * possile value list during document creation. The validation check runs by
@@ -653,6 +726,7 @@ public boolean getValidationCheckDisabled() {
      * 
* * bool validation_check_disabled = 2; + * * @param value The validationCheckDisabled to set. * @return This builder for chaining. */ @@ -664,6 +738,8 @@ public Builder setValidationCheckDisabled(boolean value) { return this; } /** + * + * *
      * Make sure the Enum property value provided in the document is in the
      * possile value list during document creation. The validation check runs by
@@ -671,6 +747,7 @@ public Builder setValidationCheckDisabled(boolean value) {
      * 
* * bool validation_check_disabled = 2; + * * @return This builder for chaining. */ public Builder clearValidationCheckDisabled() { @@ -679,9 +756,9 @@ public Builder clearValidationCheckDisabled() { 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); } @@ -691,12 +768,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.EnumTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.EnumTypeOptions) private static final com.google.cloud.contentwarehouse.v1.EnumTypeOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.EnumTypeOptions(); } @@ -705,27 +782,27 @@ public static com.google.cloud.contentwarehouse.v1.EnumTypeOptions getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 EnumTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -740,6 +817,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.EnumTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java similarity index 67% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java index 006fd8223ece..ffce4774a970 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumTypeOptionsOrBuilder.java @@ -1,54 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; -public interface EnumTypeOptionsOrBuilder extends +public interface EnumTypeOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.EnumTypeOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the possibleValues. */ - java.util.List - getPossibleValuesList(); + java.util.List getPossibleValuesList(); /** + * + * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of possibleValues. */ int getPossibleValuesCount(); /** + * + * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The possibleValues at the given index. */ java.lang.String getPossibleValues(int index); /** + * + * *
    * Required. List of possible enum values.
    * 
* * repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the possibleValues at the given index. */ - com.google.protobuf.ByteString - getPossibleValuesBytes(int index); + com.google.protobuf.ByteString getPossibleValuesBytes(int index); /** + * + * *
    * Make sure the Enum property value provided in the document is in the
    * possile value list during document creation. The validation check runs by
@@ -56,6 +84,7 @@ public interface EnumTypeOptionsOrBuilder extends
    * 
* * bool validation_check_disabled = 2; + * * @return The validationCheckDisabled. */ boolean getValidationCheckDisabled(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java similarity index 66% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java index 8e364855fc50..b5ca7a3a05ed 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValue.java @@ -1,58 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents the string value of the enum field.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.EnumValue} */ -public final class EnumValue extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EnumValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.EnumValue) EnumValueOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EnumValue.newBuilder() to construct. private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EnumValue() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EnumValue(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumValue_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_EnumValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.EnumValue.class, com.google.cloud.contentwarehouse.v1.EnumValue.Builder.class); + com.google.cloud.contentwarehouse.v1.EnumValue.class, + com.google.cloud.contentwarehouse.v1.EnumValue.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** + * + * *
    * String value of the enum field. This must match defined set of enums
    * in document schema using EnumTypeOptions.
    * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -61,30 +84,30 @@ 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(); value_ = s; return s; } } /** + * + * *
    * String value of the enum field. This must match defined set of enums
    * in document schema using EnumTypeOptions.
    * 
* * 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 = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -93,6 +116,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +128,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -129,15 +152,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.contentwarehouse.v1.EnumValue)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.EnumValue other = (com.google.cloud.contentwarehouse.v1.EnumValue) obj; + com.google.cloud.contentwarehouse.v1.EnumValue other = + (com.google.cloud.contentwarehouse.v1.EnumValue) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,132 +179,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.EnumValue 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.contentwarehouse.v1.EnumValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.EnumValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.EnumValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.EnumValue 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.contentwarehouse.v1.EnumValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.EnumValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.EnumValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the string value of the enum field.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.EnumValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.EnumValue) com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumValue_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_EnumValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.EnumValue.class, com.google.cloud.contentwarehouse.v1.EnumValue.Builder.class); + com.google.cloud.contentwarehouse.v1.EnumValue.class, + com.google.cloud.contentwarehouse.v1.EnumValue.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.EnumValue.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +318,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor; } @java.lang.Override @@ -312,8 +339,11 @@ public com.google.cloud.contentwarehouse.v1.EnumValue build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumValue buildPartial() { - com.google.cloud.contentwarehouse.v1.EnumValue result = new com.google.cloud.contentwarehouse.v1.EnumValue(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.EnumValue result = + new com.google.cloud.contentwarehouse.v1.EnumValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +359,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.EnumValue 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.contentwarehouse.v1.EnumValue) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.EnumValue)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.EnumValue) other); } else { super.mergeFrom(other); return this; @@ -400,17 +431,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + value_ = 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) { @@ -420,23 +453,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object value_ = ""; /** + * + * *
      * String value of the enum field. This must match defined set of enums
      * in document schema using EnumTypeOptions.
      * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -445,21 +481,22 @@ public java.lang.String getValue() { } } /** + * + * *
      * String value of the enum field. This must match defined set of enums
      * in document schema using EnumTypeOptions.
      * 
* * string value = 1; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -467,30 +504,37 @@ public java.lang.String getValue() { } } /** + * + * *
      * String value of the enum field. This must match defined set of enums
      * in document schema using EnumTypeOptions.
      * 
* * 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(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * String value of the enum field. This must match defined set of enums
      * in document schema using EnumTypeOptions.
      * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -500,27 +544,31 @@ public Builder clearValue() { return this; } /** + * + * *
      * String value of the enum field. This must match defined set of enums
      * in document schema using EnumTypeOptions.
      * 
* * 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); value_ = 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); } @@ -530,12 +578,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.EnumValue) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.EnumValue) private static final com.google.cloud.contentwarehouse.v1.EnumValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.EnumValue(); } @@ -544,27 +592,27 @@ public static com.google.cloud.contentwarehouse.v1.EnumValue getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 EnumValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +627,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.EnumValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java similarity index 52% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java index 608d69b49d1d..5c90894e6192 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/EnumValueOrBuilder.java @@ -1,31 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface EnumValueOrBuilder extends +public interface EnumValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.EnumValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * String value of the enum field. This must match defined set of enums
    * in document schema using EnumTypeOptions.
    * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
    * String value of the enum field. This must match defined set of enums
    * in document schema using EnumTypeOptions.
    * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java similarity index 74% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java index b8b0dda30119..5b9208a8c614 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipeline.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * The configuration of exporting documents from the Document Warehouse to CDW
  * pipeline.
@@ -11,47 +28,51 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.ExportToCdwPipeline}
  */
-public final class ExportToCdwPipeline extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ExportToCdwPipeline extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ExportToCdwPipeline)
     ExportToCdwPipelineOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ExportToCdwPipeline.newBuilder() to construct.
   private ExportToCdwPipeline(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ExportToCdwPipeline() {
-    documents_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
     exportFolderPath_ = "";
     docAiDataset_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ExportToCdwPipeline();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.PipelinesProto
+        .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.PipelinesProto
+        .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.class, com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder.class);
+            com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.class,
+            com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder.class);
   }
 
   public static final int DOCUMENTS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList documents_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -59,13 +80,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string documents = 1; + * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList - getDocumentsList() { + public com.google.protobuf.ProtocolStringList getDocumentsList() { return documents_; } /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -73,12 +96,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string documents = 1; + * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -86,6 +112,7 @@ public int getDocumentsCount() {
    * 
* * repeated string documents = 1; + * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -93,6 +120,8 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -100,18 +129,21 @@ public java.lang.String getDocuments(int index) {
    * 
* * repeated string documents = 1; + * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString - getDocumentsBytes(int index) { + public com.google.protobuf.ByteString getDocumentsBytes(int index) { return documents_.getByteString(index); } public static final int EXPORT_FOLDER_PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object exportFolderPath_ = ""; /** + * + * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -119,6 +151,7 @@ public java.lang.String getDocuments(int index) {
    * 
* * string export_folder_path = 2; + * * @return The exportFolderPath. */ @java.lang.Override @@ -127,14 +160,15 @@ public java.lang.String getExportFolderPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exportFolderPath_ = s; return s; } } /** + * + * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -142,16 +176,15 @@ public java.lang.String getExportFolderPath() {
    * 
* * string export_folder_path = 2; + * * @return The bytes for exportFolderPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getExportFolderPathBytes() { + public com.google.protobuf.ByteString getExportFolderPathBytes() { java.lang.Object ref = exportFolderPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); exportFolderPath_ = b; return b; } else { @@ -160,9 +193,12 @@ public java.lang.String getExportFolderPath() { } public static final int DOC_AI_DATASET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object docAiDataset_ = ""; /** + * + * *
    * Optional. The CDW dataset resource name. This field is optional. If not
    * set, the documents will be exported to Cloud Storage only. Format:
@@ -170,6 +206,7 @@ public java.lang.String getExportFolderPath() {
    * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The docAiDataset. */ @java.lang.Override @@ -178,14 +215,15 @@ public java.lang.String getDocAiDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docAiDataset_ = s; return s; } } /** + * + * *
    * Optional. The CDW dataset resource name. This field is optional. If not
    * set, the documents will be exported to Cloud Storage only. Format:
@@ -193,16 +231,15 @@ public java.lang.String getDocAiDataset() {
    * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for docAiDataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getDocAiDatasetBytes() { + public com.google.protobuf.ByteString getDocAiDatasetBytes() { java.lang.Object ref = docAiDataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); docAiDataset_ = b; return b; } else { @@ -213,6 +250,8 @@ public java.lang.String getDocAiDataset() { public static final int TRAINING_SPLIT_RATIO_FIELD_NUMBER = 4; private float trainingSplitRatio_ = 0F; /** + * + * *
    * Ratio of training dataset split. When importing into Document AI Workbench,
    * documents will be automatically split into training and test split category
@@ -220,6 +259,7 @@ public java.lang.String getDocAiDataset() {
    * 
* * float training_split_ratio = 4; + * * @return The trainingSplitRatio. */ @java.lang.Override @@ -228,6 +268,7 @@ public float getTrainingSplitRatio() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,8 +280,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < documents_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i)); } @@ -277,8 +317,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, docAiDataset_); } if (java.lang.Float.floatToRawIntBits(trainingSplitRatio_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, trainingSplitRatio_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, trainingSplitRatio_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -288,22 +327,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.contentwarehouse.v1.ExportToCdwPipeline)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline other = (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) obj; - - if (!getDocumentsList() - .equals(other.getDocumentsList())) return false; - if (!getExportFolderPath() - .equals(other.getExportFolderPath())) return false; - if (!getDocAiDataset() - .equals(other.getDocAiDataset())) return false; + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline other = + (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) obj; + + if (!getDocumentsList().equals(other.getDocumentsList())) return false; + if (!getExportFolderPath().equals(other.getExportFolderPath())) return false; + if (!getDocAiDataset().equals(other.getDocAiDataset())) return false; if (java.lang.Float.floatToIntBits(getTrainingSplitRatio()) - != java.lang.Float.floatToIntBits( - other.getTrainingSplitRatio())) return false; + != java.lang.Float.floatToIntBits(other.getTrainingSplitRatio())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,106 +360,111 @@ public int hashCode() { hash = (37 * hash) + DOC_AI_DATASET_FIELD_NUMBER; hash = (53 * hash) + getDocAiDataset().hashCode(); hash = (37 * hash) + TRAINING_SPLIT_RATIO_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTrainingSplitRatio()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTrainingSplitRatio()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline 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.contentwarehouse.v1.ExportToCdwPipeline parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline 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.contentwarehouse.v1.ExportToCdwPipeline parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The configuration of exporting documents from the Document Warehouse to CDW
    * pipeline.
@@ -431,39 +472,37 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.ExportToCdwPipeline}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ExportToCdwPipeline)
       com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto
+          .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto
+          .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.class, com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder.class);
+              com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.class,
+              com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      documents_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
       exportFolderPath_ = "";
       docAiDataset_ = "";
       trainingSplitRatio_ = 0F;
@@ -471,9 +510,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto
+          .internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor;
     }
 
     @java.lang.Override
@@ -492,8 +531,11 @@ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline buildPartial() {
-      com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline result = new com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline result =
+          new com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -519,38 +561,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ExportToCdwPipel
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ExportToCdwPipeline) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline)other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -558,7 +601,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline other) {
-      if (other == com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance()) return this;
+      if (other == com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance())
+        return this;
       if (!other.documents_.isEmpty()) {
         if (documents_.isEmpty()) {
           documents_ = other.documents_;
@@ -608,33 +652,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureDocumentsIsMutable();
-              documents_.add(s);
-              break;
-            } // case 10
-            case 18: {
-              exportFolderPath_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              docAiDataset_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 37: {
-              trainingSplitRatio_ = input.readFloat();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 37
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureDocumentsIsMutable();
+                documents_.add(s);
+                break;
+              } // case 10
+            case 18:
+              {
+                exportFolderPath_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                docAiDataset_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 37:
+              {
+                trainingSplitRatio_ = input.readFloat();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 37
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -644,10 +693,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList documents_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
+
     private void ensureDocumentsIsMutable() {
       if (!documents_.isModifiable()) {
         documents_ = new com.google.protobuf.LazyStringArrayList(documents_);
@@ -655,6 +706,8 @@ private void ensureDocumentsIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
+     *
+     *
      * 
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -662,14 +715,16 @@ private void ensureDocumentsIsMutable() {
      * 
* * repeated string documents = 1; + * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList - getDocumentsList() { + public com.google.protobuf.ProtocolStringList getDocumentsList() { documents_.makeImmutable(); return documents_; } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -677,12 +732,15 @@ private void ensureDocumentsIsMutable() {
      * 
* * repeated string documents = 1; + * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -690,6 +748,7 @@ public int getDocumentsCount() {
      * 
* * repeated string documents = 1; + * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -697,6 +756,8 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -704,14 +765,16 @@ public java.lang.String getDocuments(int index) {
      * 
* * repeated string documents = 1; + * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString - getDocumentsBytes(int index) { + public com.google.protobuf.ByteString getDocumentsBytes(int index) { return documents_.getByteString(index); } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -719,13 +782,15 @@ public java.lang.String getDocuments(int index) {
      * 
* * repeated string documents = 1; + * * @param index The index to set the value at. * @param value The documents to set. * @return This builder for chaining. */ - public Builder setDocuments( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocuments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentsIsMutable(); documents_.set(index, value); bitField0_ |= 0x00000001; @@ -733,6 +798,8 @@ public Builder setDocuments( return this; } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -740,12 +807,14 @@ public Builder setDocuments(
      * 
* * repeated string documents = 1; + * * @param value The documents to add. * @return This builder for chaining. */ - public Builder addDocuments( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocuments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentsIsMutable(); documents_.add(value); bitField0_ |= 0x00000001; @@ -753,6 +822,8 @@ public Builder addDocuments( return this; } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -760,19 +831,20 @@ public Builder addDocuments(
      * 
* * repeated string documents = 1; + * * @param values The documents to add. * @return This builder for chaining. */ - public Builder addAllDocuments( - java.lang.Iterable values) { + public Builder addAllDocuments(java.lang.Iterable values) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -780,16 +852,19 @@ public Builder addAllDocuments(
      * 
* * repeated string documents = 1; + * * @return This builder for chaining. */ public Builder clearDocuments() { - documents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -797,12 +872,14 @@ public Builder clearDocuments() {
      * 
* * repeated string documents = 1; + * * @param value The bytes of the documents to add. * @return This builder for chaining. */ - public Builder addDocumentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDocumentsIsMutable(); documents_.add(value); @@ -813,6 +890,8 @@ public Builder addDocumentsBytes( private java.lang.Object exportFolderPath_ = ""; /** + * + * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -820,13 +899,13 @@ public Builder addDocumentsBytes(
      * 
* * string export_folder_path = 2; + * * @return The exportFolderPath. */ public java.lang.String getExportFolderPath() { java.lang.Object ref = exportFolderPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exportFolderPath_ = s; return s; @@ -835,6 +914,8 @@ public java.lang.String getExportFolderPath() { } } /** + * + * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -842,15 +923,14 @@ public java.lang.String getExportFolderPath() {
      * 
* * string export_folder_path = 2; + * * @return The bytes for exportFolderPath. */ - public com.google.protobuf.ByteString - getExportFolderPathBytes() { + public com.google.protobuf.ByteString getExportFolderPathBytes() { java.lang.Object ref = exportFolderPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); exportFolderPath_ = b; return b; } else { @@ -858,6 +938,8 @@ public java.lang.String getExportFolderPath() { } } /** + * + * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -865,18 +947,22 @@ public java.lang.String getExportFolderPath() {
      * 
* * string export_folder_path = 2; + * * @param value The exportFolderPath to set. * @return This builder for chaining. */ - public Builder setExportFolderPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExportFolderPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } exportFolderPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -884,6 +970,7 @@ public Builder setExportFolderPath(
      * 
* * string export_folder_path = 2; + * * @return This builder for chaining. */ public Builder clearExportFolderPath() { @@ -893,6 +980,8 @@ public Builder clearExportFolderPath() { return this; } /** + * + * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -900,12 +989,14 @@ public Builder clearExportFolderPath() {
      * 
* * string export_folder_path = 2; + * * @param value The bytes for exportFolderPath to set. * @return This builder for chaining. */ - public Builder setExportFolderPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExportFolderPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); exportFolderPath_ = value; bitField0_ |= 0x00000002; @@ -915,6 +1006,8 @@ public Builder setExportFolderPathBytes( private java.lang.Object docAiDataset_ = ""; /** + * + * *
      * Optional. The CDW dataset resource name. This field is optional. If not
      * set, the documents will be exported to Cloud Storage only. Format:
@@ -922,13 +1015,13 @@ public Builder setExportFolderPathBytes(
      * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The docAiDataset. */ public java.lang.String getDocAiDataset() { java.lang.Object ref = docAiDataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docAiDataset_ = s; return s; @@ -937,6 +1030,8 @@ public java.lang.String getDocAiDataset() { } } /** + * + * *
      * Optional. The CDW dataset resource name. This field is optional. If not
      * set, the documents will be exported to Cloud Storage only. Format:
@@ -944,15 +1039,14 @@ public java.lang.String getDocAiDataset() {
      * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for docAiDataset. */ - public com.google.protobuf.ByteString - getDocAiDatasetBytes() { + public com.google.protobuf.ByteString getDocAiDatasetBytes() { java.lang.Object ref = docAiDataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); docAiDataset_ = b; return b; } else { @@ -960,6 +1054,8 @@ public java.lang.String getDocAiDataset() { } } /** + * + * *
      * Optional. The CDW dataset resource name. This field is optional. If not
      * set, the documents will be exported to Cloud Storage only. Format:
@@ -967,18 +1063,22 @@ public java.lang.String getDocAiDataset() {
      * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The docAiDataset to set. * @return This builder for chaining. */ - public Builder setDocAiDataset( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocAiDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } docAiDataset_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The CDW dataset resource name. This field is optional. If not
      * set, the documents will be exported to Cloud Storage only. Format:
@@ -986,6 +1086,7 @@ public Builder setDocAiDataset(
      * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDocAiDataset() { @@ -995,6 +1096,8 @@ public Builder clearDocAiDataset() { return this; } /** + * + * *
      * Optional. The CDW dataset resource name. This field is optional. If not
      * set, the documents will be exported to Cloud Storage only. Format:
@@ -1002,12 +1105,14 @@ public Builder clearDocAiDataset() {
      * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for docAiDataset to set. * @return This builder for chaining. */ - public Builder setDocAiDatasetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocAiDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); docAiDataset_ = value; bitField0_ |= 0x00000004; @@ -1015,8 +1120,10 @@ public Builder setDocAiDatasetBytes( return this; } - private float trainingSplitRatio_ ; + private float trainingSplitRatio_; /** + * + * *
      * Ratio of training dataset split. When importing into Document AI Workbench,
      * documents will be automatically split into training and test split category
@@ -1024,6 +1131,7 @@ public Builder setDocAiDatasetBytes(
      * 
* * float training_split_ratio = 4; + * * @return The trainingSplitRatio. */ @java.lang.Override @@ -1031,6 +1139,8 @@ public float getTrainingSplitRatio() { return trainingSplitRatio_; } /** + * + * *
      * Ratio of training dataset split. When importing into Document AI Workbench,
      * documents will be automatically split into training and test split category
@@ -1038,6 +1148,7 @@ public float getTrainingSplitRatio() {
      * 
* * float training_split_ratio = 4; + * * @param value The trainingSplitRatio to set. * @return This builder for chaining. */ @@ -1049,6 +1160,8 @@ public Builder setTrainingSplitRatio(float value) { return this; } /** + * + * *
      * Ratio of training dataset split. When importing into Document AI Workbench,
      * documents will be automatically split into training and test split category
@@ -1056,6 +1169,7 @@ public Builder setTrainingSplitRatio(float value) {
      * 
* * float training_split_ratio = 4; + * * @return This builder for chaining. */ public Builder clearTrainingSplitRatio() { @@ -1064,9 +1178,9 @@ public Builder clearTrainingSplitRatio() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +1190,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ExportToCdwPipeline) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ExportToCdwPipeline) private static final com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline(); } @@ -1090,27 +1204,27 @@ public static com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportToCdwPipeline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ExportToCdwPipeline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,6 +1239,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java similarity index 77% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java index 1c59f190d8fb..f33d2e08a597 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ExportToCdwPipelineOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface ExportToCdwPipelineOrBuilder extends +public interface ExportToCdwPipelineOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ExportToCdwPipeline) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -15,11 +33,13 @@ public interface ExportToCdwPipelineOrBuilder extends
    * 
* * repeated string documents = 1; + * * @return A list containing the documents. */ - java.util.List - getDocumentsList(); + java.util.List getDocumentsList(); /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -27,10 +47,13 @@ public interface ExportToCdwPipelineOrBuilder extends
    * 
* * repeated string documents = 1; + * * @return The count of documents. */ int getDocumentsCount(); /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -38,11 +61,14 @@ public interface ExportToCdwPipelineOrBuilder extends
    * 
* * repeated string documents = 1; + * * @param index The index of the element to return. * @return The documents at the given index. */ java.lang.String getDocuments(int index); /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -50,13 +76,15 @@ public interface ExportToCdwPipelineOrBuilder extends
    * 
* * repeated string documents = 1; + * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - com.google.protobuf.ByteString - getDocumentsBytes(int index); + com.google.protobuf.ByteString getDocumentsBytes(int index); /** + * + * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -64,10 +92,13 @@ public interface ExportToCdwPipelineOrBuilder extends
    * 
* * string export_folder_path = 2; + * * @return The exportFolderPath. */ java.lang.String getExportFolderPath(); /** + * + * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -75,12 +106,14 @@ public interface ExportToCdwPipelineOrBuilder extends
    * 
* * string export_folder_path = 2; + * * @return The bytes for exportFolderPath. */ - com.google.protobuf.ByteString - getExportFolderPathBytes(); + com.google.protobuf.ByteString getExportFolderPathBytes(); /** + * + * *
    * Optional. The CDW dataset resource name. This field is optional. If not
    * set, the documents will be exported to Cloud Storage only. Format:
@@ -88,10 +121,13 @@ public interface ExportToCdwPipelineOrBuilder extends
    * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The docAiDataset. */ java.lang.String getDocAiDataset(); /** + * + * *
    * Optional. The CDW dataset resource name. This field is optional. If not
    * set, the documents will be exported to Cloud Storage only. Format:
@@ -99,12 +135,14 @@ public interface ExportToCdwPipelineOrBuilder extends
    * 
* * string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for docAiDataset. */ - com.google.protobuf.ByteString - getDocAiDatasetBytes(); + com.google.protobuf.ByteString getDocAiDatasetBytes(); /** + * + * *
    * Ratio of training dataset split. When importing into Document AI Workbench,
    * documents will be automatically split into training and test split category
@@ -112,6 +150,7 @@ public interface ExportToCdwPipelineOrBuilder extends
    * 
* * float training_split_ratio = 4; + * * @return The trainingSplitRatio. */ float getTrainingSplitRatio(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java similarity index 72% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java index 2d4aa5216c91..7e5e13964787 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentService.FetchAcl
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FetchAclRequest} */ -public final class FetchAclRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FetchAclRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.FetchAclRequest) FetchAclRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FetchAclRequest.newBuilder() to construct. private FetchAclRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FetchAclRequest() { resource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FetchAclRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FetchAclRequest.class, com.google.cloud.contentwarehouse.v1.FetchAclRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.FetchAclRequest.class, + com.google.cloud.contentwarehouse.v1.FetchAclRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object resource_ = ""; /** + * + * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -57,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resource. */ @java.lang.Override @@ -65,14 +88,15 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -83,16 +107,15 @@ public java.lang.String getResource() {
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -103,12 +126,15 @@ public java.lang.String getResource() { public static final int REQUEST_METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -116,19 +142,26 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -137,19 +170,25 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+        : requestMetadata_;
   }
 
   public static final int PROJECT_OWNER_FIELD_NUMBER = 3;
   private boolean projectOwner_ = false;
   /**
+   *
+   *
    * 
    * For Get Project ACL only. Authorization check for end user will be ignored
    * when project_owner=true.
    * 
* * bool project_owner = 3; + * * @return The projectOwner. */ @java.lang.Override @@ -158,6 +197,7 @@ public boolean getProjectOwner() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } @@ -193,12 +232,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } if (requestMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRequestMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata()); } if (projectOwner_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, projectOwner_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, projectOwner_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -208,22 +245,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.contentwarehouse.v1.FetchAclRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.FetchAclRequest other = (com.google.cloud.contentwarehouse.v1.FetchAclRequest) obj; + com.google.cloud.contentwarehouse.v1.FetchAclRequest other = + (com.google.cloud.contentwarehouse.v1.FetchAclRequest) obj; - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; if (hasRequestMetadata() != other.hasRequestMetadata()) return false; if (hasRequestMetadata()) { - if (!getRequestMetadata() - .equals(other.getRequestMetadata())) return false; + if (!getRequestMetadata().equals(other.getRequestMetadata())) return false; } - if (getProjectOwner() - != other.getProjectOwner()) return false; + if (getProjectOwner() != other.getProjectOwner()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,139 +277,142 @@ public int hashCode() { hash = (53 * hash) + getRequestMetadata().hashCode(); } hash = (37 * hash) + PROJECT_OWNER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getProjectOwner()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProjectOwner()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.FetchAclRequest 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.contentwarehouse.v1.FetchAclRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.FetchAclRequest 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.contentwarehouse.v1.FetchAclRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.FetchAclRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.FetchAclRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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.FetchAcl
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FetchAclRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.FetchAclRequest) com.google.cloud.contentwarehouse.v1.FetchAclRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FetchAclRequest.class, com.google.cloud.contentwarehouse.v1.FetchAclRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.FetchAclRequest.class, + com.google.cloud.contentwarehouse.v1.FetchAclRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.FetchAclRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -390,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; } @java.lang.Override @@ -411,8 +449,11 @@ public com.google.cloud.contentwarehouse.v1.FetchAclRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.FetchAclRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.FetchAclRequest result = new com.google.cloud.contentwarehouse.v1.FetchAclRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.FetchAclRequest result = + new com.google.cloud.contentwarehouse.v1.FetchAclRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -423,9 +464,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.FetchAclRequest result.resource_ = resource_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMetadata_ = requestMetadataBuilder_ == null - ? requestMetadata_ - : requestMetadataBuilder_.build(); + result.requestMetadata_ = + requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.projectOwner_ = projectOwner_; @@ -436,38 +476,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.FetchAclRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.FetchAclRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.FetchAclRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.FetchAclRequest) other); } else { super.mergeFrom(other); return this; @@ -475,7 +516,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.FetchAclRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.FetchAclRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.FetchAclRequest.getDefaultInstance()) + return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; bitField0_ |= 0x00000001; @@ -513,29 +555,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - projectOwner_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + projectOwner_ = 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) { @@ -545,10 +589,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object resource_ = ""; /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -559,13 +606,13 @@ public Builder mergeFrom(
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -574,6 +621,8 @@ public java.lang.String getResource() { } } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -584,15 +633,14 @@ public java.lang.String getResource() {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -600,6 +648,8 @@ public java.lang.String getResource() { } } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -610,18 +660,22 @@ public java.lang.String getResource() {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resource_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -632,6 +686,7 @@ public Builder setResource(
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearResource() { @@ -641,6 +696,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -651,12 +708,14 @@ public Builder clearResource() {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resource_ = value; bitField0_ |= 0x00000001; @@ -666,36 +725,49 @@ public Builder setResourceBytes( private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> + requestMetadataBuilder_; /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -717,6 +789,8 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -736,6 +810,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -743,11 +819,13 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(
+        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          requestMetadata_ != null &&
-          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && requestMetadata_ != null
+            && requestMetadata_
+                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -760,6 +838,8 @@ public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.Request
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -778,6 +858,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -785,12 +867,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+        getRequestMetadataBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -798,15 +883,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMe
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+        getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+        return requestMetadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+            : requestMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -815,27 +904,33 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(),
-                getParentForChildren(),
-                isClean());
+        requestMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RequestMetadata,
+                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(), getParentForChildren(), isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
 
-    private boolean projectOwner_ ;
+    private boolean projectOwner_;
     /**
+     *
+     *
      * 
      * For Get Project ACL only. Authorization check for end user will be ignored
      * when project_owner=true.
      * 
* * bool project_owner = 3; + * * @return The projectOwner. */ @java.lang.Override @@ -843,12 +938,15 @@ public boolean getProjectOwner() { return projectOwner_; } /** + * + * *
      * For Get Project ACL only. Authorization check for end user will be ignored
      * when project_owner=true.
      * 
* * bool project_owner = 3; + * * @param value The projectOwner to set. * @return This builder for chaining. */ @@ -860,12 +958,15 @@ public Builder setProjectOwner(boolean value) { return this; } /** + * + * *
      * For Get Project ACL only. Authorization check for end user will be ignored
      * when project_owner=true.
      * 
* * bool project_owner = 3; + * * @return This builder for chaining. */ public Builder clearProjectOwner() { @@ -874,9 +975,9 @@ public Builder clearProjectOwner() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -886,12 +987,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.FetchAclRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.FetchAclRequest) private static final com.google.cloud.contentwarehouse.v1.FetchAclRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.FetchAclRequest(); } @@ -900,27 +1001,27 @@ public static com.google.cloud.contentwarehouse.v1.FetchAclRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchAclRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 FetchAclRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -935,6 +1036,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.FetchAclRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java index e7051e0dbe0a..570d692dfffe 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclRequestOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface FetchAclRequestOrBuilder extends +public interface FetchAclRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.FetchAclRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -18,10 +36,13 @@ public interface FetchAclRequestOrBuilder extends
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -32,32 +53,40 @@ public interface FetchAclRequestOrBuilder extends
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -68,12 +97,15 @@ public interface FetchAclRequestOrBuilder extends
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
+   *
+   *
    * 
    * For Get Project ACL only. Authorization check for end user will be ignored
    * when project_owner=true.
    * 
* * bool project_owner = 3; + * * @return The projectOwner. */ boolean getProjectOwner(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java index 131b03534b25..1fd0cff15365 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponse.java @@ -1,55 +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/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Response message for DocumentService.FetchAcl.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FetchAclResponse} */ -public final class FetchAclResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FetchAclResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.FetchAclResponse) FetchAclResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FetchAclResponse.newBuilder() to construct. private FetchAclResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FetchAclResponse() { - } + + private FetchAclResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FetchAclResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FetchAclResponse.class, com.google.cloud.contentwarehouse.v1.FetchAclResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.FetchAclResponse.class, + com.google.cloud.contentwarehouse.v1.FetchAclResponse.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.iam.v1.Policy policy_; /** + * + * *
    * The IAM policy.
    * 
* * .google.iam.v1.Policy policy = 1; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -57,11 +78,14 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * The IAM policy.
    * 
* * .google.iam.v1.Policy policy = 1; + * * @return The policy. */ @java.lang.Override @@ -69,6 +93,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * The IAM policy.
    * 
@@ -83,12 +109,15 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { public static final int METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_; /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -96,19 +125,26 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; + * * @return The metadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -118,10 +154,13 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() {
    */
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder() {
-    return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
+    return metadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
+        : metadata_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -133,8 +172,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (policy_ != null) {
       output.writeMessage(1, getPolicy());
     }
@@ -151,12 +189,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getPolicy());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy());
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -166,22 +202,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.contentwarehouse.v1.FetchAclResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.FetchAclResponse other = (com.google.cloud.contentwarehouse.v1.FetchAclResponse) obj;
+    com.google.cloud.contentwarehouse.v1.FetchAclResponse other =
+        (com.google.cloud.contentwarehouse.v1.FetchAclResponse) obj;
 
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy()
-          .equals(other.getPolicy())) return false;
+      if (!getPolicy().equals(other.getPolicy())) return false;
     }
     if (hasMetadata() != other.hasMetadata()) return false;
     if (hasMetadata()) {
-      if (!getMetadata()
-          .equals(other.getMetadata())) return false;
+      if (!getMetadata().equals(other.getMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -208,131 +243,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse 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.contentwarehouse.v1.FetchAclResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse 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.contentwarehouse.v1.FetchAclResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.FetchAclResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.FetchAclResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.FetchAclResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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.FetchAcl.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FetchAclResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.FetchAclResponse) com.google.cloud.contentwarehouse.v1.FetchAclResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FetchAclResponse.class, com.google.cloud.contentwarehouse.v1.FetchAclResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.FetchAclResponse.class, + com.google.cloud.contentwarehouse.v1.FetchAclResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.FetchAclResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +391,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; } @java.lang.Override @@ -372,8 +412,11 @@ public com.google.cloud.contentwarehouse.v1.FetchAclResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.FetchAclResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.FetchAclResponse result = new com.google.cloud.contentwarehouse.v1.FetchAclResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.FetchAclResponse result = + new com.google.cloud.contentwarehouse.v1.FetchAclResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,14 +424,10 @@ public com.google.cloud.contentwarehouse.v1.FetchAclResponse buildPartial() { private void buildPartial0(com.google.cloud.contentwarehouse.v1.FetchAclResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.policy_ = policyBuilder_ == null - ? policy_ - : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.metadata_ = metadataBuilder_ == null - ? metadata_ - : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); } } @@ -396,38 +435,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.FetchAclResponse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.FetchAclResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.FetchAclResponse)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.FetchAclResponse) other); } else { super.mergeFrom(other); return this; @@ -435,7 +475,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.FetchAclResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.FetchAclResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.FetchAclResponse.getDefaultInstance()) + return this; if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } @@ -468,26 +509,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getMetadataFieldBuilder().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(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getMetadataFieldBuilder().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) { @@ -497,28 +537,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + policyBuilder_; /** + * + * *
      * The IAM policy.
      * 
* * .google.iam.v1.Policy policy = 1; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The IAM policy.
      * 
* * .google.iam.v1.Policy policy = 1; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -529,6 +579,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
      * The IAM policy.
      * 
@@ -549,14 +601,15 @@ public Builder setPolicy(com.google.iam.v1.Policy value) { return this; } /** + * + * *
      * The IAM policy.
      * 
* * .google.iam.v1.Policy policy = 1; */ - public Builder setPolicy( - com.google.iam.v1.Policy.Builder builderForValue) { + public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); } else { @@ -567,6 +620,8 @@ public Builder setPolicy( return this; } /** + * + * *
      * The IAM policy.
      * 
@@ -575,9 +630,9 @@ public Builder setPolicy( */ public Builder mergePolicy(com.google.iam.v1.Policy value) { if (policyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - policy_ != null && - policy_ != com.google.iam.v1.Policy.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && policy_ != null + && policy_ != com.google.iam.v1.Policy.getDefaultInstance()) { getPolicyBuilder().mergeFrom(value); } else { policy_ = value; @@ -590,6 +645,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { return this; } /** + * + * *
      * The IAM policy.
      * 
@@ -607,6 +664,8 @@ public Builder clearPolicy() { return this; } /** + * + * *
      * The IAM policy.
      * 
@@ -619,6 +678,8 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() { return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * The IAM policy.
      * 
@@ -629,11 +690,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? - com.google.iam.v1.Policy.getDefaultInstance() : policy_; + return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } } /** + * + * *
      * The IAM policy.
      * 
@@ -641,14 +703,16 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { * .google.iam.v1.Policy policy = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>( - getPolicy(), - getParentForChildren(), - isClean()); + policyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean()); policy_ = null; } return policyBuilder_; @@ -656,36 +720,49 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> metadataBuilder_; + com.google.cloud.contentwarehouse.v1.ResponseMetadata, + com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, + com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> + metadataBuilder_; /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; + * * @return The metadata. */ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -707,6 +784,8 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -726,6 +805,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -735,9 +816,10 @@ public Builder setMetadata(
      */
     public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          metadata_ != null &&
-          metadata_ != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && metadata_ != null
+            && metadata_
+                != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -750,6 +832,8 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -768,6 +852,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -781,6 +867,8 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadata
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -792,11 +880,14 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
+        return metadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
+            : metadata_;
       }
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -805,21 +896,24 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
-                getMetadata(),
-                getParentForChildren(),
-                isClean());
+        metadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.ResponseMetadata,
+                com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
+                getMetadata(), getParentForChildren(), isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -829,12 +923,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.FetchAclResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.FetchAclResponse)
   private static final com.google.cloud.contentwarehouse.v1.FetchAclResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.FetchAclResponse();
   }
@@ -843,27 +937,27 @@ public static com.google.cloud.contentwarehouse.v1.FetchAclResponse getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public FetchAclResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 FetchAclResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -878,6 +972,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.FetchAclResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java
similarity index 70%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java
index 706c30371030..6e71c176497c 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FetchAclResponseOrBuilder.java
@@ -1,31 +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/contentwarehouse/v1/document_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface FetchAclResponseOrBuilder extends
+public interface FetchAclResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.FetchAclResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The IAM policy.
    * 
* * .google.iam.v1.Policy policy = 1; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * The IAM policy.
    * 
* * .google.iam.v1.Policy policy = 1; + * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** + * + * *
    * The IAM policy.
    * 
@@ -35,26 +59,34 @@ public interface FetchAclResponseOrBuilder extends com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; + * * @return The metadata. */ com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java
similarity index 66%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java
index 868e0c7e51a1..bf38fdfb1802 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java
@@ -1,58 +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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/filters.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Filter for the specific types of documents returned.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FileTypeFilter} */ -public final class FileTypeFilter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FileTypeFilter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.FileTypeFilter) FileTypeFilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FileTypeFilter.newBuilder() to construct. private FileTypeFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FileTypeFilter() { fileType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FileTypeFilter(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FileTypeFilter.class, com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.FileTypeFilter.class, + com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder.class); } /** + * + * *
    * Representation of the types of files.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.FileTypeFilter.FileType} */ - public enum FileType - implements com.google.protobuf.ProtocolMessageEnum { + public enum FileType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default document type. If set, disables the filter.
      * 
@@ -61,6 +83,8 @@ public enum FileType */ FILE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Returns all document types, including folders.
      * 
@@ -69,6 +93,8 @@ public enum FileType */ ALL(1), /** + * + * *
      * Returns only folders.
      * 
@@ -77,6 +103,8 @@ public enum FileType */ FOLDER(2), /** + * + * *
      * Returns only non-folder documents.
      * 
@@ -85,6 +113,8 @@ public enum FileType */ DOCUMENT(3), /** + * + * *
      * Returns only root folders
      * 
@@ -96,6 +126,8 @@ public enum FileType ; /** + * + * *
      * Default document type. If set, disables the filter.
      * 
@@ -104,6 +136,8 @@ public enum FileType */ public static final int FILE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Returns all document types, including folders.
      * 
@@ -112,6 +146,8 @@ public enum FileType */ public static final int ALL_VALUE = 1; /** + * + * *
      * Returns only folders.
      * 
@@ -120,6 +156,8 @@ public enum FileType */ public static final int FOLDER_VALUE = 2; /** + * + * *
      * Returns only non-folder documents.
      * 
@@ -128,6 +166,8 @@ public enum FileType */ public static final int DOCUMENT_VALUE = 3; /** + * + * *
      * Returns only root folders
      * 
@@ -136,7 +176,6 @@ public enum FileType */ public static final int ROOT_FOLDER_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -161,51 +200,55 @@ public static FileType valueOf(int value) { */ public static FileType forNumber(int value) { switch (value) { - case 0: return FILE_TYPE_UNSPECIFIED; - case 1: return ALL; - case 2: return FOLDER; - case 3: return DOCUMENT; - case 4: return ROOT_FOLDER; - default: return null; + case 0: + return FILE_TYPE_UNSPECIFIED; + case 1: + return ALL; + case 2: + return FOLDER; + case 3: + return DOCUMENT; + case 4: + return ROOT_FOLDER; + 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< - FileType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FileType findValueByNumber(int number) { - return FileType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FileType findValueByNumber(int number) { + return FileType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDescriptor() + .getEnumTypes() + .get(0); } private static final FileType[] VALUES = values(); - public static FileType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FileType 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,30 +268,42 @@ private FileType(int value) { public static final int FILE_TYPE_FIELD_NUMBER = 1; private int fileType_ = 0; /** + * + * *
    * The type of files to return.
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; + * * @return The enum numeric value on the wire for fileType. */ - @java.lang.Override public int getFileTypeValue() { + @java.lang.Override + public int getFileTypeValue() { return fileType_; } /** + * + * *
    * The type of files to return.
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; + * * @return The fileType. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType getFileType() { - com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType result = com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.forNumber(fileType_); - return result == null ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType getFileType() { + com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType result = + com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.forNumber(fileType_); + return result == null + ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,9 +315,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (fileType_ != com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.FILE_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (fileType_ + != com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.FILE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, fileType_); } getUnknownFields().writeTo(output); @@ -274,9 +330,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (fileType_ != com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.FILE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, fileType_); + if (fileType_ + != com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.FILE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, fileType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -286,12 +343,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.FileTypeFilter)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.FileTypeFilter other = (com.google.cloud.contentwarehouse.v1.FileTypeFilter) obj; + com.google.cloud.contentwarehouse.v1.FileTypeFilter other = + (com.google.cloud.contentwarehouse.v1.FileTypeFilter) obj; if (fileType_ != other.fileType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -313,131 +371,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.FileTypeFilter 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.contentwarehouse.v1.FileTypeFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.FileTypeFilter 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.contentwarehouse.v1.FileTypeFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.FileTypeFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.FileTypeFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Filter for the specific types of documents returned.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FileTypeFilter} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.FileTypeFilter) com.google.cloud.contentwarehouse.v1.FileTypeFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FileTypeFilter.class, com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.FileTypeFilter.class, + com.google.cloud.contentwarehouse.v1.FileTypeFilter.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.FileTypeFilter.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,9 +509,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; } @java.lang.Override @@ -468,8 +530,11 @@ public com.google.cloud.contentwarehouse.v1.FileTypeFilter build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.FileTypeFilter buildPartial() { - com.google.cloud.contentwarehouse.v1.FileTypeFilter result = new com.google.cloud.contentwarehouse.v1.FileTypeFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.FileTypeFilter result = + new com.google.cloud.contentwarehouse.v1.FileTypeFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -485,38 +550,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.FileTypeFilter 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.contentwarehouse.v1.FileTypeFilter) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.FileTypeFilter)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.FileTypeFilter) other); } else { super.mergeFrom(other); return this; @@ -524,7 +590,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.FileTypeFilter other) { - if (other == com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.FileTypeFilter.getDefaultInstance()) + return this; if (other.fileType_ != 0) { setFileTypeValue(other.getFileTypeValue()); } @@ -554,17 +621,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - fileType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + fileType_ = 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) { @@ -574,26 +643,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int fileType_ = 0; /** + * + * *
      * The type of files to return.
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; + * * @return The enum numeric value on the wire for fileType. */ - @java.lang.Override public int getFileTypeValue() { + @java.lang.Override + public int getFileTypeValue() { return fileType_; } /** + * + * *
      * The type of files to return.
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; + * * @param value The enum numeric value on the wire for fileType to set. * @return This builder for chaining. */ @@ -604,24 +681,33 @@ public Builder setFileTypeValue(int value) { return this; } /** + * + * *
      * The type of files to return.
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; + * * @return The fileType. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType getFileType() { - com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType result = com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.forNumber(fileType_); - return result == null ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.UNRECOGNIZED : result; + com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType result = + com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.forNumber(fileType_); + return result == null + ? com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of files to return.
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; + * * @param value The fileType to set. * @return This builder for chaining. */ @@ -635,11 +721,14 @@ public Builder setFileType(com.google.cloud.contentwarehouse.v1.FileTypeFilter.F return this; } /** + * + * *
      * The type of files to return.
      * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; + * * @return This builder for chaining. */ public Builder clearFileType() { @@ -648,9 +737,9 @@ public Builder clearFileType() { 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); } @@ -660,12 +749,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.FileTypeFilter) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.FileTypeFilter) private static final com.google.cloud.contentwarehouse.v1.FileTypeFilter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.FileTypeFilter(); } @@ -674,27 +763,27 @@ public static com.google.cloud.contentwarehouse.v1.FileTypeFilter getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FileTypeFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 FileTypeFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -709,6 +798,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.FileTypeFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java similarity index 55% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java index 4e69558aa67e..cc37b072829f 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilterOrBuilder.java @@ -1,27 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -public interface FileTypeFilterOrBuilder extends +public interface FileTypeFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.FileTypeFilter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The type of files to return.
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; + * * @return The enum numeric value on the wire for fileType. */ int getFileTypeValue(); /** + * + * *
    * The type of files to return.
    * 
* * .google.cloud.contentwarehouse.v1.FileTypeFilter.FileType file_type = 1; + * * @return The fileType. */ com.google.cloud.contentwarehouse.v1.FileTypeFilter.FileType getFileType(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java new file mode 100644 index 000000000000..d1c06f56e5e4 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java @@ -0,0 +1,184 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/filters.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class FiltersProto { + private FiltersProto() {} + + 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_contentwarehouse_v1_DocumentQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_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/contentwarehouse/v1/filte" + + "rs.proto\022 google.cloud.contentwarehouse." + + "v1\032\031google/api/resource.proto\032\032google/ty" + + "pe/interval.proto\"\235\004\n\rDocumentQuery\022\r\n\005q" + + "uery\030\001 \001(\t\022\023\n\013is_nl_query\030\014 \001(\010\022\"\n\026custo" + + "m_property_filter\030\004 \001(\tB\002\030\001\022B\n\014time_filt" + + "ers\030\005 \003(\0132,.google.cloud.contentwarehous" + + "e.v1.TimeFilter\022\035\n\025document_schema_names" + + "\030\006 \003(\t\022I\n\017property_filter\030\007 \003(\01320.google" + + ".cloud.contentwarehouse.v1.PropertyFilte" + + "r\022J\n\020file_type_filter\030\010 \001(\01320.google.clo" + + "ud.contentwarehouse.v1.FileTypeFilter\022\032\n" + + "\022folder_name_filter\030\t \001(\t\022\034\n\024document_na" + + "me_filter\030\016 \003(\t\022\025\n\rquery_context\030\n \003(\t\022\037" + + "\n\027document_creator_filter\030\013 \003(\t\022X\n\027custo" + + "m_weights_metadata\030\r \001(\01327.google.cloud." + + "contentwarehouse.v1.CustomWeightsMetadat" + + "a\"\344\001\n\nTimeFilter\022)\n\ntime_range\030\001 \001(\0132\025.g" + + "oogle.type.Interval\022J\n\ntime_field\030\002 \001(\0162" + + "6.google.cloud.contentwarehouse.v1.TimeF" + + "ilter.TimeField\"_\n\tTimeField\022\032\n\026TIME_FIE" + + "LD_UNSPECIFIED\020\000\022\017\n\013CREATE_TIME\020\001\022\017\n\013UPD" + + "ATE_TIME\020\002\022\024\n\020DISPOSITION_TIME\020\003\"v\n\016Prop" + + "ertyFilter\022Q\n\024document_schema_name\030\001 \001(\t" + + "B3\372A0\n.contentwarehouse.googleapis.com/D" + + "ocumentSchema\022\021\n\tcondition\030\002 \001(\t\"\271\001\n\016Fil" + + "eTypeFilter\022L\n\tfile_type\030\001 \001(\01629.google." + + "cloud.contentwarehouse.v1.FileTypeFilter" + + ".FileType\"Y\n\010FileType\022\031\n\025FILE_TYPE_UNSPE" + + "CIFIED\020\000\022\007\n\003ALL\020\001\022\n\n\006FOLDER\020\002\022\014\n\010DOCUMEN" + + "T\020\003\022\017\n\013ROOT_FOLDER\020\004\"u\n\025CustomWeightsMet" + + "adata\022\\\n\032weighted_schema_properties\030\001 \003(" + + "\01328.google.cloud.contentwarehouse.v1.Wei" + + "ghtedSchemaProperty\"\203\001\n\026WeightedSchemaPr" + + "operty\022Q\n\024document_schema_name\030\001 \001(\tB3\372A" + + "0\n.contentwarehouse.googleapis.com/Docum" + + "entSchema\022\026\n\016property_names\030\002 \003(\tB\364\001\n$co" + + "m.google.cloud.contentwarehouse.v1B\014Filt" + + "ersProtoP\001ZPcloud.google.com/go/contentw" + + "arehouse/apiv1/contentwarehousepb;conten" + + "twarehousepb\252\002 Google.Cloud.ContentWareh" + + "ouse.V1\312\002 Google\\Cloud\\ContentWarehouse\\" + + "V1\352\002#Google::Cloud::ContentWarehouse::V1" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.type.IntervalProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor, + new java.lang.String[] { + "Query", + "IsNlQuery", + "CustomPropertyFilter", + "TimeFilters", + "DocumentSchemaNames", + "PropertyFilter", + "FileTypeFilter", + "FolderNameFilter", + "DocumentNameFilter", + "QueryContext", + "DocumentCreatorFilter", + "CustomWeightsMetadata", + }); + internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor, + new java.lang.String[] { + "TimeRange", "TimeField", + }); + internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor, + new java.lang.String[] { + "DocumentSchemaName", "Condition", + }); + internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor, + new java.lang.String[] { + "FileType", + }); + internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor, + new java.lang.String[] { + "WeightedSchemaProperties", + }); + internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor, + new java.lang.String[] { + "DocumentSchemaName", "PropertyNames", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.type.IntervalProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java similarity index 65% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java index e458c9f686db..05ca7452a410 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArray.java @@ -1,90 +1,120 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Float values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FloatArray} */ -public final class FloatArray extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FloatArray extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.FloatArray) FloatArrayOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FloatArray.newBuilder() to construct. private FloatArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FloatArray() { values_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FloatArray(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FloatArray.class, com.google.cloud.contentwarehouse.v1.FloatArray.Builder.class); + com.google.cloud.contentwarehouse.v1.FloatArray.class, + com.google.cloud.contentwarehouse.v1.FloatArray.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList values_; /** + * + * *
    * List of float values.
    * 
* * repeated float values = 1; + * * @return A list containing the values. */ @java.lang.Override - public java.util.List - getValuesList() { + public java.util.List getValuesList() { return values_; } /** + * + * *
    * List of float values.
    * 
* * repeated float values = 1; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
    * List of float values.
    * 
* * repeated float values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ public float getValues(int index) { return values_.getFloat(index); } + private int valuesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +126,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getValuesList().size() > 0) { output.writeUInt32NoTag(10); @@ -121,8 +150,7 @@ 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; } @@ -134,15 +162,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.contentwarehouse.v1.FloatArray)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.FloatArray other = (com.google.cloud.contentwarehouse.v1.FloatArray) obj; + com.google.cloud.contentwarehouse.v1.FloatArray other = + (com.google.cloud.contentwarehouse.v1.FloatArray) obj; - if (!getValuesList() - .equals(other.getValuesList())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -163,132 +191,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.FloatArray 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.contentwarehouse.v1.FloatArray parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FloatArray parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.FloatArray parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.FloatArray 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.contentwarehouse.v1.FloatArray parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.FloatArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.FloatArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Float values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FloatArray} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.FloatArray) com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FloatArray.class, com.google.cloud.contentwarehouse.v1.FloatArray.Builder.class); + com.google.cloud.contentwarehouse.v1.FloatArray.class, + com.google.cloud.contentwarehouse.v1.FloatArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.FloatArray.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -298,9 +330,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor; } @java.lang.Override @@ -319,14 +351,18 @@ public com.google.cloud.contentwarehouse.v1.FloatArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.FloatArray buildPartial() { - com.google.cloud.contentwarehouse.v1.FloatArray result = new com.google.cloud.contentwarehouse.v1.FloatArray(this); + com.google.cloud.contentwarehouse.v1.FloatArray result = + new com.google.cloud.contentwarehouse.v1.FloatArray(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.FloatArray result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.FloatArray result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); @@ -342,38 +378,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.FloatArray 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.contentwarehouse.v1.FloatArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.FloatArray)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.FloatArray) other); } else { super.mergeFrom(other); return this; @@ -381,7 +418,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.FloatArray other) { - if (other == com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance()) + return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; @@ -418,28 +456,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - float v = input.readFloat(); - ensureValuesIsMutable(); - values_.addFloat(v); - break; - } // case 13 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValuesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - values_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: + { + float v = input.readFloat(); + ensureValuesIsMutable(); + values_.addFloat(v); + break; + } // case 13 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValuesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + values_.addFloat(input.readFloat()); + } + 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) { @@ -449,9 +490,11 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Internal.FloatList values_ = emptyFloatList(); + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = mutableCopy(values_); @@ -459,35 +502,44 @@ private void ensureValuesIsMutable() { } } /** + * + * *
      * List of float values.
      * 
* * repeated float 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_; } /** + * + * *
      * List of float values.
      * 
* * repeated float values = 1; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
      * List of float values.
      * 
* * repeated float values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -495,17 +547,19 @@ public float getValues(int index) { return values_.getFloat(index); } /** + * + * *
      * List of float values.
      * 
* * repeated float 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, float value) { + public Builder setValues(int index, float value) { ensureValuesIsMutable(); values_.setFloat(index, value); @@ -513,11 +567,14 @@ public Builder setValues( return this; } /** + * + * *
      * List of float values.
      * 
* * repeated float values = 1; + * * @param value The values to add. * @return This builder for chaining. */ @@ -529,28 +586,32 @@ public Builder addValues(float value) { return this; } /** + * + * *
      * List of float values.
      * 
* * repeated float 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; } /** + * + * *
      * List of float values.
      * 
* * repeated float values = 1; + * * @return This builder for chaining. */ public Builder clearValues() { @@ -559,9 +620,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); } @@ -571,12 +632,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.FloatArray) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.FloatArray) private static final com.google.cloud.contentwarehouse.v1.FloatArray DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.FloatArray(); } @@ -585,27 +646,27 @@ public static com.google.cloud.contentwarehouse.v1.FloatArray getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 FloatArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -620,6 +681,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.FloatArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java similarity index 57% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java index 86e873d8e091..c952d1da8ffa 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatArrayOrBuilder.java @@ -1,36 +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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface FloatArrayOrBuilder extends +public interface FloatArrayOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.FloatArray) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of float values.
    * 
* * repeated float values = 1; + * * @return A list containing the values. */ java.util.List getValuesList(); /** + * + * *
    * List of float values.
    * 
* * repeated float values = 1; + * * @return The count of values. */ int getValuesCount(); /** + * + * *
    * List of float values.
    * 
* * repeated float values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java similarity index 63% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java index 663a3d80d51d..dc294dc3a32d 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptions.java @@ -1,48 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Configurations for a float property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FloatTypeOptions} */ -public final class FloatTypeOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FloatTypeOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.FloatTypeOptions) FloatTypeOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FloatTypeOptions.newBuilder() to construct. private FloatTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FloatTypeOptions() { - } + + private FloatTypeOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FloatTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FloatTypeOptions.class, com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.FloatTypeOptions.class, + com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -73,12 +91,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.FloatTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.FloatTypeOptions other = (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.FloatTypeOptions other = + (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions 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.contentwarehouse.v1.FloatTypeOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions 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.contentwarehouse.v1.FloatTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.FloatTypeOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.FloatTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Configurations for a float property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.FloatTypeOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.FloatTypeOptions) com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.FloatTypeOptions.class, com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.FloatTypeOptions.class, + com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.FloatTypeOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -229,9 +253,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; } @java.lang.Override @@ -250,7 +274,8 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.FloatTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.FloatTypeOptions result = new com.google.cloud.contentwarehouse.v1.FloatTypeOptions(this); + com.google.cloud.contentwarehouse.v1.FloatTypeOptions result = + new com.google.cloud.contentwarehouse.v1.FloatTypeOptions(this); onBuilt(); return result; } @@ -259,38 +284,39 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.FloatTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.FloatTypeOptions)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.FloatTypeOptions) other); } else { super.mergeFrom(other); return this; @@ -298,7 +324,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.FloatTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -325,12 +352,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -340,9 +368,9 @@ public Builder mergeFrom( } // finally 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); } @@ -352,12 +380,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.FloatTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.FloatTypeOptions) private static final com.google.cloud.contentwarehouse.v1.FloatTypeOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.FloatTypeOptions(); } @@ -366,27 +394,27 @@ public static com.google.cloud.contentwarehouse.v1.FloatTypeOptions getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 FloatTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -401,6 +429,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.FloatTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..1cc44d2ed178 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java @@ -0,0 +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/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface FloatTypeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.FloatTypeOptions) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java index 987f08f60b4e..7d42cb4e5319 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipeline.java @@ -1,24 +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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * The configuration of the Cloud Storage Ingestion pipeline.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.GcsIngestPipeline} */ -public final class GcsIngestPipeline extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsIngestPipeline extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.GcsIngestPipeline) GcsIngestPipelineOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsIngestPipeline.newBuilder() to construct. private GcsIngestPipeline(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsIngestPipeline() { inputPath_ = ""; schemaName_ = ""; @@ -27,28 +45,32 @@ private GcsIngestPipeline() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsIngestPipeline(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.class, com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder.class); + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.class, + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder.class); } public static final int INPUT_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object inputPath_ = ""; /** + * + * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string input_path = 1; + * * @return The inputPath. */ @java.lang.Override @@ -64,14 +87,15 @@ public java.lang.String getInputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; } } /** + * + * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -79,16 +103,15 @@ public java.lang.String getInputPath() {
    * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputPathBytes() { + public com.google.protobuf.ByteString getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputPath_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getInputPath() { } public static final int SCHEMA_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object schemaName_ = ""; /** + * + * *
    * The Document Warehouse schema resource name. All documents processed by
    * this pipeline will use this schema.
@@ -108,6 +134,7 @@ public java.lang.String getInputPath() {
    * 
* * string schema_name = 2; + * * @return The schemaName. */ @java.lang.Override @@ -116,14 +143,15 @@ public java.lang.String getSchemaName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; } } /** + * + * *
    * The Document Warehouse schema resource name. All documents processed by
    * this pipeline will use this schema.
@@ -132,16 +160,15 @@ public java.lang.String getSchemaName() {
    * 
* * string schema_name = 2; + * * @return The bytes for schemaName. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaNameBytes() { + public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schemaName_ = b; return b; } else { @@ -150,15 +177,19 @@ public java.lang.String getSchemaName() { } public static final int PROCESSOR_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object processorType_ = ""; /** + * + * *
    * The Doc AI processor type name. Only used when the format of ingested
    * files is Doc AI Document proto format.
    * 
* * string processor_type = 3; + * * @return The processorType. */ @java.lang.Override @@ -167,30 +198,30 @@ public java.lang.String getProcessorType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorType_ = s; return s; } } /** + * + * *
    * The Doc AI processor type name. Only used when the format of ingested
    * files is Doc AI Document proto format.
    * 
* * string processor_type = 3; + * * @return The bytes for processorType. */ @java.lang.Override - public com.google.protobuf.ByteString - getProcessorTypeBytes() { + public com.google.protobuf.ByteString getProcessorTypeBytes() { java.lang.Object ref = processorType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); processorType_ = b; return b; } else { @@ -201,6 +232,8 @@ public java.lang.String getProcessorType() { public static final int SKIP_INGESTED_DOCUMENTS_FIELD_NUMBER = 4; private boolean skipIngestedDocuments_ = false; /** + * + * *
    * The flag whether to skip ingested documents.
    * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -208,6 +241,7 @@ public java.lang.String getProcessorType() {
    * 
* * bool skip_ingested_documents = 4; + * * @return The skipIngestedDocuments. */ @java.lang.Override @@ -218,13 +252,18 @@ public boolean getSkipIngestedDocuments() { public static final int PIPELINE_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipelineConfig_; /** + * + * *
    * Optional. The config for the Cloud Storage Ingestion pipeline.
    * It provides additional customization options to run the pipeline and can be
    * skipped if it is not applicable.
    * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pipelineConfig field is set. */ @java.lang.Override @@ -232,34 +271,49 @@ public boolean hasPipelineConfig() { return pipelineConfig_ != null; } /** + * + * *
    * Optional. The config for the Cloud Storage Ingestion pipeline.
    * It provides additional customization options to run the pipeline and can be
    * skipped if it is not applicable.
    * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pipelineConfig. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig() { - return pipelineConfig_ == null ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; + return pipelineConfig_ == null + ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() + : pipelineConfig_; } /** + * + * *
    * Optional. The config for the Cloud Storage Ingestion pipeline.
    * It provides additional customization options to run the pipeline and can be
    * skipped if it is not applicable.
    * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder() { - return pipelineConfig_ == null ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; + public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder + getPipelineConfigOrBuilder() { + return pipelineConfig_ == null + ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() + : pipelineConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,8 +325,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputPath_); } @@ -307,12 +360,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, processorType_); } if (skipIngestedDocuments_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, skipIngestedDocuments_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, skipIngestedDocuments_); } if (pipelineConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getPipelineConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPipelineConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -322,25 +373,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.contentwarehouse.v1.GcsIngestPipeline)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline other = (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) obj; + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline other = + (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) obj; - if (!getInputPath() - .equals(other.getInputPath())) return false; - if (!getSchemaName() - .equals(other.getSchemaName())) return false; - if (!getProcessorType() - .equals(other.getProcessorType())) return false; - if (getSkipIngestedDocuments() - != other.getSkipIngestedDocuments()) return false; + if (!getInputPath().equals(other.getInputPath())) return false; + if (!getSchemaName().equals(other.getSchemaName())) return false; + if (!getProcessorType().equals(other.getProcessorType())) return false; + if (getSkipIngestedDocuments() != other.getSkipIngestedDocuments()) return false; if (hasPipelineConfig() != other.hasPipelineConfig()) return false; if (hasPipelineConfig()) { - if (!getPipelineConfig() - .equals(other.getPipelineConfig())) return false; + if (!getPipelineConfig().equals(other.getPipelineConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -360,8 +407,7 @@ public int hashCode() { hash = (37 * hash) + PROCESSOR_TYPE_FIELD_NUMBER; hash = (53 * hash) + getProcessorType().hashCode(); hash = (37 * hash) + SKIP_INGESTED_DOCUMENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSkipIngestedDocuments()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipIngestedDocuments()); if (hasPipelineConfig()) { hash = (37 * hash) + PIPELINE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPipelineConfig().hashCode(); @@ -372,131 +418,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline 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.contentwarehouse.v1.GcsIngestPipeline parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline 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.contentwarehouse.v1.GcsIngestPipeline parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.GcsIngestPipeline prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The configuration of the Cloud Storage Ingestion pipeline.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.GcsIngestPipeline} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.GcsIngestPipeline) com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.class, com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder.class); + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.class, + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -514,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; } @java.lang.Override @@ -535,8 +586,11 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline buildPartial() { - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline result = new com.google.cloud.contentwarehouse.v1.GcsIngestPipeline(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline result = + new com.google.cloud.contentwarehouse.v1.GcsIngestPipeline(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -556,9 +610,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GcsIngestPipelin result.skipIngestedDocuments_ = skipIngestedDocuments_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.pipelineConfig_ = pipelineConfigBuilder_ == null - ? pipelineConfig_ - : pipelineConfigBuilder_.build(); + result.pipelineConfig_ = + pipelineConfigBuilder_ == null ? pipelineConfig_ : pipelineConfigBuilder_.build(); } } @@ -566,38 +619,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GcsIngestPipelin public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.GcsIngestPipeline) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.GcsIngestPipeline)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) other); } else { super.mergeFrom(other); return this; @@ -605,7 +659,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GcsIngestPipeline other) { - if (other == com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance()) + return this; if (!other.getInputPath().isEmpty()) { inputPath_ = other.inputPath_; bitField0_ |= 0x00000001; @@ -653,39 +708,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - inputPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - schemaName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - processorType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - skipIngestedDocuments_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getPipelineConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + inputPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + schemaName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + processorType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + skipIngestedDocuments_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getPipelineConfigFieldBuilder().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) { @@ -695,10 +754,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object inputPath_ = ""; /** + * + * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -706,13 +768,13 @@ public Builder mergeFrom(
      * 
* * string input_path = 1; + * * @return The inputPath. */ public java.lang.String getInputPath() { java.lang.Object ref = inputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; @@ -721,6 +783,8 @@ public java.lang.String getInputPath() { } } /** + * + * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -728,15 +792,14 @@ public java.lang.String getInputPath() {
      * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ - public com.google.protobuf.ByteString - getInputPathBytes() { + public com.google.protobuf.ByteString getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputPath_ = b; return b; } else { @@ -744,6 +807,8 @@ public java.lang.String getInputPath() { } } /** + * + * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -751,18 +816,22 @@ public java.lang.String getInputPath() {
      * 
* * string input_path = 1; + * * @param value The inputPath to set. * @return This builder for chaining. */ - public Builder setInputPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } inputPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -770,6 +839,7 @@ public Builder setInputPath(
      * 
* * string input_path = 1; + * * @return This builder for chaining. */ public Builder clearInputPath() { @@ -779,6 +849,8 @@ public Builder clearInputPath() { return this; } /** + * + * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -786,12 +858,14 @@ public Builder clearInputPath() {
      * 
* * string input_path = 1; + * * @param value The bytes for inputPath to set. * @return This builder for chaining. */ - public Builder setInputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); inputPath_ = value; bitField0_ |= 0x00000001; @@ -801,6 +875,8 @@ public Builder setInputPathBytes( private java.lang.Object schemaName_ = ""; /** + * + * *
      * The Document Warehouse schema resource name. All documents processed by
      * this pipeline will use this schema.
@@ -809,13 +885,13 @@ public Builder setInputPathBytes(
      * 
* * string schema_name = 2; + * * @return The schemaName. */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; @@ -824,6 +900,8 @@ public java.lang.String getSchemaName() { } } /** + * + * *
      * The Document Warehouse schema resource name. All documents processed by
      * this pipeline will use this schema.
@@ -832,15 +910,14 @@ public java.lang.String getSchemaName() {
      * 
* * string schema_name = 2; + * * @return The bytes for schemaName. */ - public com.google.protobuf.ByteString - getSchemaNameBytes() { + public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schemaName_ = b; return b; } else { @@ -848,6 +925,8 @@ public java.lang.String getSchemaName() { } } /** + * + * *
      * The Document Warehouse schema resource name. All documents processed by
      * this pipeline will use this schema.
@@ -856,18 +935,22 @@ public java.lang.String getSchemaName() {
      * 
* * string schema_name = 2; + * * @param value The schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schemaName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The Document Warehouse schema resource name. All documents processed by
      * this pipeline will use this schema.
@@ -876,6 +959,7 @@ public Builder setSchemaName(
      * 
* * string schema_name = 2; + * * @return This builder for chaining. */ public Builder clearSchemaName() { @@ -885,6 +969,8 @@ public Builder clearSchemaName() { return this; } /** + * + * *
      * The Document Warehouse schema resource name. All documents processed by
      * this pipeline will use this schema.
@@ -893,12 +979,14 @@ public Builder clearSchemaName() {
      * 
* * string schema_name = 2; + * * @param value The bytes for schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schemaName_ = value; bitField0_ |= 0x00000002; @@ -908,19 +996,21 @@ public Builder setSchemaNameBytes( private java.lang.Object processorType_ = ""; /** + * + * *
      * The Doc AI processor type name. Only used when the format of ingested
      * files is Doc AI Document proto format.
      * 
* * string processor_type = 3; + * * @return The processorType. */ public java.lang.String getProcessorType() { java.lang.Object ref = processorType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorType_ = s; return s; @@ -929,21 +1019,22 @@ public java.lang.String getProcessorType() { } } /** + * + * *
      * The Doc AI processor type name. Only used when the format of ingested
      * files is Doc AI Document proto format.
      * 
* * string processor_type = 3; + * * @return The bytes for processorType. */ - public com.google.protobuf.ByteString - getProcessorTypeBytes() { + public com.google.protobuf.ByteString getProcessorTypeBytes() { java.lang.Object ref = processorType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); processorType_ = b; return b; } else { @@ -951,30 +1042,37 @@ public java.lang.String getProcessorType() { } } /** + * + * *
      * The Doc AI processor type name. Only used when the format of ingested
      * files is Doc AI Document proto format.
      * 
* * string processor_type = 3; + * * @param value The processorType to set. * @return This builder for chaining. */ - public Builder setProcessorType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProcessorType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } processorType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The Doc AI processor type name. Only used when the format of ingested
      * files is Doc AI Document proto format.
      * 
* * string processor_type = 3; + * * @return This builder for chaining. */ public Builder clearProcessorType() { @@ -984,18 +1082,22 @@ public Builder clearProcessorType() { return this; } /** + * + * *
      * The Doc AI processor type name. Only used when the format of ingested
      * files is Doc AI Document proto format.
      * 
* * string processor_type = 3; + * * @param value The bytes for processorType to set. * @return This builder for chaining. */ - public Builder setProcessorTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProcessorTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); processorType_ = value; bitField0_ |= 0x00000004; @@ -1003,8 +1105,10 @@ public Builder setProcessorTypeBytes( return this; } - private boolean skipIngestedDocuments_ ; + private boolean skipIngestedDocuments_; /** + * + * *
      * The flag whether to skip ingested documents.
      * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -1012,6 +1116,7 @@ public Builder setProcessorTypeBytes(
      * 
* * bool skip_ingested_documents = 4; + * * @return The skipIngestedDocuments. */ @java.lang.Override @@ -1019,6 +1124,8 @@ public boolean getSkipIngestedDocuments() { return skipIngestedDocuments_; } /** + * + * *
      * The flag whether to skip ingested documents.
      * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -1026,6 +1133,7 @@ public boolean getSkipIngestedDocuments() {
      * 
* * bool skip_ingested_documents = 4; + * * @param value The skipIngestedDocuments to set. * @return This builder for chaining. */ @@ -1037,6 +1145,8 @@ public Builder setSkipIngestedDocuments(boolean value) { return this; } /** + * + * *
      * The flag whether to skip ingested documents.
      * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -1044,6 +1154,7 @@ public Builder setSkipIngestedDocuments(boolean value) {
      * 
* * bool skip_ingested_documents = 4; + * * @return This builder for chaining. */ public Builder clearSkipIngestedDocuments() { @@ -1055,47 +1166,67 @@ public Builder clearSkipIngestedDocuments() { private com.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipelineConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> pipelineConfigBuilder_; + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> + pipelineConfigBuilder_; /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pipelineConfig field is set. */ public boolean hasPipelineConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pipelineConfig. */ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig() { if (pipelineConfigBuilder_ == null) { - return pipelineConfig_ == null ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; + return pipelineConfig_ == null + ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() + : pipelineConfig_; } else { return pipelineConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPipelineConfig(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { + public Builder setPipelineConfig( + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { if (pipelineConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1109,13 +1240,17 @@ public Builder setPipelineConfig(com.google.cloud.contentwarehouse.v1.IngestPipe return this; } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPipelineConfig( com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder builderForValue) { @@ -1129,19 +1264,25 @@ public Builder setPipelineConfig( return this; } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergePipelineConfig(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { + public Builder mergePipelineConfig( + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { if (pipelineConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - pipelineConfig_ != null && - pipelineConfig_ != com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && pipelineConfig_ != null + && pipelineConfig_ + != com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) { getPipelineConfigBuilder().mergeFrom(value); } else { pipelineConfig_ = value; @@ -1154,13 +1295,17 @@ public Builder mergePipelineConfig(com.google.cloud.contentwarehouse.v1.IngestPi return this; } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPipelineConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1173,61 +1318,79 @@ public Builder clearPipelineConfig() { return this; } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder getPipelineConfigBuilder() { + public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder + getPipelineConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getPipelineConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder() { + public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder + getPipelineConfigOrBuilder() { if (pipelineConfigBuilder_ != null) { return pipelineConfigBuilder_.getMessageOrBuilder(); } else { - return pipelineConfig_ == null ? - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; + return pipelineConfig_ == null + ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() + : pipelineConfig_; } } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion pipeline.
      * It provides additional customization options to run the pipeline and can be
      * skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> getPipelineConfigFieldBuilder() { if (pipelineConfigBuilder_ == null) { - pipelineConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>( - getPipelineConfig(), - getParentForChildren(), - isClean()); + pipelineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>( + getPipelineConfig(), getParentForChildren(), isClean()); pipelineConfig_ = null; } return pipelineConfigBuilder_; } + @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); } @@ -1237,12 +1400,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.GcsIngestPipeline) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GcsIngestPipeline) private static final com.google.cloud.contentwarehouse.v1.GcsIngestPipeline DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GcsIngestPipeline(); } @@ -1251,27 +1414,27 @@ public static com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsIngestPipeline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GcsIngestPipeline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1286,6 +1449,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java similarity index 71% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java index 924da3270a8f..00b3b7cb21c2 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestPipelineOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface GcsIngestPipelineOrBuilder extends +public interface GcsIngestPipelineOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GcsIngestPipeline) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -15,10 +33,13 @@ public interface GcsIngestPipelineOrBuilder extends
    * 
* * string input_path = 1; + * * @return The inputPath. */ java.lang.String getInputPath(); /** + * + * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -26,12 +47,14 @@ public interface GcsIngestPipelineOrBuilder extends
    * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ - com.google.protobuf.ByteString - getInputPathBytes(); + com.google.protobuf.ByteString getInputPathBytes(); /** + * + * *
    * The Document Warehouse schema resource name. All documents processed by
    * this pipeline will use this schema.
@@ -40,10 +63,13 @@ public interface GcsIngestPipelineOrBuilder extends
    * 
* * string schema_name = 2; + * * @return The schemaName. */ java.lang.String getSchemaName(); /** + * + * *
    * The Document Warehouse schema resource name. All documents processed by
    * this pipeline will use this schema.
@@ -52,34 +78,41 @@ public interface GcsIngestPipelineOrBuilder extends
    * 
* * string schema_name = 2; + * * @return The bytes for schemaName. */ - com.google.protobuf.ByteString - getSchemaNameBytes(); + com.google.protobuf.ByteString getSchemaNameBytes(); /** + * + * *
    * The Doc AI processor type name. Only used when the format of ingested
    * files is Doc AI Document proto format.
    * 
* * string processor_type = 3; + * * @return The processorType. */ java.lang.String getProcessorType(); /** + * + * *
    * The Doc AI processor type name. Only used when the format of ingested
    * files is Doc AI Document proto format.
    * 
* * string processor_type = 3; + * * @return The bytes for processorType. */ - com.google.protobuf.ByteString - getProcessorTypeBytes(); + com.google.protobuf.ByteString getProcessorTypeBytes(); /** + * + * *
    * The flag whether to skip ingested documents.
    * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -87,40 +120,55 @@ public interface GcsIngestPipelineOrBuilder extends
    * 
* * bool skip_ingested_documents = 4; + * * @return The skipIngestedDocuments. */ boolean getSkipIngestedDocuments(); /** + * + * *
    * Optional. The config for the Cloud Storage Ingestion pipeline.
    * It provides additional customization options to run the pipeline and can be
    * skipped if it is not applicable.
    * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pipelineConfig field is set. */ boolean hasPipelineConfig(); /** + * + * *
    * Optional. The config for the Cloud Storage Ingestion pipeline.
    * It provides additional customization options to run the pipeline and can be
    * skipped if it is not applicable.
    * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pipelineConfig. */ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig(); /** + * + * *
    * Optional. The config for the Cloud Storage Ingestion pipeline.
    * It provides additional customization options to run the pipeline and can be
    * skipped if it is not applicable.
    * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java index 7cf218ff3e2f..66ca5449ed62 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipeline.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * The configuration of the Cloud Storage Ingestion with DocAI Processors
  * pipeline.
@@ -11,15 +28,18 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline}
  */
-public final class GcsIngestWithDocAiProcessorsPipeline extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GcsIngestWithDocAiProcessorsPipeline
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
     GcsIngestWithDocAiProcessorsPipelineOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GcsIngestWithDocAiProcessorsPipeline.newBuilder() to construct.
-  private GcsIngestWithDocAiProcessorsPipeline(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GcsIngestWithDocAiProcessorsPipeline(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GcsIngestWithDocAiProcessorsPipeline() {
     inputPath_ = "";
     extractProcessorInfos_ = java.util.Collections.emptyList();
@@ -28,28 +48,33 @@ private GcsIngestWithDocAiProcessorsPipeline() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GcsIngestWithDocAiProcessorsPipeline();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.PipelinesProto
+        .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.PipelinesProto
+        .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.class, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder.class);
+            com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.class,
+            com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder
+                .class);
   }
 
   public static final int INPUT_PATH_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object inputPath_ = "";
   /**
+   *
+   *
    * 
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -57,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * string input_path = 1; + * * @return The inputPath. */ @java.lang.Override @@ -65,14 +91,15 @@ public java.lang.String getInputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; } } /** + * + * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -80,16 +107,15 @@ public java.lang.String getInputPath() {
    * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputPathBytes() { + public com.google.protobuf.ByteString getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputPath_ = b; return b; } else { @@ -100,6 +126,8 @@ public java.lang.String getInputPath() { public static final int SPLIT_CLASSIFY_PROCESSOR_INFO_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.ProcessorInfo splitClassifyProcessorInfo_; /** + * + * *
    * The split and classify processor information.
    * The split and classify result will be used to find a matched extract
@@ -107,6 +135,7 @@ public java.lang.String getInputPath() {
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * * @return Whether the splitClassifyProcessorInfo field is set. */ @java.lang.Override @@ -114,6 +143,8 @@ public boolean hasSplitClassifyProcessorInfo() { return splitClassifyProcessorInfo_ != null; } /** + * + * *
    * The split and classify processor information.
    * The split and classify result will be used to find a matched extract
@@ -121,13 +152,18 @@ public boolean hasSplitClassifyProcessorInfo() {
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * * @return The splitClassifyProcessorInfo. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProcessorInfo() { - return splitClassifyProcessorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : splitClassifyProcessorInfo_; + return splitClassifyProcessorInfo_ == null + ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() + : splitClassifyProcessorInfo_; } /** + * + * *
    * The split and classify processor information.
    * The split and classify result will be used to find a matched extract
@@ -137,14 +173,20 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProces
    * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getSplitClassifyProcessorInfoOrBuilder() {
-    return splitClassifyProcessorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : splitClassifyProcessorInfo_;
+  public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder
+      getSplitClassifyProcessorInfoOrBuilder() {
+    return splitClassifyProcessorInfo_ == null
+        ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()
+        : splitClassifyProcessorInfo_;
   }
 
   public static final int EXTRACT_PROCESSOR_INFOS_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private java.util.List extractProcessorInfos_;
   /**
+   *
+   *
    * 
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -152,13 +194,17 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getSplitClass
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ @java.lang.Override - public java.util.List getExtractProcessorInfosList() { + public java.util.List + getExtractProcessorInfosList() { return extractProcessorInfos_; } /** + * + * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -166,14 +212,17 @@ public java.util.List getExt
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List getExtractProcessorInfosOrBuilderList() { return extractProcessorInfos_; } /** + * + * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -181,13 +230,16 @@ public java.util.List getExt
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ @java.lang.Override public int getExtractProcessorInfosCount() { return extractProcessorInfos_.size(); } /** + * + * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -195,13 +247,16 @@ public int getExtractProcessorInfosCount() {
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInfos(int index) { return extractProcessorInfos_.get(index); } /** + * + * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -209,18 +264,22 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInf
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorInfosOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder + getExtractProcessorInfosOrBuilder(int index) { return extractProcessorInfos_.get(index); } public static final int PROCESSOR_RESULTS_FOLDER_PATH_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object processorResultsFolderPath_ = ""; /** + * + * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -228,6 +287,7 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractPro
    * 
* * string processor_results_folder_path = 4; + * * @return The processorResultsFolderPath. */ @java.lang.Override @@ -236,14 +296,15 @@ public java.lang.String getProcessorResultsFolderPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorResultsFolderPath_ = s; return s; } } /** + * + * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -251,16 +312,15 @@ public java.lang.String getProcessorResultsFolderPath() {
    * 
* * string processor_results_folder_path = 4; + * * @return The bytes for processorResultsFolderPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getProcessorResultsFolderPathBytes() { + public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() { java.lang.Object ref = processorResultsFolderPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); processorResultsFolderPath_ = b; return b; } else { @@ -271,6 +331,8 @@ public java.lang.String getProcessorResultsFolderPath() { public static final int SKIP_INGESTED_DOCUMENTS_FIELD_NUMBER = 5; private boolean skipIngestedDocuments_ = false; /** + * + * *
    * The flag whether to skip ingested documents.
    * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -278,6 +340,7 @@ public java.lang.String getProcessorResultsFolderPath() {
    * 
* * bool skip_ingested_documents = 5; + * * @return The skipIngestedDocuments. */ @java.lang.Override @@ -288,13 +351,18 @@ public boolean getSkipIngestedDocuments() { public static final int PIPELINE_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipelineConfig_; /** + * + * *
    * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
    * pipeline. It provides additional customization options to run the pipeline
    * and can be skipped if it is not applicable.
    * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pipelineConfig field is set. */ @java.lang.Override @@ -302,34 +370,49 @@ public boolean hasPipelineConfig() { return pipelineConfig_ != null; } /** + * + * *
    * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
    * pipeline. It provides additional customization options to run the pipeline
    * and can be skipped if it is not applicable.
    * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pipelineConfig. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig() { - return pipelineConfig_ == null ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; + return pipelineConfig_ == null + ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() + : pipelineConfig_; } /** + * + * *
    * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
    * pipeline. It provides additional customization options to run the pipeline
    * and can be skipped if it is not applicable.
    * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder() { - return pipelineConfig_ == null ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; + public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder + getPipelineConfigOrBuilder() { + return pipelineConfig_ == null + ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() + : pipelineConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +424,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputPath_); } @@ -374,23 +456,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputPath_); } if (splitClassifyProcessorInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSplitClassifyProcessorInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSplitClassifyProcessorInfo()); } for (int i = 0; i < extractProcessorInfos_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, extractProcessorInfos_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, extractProcessorInfos_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorResultsFolderPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, processorResultsFolderPath_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, processorResultsFolderPath_); } if (skipIngestedDocuments_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, skipIngestedDocuments_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, skipIngestedDocuments_); } if (pipelineConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getPipelineConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPipelineConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -400,30 +483,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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)) { + if (!(obj + instanceof com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline other = (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) obj; + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline other = + (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) obj; - if (!getInputPath() - .equals(other.getInputPath())) return false; + if (!getInputPath().equals(other.getInputPath())) return false; if (hasSplitClassifyProcessorInfo() != other.hasSplitClassifyProcessorInfo()) return false; if (hasSplitClassifyProcessorInfo()) { - if (!getSplitClassifyProcessorInfo() - .equals(other.getSplitClassifyProcessorInfo())) return false; - } - if (!getExtractProcessorInfosList() - .equals(other.getExtractProcessorInfosList())) return false; - if (!getProcessorResultsFolderPath() - .equals(other.getProcessorResultsFolderPath())) return false; - if (getSkipIngestedDocuments() - != other.getSkipIngestedDocuments()) return false; + if (!getSplitClassifyProcessorInfo().equals(other.getSplitClassifyProcessorInfo())) + return false; + } + if (!getExtractProcessorInfosList().equals(other.getExtractProcessorInfosList())) return false; + if (!getProcessorResultsFolderPath().equals(other.getProcessorResultsFolderPath())) + return false; + if (getSkipIngestedDocuments() != other.getSkipIngestedDocuments()) return false; if (hasPipelineConfig() != other.hasPipelineConfig()) return false; if (hasPipelineConfig()) { - if (!getPipelineConfig() - .equals(other.getPipelineConfig())) return false; + if (!getPipelineConfig().equals(other.getPipelineConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -449,8 +530,7 @@ public int hashCode() { hash = (37 * hash) + PROCESSOR_RESULTS_FOLDER_PATH_FIELD_NUMBER; hash = (53 * hash) + getProcessorResultsFolderPath().hashCode(); hash = (37 * hash) + SKIP_INGESTED_DOCUMENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSkipIngestedDocuments()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipIngestedDocuments()); if (hasPipelineConfig()) { hash = (37 * hash) + PIPELINE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPipelineConfig().hashCode(); @@ -461,98 +541,105 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline 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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The configuration of the Cloud Storage Ingestion with DocAI Processors
    * pipeline.
@@ -560,33 +647,34 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
       com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto
+          .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto
+          .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.class, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder.class);
+              com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.class,
+              com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -615,19 +703,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto
+          .internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline getDefaultInstanceForType() {
-      return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance();
+    public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+        getDefaultInstanceForType() {
+      return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline build() {
-      com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result = buildPartial();
+      com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -635,15 +726,20 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
     }
 
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline buildPartial() {
-      com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result = new com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline(this);
+    public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+        buildPartial() {
+      com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result =
+          new com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result) {
       if (extractProcessorInfosBuilder_ == null) {
         if (((bitField0_ & 0x00000004) != 0)) {
           extractProcessorInfos_ = java.util.Collections.unmodifiableList(extractProcessorInfos_);
@@ -655,15 +751,17 @@ private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.Gcs
       }
     }
 
-    private void buildPartial0(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result) {
+    private void buildPartial0(
+        com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.inputPath_ = inputPath_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.splitClassifyProcessorInfo_ = splitClassifyProcessorInfoBuilder_ == null
-            ? splitClassifyProcessorInfo_
-            : splitClassifyProcessorInfoBuilder_.build();
+        result.splitClassifyProcessorInfo_ =
+            splitClassifyProcessorInfoBuilder_ == null
+                ? splitClassifyProcessorInfo_
+                : splitClassifyProcessorInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.processorResultsFolderPath_ = processorResultsFolderPath_;
@@ -672,9 +770,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GcsIngestWithDoc
         result.skipIngestedDocuments_ = skipIngestedDocuments_;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.pipelineConfig_ = pipelineConfigBuilder_ == null
-            ? pipelineConfig_
-            : pipelineConfigBuilder_.build();
+        result.pipelineConfig_ =
+            pipelineConfigBuilder_ == null ? pipelineConfig_ : pipelineConfigBuilder_.build();
       }
     }
 
@@ -682,46 +779,52 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GcsIngestWithDoc
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)other);
+      if (other
+          instanceof com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) {
+        return mergeFrom(
+            (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline other) {
-      if (other == com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline other) {
+      if (other
+          == com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline
+              .getDefaultInstance()) return this;
       if (!other.getInputPath().isEmpty()) {
         inputPath_ = other.inputPath_;
         bitField0_ |= 0x00000001;
@@ -748,9 +851,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAi
             extractProcessorInfosBuilder_ = null;
             extractProcessorInfos_ = other.extractProcessorInfos_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            extractProcessorInfosBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getExtractProcessorInfosFieldBuilder() : null;
+            extractProcessorInfosBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getExtractProcessorInfosFieldBuilder()
+                    : null;
           } else {
             extractProcessorInfosBuilder_.addAllMessages(other.extractProcessorInfos_);
           }
@@ -793,54 +897,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              inputPath_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSplitClassifyProcessorInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.contentwarehouse.v1.ProcessorInfo m =
-                  input.readMessage(
-                      com.google.cloud.contentwarehouse.v1.ProcessorInfo.parser(),
-                      extensionRegistry);
-              if (extractProcessorInfosBuilder_ == null) {
-                ensureExtractProcessorInfosIsMutable();
-                extractProcessorInfos_.add(m);
-              } else {
-                extractProcessorInfosBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            case 34: {
-              processorResultsFolderPath_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 40: {
-              skipIngestedDocuments_ = input.readBool();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 50: {
-              input.readMessage(
-                  getPipelineConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                inputPath_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(
+                    getSplitClassifyProcessorInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.contentwarehouse.v1.ProcessorInfo m =
+                    input.readMessage(
+                        com.google.cloud.contentwarehouse.v1.ProcessorInfo.parser(),
+                        extensionRegistry);
+                if (extractProcessorInfosBuilder_ == null) {
+                  ensureExtractProcessorInfosIsMutable();
+                  extractProcessorInfos_.add(m);
+                } else {
+                  extractProcessorInfosBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            case 34:
+              {
+                processorResultsFolderPath_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 40:
+              {
+                skipIngestedDocuments_ = input.readBool();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 50:
+              {
+                input.readMessage(getPipelineConfigFieldBuilder().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) {
@@ -850,10 +958,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object inputPath_ = "";
     /**
+     *
+     *
      * 
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -861,13 +972,13 @@ public Builder mergeFrom(
      * 
* * string input_path = 1; + * * @return The inputPath. */ public java.lang.String getInputPath() { java.lang.Object ref = inputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; @@ -876,6 +987,8 @@ public java.lang.String getInputPath() { } } /** + * + * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -883,15 +996,14 @@ public java.lang.String getInputPath() {
      * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ - public com.google.protobuf.ByteString - getInputPathBytes() { + public com.google.protobuf.ByteString getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputPath_ = b; return b; } else { @@ -899,6 +1011,8 @@ public java.lang.String getInputPath() { } } /** + * + * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -906,18 +1020,22 @@ public java.lang.String getInputPath() {
      * 
* * string input_path = 1; + * * @param value The inputPath to set. * @return This builder for chaining. */ - public Builder setInputPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } inputPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -925,6 +1043,7 @@ public Builder setInputPath(
      * 
* * string input_path = 1; + * * @return This builder for chaining. */ public Builder clearInputPath() { @@ -934,6 +1053,8 @@ public Builder clearInputPath() { return this; } /** + * + * *
      * The input Cloud Storage folder. All files under this folder will be
      * imported to Document Warehouse.
@@ -941,12 +1062,14 @@ public Builder clearInputPath() {
      * 
* * string input_path = 1; + * * @param value The bytes for inputPath to set. * @return This builder for chaining. */ - public Builder setInputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); inputPath_ = value; bitField0_ |= 0x00000001; @@ -956,47 +1079,64 @@ public Builder setInputPathBytes( private com.google.cloud.contentwarehouse.v1.ProcessorInfo splitClassifyProcessorInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> splitClassifyProcessorInfoBuilder_; + com.google.cloud.contentwarehouse.v1.ProcessorInfo, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, + com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> + splitClassifyProcessorInfoBuilder_; /** + * + * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * + * * @return Whether the splitClassifyProcessorInfo field is set. */ public boolean hasSplitClassifyProcessorInfo() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * + * * @return The splitClassifyProcessorInfo. */ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProcessorInfo() { if (splitClassifyProcessorInfoBuilder_ == null) { - return splitClassifyProcessorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : splitClassifyProcessorInfo_; + return splitClassifyProcessorInfo_ == null + ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() + : splitClassifyProcessorInfo_; } else { return splitClassifyProcessorInfoBuilder_.getMessage(); } } /** + * + * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * */ - public Builder setSplitClassifyProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { + public Builder setSplitClassifyProcessorInfo( + com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { if (splitClassifyProcessorInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1010,13 +1150,16 @@ public Builder setSplitClassifyProcessorInfo(com.google.cloud.contentwarehouse.v return this; } /** + * + * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * */ public Builder setSplitClassifyProcessorInfo( com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) { @@ -1030,19 +1173,24 @@ public Builder setSplitClassifyProcessorInfo( return this; } /** + * + * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * */ - public Builder mergeSplitClassifyProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { + public Builder mergeSplitClassifyProcessorInfo( + com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { if (splitClassifyProcessorInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - splitClassifyProcessorInfo_ != null && - splitClassifyProcessorInfo_ != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && splitClassifyProcessorInfo_ != null + && splitClassifyProcessorInfo_ + != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) { getSplitClassifyProcessorInfoBuilder().mergeFrom(value); } else { splitClassifyProcessorInfo_ = value; @@ -1055,13 +1203,16 @@ public Builder mergeSplitClassifyProcessorInfo(com.google.cloud.contentwarehouse return this; } /** + * + * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * */ public Builder clearSplitClassifyProcessorInfo() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1074,72 +1225,95 @@ public Builder clearSplitClassifyProcessorInfo() { return this; } /** + * + * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder getSplitClassifyProcessorInfoBuilder() { + public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder + getSplitClassifyProcessorInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSplitClassifyProcessorInfoFieldBuilder().getBuilder(); } /** + * + * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getSplitClassifyProcessorInfoOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder + getSplitClassifyProcessorInfoOrBuilder() { if (splitClassifyProcessorInfoBuilder_ != null) { return splitClassifyProcessorInfoBuilder_.getMessageOrBuilder(); } else { - return splitClassifyProcessorInfo_ == null ? - com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : splitClassifyProcessorInfo_; + return splitClassifyProcessorInfo_ == null + ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() + : splitClassifyProcessorInfo_; } } /** + * + * *
      * The split and classify processor information.
      * The split and classify result will be used to find a matched extract
      * processor.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.ProcessorInfo, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, + com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> getSplitClassifyProcessorInfoFieldBuilder() { if (splitClassifyProcessorInfoBuilder_ == null) { - splitClassifyProcessorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( - getSplitClassifyProcessorInfo(), - getParentForChildren(), - isClean()); + splitClassifyProcessorInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ProcessorInfo, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, + com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( + getSplitClassifyProcessorInfo(), getParentForChildren(), isClean()); splitClassifyProcessorInfo_ = null; } return splitClassifyProcessorInfoBuilder_; } - private java.util.List extractProcessorInfos_ = - java.util.Collections.emptyList(); + private java.util.List + extractProcessorInfos_ = java.util.Collections.emptyList(); + private void ensureExtractProcessorInfosIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - extractProcessorInfos_ = new java.util.ArrayList(extractProcessorInfos_); + extractProcessorInfos_ = + new java.util.ArrayList( + extractProcessorInfos_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> extractProcessorInfosBuilder_; + com.google.cloud.contentwarehouse.v1.ProcessorInfo, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, + com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> + extractProcessorInfosBuilder_; /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1147,9 +1321,11 @@ private void ensureExtractProcessorInfosIsMutable() {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ - public java.util.List getExtractProcessorInfosList() { + public java.util.List + getExtractProcessorInfosList() { if (extractProcessorInfosBuilder_ == null) { return java.util.Collections.unmodifiableList(extractProcessorInfos_); } else { @@ -1157,6 +1333,8 @@ public java.util.List getExt } } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1164,7 +1342,8 @@ public java.util.List getExt
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ public int getExtractProcessorInfosCount() { if (extractProcessorInfosBuilder_ == null) { @@ -1174,6 +1353,8 @@ public int getExtractProcessorInfosCount() { } } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1181,7 +1362,8 @@ public int getExtractProcessorInfosCount() {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInfos(int index) { if (extractProcessorInfosBuilder_ == null) { @@ -1191,6 +1373,8 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInf } } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1198,7 +1382,8 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInf
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ public Builder setExtractProcessorInfos( int index, com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { @@ -1215,6 +1400,8 @@ public Builder setExtractProcessorInfos( return this; } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1222,7 +1409,8 @@ public Builder setExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ public Builder setExtractProcessorInfos( int index, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) { @@ -1236,6 +1424,8 @@ public Builder setExtractProcessorInfos( return this; } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1243,9 +1433,11 @@ public Builder setExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ - public Builder addExtractProcessorInfos(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { + public Builder addExtractProcessorInfos( + com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { if (extractProcessorInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1259,6 +1451,8 @@ public Builder addExtractProcessorInfos(com.google.cloud.contentwarehouse.v1.Pro return this; } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1266,7 +1460,8 @@ public Builder addExtractProcessorInfos(com.google.cloud.contentwarehouse.v1.Pro
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ public Builder addExtractProcessorInfos( int index, com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { @@ -1283,6 +1478,8 @@ public Builder addExtractProcessorInfos( return this; } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1290,7 +1487,8 @@ public Builder addExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ public Builder addExtractProcessorInfos( com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) { @@ -1304,6 +1502,8 @@ public Builder addExtractProcessorInfos( return this; } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1311,7 +1511,8 @@ public Builder addExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ public Builder addExtractProcessorInfos( int index, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder builderForValue) { @@ -1325,6 +1526,8 @@ public Builder addExtractProcessorInfos( return this; } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1332,14 +1535,14 @@ public Builder addExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ public Builder addAllExtractProcessorInfos( java.lang.Iterable values) { if (extractProcessorInfosBuilder_ == null) { ensureExtractProcessorInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, extractProcessorInfos_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extractProcessorInfos_); onChanged(); } else { extractProcessorInfosBuilder_.addAllMessages(values); @@ -1347,6 +1550,8 @@ public Builder addAllExtractProcessorInfos( return this; } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1354,7 +1559,8 @@ public Builder addAllExtractProcessorInfos(
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ public Builder clearExtractProcessorInfos() { if (extractProcessorInfosBuilder_ == null) { @@ -1367,6 +1573,8 @@ public Builder clearExtractProcessorInfos() { return this; } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1374,7 +1582,8 @@ public Builder clearExtractProcessorInfos() {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ public Builder removeExtractProcessorInfos(int index) { if (extractProcessorInfosBuilder_ == null) { @@ -1387,6 +1596,8 @@ public Builder removeExtractProcessorInfos(int index) { return this; } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1394,13 +1605,16 @@ public Builder removeExtractProcessorInfos(int index) {
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder getExtractProcessorInfosBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder + getExtractProcessorInfosBuilder(int index) { return getExtractProcessorInfosFieldBuilder().getBuilder(index); } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1408,16 +1622,20 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder getExtractProc
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorInfosOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder + getExtractProcessorInfosOrBuilder(int index) { if (extractProcessorInfosBuilder_ == null) { - return extractProcessorInfos_.get(index); } else { + return extractProcessorInfos_.get(index); + } else { return extractProcessorInfosBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1425,10 +1643,11 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractPro
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ - public java.util.List - getExtractProcessorInfosOrBuilderList() { + public java.util.List + getExtractProcessorInfosOrBuilderList() { if (extractProcessorInfosBuilder_ != null) { return extractProcessorInfosBuilder_.getMessageOrBuilderList(); } else { @@ -1436,6 +1655,8 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractPro } } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1443,13 +1664,17 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractPro
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder addExtractProcessorInfosBuilder() { - return getExtractProcessorInfosFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder + addExtractProcessorInfosBuilder() { + return getExtractProcessorInfosFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()); } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1457,14 +1682,18 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder addExtractProc
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder addExtractProcessorInfosBuilder( - int index) { - return getExtractProcessorInfosFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder + addExtractProcessorInfosBuilder(int index) { + return getExtractProcessorInfosFieldBuilder() + .addBuilder( + index, com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()); } /** + * + * *
      * The extract processors information.
      * One matched extract processor will be used to process documents based on
@@ -1472,18 +1701,25 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder addExtractProc
      * first extract processor will be used.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ - public java.util.List - getExtractProcessorInfosBuilderList() { + public java.util.List + getExtractProcessorInfosBuilderList() { return getExtractProcessorInfosFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.ProcessorInfo, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, + com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> getExtractProcessorInfosFieldBuilder() { if (extractProcessorInfosBuilder_ == null) { - extractProcessorInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( + extractProcessorInfosBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ProcessorInfo, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, + com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( extractProcessorInfos_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -1495,6 +1731,8 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder addExtractProc private java.lang.Object processorResultsFolderPath_ = ""; /** + * + * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1502,13 +1740,13 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder addExtractProc
      * 
* * string processor_results_folder_path = 4; + * * @return The processorResultsFolderPath. */ public java.lang.String getProcessorResultsFolderPath() { java.lang.Object ref = processorResultsFolderPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorResultsFolderPath_ = s; return s; @@ -1517,6 +1755,8 @@ public java.lang.String getProcessorResultsFolderPath() { } } /** + * + * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1524,15 +1764,14 @@ public java.lang.String getProcessorResultsFolderPath() {
      * 
* * string processor_results_folder_path = 4; + * * @return The bytes for processorResultsFolderPath. */ - public com.google.protobuf.ByteString - getProcessorResultsFolderPathBytes() { + public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() { java.lang.Object ref = processorResultsFolderPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); processorResultsFolderPath_ = b; return b; } else { @@ -1540,6 +1779,8 @@ public java.lang.String getProcessorResultsFolderPath() { } } /** + * + * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1547,18 +1788,22 @@ public java.lang.String getProcessorResultsFolderPath() {
      * 
* * string processor_results_folder_path = 4; + * * @param value The processorResultsFolderPath to set. * @return This builder for chaining. */ - public Builder setProcessorResultsFolderPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProcessorResultsFolderPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } processorResultsFolderPath_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1566,6 +1811,7 @@ public Builder setProcessorResultsFolderPath(
      * 
* * string processor_results_folder_path = 4; + * * @return This builder for chaining. */ public Builder clearProcessorResultsFolderPath() { @@ -1575,6 +1821,8 @@ public Builder clearProcessorResultsFolderPath() { return this; } /** + * + * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1582,12 +1830,14 @@ public Builder clearProcessorResultsFolderPath() {
      * 
* * string processor_results_folder_path = 4; + * * @param value The bytes for processorResultsFolderPath to set. * @return This builder for chaining. */ - public Builder setProcessorResultsFolderPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProcessorResultsFolderPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); processorResultsFolderPath_ = value; bitField0_ |= 0x00000008; @@ -1595,8 +1845,10 @@ public Builder setProcessorResultsFolderPathBytes( return this; } - private boolean skipIngestedDocuments_ ; + private boolean skipIngestedDocuments_; /** + * + * *
      * The flag whether to skip ingested documents.
      * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -1604,6 +1856,7 @@ public Builder setProcessorResultsFolderPathBytes(
      * 
* * bool skip_ingested_documents = 5; + * * @return The skipIngestedDocuments. */ @java.lang.Override @@ -1611,6 +1864,8 @@ public boolean getSkipIngestedDocuments() { return skipIngestedDocuments_; } /** + * + * *
      * The flag whether to skip ingested documents.
      * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -1618,6 +1873,7 @@ public boolean getSkipIngestedDocuments() {
      * 
* * bool skip_ingested_documents = 5; + * * @param value The skipIngestedDocuments to set. * @return This builder for chaining. */ @@ -1629,6 +1885,8 @@ public Builder setSkipIngestedDocuments(boolean value) { return this; } /** + * + * *
      * The flag whether to skip ingested documents.
      * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -1636,6 +1894,7 @@ public Builder setSkipIngestedDocuments(boolean value) {
      * 
* * bool skip_ingested_documents = 5; + * * @return This builder for chaining. */ public Builder clearSkipIngestedDocuments() { @@ -1647,47 +1906,67 @@ public Builder clearSkipIngestedDocuments() { private com.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipelineConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> pipelineConfigBuilder_; + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> + pipelineConfigBuilder_; /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pipelineConfig field is set. */ public boolean hasPipelineConfig() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pipelineConfig. */ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig() { if (pipelineConfigBuilder_ == null) { - return pipelineConfig_ == null ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; + return pipelineConfig_ == null + ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() + : pipelineConfig_; } else { return pipelineConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPipelineConfig(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { + public Builder setPipelineConfig( + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { if (pipelineConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1701,13 +1980,17 @@ public Builder setPipelineConfig(com.google.cloud.contentwarehouse.v1.IngestPipe return this; } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPipelineConfig( com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder builderForValue) { @@ -1721,19 +2004,25 @@ public Builder setPipelineConfig( return this; } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergePipelineConfig(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { + public Builder mergePipelineConfig( + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig value) { if (pipelineConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - pipelineConfig_ != null && - pipelineConfig_ != com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && pipelineConfig_ != null + && pipelineConfig_ + != com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) { getPipelineConfigBuilder().mergeFrom(value); } else { pipelineConfig_ = value; @@ -1746,13 +2035,17 @@ public Builder mergePipelineConfig(com.google.cloud.contentwarehouse.v1.IngestPi return this; } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPipelineConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1765,61 +2058,79 @@ public Builder clearPipelineConfig() { return this; } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder getPipelineConfigBuilder() { + public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder + getPipelineConfigBuilder() { bitField0_ |= 0x00000020; onChanged(); return getPipelineConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder() { + public com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder + getPipelineConfigOrBuilder() { if (pipelineConfigBuilder_ != null) { return pipelineConfigBuilder_.getMessageOrBuilder(); } else { - return pipelineConfig_ == null ? - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() : pipelineConfig_; + return pipelineConfig_ == null + ? com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance() + : pipelineConfig_; } } /** + * + * *
      * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
      * pipeline. It provides additional customization options to run the pipeline
      * and can be skipped if it is not applicable.
      * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder> getPipelineConfigFieldBuilder() { if (pipelineConfigBuilder_ == null) { - pipelineConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>( - getPipelineConfig(), - getParentForChildren(), - isClean()); + pipelineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder>( + getPipelineConfig(), getParentForChildren(), isClean()); pipelineConfig_ = null; } return pipelineConfigBuilder_; } + @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); } @@ -1829,41 +2140,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) - private static final com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline(); + DEFAULT_INSTANCE = + new com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline(); } - public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsIngestWithDocAiProcessorsPipeline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GcsIngestWithDocAiProcessorsPipeline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1875,9 +2189,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java similarity index 77% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java index 04b3ad85600e..e9582cdbb26b 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GcsIngestWithDocAiProcessorsPipelineOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder extends +public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -15,10 +33,13 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder extends
    * 
* * string input_path = 1; + * * @return The inputPath. */ java.lang.String getInputPath(); /** + * + * *
    * The input Cloud Storage folder. All files under this folder will be
    * imported to Document Warehouse.
@@ -26,12 +47,14 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder extends
    * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ - com.google.protobuf.ByteString - getInputPathBytes(); + com.google.protobuf.ByteString getInputPathBytes(); /** + * + * *
    * The split and classify processor information.
    * The split and classify result will be used to find a matched extract
@@ -39,10 +62,13 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder extends
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * * @return Whether the splitClassifyProcessorInfo field is set. */ boolean hasSplitClassifyProcessorInfo(); /** + * + * *
    * The split and classify processor information.
    * The split and classify result will be used to find a matched extract
@@ -50,10 +76,13 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder extends
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2; + * * @return The splitClassifyProcessorInfo. */ com.google.cloud.contentwarehouse.v1.ProcessorInfo getSplitClassifyProcessorInfo(); /** + * + * *
    * The split and classify processor information.
    * The split and classify result will be used to find a matched extract
@@ -62,9 +91,12 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder extends
    *
    * .google.cloud.contentwarehouse.v1.ProcessorInfo split_classify_processor_info = 2;
    */
-  com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getSplitClassifyProcessorInfoOrBuilder();
+  com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder
+      getSplitClassifyProcessorInfoOrBuilder();
 
   /**
+   *
+   *
    * 
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -72,11 +104,13 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder extends
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ - java.util.List - getExtractProcessorInfosList(); + java.util.List getExtractProcessorInfosList(); /** + * + * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -84,10 +118,13 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder extends
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ com.google.cloud.contentwarehouse.v1.ProcessorInfo getExtractProcessorInfos(int index); /** + * + * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -95,10 +132,13 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder extends
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ int getExtractProcessorInfosCount(); /** + * + * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -106,11 +146,14 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder extends
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ - java.util.List + java.util.List getExtractProcessorInfosOrBuilderList(); /** + * + * *
    * The extract processors information.
    * One matched extract processor will be used to process documents based on
@@ -118,12 +161,15 @@ public interface GcsIngestWithDocAiProcessorsPipelineOrBuilder extends
    * first extract processor will be used.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * repeated .google.cloud.contentwarehouse.v1.ProcessorInfo extract_processor_infos = 3; + * */ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorInfosOrBuilder( int index); /** + * + * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -131,10 +177,13 @@ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorI
    * 
* * string processor_results_folder_path = 4; + * * @return The processorResultsFolderPath. */ java.lang.String getProcessorResultsFolderPath(); /** + * + * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -142,12 +191,14 @@ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorI
    * 
* * string processor_results_folder_path = 4; + * * @return The bytes for processorResultsFolderPath. */ - com.google.protobuf.ByteString - getProcessorResultsFolderPathBytes(); + com.google.protobuf.ByteString getProcessorResultsFolderPathBytes(); /** + * + * *
    * The flag whether to skip ingested documents.
    * If it is set to true, documents in Cloud Storage contains key "status" with
@@ -155,40 +206,55 @@ com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getExtractProcessorI
    * 
* * bool skip_ingested_documents = 5; + * * @return The skipIngestedDocuments. */ boolean getSkipIngestedDocuments(); /** + * + * *
    * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
    * pipeline. It provides additional customization options to run the pipeline
    * and can be skipped if it is not applicable.
    * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pipelineConfig field is set. */ boolean hasPipelineConfig(); /** + * + * *
    * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
    * pipeline. It provides additional customization options to run the pipeline
    * and can be skipped if it is not applicable.
    * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pipelineConfig. */ com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getPipelineConfig(); /** + * + * *
    * Optional. The config for the Cloud Storage Ingestion with DocAI Processors
    * pipeline. It provides additional customization options to run the pipeline
    * and can be skipped if it is not applicable.
    * 
* - * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java similarity index 67% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java index bd1e08eab435..ee31bdfecf27 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentService.GetDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GetDocumentRequest.class, com.google.cloud.contentwarehouse.v1.GetDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.GetDocumentRequest.class, + com.google.cloud.contentwarehouse.v1.GetDocumentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the document to retrieve.
    * Format:
@@ -54,7 +76,10 @@ protected java.lang.Object newInstance(
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 @@ -63,14 +88,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the document to retrieve.
    * Format:
@@ -78,17 +104,18 @@ public java.lang.String getName() {
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 { @@ -99,12 +126,15 @@ public java.lang.String getName() { public static final int REQUEST_METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -112,19 +142,26 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -133,11 +170,15 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+        : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -149,8 +190,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -170,8 +210,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -181,19 +220,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.contentwarehouse.v1.GetDocumentRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.GetDocumentRequest other = (com.google.cloud.contentwarehouse.v1.GetDocumentRequest) obj;
+    com.google.cloud.contentwarehouse.v1.GetDocumentRequest other =
+        (com.google.cloud.contentwarehouse.v1.GetDocumentRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata()
-          .equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -218,131 +256,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.GetDocumentRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.GetDocumentRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.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.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest) com.google.cloud.contentwarehouse.v1.GetDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GetDocumentRequest.class, com.google.cloud.contentwarehouse.v1.GetDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.GetDocumentRequest.class, + com.google.cloud.contentwarehouse.v1.GetDocumentRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.GetDocumentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +400,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; } @java.lang.Override @@ -378,8 +421,11 @@ public com.google.cloud.contentwarehouse.v1.GetDocumentRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.GetDocumentRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.GetDocumentRequest result = new com.google.cloud.contentwarehouse.v1.GetDocumentRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.GetDocumentRequest result = + new com.google.cloud.contentwarehouse.v1.GetDocumentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -390,9 +436,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GetDocumentReque result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMetadata_ = requestMetadataBuilder_ == null - ? requestMetadata_ - : requestMetadataBuilder_.build(); + result.requestMetadata_ = + requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); } } @@ -400,38 +445,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GetDocumentReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.GetDocumentRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.GetDocumentRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.GetDocumentRequest) other); } else { super.mergeFrom(other); return this; @@ -439,7 +485,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GetDocumentRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.GetDocumentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.GetDocumentRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -474,24 +521,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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(getRequestMetadataFieldBuilder().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) { @@ -501,10 +549,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -512,14 +563,16 @@ public Builder mergeFrom(
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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; @@ -528,6 +581,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -535,16 +590,17 @@ public java.lang.String getName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 { @@ -552,6 +608,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -559,19 +617,25 @@ public java.lang.String getName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 name of the document to retrieve.
      * Format:
@@ -579,7 +643,10 @@ public Builder setName(
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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() { @@ -589,6 +656,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the document to retrieve.
      * Format:
@@ -596,13 +665,17 @@ public Builder clearName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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; @@ -612,36 +685,49 @@ public Builder setNameBytes( private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> + requestMetadataBuilder_; /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -663,6 +749,8 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -682,6 +770,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -689,11 +779,13 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(
+        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          requestMetadata_ != null &&
-          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && requestMetadata_ != null
+            && requestMetadata_
+                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -706,6 +798,8 @@ public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.Request
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -724,6 +818,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -731,12 +827,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+        getRequestMetadataBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -744,15 +843,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMe
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+        getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+        return requestMetadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+            : requestMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -761,21 +864,24 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(),
-                getParentForChildren(),
-                isClean());
+        requestMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RequestMetadata,
+                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(), getParentForChildren(), isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
+
     @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);
     }
 
@@ -785,12 +891,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.GetDocumentRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GetDocumentRequest)
   private static final com.google.cloud.contentwarehouse.v1.GetDocumentRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GetDocumentRequest();
   }
@@ -799,27 +905,27 @@ public static com.google.cloud.contentwarehouse.v1.GetDocumentRequest getDefault
     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;
@@ -834,6 +940,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.GetDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java
similarity index 65%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java
index a442c218cd24..45f19deda7c0 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentRequestOrBuilder.java
@@ -1,13 +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/contentwarehouse/v1/document_service_request.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface GetDocumentRequestOrBuilder extends
+public interface GetDocumentRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetDocumentRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The name of the document to retrieve.
    * Format:
@@ -15,11 +33,16 @@ public interface GetDocumentRequestOrBuilder extends
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the document to retrieve.
    * Format:
@@ -27,33 +50,43 @@ public interface GetDocumentRequestOrBuilder extends
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java
similarity index 62%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java
index 0ce9af9d31db..905d952e8c62 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequest.java
@@ -1,57 +1,82 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_schema_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Request message for DocumentSchemaService.GetDocumentSchema.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest} */ -public final class GetDocumentSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetDocumentSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) GetDocumentSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetDocumentSchemaRequest.newBuilder() to construct. private GetDocumentSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetDocumentSchemaRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDocumentSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.class, + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the document schema to retrieve.
    * 
* - * 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 @@ -60,29 +85,31 @@ 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 name of the document schema to retrieve.
    * 
* - * 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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -127,15 +154,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.contentwarehouse.v1.GetDocumentSchemaRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest other = (com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) obj; + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest other = + (com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest 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.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest 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.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 DocumentSchemaService.GetDocumentSchema.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.class, + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,13 +321,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.getDefaultInstance(); } @@ -310,13 +343,17 @@ public com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest result = new com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest result = + new com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -327,38 +364,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GetDocumentSchem public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.GetDocumentSchemaRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +404,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +438,19 @@ 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) { @@ -418,22 +460,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the document schema to retrieve.
      * 
* - * 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; @@ -442,20 +489,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document schema to retrieve.
      * 
* - * 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 { @@ -463,28 +513,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document schema to retrieve.
      * 
* - * 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 name of the document schema to retrieve.
      * 
* - * 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() { @@ -494,26 +555,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the document schema to retrieve.
      * 
* - * 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); } @@ -523,12 +590,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) - private static final com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest(); } @@ -537,27 +605,27 @@ public static com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDocumentSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetDocumentSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..47029032eecb --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface GetDocumentSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the document schema to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the document schema to retrieve.
+   * 
+ * + * + * 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-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java similarity index 64% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java index ea89d8bd3ed7..eaa451a01b24 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequest.java @@ -1,59 +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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for RuleSetService.GetRuleSet.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.GetRuleSetRequest} */ -public final class GetRuleSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetRuleSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.GetRuleSetRequest) GetRuleSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetRuleSetRequest.newBuilder() to construct. private GetRuleSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetRuleSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetRuleSetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.class, + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the rule set to retrieve.
    * Format:
    * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 @@ -62,31 +87,33 @@ 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 name of the rule set to retrieve.
    * Format:
    * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +158,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.contentwarehouse.v1.GetRuleSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest other = (com.google.cloud.contentwarehouse.v1.GetRuleSetRequest) obj; + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest other = + (com.google.cloud.contentwarehouse.v1.GetRuleSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest 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.contentwarehouse.v1.GetRuleSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest 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.contentwarehouse.v1.GetRuleSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.GetRuleSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 RuleSetService.GetRuleSet.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.GetRuleSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.GetRuleSetRequest) com.google.cloud.contentwarehouse.v1.GetRuleSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.class, + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; } @java.lang.Override @@ -314,8 +346,11 @@ public com.google.cloud.contentwarehouse.v1.GetRuleSetRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.GetRuleSetRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest result = new com.google.cloud.contentwarehouse.v1.GetRuleSetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest result = + new com.google.cloud.contentwarehouse.v1.GetRuleSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +366,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GetRuleSetReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.GetRuleSetRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.GetRuleSetRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.GetRuleSetRequest) other); } else { super.mergeFrom(other); return this; @@ -370,7 +406,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GetRuleSetRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -402,17 +439,19 @@ 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) { @@ -422,24 +461,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the rule set to retrieve.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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; @@ -448,22 +492,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the rule set to retrieve.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 { @@ -471,32 +518,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the rule set to retrieve.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 name of the rule set to retrieve.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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() { @@ -506,28 +564,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the rule set to retrieve.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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); } @@ -537,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.GetRuleSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GetRuleSetRequest) private static final com.google.cloud.contentwarehouse.v1.GetRuleSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GetRuleSetRequest(); } @@ -551,27 +615,27 @@ public static com.google.cloud.contentwarehouse.v1.GetRuleSetRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRuleSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetRuleSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.GetRuleSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java new file mode 100644 index 000000000000..34c305e3a059 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface GetRuleSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetRuleSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the rule set to retrieve.
+   * Format:
+   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the rule set to retrieve.
+   * Format:
+   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java similarity index 64% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java index 317011fd6f62..c9d79a8ca857 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for SynonymSetService.GetSynonymSet.
  * Will return synonymSet for a certain context.
@@ -11,50 +28,58 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.GetSynonymSetRequest}
  */
-public final class GetSynonymSetRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetSynonymSetRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.GetSynonymSetRequest)
     GetSynonymSetRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetSynonymSetRequest.newBuilder() to construct.
   private GetSynonymSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetSynonymSetRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetSynonymSetRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+        .internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+        .internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.Builder.class);
+            com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.class,
+            com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the synonymSet to retrieve
    * Format:
    * projects/{project_number}/locations/{location}/synonymSets/{context}.
    * 
* - * 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 @@ -63,31 +88,33 @@ 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 name of the synonymSet to retrieve
    * Format:
    * projects/{project_number}/locations/{location}/synonymSets/{context}.
    * 
* - * 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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +159,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.contentwarehouse.v1.GetSynonymSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest other = (com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest) obj; + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest other = + (com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,98 +187,104 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest 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.contentwarehouse.v1.GetSynonymSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest 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.contentwarehouse.v1.GetSynonymSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 SynonymSetService.GetSynonymSet.
    * Will return synonymSet for a certain context.
@@ -259,33 +292,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.GetSynonymSetRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.GetSynonymSetRequest)
       com.google.cloud.contentwarehouse.v1.GetSynonymSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+          .internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+          .internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.Builder.class);
+              com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.class,
+              com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -295,9 +327,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+          .internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -316,8 +348,11 @@ public com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest buildPartial() {
-      com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest result = new com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest result =
+          new com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -333,38 +368,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.GetSynonymSetReq
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.GetSynonymSetRequest) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest)other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -372,7 +408,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest other) {
-      if (other == com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -404,17 +441,19 @@ 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) {
@@ -424,24 +463,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the synonymSet to retrieve
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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; @@ -450,22 +494,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the synonymSet to retrieve
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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 { @@ -473,32 +520,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the synonymSet to retrieve
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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 name of the synonymSet to retrieve
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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() { @@ -508,28 +566,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the synonymSet to retrieve
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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); } @@ -539,12 +603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.GetSynonymSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.GetSynonymSetRequest) private static final com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest(); } @@ -553,27 +617,27 @@ public static com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSynonymSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetSynonymSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +652,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java new file mode 100644 index 000000000000..aa42787e87b5 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface GetSynonymSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetSynonymSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the synonymSet to retrieve
+   * Format:
+   * projects/{project_number}/locations/{location}/synonymSets/{context}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the synonymSet to retrieve
+   * Format:
+   * projects/{project_number}/locations/{location}/synonymSets/{context}.
+   * 
+ * + * + * 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-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java new file mode 100644 index 000000000000..84d267bea01a --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java @@ -0,0 +1,135 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/histogram.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class HistogramProto { + private HistogramProto() {} + + 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_contentwarehouse_v1_HistogramQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_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/contentwarehouse/v1/histo" + + "gram.proto\022 google.cloud.contentwarehous" + + "e.v1\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\"\251\001\n\016HistogramQu" + + "ery\022\027\n\017histogram_query\030\001 \001(\t\022#\n\033require_" + + "precise_result_size\030\002 \001(\010\022Y\n\007filters\030\003 \001" + + "(\0132B.google.cloud.contentwarehouse.v1.Hi" + + "stogramQueryPropertyNameFilterB\004\342A\001\001\"\272\002\n" + + " HistogramQueryPropertyNameFilter\022M\n\020doc" + + "ument_schemas\030\001 \003(\tB3\372A0\n.contentwarehou" + + "se.googleapis.com/DocumentSchema\022\026\n\016prop" + + "erty_names\030\002 \003(\t\022a\n\006y_axis\030\003 \001(\0162Q.googl" + + "e.cloud.contentwarehouse.v1.HistogramQue" + + "ryPropertyNameFilter.HistogramYAxis\"L\n\016H" + + "istogramYAxis\022\034\n\030HISTOGRAM_YAXIS_DOCUMEN" + + "T\020\000\022\034\n\030HISTOGRAM_YAXIS_PROPERTY\020\001\"\273\001\n\024Hi" + + "stogramQueryResult\022\027\n\017histogram_query\030\001 " + + "\001(\t\022X\n\thistogram\030\002 \003(\0132E.google.cloud.co" + + "ntentwarehouse.v1.HistogramQueryResult.H" + + "istogramEntry\0320\n\016HistogramEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001B\366\001\n$com.google.c" + + "loud.contentwarehouse.v1B\016HistogramProto" + + "P\001ZPcloud.google.com/go/contentwarehouse" + + "/apiv1/contentwarehousepb;contentwarehou" + + "sepb\252\002 Google.Cloud.ContentWarehouse.V1\312" + + "\002 Google\\Cloud\\ContentWarehouse\\V1\352\002#Goo" + + "gle::Cloud::ContentWarehouse::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(), + }); + internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor, + new java.lang.String[] { + "HistogramQuery", "RequirePreciseResultSize", "Filters", + }); + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor, + new java.lang.String[] { + "DocumentSchemas", "PropertyNames", "YAxis", + }); + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor, + new java.lang.String[] { + "HistogramQuery", "Histogram", + }); + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor = + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java similarity index 68% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java index 2fba9dab0abb..77ef89d655f9 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQuery.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/histogram.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * The histogram request.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQuery} */ -public final class HistogramQuery extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HistogramQuery extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.HistogramQuery) HistogramQueryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HistogramQuery.newBuilder() to construct. private HistogramQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HistogramQuery() { histogramQuery_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HistogramQuery(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.HistogramProto + .internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.HistogramProto + .internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.HistogramQuery.class, com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder.class); + com.google.cloud.contentwarehouse.v1.HistogramQuery.class, + com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder.class); } public static final int HISTOGRAM_QUERY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object histogramQuery_ = ""; /** + * + * *
    * An expression specifies a histogram request against matching documents for
    * searches.
@@ -57,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string histogram_query = 1; + * * @return The histogramQuery. */ @java.lang.Override @@ -65,14 +88,15 @@ public java.lang.String getHistogramQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); histogramQuery_ = s; return s; } } /** + * + * *
    * An expression specifies a histogram request against matching documents for
    * searches.
@@ -83,16 +107,15 @@ public java.lang.String getHistogramQuery() {
    * 
* * string histogram_query = 1; + * * @return The bytes for histogramQuery. */ @java.lang.Override - public com.google.protobuf.ByteString - getHistogramQueryBytes() { + public com.google.protobuf.ByteString getHistogramQueryBytes() { java.lang.Object ref = histogramQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); histogramQuery_ = b; return b; } else { @@ -103,6 +126,8 @@ public java.lang.String getHistogramQuery() { public static final int REQUIRE_PRECISE_RESULT_SIZE_FIELD_NUMBER = 2; private boolean requirePreciseResultSize_ = false; /** + * + * *
    * Controls if the histogram query requires the return of a precise count.
    * Enable this flag may adversely impact performance.
@@ -111,6 +136,7 @@ public java.lang.String getHistogramQuery() {
    * 
* * bool require_precise_result_size = 2; + * * @return The requirePreciseResultSize. */ @java.lang.Override @@ -121,6 +147,8 @@ public boolean getRequirePreciseResultSize() { public static final int FILTERS_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters_; /** + * + * *
    * Optional. Filter the result of histogram query by the property names. It
    * only works with histogram query count('FilterableProperties'). It is an
@@ -128,7 +156,10 @@ public boolean getRequirePreciseResultSize() {
    * document schemas. Setting this field will have a better performance.
    * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the filters field is set. */ @java.lang.Override @@ -136,6 +167,8 @@ public boolean hasFilters() { return filters_ != null; } /** + * + * *
    * Optional. Filter the result of histogram query by the property names. It
    * only works with histogram query count('FilterableProperties'). It is an
@@ -143,14 +176,21 @@ public boolean hasFilters() {
    * document schemas. Setting this field will have a better performance.
    * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The filters. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter getFilters() { - return filters_ == null ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance() : filters_; + return filters_ == null + ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance() + : filters_; } /** + * + * *
    * Optional. Filter the result of histogram query by the property names. It
    * only works with histogram query count('FilterableProperties'). It is an
@@ -158,14 +198,20 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter get
    * document schemas. Setting this field will have a better performance.
    * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder getFiltersOrBuilder() { - return filters_ == null ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance() : filters_; + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder + getFiltersOrBuilder() { + return filters_ == null + ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance() + : filters_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +223,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(histogramQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, histogramQuery_); } @@ -201,12 +246,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, histogramQuery_); } if (requirePreciseResultSize_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, requirePreciseResultSize_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, requirePreciseResultSize_); } if (filters_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getFilters()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFilters()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,21 +259,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.contentwarehouse.v1.HistogramQuery)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.HistogramQuery other = (com.google.cloud.contentwarehouse.v1.HistogramQuery) obj; + com.google.cloud.contentwarehouse.v1.HistogramQuery other = + (com.google.cloud.contentwarehouse.v1.HistogramQuery) obj; - if (!getHistogramQuery() - .equals(other.getHistogramQuery())) return false; - if (getRequirePreciseResultSize() - != other.getRequirePreciseResultSize()) return false; + if (!getHistogramQuery().equals(other.getHistogramQuery())) return false; + if (getRequirePreciseResultSize() != other.getRequirePreciseResultSize()) return false; if (hasFilters() != other.hasFilters()) return false; if (hasFilters()) { - if (!getFilters() - .equals(other.getFilters())) return false; + if (!getFilters().equals(other.getFilters())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -246,8 +287,7 @@ public int hashCode() { hash = (37 * hash) + HISTOGRAM_QUERY_FIELD_NUMBER; hash = (53 * hash) + getHistogramQuery().hashCode(); hash = (37 * hash) + REQUIRE_PRECISE_RESULT_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequirePreciseResultSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequirePreciseResultSize()); if (hasFilters()) { hash = (37 * hash) + FILTERS_FIELD_NUMBER; hash = (53 * hash) + getFilters().hashCode(); @@ -258,131 +298,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.HistogramQuery 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.contentwarehouse.v1.HistogramQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.HistogramQuery 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.contentwarehouse.v1.HistogramQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.HistogramQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.HistogramQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The histogram request.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQuery} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.HistogramQuery) com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.HistogramProto + .internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.HistogramProto + .internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.HistogramQuery.class, com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder.class); + com.google.cloud.contentwarehouse.v1.HistogramQuery.class, + com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.HistogramQuery.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +442,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.HistogramProto + .internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor; } @java.lang.Override @@ -419,8 +463,11 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.HistogramQuery buildPartial() { - com.google.cloud.contentwarehouse.v1.HistogramQuery result = new com.google.cloud.contentwarehouse.v1.HistogramQuery(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.HistogramQuery result = + new com.google.cloud.contentwarehouse.v1.HistogramQuery(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -434,9 +481,7 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.HistogramQuery r result.requirePreciseResultSize_ = requirePreciseResultSize_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.filters_ = filtersBuilder_ == null - ? filters_ - : filtersBuilder_.build(); + result.filters_ = filtersBuilder_ == null ? filters_ : filtersBuilder_.build(); } } @@ -444,38 +489,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.HistogramQuery 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.contentwarehouse.v1.HistogramQuery) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.HistogramQuery)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.HistogramQuery) other); } else { super.mergeFrom(other); return this; @@ -483,7 +529,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.HistogramQuery other) { - if (other == com.google.cloud.contentwarehouse.v1.HistogramQuery.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.HistogramQuery.getDefaultInstance()) + return this; if (!other.getHistogramQuery().isEmpty()) { histogramQuery_ = other.histogramQuery_; bitField0_ |= 0x00000001; @@ -521,29 +568,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - histogramQuery_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - requirePreciseResultSize_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getFiltersFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + histogramQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + requirePreciseResultSize_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getFiltersFieldBuilder().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) { @@ -553,10 +602,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object histogramQuery_ = ""; /** + * + * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -567,13 +619,13 @@ public Builder mergeFrom(
      * 
* * string histogram_query = 1; + * * @return The histogramQuery. */ public java.lang.String getHistogramQuery() { java.lang.Object ref = histogramQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); histogramQuery_ = s; return s; @@ -582,6 +634,8 @@ public java.lang.String getHistogramQuery() { } } /** + * + * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -592,15 +646,14 @@ public java.lang.String getHistogramQuery() {
      * 
* * string histogram_query = 1; + * * @return The bytes for histogramQuery. */ - public com.google.protobuf.ByteString - getHistogramQueryBytes() { + public com.google.protobuf.ByteString getHistogramQueryBytes() { java.lang.Object ref = histogramQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); histogramQuery_ = b; return b; } else { @@ -608,6 +661,8 @@ public java.lang.String getHistogramQuery() { } } /** + * + * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -618,18 +673,22 @@ public java.lang.String getHistogramQuery() {
      * 
* * string histogram_query = 1; + * * @param value The histogramQuery to set. * @return This builder for chaining. */ - public Builder setHistogramQuery( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHistogramQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } histogramQuery_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -640,6 +699,7 @@ public Builder setHistogramQuery(
      * 
* * string histogram_query = 1; + * * @return This builder for chaining. */ public Builder clearHistogramQuery() { @@ -649,6 +709,8 @@ public Builder clearHistogramQuery() { return this; } /** + * + * *
      * An expression specifies a histogram request against matching documents for
      * searches.
@@ -659,12 +721,14 @@ public Builder clearHistogramQuery() {
      * 
* * string histogram_query = 1; + * * @param value The bytes for histogramQuery to set. * @return This builder for chaining. */ - public Builder setHistogramQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); histogramQuery_ = value; bitField0_ |= 0x00000001; @@ -672,8 +736,10 @@ public Builder setHistogramQueryBytes( return this; } - private boolean requirePreciseResultSize_ ; + private boolean requirePreciseResultSize_; /** + * + * *
      * Controls if the histogram query requires the return of a precise count.
      * Enable this flag may adversely impact performance.
@@ -682,6 +748,7 @@ public Builder setHistogramQueryBytes(
      * 
* * bool require_precise_result_size = 2; + * * @return The requirePreciseResultSize. */ @java.lang.Override @@ -689,6 +756,8 @@ public boolean getRequirePreciseResultSize() { return requirePreciseResultSize_; } /** + * + * *
      * Controls if the histogram query requires the return of a precise count.
      * Enable this flag may adversely impact performance.
@@ -697,6 +766,7 @@ public boolean getRequirePreciseResultSize() {
      * 
* * bool require_precise_result_size = 2; + * * @param value The requirePreciseResultSize to set. * @return This builder for chaining. */ @@ -708,6 +778,8 @@ public Builder setRequirePreciseResultSize(boolean value) { return this; } /** + * + * *
      * Controls if the histogram query requires the return of a precise count.
      * Enable this flag may adversely impact performance.
@@ -716,6 +788,7 @@ public Builder setRequirePreciseResultSize(boolean value) {
      * 
* * bool require_precise_result_size = 2; + * * @return This builder for chaining. */ public Builder clearRequirePreciseResultSize() { @@ -727,8 +800,13 @@ public Builder clearRequirePreciseResultSize() { private com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder> filtersBuilder_; + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder, + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder> + filtersBuilder_; /** + * + * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -736,13 +814,18 @@ public Builder clearRequirePreciseResultSize() {
      * document schemas. Setting this field will have a better performance.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the filters field is set. */ public boolean hasFilters() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -750,17 +833,25 @@ public boolean hasFilters() {
      * document schemas. Setting this field will have a better performance.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The filters. */ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter getFilters() { if (filtersBuilder_ == null) { - return filters_ == null ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance() : filters_; + return filters_ == null + ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter + .getDefaultInstance() + : filters_; } else { return filtersBuilder_.getMessage(); } } /** + * + * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -768,9 +859,12 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter get
      * document schemas. Setting this field will have a better performance.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setFilters(com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter value) { + public Builder setFilters( + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter value) { if (filtersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -784,6 +878,8 @@ public Builder setFilters(com.google.cloud.contentwarehouse.v1.HistogramQueryPro return this; } /** + * + * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -791,10 +887,13 @@ public Builder setFilters(com.google.cloud.contentwarehouse.v1.HistogramQueryPro
      * document schemas. Setting this field will have a better performance.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFilters( - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder builderForValue) { + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder + builderForValue) { if (filtersBuilder_ == null) { filters_ = builderForValue.build(); } else { @@ -805,6 +904,8 @@ public Builder setFilters( return this; } /** + * + * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -812,13 +913,18 @@ public Builder setFilters(
      * document schemas. Setting this field will have a better performance.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeFilters(com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter value) { + public Builder mergeFilters( + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter value) { if (filtersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - filters_ != null && - filters_ != com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && filters_ != null + && filters_ + != com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter + .getDefaultInstance()) { getFiltersBuilder().mergeFrom(value); } else { filters_ = value; @@ -831,6 +937,8 @@ public Builder mergeFilters(com.google.cloud.contentwarehouse.v1.HistogramQueryP return this; } /** + * + * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -838,7 +946,9 @@ public Builder mergeFilters(com.google.cloud.contentwarehouse.v1.HistogramQueryP
      * document schemas. Setting this field will have a better performance.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearFilters() { bitField0_ = (bitField0_ & ~0x00000004); @@ -851,6 +961,8 @@ public Builder clearFilters() { return this; } /** + * + * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -858,14 +970,19 @@ public Builder clearFilters() {
      * document schemas. Setting this field will have a better performance.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder getFiltersBuilder() { + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder + getFiltersBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFiltersFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -873,17 +990,24 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Bui
      * document schemas. Setting this field will have a better performance.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder getFiltersOrBuilder() { + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder + getFiltersOrBuilder() { if (filtersBuilder_ != null) { return filtersBuilder_.getMessageOrBuilder(); } else { - return filters_ == null ? - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance() : filters_; + return filters_ == null + ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter + .getDefaultInstance() + : filters_; } } /** + * + * *
      * Optional. Filter the result of histogram query by the property names. It
      * only works with histogram query count('FilterableProperties'). It is an
@@ -891,24 +1015,29 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBu
      * document schemas. Setting this field will have a better performance.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder> + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder, + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder> getFiltersFieldBuilder() { if (filtersBuilder_ == null) { - filtersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder>( - getFilters(), - getParentForChildren(), - isClean()); + filtersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter, + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder, + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder>( + getFilters(), getParentForChildren(), isClean()); filters_ = null; } return filtersBuilder_; } + @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); } @@ -918,12 +1047,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.HistogramQuery) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.HistogramQuery) private static final com.google.cloud.contentwarehouse.v1.HistogramQuery DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.HistogramQuery(); } @@ -932,27 +1061,27 @@ public static com.google.cloud.contentwarehouse.v1.HistogramQuery getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HistogramQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 HistogramQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -967,6 +1096,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.HistogramQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java similarity index 68% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java index 51e9e48933ad..7598ee44c601 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/histogram.proto package com.google.cloud.contentwarehouse.v1; -public interface HistogramQueryOrBuilder extends +public interface HistogramQueryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.HistogramQuery) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * An expression specifies a histogram request against matching documents for
    * searches.
@@ -18,10 +36,13 @@ public interface HistogramQueryOrBuilder extends
    * 
* * string histogram_query = 1; + * * @return The histogramQuery. */ java.lang.String getHistogramQuery(); /** + * + * *
    * An expression specifies a histogram request against matching documents for
    * searches.
@@ -32,12 +53,14 @@ public interface HistogramQueryOrBuilder extends
    * 
* * string histogram_query = 1; + * * @return The bytes for histogramQuery. */ - com.google.protobuf.ByteString - getHistogramQueryBytes(); + com.google.protobuf.ByteString getHistogramQueryBytes(); /** + * + * *
    * Controls if the histogram query requires the return of a precise count.
    * Enable this flag may adversely impact performance.
@@ -46,11 +69,14 @@ public interface HistogramQueryOrBuilder extends
    * 
* * bool require_precise_result_size = 2; + * * @return The requirePreciseResultSize. */ boolean getRequirePreciseResultSize(); /** + * + * *
    * Optional. Filter the result of histogram query by the property names. It
    * only works with histogram query count('FilterableProperties'). It is an
@@ -58,11 +84,16 @@ public interface HistogramQueryOrBuilder extends
    * document schemas. Setting this field will have a better performance.
    * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the filters field is set. */ boolean hasFilters(); /** + * + * *
    * Optional. Filter the result of histogram query by the property names. It
    * only works with histogram query count('FilterableProperties'). It is an
@@ -70,11 +101,16 @@ public interface HistogramQueryOrBuilder extends
    * document schemas. Setting this field will have a better performance.
    * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The filters. */ com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter getFilters(); /** + * + * *
    * Optional. Filter the result of histogram query by the property names. It
    * only works with histogram query count('FilterableProperties'). It is an
@@ -82,7 +118,10 @@ public interface HistogramQueryOrBuilder extends
    * document schemas. Setting this field will have a better performance.
    * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder getFiltersOrBuilder(); + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder + getFiltersOrBuilder(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java similarity index 71% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java index 0ea917a90ed6..48ff2a030410 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilter.java @@ -1,49 +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/contentwarehouse/v1/histogram.proto package com.google.cloud.contentwarehouse.v1; -/** - * Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter} - */ -public final class HistogramQueryPropertyNameFilter extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter} */ +public final class HistogramQueryPropertyNameFilter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) HistogramQueryPropertyNameFilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HistogramQueryPropertyNameFilter.newBuilder() to construct. - private HistogramQueryPropertyNameFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private HistogramQueryPropertyNameFilter( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HistogramQueryPropertyNameFilter() { - documentSchemas_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - propertyNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + documentSchemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); + propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); yAxis_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HistogramQueryPropertyNameFilter(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.HistogramProto + .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.HistogramProto + .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.class, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.class, + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder.class); } /** + * + * *
    * The result of the histogram query count('FilterableProperties') using
    * HISTOGRAM_YAXIS_DOCUMENT will be:
@@ -53,11 +69,13 @@ protected java.lang.Object newInstance(
    * line_item_description: 1
    * 
* - * Protobuf enum {@code google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis} + * Protobuf enum {@code + * google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis} */ - public enum HistogramYAxis - implements com.google.protobuf.ProtocolMessageEnum { + public enum HistogramYAxis implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Count the documents per property name.
      * 
@@ -66,6 +84,8 @@ public enum HistogramYAxis */ HISTOGRAM_YAXIS_DOCUMENT(0), /** + * + * *
      * Count the properties per property name.
      * 
@@ -77,6 +97,8 @@ public enum HistogramYAxis ; /** + * + * *
      * Count the documents per property name.
      * 
@@ -85,6 +107,8 @@ public enum HistogramYAxis */ public static final int HISTOGRAM_YAXIS_DOCUMENT_VALUE = 0; /** + * + * *
      * Count the properties per property name.
      * 
@@ -93,7 +117,6 @@ public enum HistogramYAxis */ public static final int HISTOGRAM_YAXIS_PROPERTY_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -118,48 +141,49 @@ public static HistogramYAxis valueOf(int value) { */ public static HistogramYAxis forNumber(int value) { switch (value) { - case 0: return HISTOGRAM_YAXIS_DOCUMENT; - case 1: return HISTOGRAM_YAXIS_PROPERTY; - default: return null; + case 0: + return HISTOGRAM_YAXIS_DOCUMENT; + case 1: + return HISTOGRAM_YAXIS_PROPERTY; + 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< - HistogramYAxis> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HistogramYAxis findValueByNumber(int number) { - return HistogramYAxis.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HistogramYAxis findValueByNumber(int number) { + return HistogramYAxis.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDescriptor() + .getEnumTypes() + .get(0); } private static final HistogramYAxis[] VALUES = values(); - public static HistogramYAxis valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static HistogramYAxis 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; @@ -177,10 +201,13 @@ private HistogramYAxis(int value) { } public static final int DOCUMENT_SCHEMAS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList documentSchemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -193,13 +220,15 @@ private HistogramYAxis(int value) {
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the documentSchemas. */ - public com.google.protobuf.ProtocolStringList - getDocumentSchemasList() { + public com.google.protobuf.ProtocolStringList getDocumentSchemasList() { return documentSchemas_; } /** + * + * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -212,12 +241,15 @@ private HistogramYAxis(int value) {
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of documentSchemas. */ public int getDocumentSchemasCount() { return documentSchemas_.size(); } /** + * + * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -230,6 +262,7 @@ public int getDocumentSchemasCount() {
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The documentSchemas at the given index. */ @@ -237,6 +270,8 @@ public java.lang.String getDocumentSchemas(int index) { return documentSchemas_.get(index); } /** + * + * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -249,19 +284,22 @@ public java.lang.String getDocumentSchemas(int index) {
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the documentSchemas at the given index. */ - public com.google.protobuf.ByteString - getDocumentSchemasBytes(int index) { + public com.google.protobuf.ByteString getDocumentSchemasBytes(int index) { return documentSchemas_.getByteString(index); } public static final int PROPERTY_NAMES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -273,13 +311,15 @@ public java.lang.String getDocumentSchemas(int index) {
    * 
* * repeated string property_names = 2; + * * @return A list containing the propertyNames. */ - public com.google.protobuf.ProtocolStringList - getPropertyNamesList() { + public com.google.protobuf.ProtocolStringList getPropertyNamesList() { return propertyNames_; } /** + * + * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -291,12 +331,15 @@ public java.lang.String getDocumentSchemas(int index) {
    * 
* * repeated string property_names = 2; + * * @return The count of propertyNames. */ public int getPropertyNamesCount() { return propertyNames_.size(); } /** + * + * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -308,6 +351,7 @@ public int getPropertyNamesCount() {
    * 
* * repeated string property_names = 2; + * * @param index The index of the element to return. * @return The propertyNames at the given index. */ @@ -315,6 +359,8 @@ public java.lang.String getPropertyNames(int index) { return propertyNames_.get(index); } /** + * + * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -326,43 +372,62 @@ public java.lang.String getPropertyNames(int index) {
    * 
* * repeated string property_names = 2; + * * @param index The index of the value to return. * @return The bytes of the propertyNames at the given index. */ - public com.google.protobuf.ByteString - getPropertyNamesBytes(int index) { + public com.google.protobuf.ByteString getPropertyNamesBytes(int index) { return propertyNames_.getByteString(index); } public static final int Y_AXIS_FIELD_NUMBER = 3; private int yAxis_ = 0; /** + * + * *
    * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
    * set.
    * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * * @return The enum numeric value on the wire for yAxis. */ - @java.lang.Override public int getYAxisValue() { + @java.lang.Override + public int getYAxisValue() { return yAxis_; } /** + * + * *
    * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
    * set.
    * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * * @return The yAxis. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis getYAxis() { - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.forNumber(yAxis_); - return result == null ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + getYAxis() { + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + .forNumber(yAxis_); + return result == null + ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + .UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -374,15 +439,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < documentSchemas_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentSchemas_.getRaw(i)); } for (int i = 0; i < propertyNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, propertyNames_.getRaw(i)); } - if (yAxis_ != com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.HISTOGRAM_YAXIS_DOCUMENT.getNumber()) { + if (yAxis_ + != com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + .HISTOGRAM_YAXIS_DOCUMENT + .getNumber()) { output.writeEnum(3, yAxis_); } getUnknownFields().writeTo(output); @@ -410,9 +477,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPropertyNamesList().size(); } - if (yAxis_ != com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.HISTOGRAM_YAXIS_DOCUMENT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, yAxis_); + if (yAxis_ + != com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + .HISTOGRAM_YAXIS_DOCUMENT + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, yAxis_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -422,17 +491,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.contentwarehouse.v1.HistogramQueryPropertyNameFilter)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter other = (com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) obj; + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter other = + (com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) obj; - if (!getDocumentSchemasList() - .equals(other.getDocumentSchemasList())) return false; - if (!getPropertyNamesList() - .equals(other.getPropertyNamesList())) return false; + if (!getDocumentSchemasList().equals(other.getDocumentSchemasList())) return false; + if (!getPropertyNamesList().equals(other.getPropertyNamesList())) return false; if (yAxis_ != other.yAxis_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -461,148 +529,151 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter 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.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.HistogramProto + .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.HistogramProto + .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.class, com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.class, + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.Builder.class); } - // Construct using com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - documentSchemas_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - propertyNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + documentSchemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); + propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); yAxis_ = 0; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.HistogramProto + .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter + getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter + .getDefaultInstance(); } @java.lang.Override @@ -616,13 +687,17 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter bui @java.lang.Override public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter buildPartial() { - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter result = new com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter result = + new com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { documentSchemas_.makeImmutable(); @@ -641,46 +716,51 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.HistogramQueryPr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.HistogramQueryPropertyNameFilter) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter)other); + return mergeFrom( + (com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter other) { - if (other == com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter other) { + if (other + == com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter + .getDefaultInstance()) return this; if (!other.documentSchemas_.isEmpty()) { if (documentSchemas_.isEmpty()) { documentSchemas_ = other.documentSchemas_; @@ -730,29 +810,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDocumentSchemasIsMutable(); - documentSchemas_.add(s); - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePropertyNamesIsMutable(); - propertyNames_.add(s); - break; - } // case 18 - case 24: { - yAxis_ = input.readEnum(); - 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(); + ensureDocumentSchemasIsMutable(); + documentSchemas_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePropertyNamesIsMutable(); + propertyNames_.add(s); + break; + } // case 18 + case 24: + { + yAxis_ = input.readEnum(); + 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) { @@ -762,10 +846,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList documentSchemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDocumentSchemasIsMutable() { if (!documentSchemas_.isModifiable()) { documentSchemas_ = new com.google.protobuf.LazyStringArrayList(documentSchemas_); @@ -773,6 +859,8 @@ private void ensureDocumentSchemasIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -785,14 +873,16 @@ private void ensureDocumentSchemasIsMutable() {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the documentSchemas. */ - public com.google.protobuf.ProtocolStringList - getDocumentSchemasList() { + public com.google.protobuf.ProtocolStringList getDocumentSchemasList() { documentSchemas_.makeImmutable(); return documentSchemas_; } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -805,12 +895,15 @@ private void ensureDocumentSchemasIsMutable() {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of documentSchemas. */ public int getDocumentSchemasCount() { return documentSchemas_.size(); } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -823,6 +916,7 @@ public int getDocumentSchemasCount() {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The documentSchemas at the given index. */ @@ -830,6 +924,8 @@ public java.lang.String getDocumentSchemas(int index) { return documentSchemas_.get(index); } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -842,14 +938,16 @@ public java.lang.String getDocumentSchemas(int index) {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the documentSchemas at the given index. */ - public com.google.protobuf.ByteString - getDocumentSchemasBytes(int index) { + public com.google.protobuf.ByteString getDocumentSchemasBytes(int index) { return documentSchemas_.getByteString(index); } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -862,13 +960,15 @@ public java.lang.String getDocumentSchemas(int index) {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index to set the value at. * @param value The documentSchemas to set. * @return This builder for chaining. */ - public Builder setDocumentSchemas( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentSchemas(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentSchemasIsMutable(); documentSchemas_.set(index, value); bitField0_ |= 0x00000001; @@ -876,6 +976,8 @@ public Builder setDocumentSchemas( return this; } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -888,12 +990,14 @@ public Builder setDocumentSchemas(
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @param value The documentSchemas to add. * @return This builder for chaining. */ - public Builder addDocumentSchemas( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocumentSchemas(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentSchemasIsMutable(); documentSchemas_.add(value); bitField0_ |= 0x00000001; @@ -901,6 +1005,8 @@ public Builder addDocumentSchemas( return this; } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -913,19 +1019,20 @@ public Builder addDocumentSchemas(
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @param values The documentSchemas to add. * @return This builder for chaining. */ - public Builder addAllDocumentSchemas( - java.lang.Iterable values) { + public Builder addAllDocumentSchemas(java.lang.Iterable values) { ensureDocumentSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, documentSchemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentSchemas_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -938,16 +1045,19 @@ public Builder addAllDocumentSchemas(
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearDocumentSchemas() { - documentSchemas_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + documentSchemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * This filter specifies the exact document schema(s)
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -960,12 +1070,14 @@ public Builder clearDocumentSchemas() {
      * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes of the documentSchemas to add. * @return This builder for chaining. */ - public Builder addDocumentSchemasBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocumentSchemasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDocumentSchemasIsMutable(); documentSchemas_.add(value); @@ -976,6 +1088,7 @@ public Builder addDocumentSchemasBytes( private com.google.protobuf.LazyStringArrayList propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePropertyNamesIsMutable() { if (!propertyNames_.isModifiable()) { propertyNames_ = new com.google.protobuf.LazyStringArrayList(propertyNames_); @@ -983,6 +1096,8 @@ private void ensurePropertyNamesIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -994,14 +1109,16 @@ private void ensurePropertyNamesIsMutable() {
      * 
* * repeated string property_names = 2; + * * @return A list containing the propertyNames. */ - public com.google.protobuf.ProtocolStringList - getPropertyNamesList() { + public com.google.protobuf.ProtocolStringList getPropertyNamesList() { propertyNames_.makeImmutable(); return propertyNames_; } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1013,12 +1130,15 @@ private void ensurePropertyNamesIsMutable() {
      * 
* * repeated string property_names = 2; + * * @return The count of propertyNames. */ public int getPropertyNamesCount() { return propertyNames_.size(); } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1030,6 +1150,7 @@ public int getPropertyNamesCount() {
      * 
* * repeated string property_names = 2; + * * @param index The index of the element to return. * @return The propertyNames at the given index. */ @@ -1037,6 +1158,8 @@ public java.lang.String getPropertyNames(int index) { return propertyNames_.get(index); } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1048,14 +1171,16 @@ public java.lang.String getPropertyNames(int index) {
      * 
* * repeated string property_names = 2; + * * @param index The index of the value to return. * @return The bytes of the propertyNames at the given index. */ - public com.google.protobuf.ByteString - getPropertyNamesBytes(int index) { + public com.google.protobuf.ByteString getPropertyNamesBytes(int index) { return propertyNames_.getByteString(index); } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1067,13 +1192,15 @@ public java.lang.String getPropertyNames(int index) {
      * 
* * repeated string property_names = 2; + * * @param index The index to set the value at. * @param value The propertyNames to set. * @return This builder for chaining. */ - public Builder setPropertyNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPropertyNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePropertyNamesIsMutable(); propertyNames_.set(index, value); bitField0_ |= 0x00000002; @@ -1081,6 +1208,8 @@ public Builder setPropertyNames( return this; } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1092,12 +1221,14 @@ public Builder setPropertyNames(
      * 
* * repeated string property_names = 2; + * * @param value The propertyNames to add. * @return This builder for chaining. */ - public Builder addPropertyNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPropertyNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePropertyNamesIsMutable(); propertyNames_.add(value); bitField0_ |= 0x00000002; @@ -1105,6 +1236,8 @@ public Builder addPropertyNames( return this; } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1116,19 +1249,20 @@ public Builder addPropertyNames(
      * 
* * repeated string property_names = 2; + * * @param values The propertyNames to add. * @return This builder for chaining. */ - public Builder addAllPropertyNames( - java.lang.Iterable values) { + public Builder addAllPropertyNames(java.lang.Iterable values) { ensurePropertyNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, propertyNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyNames_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1140,16 +1274,19 @@ public Builder addAllPropertyNames(
      * 
* * repeated string property_names = 2; + * * @return This builder for chaining. */ public Builder clearPropertyNames() { - propertyNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * It is optional. It will perform histogram for all the property names if it
      * is not set.
@@ -1161,12 +1298,14 @@ public Builder clearPropertyNames() {
      * 
* * repeated string property_names = 2; + * * @param value The bytes of the propertyNames to add. * @return This builder for chaining. */ - public Builder addPropertyNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPropertyNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePropertyNamesIsMutable(); propertyNames_.add(value); @@ -1177,24 +1316,35 @@ public Builder addPropertyNamesBytes( private int yAxis_ = 0; /** + * + * *
      * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
      * set.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * * @return The enum numeric value on the wire for yAxis. */ - @java.lang.Override public int getYAxisValue() { + @java.lang.Override + public int getYAxisValue() { return yAxis_; } /** + * + * *
      * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
      * set.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * * @param value The enum numeric value on the wire for yAxis to set. * @return This builder for chaining. */ @@ -1205,30 +1355,48 @@ public Builder setYAxisValue(int value) { return this; } /** + * + * *
      * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
      * set.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * * @return The yAxis. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis getYAxis() { - com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.forNumber(yAxis_); - return result == null ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis.UNRECOGNIZED : result; + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + getYAxis() { + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis result = + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + .forNumber(yAxis_); + return result == null + ? com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + .UNRECOGNIZED + : result; } /** + * + * *
      * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
      * set.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * * @param value The yAxis to set. * @return This builder for chaining. */ - public Builder setYAxis(com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis value) { + public Builder setYAxis( + com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis + value) { if (value == null) { throw new NullPointerException(); } @@ -1238,12 +1406,17 @@ public Builder setYAxis(com.google.cloud.contentwarehouse.v1.HistogramQueryPrope return this; } /** + * + * *
      * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
      * set.
      * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * * @return This builder for chaining. */ public Builder clearYAxis() { @@ -1252,9 +1425,9 @@ public Builder clearYAxis() { 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); } @@ -1264,41 +1437,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) - private static final com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter(); } - public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HistogramQueryPropertyNameFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 HistogramQueryPropertyNameFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1310,9 +1485,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java similarity index 82% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java index c51681de43b2..f6923817420b 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryPropertyNameFilterOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/histogram.proto package com.google.cloud.contentwarehouse.v1; -public interface HistogramQueryPropertyNameFilterOrBuilder extends +public interface HistogramQueryPropertyNameFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -20,11 +38,13 @@ public interface HistogramQueryPropertyNameFilterOrBuilder extends
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the documentSchemas. */ - java.util.List - getDocumentSchemasList(); + java.util.List getDocumentSchemasList(); /** + * + * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -37,10 +57,13 @@ public interface HistogramQueryPropertyNameFilterOrBuilder extends
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of documentSchemas. */ int getDocumentSchemasCount(); /** + * + * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -53,11 +76,14 @@ public interface HistogramQueryPropertyNameFilterOrBuilder extends
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The documentSchemas at the given index. */ java.lang.String getDocumentSchemas(int index); /** + * + * *
    * This filter specifies the exact document schema(s)
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]
@@ -70,13 +96,15 @@ public interface HistogramQueryPropertyNameFilterOrBuilder extends
    * 
* * repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the documentSchemas at the given index. */ - com.google.protobuf.ByteString - getDocumentSchemasBytes(int index); + com.google.protobuf.ByteString getDocumentSchemasBytes(int index); /** + * + * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -88,11 +116,13 @@ public interface HistogramQueryPropertyNameFilterOrBuilder extends
    * 
* * repeated string property_names = 2; + * * @return A list containing the propertyNames. */ - java.util.List - getPropertyNamesList(); + java.util.List getPropertyNamesList(); /** + * + * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -104,10 +134,13 @@ public interface HistogramQueryPropertyNameFilterOrBuilder extends
    * 
* * repeated string property_names = 2; + * * @return The count of propertyNames. */ int getPropertyNamesCount(); /** + * + * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -119,11 +152,14 @@ public interface HistogramQueryPropertyNameFilterOrBuilder extends
    * 
* * repeated string property_names = 2; + * * @param index The index of the element to return. * @return The propertyNames at the given index. */ java.lang.String getPropertyNames(int index); /** + * + * *
    * It is optional. It will perform histogram for all the property names if it
    * is not set.
@@ -135,29 +171,39 @@ public interface HistogramQueryPropertyNameFilterOrBuilder extends
    * 
* * repeated string property_names = 2; + * * @param index The index of the value to return. * @return The bytes of the propertyNames at the given index. */ - com.google.protobuf.ByteString - getPropertyNamesBytes(int index); + com.google.protobuf.ByteString getPropertyNamesBytes(int index); /** + * + * *
    * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
    * set.
    * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * * @return The enum numeric value on the wire for yAxis. */ int getYAxisValue(); /** + * + * *
    * By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not
    * set.
    * 
* - * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * .google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3; + * + * * @return The yAxis. */ com.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis getYAxis(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java similarity index 64% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java index 980cffb3c235..a688d2e38976 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResult.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/histogram.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Histogram result that matches
  * [HistogramQuery][google.cloud.contentwarehouse.v1.HistogramQuery] specified
@@ -12,60 +29,65 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQueryResult}
  */
-public final class HistogramQueryResult extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class HistogramQueryResult extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.HistogramQueryResult)
     HistogramQueryResultOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use HistogramQueryResult.newBuilder() to construct.
   private HistogramQueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private HistogramQueryResult() {
     histogramQuery_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new HistogramQueryResult();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.HistogramProto
+        .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetHistogram();
       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.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.HistogramProto
+        .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.HistogramQueryResult.class, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder.class);
+            com.google.cloud.contentwarehouse.v1.HistogramQueryResult.class,
+            com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder.class);
   }
 
   public static final int HISTOGRAM_QUERY_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object histogramQuery_ = "";
   /**
+   *
+   *
    * 
    * Requested histogram expression.
    * 
* * string histogram_query = 1; + * * @return The histogramQuery. */ @java.lang.Override @@ -74,29 +96,29 @@ public java.lang.String getHistogramQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); histogramQuery_ = s; return s; } } /** + * + * *
    * Requested histogram expression.
    * 
* * string histogram_query = 1; + * * @return The bytes for histogramQuery. */ @java.lang.Override - public com.google.protobuf.ByteString - getHistogramQueryBytes() { + public com.google.protobuf.ByteString getHistogramQueryBytes() { java.lang.Object ref = histogramQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); histogramQuery_ = b; return b; } else { @@ -105,32 +127,34 @@ public java.lang.String getHistogramQuery() { } public static final int HISTOGRAM_FIELD_NUMBER = 2; + private static final class HistogramDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.contentwarehouse.v1.HistogramProto + .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> histogram_; - private com.google.protobuf.MapField - internalGetHistogram() { + private com.google.protobuf.MapField histogram_; + + private com.google.protobuf.MapField internalGetHistogram() { if (histogram_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HistogramDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(HistogramDefaultEntryHolder.defaultEntry); } return histogram_; } + public int getHistogramCount() { return internalGetHistogram().getMap().size(); } /** + * + * *
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -143,20 +167,21 @@ public int getHistogramCount() {
    * map<string, int64> histogram = 2;
    */
   @java.lang.Override
-  public boolean containsHistogram(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsHistogram(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetHistogram().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getHistogramMap()} instead.
-   */
+  /** Use {@link #getHistogramMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getHistogram() {
     return getHistogramMap();
   }
   /**
+   *
+   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -173,6 +198,8 @@ public java.util.Map getHistogramMap() {
     return internalGetHistogram().getMap();
   }
   /**
+   *
+   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -185,15 +212,16 @@ public java.util.Map getHistogramMap() {
    * map<string, int64> histogram = 2;
    */
   @java.lang.Override
-  public long getHistogramOrDefault(
-      java.lang.String key,
-      long defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetHistogram().getMap();
+  public long getHistogramOrDefault(java.lang.String key, long defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetHistogram().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -206,11 +234,11 @@ public long getHistogramOrDefault(
    * map<string, int64> histogram = 2;
    */
   @java.lang.Override
-  public long getHistogramOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetHistogram().getMap();
+  public long getHistogramOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetHistogram().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -218,6 +246,7 @@ public long getHistogramOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -229,17 +258,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(histogramQuery_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, histogramQuery_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetHistogram(),
-        HistogramDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetHistogram(), HistogramDefaultEntryHolder.defaultEntry, 2);
     getUnknownFields().writeTo(output);
   }
 
@@ -252,15 +276,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(histogramQuery_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, histogramQuery_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetHistogram().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      histogram__ = HistogramDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, histogram__);
+    for (java.util.Map.Entry entry :
+        internalGetHistogram().getMap().entrySet()) {
+      com.google.protobuf.MapEntry histogram__ =
+          HistogramDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, histogram__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -270,17 +294,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.contentwarehouse.v1.HistogramQueryResult)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.HistogramQueryResult other = (com.google.cloud.contentwarehouse.v1.HistogramQueryResult) obj;
+    com.google.cloud.contentwarehouse.v1.HistogramQueryResult other =
+        (com.google.cloud.contentwarehouse.v1.HistogramQueryResult) obj;
 
-    if (!getHistogramQuery()
-        .equals(other.getHistogramQuery())) return false;
-    if (!internalGetHistogram().equals(
-        other.internalGetHistogram())) return false;
+    if (!getHistogramQuery().equals(other.getHistogramQuery())) return false;
+    if (!internalGetHistogram().equals(other.internalGetHistogram())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -304,98 +327,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult 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.contentwarehouse.v1.HistogramQueryResult parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult 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.contentwarehouse.v1.HistogramQueryResult parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.HistogramQueryResult prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.HistogramQueryResult prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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;
   }
   /**
+   *
+   *
    * 
    * Histogram result that matches
    * [HistogramQuery][google.cloud.contentwarehouse.v1.HistogramQuery] specified
@@ -404,55 +433,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.HistogramQueryResult}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.HistogramQueryResult)
       com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.HistogramProto
+          .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetHistogram();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableHistogram();
         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.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.HistogramProto
+          .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.HistogramQueryResult.class, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder.class);
+              com.google.cloud.contentwarehouse.v1.HistogramQueryResult.class,
+              com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.HistogramQueryResult.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -463,9 +489,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.HistogramProto.internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.HistogramProto
+          .internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor;
     }
 
     @java.lang.Override
@@ -484,8 +510,11 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryResult build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.HistogramQueryResult buildPartial() {
-      com.google.cloud.contentwarehouse.v1.HistogramQueryResult result = new com.google.cloud.contentwarehouse.v1.HistogramQueryResult(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.contentwarehouse.v1.HistogramQueryResult result =
+          new com.google.cloud.contentwarehouse.v1.HistogramQueryResult(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -505,38 +534,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.HistogramQueryRe
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.HistogramQueryResult) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.HistogramQueryResult)other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.HistogramQueryResult) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -544,14 +574,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.HistogramQueryResult other) {
-      if (other == com.google.cloud.contentwarehouse.v1.HistogramQueryResult.getDefaultInstance()) return this;
+      if (other == com.google.cloud.contentwarehouse.v1.HistogramQueryResult.getDefaultInstance())
+        return this;
       if (!other.getHistogramQuery().isEmpty()) {
         histogramQuery_ = other.histogramQuery_;
         bitField0_ |= 0x00000001;
         onChanged();
       }
-      internalGetMutableHistogram().mergeFrom(
-          other.internalGetHistogram());
+      internalGetMutableHistogram().mergeFrom(other.internalGetHistogram());
       bitField0_ |= 0x00000002;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -579,26 +609,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              histogramQuery_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.protobuf.MapEntry
-              histogram__ = input.readMessage(
-                  HistogramDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableHistogram().getMutableMap().put(
-                  histogram__.getKey(), histogram__.getValue());
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                histogramQuery_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.protobuf.MapEntry histogram__ =
+                    input.readMessage(
+                        HistogramDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableHistogram()
+                    .getMutableMap()
+                    .put(histogram__.getKey(), histogram__.getValue());
+                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) {
@@ -608,22 +643,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object histogramQuery_ = "";
     /**
+     *
+     *
      * 
      * Requested histogram expression.
      * 
* * string histogram_query = 1; + * * @return The histogramQuery. */ public java.lang.String getHistogramQuery() { java.lang.Object ref = histogramQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); histogramQuery_ = s; return s; @@ -632,20 +670,21 @@ public java.lang.String getHistogramQuery() { } } /** + * + * *
      * Requested histogram expression.
      * 
* * string histogram_query = 1; + * * @return The bytes for histogramQuery. */ - public com.google.protobuf.ByteString - getHistogramQueryBytes() { + public com.google.protobuf.ByteString getHistogramQueryBytes() { java.lang.Object ref = histogramQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); histogramQuery_ = b; return b; } else { @@ -653,28 +692,35 @@ public java.lang.String getHistogramQuery() { } } /** + * + * *
      * Requested histogram expression.
      * 
* * string histogram_query = 1; + * * @param value The histogramQuery to set. * @return This builder for chaining. */ - public Builder setHistogramQuery( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHistogramQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } histogramQuery_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Requested histogram expression.
      * 
* * string histogram_query = 1; + * * @return This builder for chaining. */ public Builder clearHistogramQuery() { @@ -684,17 +730,21 @@ public Builder clearHistogramQuery() { return this; } /** + * + * *
      * Requested histogram expression.
      * 
* * string histogram_query = 1; + * * @param value The bytes for histogramQuery to set. * @return This builder for chaining. */ - public Builder setHistogramQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); histogramQuery_ = value; bitField0_ |= 0x00000001; @@ -702,21 +752,20 @@ public Builder setHistogramQueryBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> histogram_; - private com.google.protobuf.MapField - internalGetHistogram() { + private com.google.protobuf.MapField histogram_; + + private com.google.protobuf.MapField internalGetHistogram() { if (histogram_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HistogramDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(HistogramDefaultEntryHolder.defaultEntry); } return histogram_; } + private com.google.protobuf.MapField internalGetMutableHistogram() { if (histogram_ == null) { - histogram_ = com.google.protobuf.MapField.newMapField( - HistogramDefaultEntryHolder.defaultEntry); + histogram_ = + com.google.protobuf.MapField.newMapField(HistogramDefaultEntryHolder.defaultEntry); } if (!histogram_.isMutable()) { histogram_ = histogram_.copy(); @@ -725,10 +774,13 @@ public Builder setHistogramQueryBytes( onChanged(); return histogram_; } + public int getHistogramCount() { return internalGetHistogram().getMap().size(); } /** + * + * *
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -741,20 +793,21 @@ public int getHistogramCount() {
      * map<string, int64> histogram = 2;
      */
     @java.lang.Override
-    public boolean containsHistogram(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsHistogram(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetHistogram().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getHistogramMap()} instead.
-     */
+    /** Use {@link #getHistogramMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getHistogram() {
       return getHistogramMap();
     }
     /**
+     *
+     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -771,6 +824,8 @@ public java.util.Map getHistogramMap() {
       return internalGetHistogram().getMap();
     }
     /**
+     *
+     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -783,15 +838,16 @@ public java.util.Map getHistogramMap() {
      * map<string, int64> histogram = 2;
      */
     @java.lang.Override
-    public long getHistogramOrDefault(
-        java.lang.String key,
-        long defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetHistogram().getMap();
+    public long getHistogramOrDefault(java.lang.String key, long defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetHistogram().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -804,23 +860,25 @@ public long getHistogramOrDefault(
      * map<string, int64> histogram = 2;
      */
     @java.lang.Override
-    public long getHistogramOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetHistogram().getMap();
+    public long getHistogramOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetHistogram().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearHistogram() {
       bitField0_ = (bitField0_ & ~0x00000002);
-      internalGetMutableHistogram().getMutableMap()
-          .clear();
+      internalGetMutableHistogram().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -832,23 +890,22 @@ public Builder clearHistogram() {
      *
      * map<string, int64> histogram = 2;
      */
-    public Builder removeHistogram(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableHistogram().getMutableMap()
-          .remove(key);
+    public Builder removeHistogram(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableHistogram().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableHistogram() {
+    public java.util.Map getMutableHistogram() {
       bitField0_ |= 0x00000002;
       return internalGetMutableHistogram().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -860,17 +917,18 @@ public Builder removeHistogram(
      *
      * map<string, int64> histogram = 2;
      */
-    public Builder putHistogram(
-        java.lang.String key,
-        long value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putHistogram(java.lang.String key, long value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
 
-      internalGetMutableHistogram().getMutableMap()
-          .put(key, value);
+      internalGetMutableHistogram().getMutableMap().put(key, value);
       bitField0_ |= 0x00000002;
       return this;
     }
     /**
+     *
+     *
      * 
      * A map from the values of the facet associated with distinct values to the
      * number of matching entries with corresponding value.
@@ -882,16 +940,14 @@ public Builder putHistogram(
      *
      * map<string, int64> histogram = 2;
      */
-    public Builder putAllHistogram(
-        java.util.Map values) {
-      internalGetMutableHistogram().getMutableMap()
-          .putAll(values);
+    public Builder putAllHistogram(java.util.Map values) {
+      internalGetMutableHistogram().getMutableMap().putAll(values);
       bitField0_ |= 0x00000002;
       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);
     }
 
@@ -901,12 +957,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.HistogramQueryResult)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.HistogramQueryResult)
   private static final com.google.cloud.contentwarehouse.v1.HistogramQueryResult DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.HistogramQueryResult();
   }
@@ -915,27 +971,27 @@ public static com.google.cloud.contentwarehouse.v1.HistogramQueryResult getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public HistogramQueryResult parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 HistogramQueryResult parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.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,6 +1006,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java
similarity index 67%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java
index fb71b9e9961c..cf04a6b09df4 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramQueryResultOrBuilder.java
@@ -1,33 +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/contentwarehouse/v1/histogram.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface HistogramQueryResultOrBuilder extends
+public interface HistogramQueryResultOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.HistogramQueryResult)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Requested histogram expression.
    * 
* * string histogram_query = 1; + * * @return The histogramQuery. */ java.lang.String getHistogramQuery(); /** + * + * *
    * Requested histogram expression.
    * 
* * string histogram_query = 1; + * * @return The bytes for histogramQuery. */ - com.google.protobuf.ByteString - getHistogramQueryBytes(); + com.google.protobuf.ByteString getHistogramQueryBytes(); /** + * + * *
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -41,6 +64,8 @@ public interface HistogramQueryResultOrBuilder extends
    */
   int getHistogramCount();
   /**
+   *
+   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -52,15 +77,13 @@ public interface HistogramQueryResultOrBuilder extends
    *
    * map<string, int64> histogram = 2;
    */
-  boolean containsHistogram(
-      java.lang.String key);
-  /**
-   * Use {@link #getHistogramMap()} instead.
-   */
+  boolean containsHistogram(java.lang.String key);
+  /** Use {@link #getHistogramMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getHistogram();
+  java.util.Map getHistogram();
   /**
+   *
+   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -72,9 +95,10 @@ boolean containsHistogram(
    *
    * map<string, int64> histogram = 2;
    */
-  java.util.Map
-  getHistogramMap();
+  java.util.Map getHistogramMap();
   /**
+   *
+   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -86,10 +110,10 @@ boolean containsHistogram(
    *
    * map<string, int64> histogram = 2;
    */
-  long getHistogramOrDefault(
-      java.lang.String key,
-      long defaultValue);
+  long getHistogramOrDefault(java.lang.String key, long defaultValue);
   /**
+   *
+   *
    * 
    * A map from the values of the facet associated with distinct values to the
    * number of matching entries with corresponding value.
@@ -101,6 +125,5 @@ long getHistogramOrDefault(
    *
    * map<string, int64> histogram = 2;
    */
-  long getHistogramOrThrow(
-      java.lang.String key);
+  long getHistogramOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java
similarity index 79%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java
index 154459581897..565c24faebd3 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java
@@ -1,24 +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/contentwarehouse/v1/pipelines.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * The ingestion pipeline config.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.IngestPipelineConfig} */ -public final class IngestPipelineConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IngestPipelineConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.IngestPipelineConfig) IngestPipelineConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IngestPipelineConfig.newBuilder() to construct. private IngestPipelineConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IngestPipelineConfig() { folder_ = ""; cloudFunction_ = ""; @@ -26,27 +44,30 @@ private IngestPipelineConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IngestPipelineConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.class, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder.class); + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.class, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder.class); } public static final int DOCUMENT_ACL_POLICY_FIELD_NUMBER = 1; private com.google.iam.v1.Policy documentAclPolicy_; /** + * + * *
    * The document level acl policy config.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -68,6 +89,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.iam.v1.Policy document_acl_policy = 1; + * * @return Whether the documentAclPolicy field is set. */ @java.lang.Override @@ -75,6 +97,8 @@ public boolean hasDocumentAclPolicy() { return documentAclPolicy_ != null; } /** + * + * *
    * The document level acl policy config.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -96,13 +120,18 @@ public boolean hasDocumentAclPolicy() {
    * 
* * .google.iam.v1.Policy document_acl_policy = 1; + * * @return The documentAclPolicy. */ @java.lang.Override public com.google.iam.v1.Policy getDocumentAclPolicy() { - return documentAclPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : documentAclPolicy_; + return documentAclPolicy_ == null + ? com.google.iam.v1.Policy.getDefaultInstance() + : documentAclPolicy_; } /** + * + * *
    * The document level acl policy config.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -127,12 +156,16 @@ public com.google.iam.v1.Policy getDocumentAclPolicy() {
    */
   @java.lang.Override
   public com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder() {
-    return documentAclPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : documentAclPolicy_;
+    return documentAclPolicy_ == null
+        ? com.google.iam.v1.Policy.getDefaultInstance()
+        : documentAclPolicy_;
   }
 
   public static final int ENABLE_DOCUMENT_TEXT_EXTRACTION_FIELD_NUMBER = 2;
   private boolean enableDocumentTextExtraction_ = false;
   /**
+   *
+   *
    * 
    * The document text extraction enabled flag.
    * If the flag is set to true, DWH will perform text extraction on the raw
@@ -140,6 +173,7 @@ public com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder() {
    * 
* * bool enable_document_text_extraction = 2; + * * @return The enableDocumentTextExtraction. */ @java.lang.Override @@ -148,9 +182,12 @@ public boolean getEnableDocumentTextExtraction() { } public static final int FOLDER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object folder_ = ""; /** + * + * *
    * Optional. The name of the folder to which all ingested documents will be
    * linked during ingestion process. Format is
@@ -158,6 +195,7 @@ public boolean getEnableDocumentTextExtraction() {
    * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The folder. */ @java.lang.Override @@ -166,14 +204,15 @@ public java.lang.String getFolder() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folder_ = s; return s; } } /** + * + * *
    * Optional. The name of the folder to which all ingested documents will be
    * linked during ingestion process. Format is
@@ -181,16 +220,15 @@ public java.lang.String getFolder() {
    * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for folder. */ @java.lang.Override - public com.google.protobuf.ByteString - getFolderBytes() { + public com.google.protobuf.ByteString getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); folder_ = b; return b; } else { @@ -199,9 +237,12 @@ public java.lang.String getFolder() { } public static final int CLOUD_FUNCTION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object cloudFunction_ = ""; /** + * + * *
    * The Cloud Function resource name. The Cloud Function needs to live inside
    * consumer project and is accessible to Document AI Warehouse P4SA.
@@ -229,6 +270,7 @@ public java.lang.String getFolder() {
    * 
* * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * * @return The cloudFunction. */ @java.lang.Override @@ -237,14 +279,15 @@ public java.lang.String getCloudFunction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudFunction_ = s; return s; } } /** + * + * *
    * The Cloud Function resource name. The Cloud Function needs to live inside
    * consumer project and is accessible to Document AI Warehouse P4SA.
@@ -272,16 +315,15 @@ public java.lang.String getCloudFunction() {
    * 
* * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for cloudFunction. */ @java.lang.Override - public com.google.protobuf.ByteString - getCloudFunctionBytes() { + public com.google.protobuf.ByteString getCloudFunctionBytes() { java.lang.Object ref = cloudFunction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudFunction_ = b; return b; } else { @@ -290,6 +332,7 @@ public java.lang.String getCloudFunction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,8 +344,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (documentAclPolicy_ != null) { output.writeMessage(1, getDocumentAclPolicy()); } @@ -325,12 +367,11 @@ public int getSerializedSize() { size = 0; if (documentAclPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDocumentAclPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentAclPolicy()); } if (enableDocumentTextExtraction_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableDocumentTextExtraction_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableDocumentTextExtraction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folder_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, folder_); @@ -346,24 +387,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.contentwarehouse.v1.IngestPipelineConfig)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig other = (com.google.cloud.contentwarehouse.v1.IngestPipelineConfig) obj; + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig other = + (com.google.cloud.contentwarehouse.v1.IngestPipelineConfig) obj; if (hasDocumentAclPolicy() != other.hasDocumentAclPolicy()) return false; if (hasDocumentAclPolicy()) { - if (!getDocumentAclPolicy() - .equals(other.getDocumentAclPolicy())) return false; + if (!getDocumentAclPolicy().equals(other.getDocumentAclPolicy())) return false; } - if (getEnableDocumentTextExtraction() - != other.getEnableDocumentTextExtraction()) return false; - if (!getFolder() - .equals(other.getFolder())) return false; - if (!getCloudFunction() - .equals(other.getCloudFunction())) return false; + if (getEnableDocumentTextExtraction() != other.getEnableDocumentTextExtraction()) return false; + if (!getFolder().equals(other.getFolder())) return false; + if (!getCloudFunction().equals(other.getCloudFunction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -380,8 +418,8 @@ public int hashCode() { hash = (53 * hash) + getDocumentAclPolicy().hashCode(); } hash = (37 * hash) + ENABLE_DOCUMENT_TEXT_EXTRACTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableDocumentTextExtraction()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDocumentTextExtraction()); hash = (37 * hash) + FOLDER_FIELD_NUMBER; hash = (53 * hash) + getFolder().hashCode(); hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER; @@ -392,131 +430,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig 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.contentwarehouse.v1.IngestPipelineConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig 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.contentwarehouse.v1.IngestPipelineConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The ingestion pipeline config.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.IngestPipelineConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.IngestPipelineConfig) com.google.cloud.contentwarehouse.v1.IngestPipelineConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.class, com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder.class); + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.class, + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -533,9 +576,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; } @java.lang.Override @@ -554,8 +597,11 @@ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig buildPartial() { - com.google.cloud.contentwarehouse.v1.IngestPipelineConfig result = new com.google.cloud.contentwarehouse.v1.IngestPipelineConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.IngestPipelineConfig result = + new com.google.cloud.contentwarehouse.v1.IngestPipelineConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -563,9 +609,10 @@ public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig buildPartial() private void buildPartial0(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.documentAclPolicy_ = documentAclPolicyBuilder_ == null - ? documentAclPolicy_ - : documentAclPolicyBuilder_.build(); + result.documentAclPolicy_ = + documentAclPolicyBuilder_ == null + ? documentAclPolicy_ + : documentAclPolicyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.enableDocumentTextExtraction_ = enableDocumentTextExtraction_; @@ -582,38 +629,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.IngestPipelineCo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.IngestPipelineConfig) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.IngestPipelineConfig)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.IngestPipelineConfig) other); } else { super.mergeFrom(other); return this; @@ -621,7 +669,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.IngestPipelineConfig other) { - if (other == com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.IngestPipelineConfig.getDefaultInstance()) + return this; if (other.hasDocumentAclPolicy()) { mergeDocumentAclPolicy(other.getDocumentAclPolicy()); } @@ -664,34 +713,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDocumentAclPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - enableDocumentTextExtraction_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - folder_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - cloudFunction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getDocumentAclPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + enableDocumentTextExtraction_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + folder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + cloudFunction_ = 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) { @@ -701,12 +754,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.iam.v1.Policy documentAclPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> documentAclPolicyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + documentAclPolicyBuilder_; /** + * + * *
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -728,12 +787,15 @@ public Builder mergeFrom(
      * 
* * .google.iam.v1.Policy document_acl_policy = 1; + * * @return Whether the documentAclPolicy field is set. */ public boolean hasDocumentAclPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -755,16 +817,21 @@ public boolean hasDocumentAclPolicy() {
      * 
* * .google.iam.v1.Policy document_acl_policy = 1; + * * @return The documentAclPolicy. */ public com.google.iam.v1.Policy getDocumentAclPolicy() { if (documentAclPolicyBuilder_ == null) { - return documentAclPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : documentAclPolicy_; + return documentAclPolicy_ == null + ? com.google.iam.v1.Policy.getDefaultInstance() + : documentAclPolicy_; } else { return documentAclPolicyBuilder_.getMessage(); } } /** + * + * *
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -801,6 +868,8 @@ public Builder setDocumentAclPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -823,8 +892,7 @@ public Builder setDocumentAclPolicy(com.google.iam.v1.Policy value) {
      *
      * .google.iam.v1.Policy document_acl_policy = 1;
      */
-    public Builder setDocumentAclPolicy(
-        com.google.iam.v1.Policy.Builder builderForValue) {
+    public Builder setDocumentAclPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       if (documentAclPolicyBuilder_ == null) {
         documentAclPolicy_ = builderForValue.build();
       } else {
@@ -835,6 +903,8 @@ public Builder setDocumentAclPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -859,9 +929,9 @@ public Builder setDocumentAclPolicy(
      */
     public Builder mergeDocumentAclPolicy(com.google.iam.v1.Policy value) {
       if (documentAclPolicyBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          documentAclPolicy_ != null &&
-          documentAclPolicy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && documentAclPolicy_ != null
+            && documentAclPolicy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
           getDocumentAclPolicyBuilder().mergeFrom(value);
         } else {
           documentAclPolicy_ = value;
@@ -874,6 +944,8 @@ public Builder mergeDocumentAclPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -907,6 +979,8 @@ public Builder clearDocumentAclPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -935,6 +1009,8 @@ public com.google.iam.v1.Policy.Builder getDocumentAclPolicyBuilder() {
       return getDocumentAclPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -961,11 +1037,14 @@ public com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder() {
       if (documentAclPolicyBuilder_ != null) {
         return documentAclPolicyBuilder_.getMessageOrBuilder();
       } else {
-        return documentAclPolicy_ == null ?
-            com.google.iam.v1.Policy.getDefaultInstance() : documentAclPolicy_;
+        return documentAclPolicy_ == null
+            ? com.google.iam.v1.Policy.getDefaultInstance()
+            : documentAclPolicy_;
       }
     }
     /**
+     *
+     *
      * 
      * The document level acl policy config.
      * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -989,21 +1068,26 @@ public com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder() {
      * .google.iam.v1.Policy document_acl_policy = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
+            com.google.iam.v1.Policy,
+            com.google.iam.v1.Policy.Builder,
+            com.google.iam.v1.PolicyOrBuilder>
         getDocumentAclPolicyFieldBuilder() {
       if (documentAclPolicyBuilder_ == null) {
-        documentAclPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
-                getDocumentAclPolicy(),
-                getParentForChildren(),
-                isClean());
+        documentAclPolicyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.iam.v1.Policy,
+                com.google.iam.v1.Policy.Builder,
+                com.google.iam.v1.PolicyOrBuilder>(
+                getDocumentAclPolicy(), getParentForChildren(), isClean());
         documentAclPolicy_ = null;
       }
       return documentAclPolicyBuilder_;
     }
 
-    private boolean enableDocumentTextExtraction_ ;
+    private boolean enableDocumentTextExtraction_;
     /**
+     *
+     *
      * 
      * The document text extraction enabled flag.
      * If the flag is set to true, DWH will perform text extraction on the raw
@@ -1011,6 +1095,7 @@ public com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder() {
      * 
* * bool enable_document_text_extraction = 2; + * * @return The enableDocumentTextExtraction. */ @java.lang.Override @@ -1018,6 +1103,8 @@ public boolean getEnableDocumentTextExtraction() { return enableDocumentTextExtraction_; } /** + * + * *
      * The document text extraction enabled flag.
      * If the flag is set to true, DWH will perform text extraction on the raw
@@ -1025,6 +1112,7 @@ public boolean getEnableDocumentTextExtraction() {
      * 
* * bool enable_document_text_extraction = 2; + * * @param value The enableDocumentTextExtraction to set. * @return This builder for chaining. */ @@ -1036,6 +1124,8 @@ public Builder setEnableDocumentTextExtraction(boolean value) { return this; } /** + * + * *
      * The document text extraction enabled flag.
      * If the flag is set to true, DWH will perform text extraction on the raw
@@ -1043,6 +1133,7 @@ public Builder setEnableDocumentTextExtraction(boolean value) {
      * 
* * bool enable_document_text_extraction = 2; + * * @return This builder for chaining. */ public Builder clearEnableDocumentTextExtraction() { @@ -1054,6 +1145,8 @@ public Builder clearEnableDocumentTextExtraction() { private java.lang.Object folder_ = ""; /** + * + * *
      * Optional. The name of the folder to which all ingested documents will be
      * linked during ingestion process. Format is
@@ -1061,13 +1154,13 @@ public Builder clearEnableDocumentTextExtraction() {
      * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The folder. */ public java.lang.String getFolder() { java.lang.Object ref = folder_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folder_ = s; return s; @@ -1076,6 +1169,8 @@ public java.lang.String getFolder() { } } /** + * + * *
      * Optional. The name of the folder to which all ingested documents will be
      * linked during ingestion process. Format is
@@ -1083,15 +1178,14 @@ public java.lang.String getFolder() {
      * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for folder. */ - public com.google.protobuf.ByteString - getFolderBytes() { + public com.google.protobuf.ByteString getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); folder_ = b; return b; } else { @@ -1099,6 +1193,8 @@ public java.lang.String getFolder() { } } /** + * + * *
      * Optional. The name of the folder to which all ingested documents will be
      * linked during ingestion process. Format is
@@ -1106,18 +1202,22 @@ public java.lang.String getFolder() {
      * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The folder to set. * @return This builder for chaining. */ - public Builder setFolder( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } folder_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The name of the folder to which all ingested documents will be
      * linked during ingestion process. Format is
@@ -1125,6 +1225,7 @@ public Builder setFolder(
      * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFolder() { @@ -1134,6 +1235,8 @@ public Builder clearFolder() { return this; } /** + * + * *
      * Optional. The name of the folder to which all ingested documents will be
      * linked during ingestion process. Format is
@@ -1141,12 +1244,14 @@ public Builder clearFolder() {
      * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for folder to set. * @return This builder for chaining. */ - public Builder setFolderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); folder_ = value; bitField0_ |= 0x00000004; @@ -1156,6 +1261,8 @@ public Builder setFolderBytes( private java.lang.Object cloudFunction_ = ""; /** + * + * *
      * The Cloud Function resource name. The Cloud Function needs to live inside
      * consumer project and is accessible to Document AI Warehouse P4SA.
@@ -1183,13 +1290,13 @@ public Builder setFolderBytes(
      * 
* * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * * @return The cloudFunction. */ public java.lang.String getCloudFunction() { java.lang.Object ref = cloudFunction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudFunction_ = s; return s; @@ -1198,6 +1305,8 @@ public java.lang.String getCloudFunction() { } } /** + * + * *
      * The Cloud Function resource name. The Cloud Function needs to live inside
      * consumer project and is accessible to Document AI Warehouse P4SA.
@@ -1225,15 +1334,14 @@ public java.lang.String getCloudFunction() {
      * 
* * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for cloudFunction. */ - public com.google.protobuf.ByteString - getCloudFunctionBytes() { + public com.google.protobuf.ByteString getCloudFunctionBytes() { java.lang.Object ref = cloudFunction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudFunction_ = b; return b; } else { @@ -1241,6 +1349,8 @@ public java.lang.String getCloudFunction() { } } /** + * + * *
      * The Cloud Function resource name. The Cloud Function needs to live inside
      * consumer project and is accessible to Document AI Warehouse P4SA.
@@ -1268,18 +1378,22 @@ public java.lang.String getCloudFunction() {
      * 
* * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * * @param value The cloudFunction to set. * @return This builder for chaining. */ - public Builder setCloudFunction( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCloudFunction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } cloudFunction_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The Cloud Function resource name. The Cloud Function needs to live inside
      * consumer project and is accessible to Document AI Warehouse P4SA.
@@ -1307,6 +1421,7 @@ public Builder setCloudFunction(
      * 
* * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearCloudFunction() { @@ -1316,6 +1431,8 @@ public Builder clearCloudFunction() { return this; } /** + * + * *
      * The Cloud Function resource name. The Cloud Function needs to live inside
      * consumer project and is accessible to Document AI Warehouse P4SA.
@@ -1343,21 +1460,23 @@ public Builder clearCloudFunction() {
      * 
* * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for cloudFunction to set. * @return This builder for chaining. */ - public Builder setCloudFunctionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCloudFunctionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); cloudFunction_ = 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); } @@ -1367,12 +1486,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.IngestPipelineConfig) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.IngestPipelineConfig) private static final com.google.cloud.contentwarehouse.v1.IngestPipelineConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.IngestPipelineConfig(); } @@ -1381,27 +1500,27 @@ public static com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IngestPipelineConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 IngestPipelineConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1416,6 +1535,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.IngestPipelineConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java similarity index 88% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java index 816458f574fa..30192a3d7bb4 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface IngestPipelineConfigOrBuilder extends +public interface IngestPipelineConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.IngestPipelineConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The document level acl policy config.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -29,10 +47,13 @@ public interface IngestPipelineConfigOrBuilder extends
    * 
* * .google.iam.v1.Policy document_acl_policy = 1; + * * @return Whether the documentAclPolicy field is set. */ boolean hasDocumentAclPolicy(); /** + * + * *
    * The document level acl policy config.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -54,10 +75,13 @@ public interface IngestPipelineConfigOrBuilder extends
    * 
* * .google.iam.v1.Policy document_acl_policy = 1; + * * @return The documentAclPolicy. */ com.google.iam.v1.Policy getDocumentAclPolicy(); /** + * + * *
    * The document level acl policy config.
    * This refers to an Identity and Access (IAM) policy, which specifies access
@@ -83,6 +107,8 @@ public interface IngestPipelineConfigOrBuilder extends
   com.google.iam.v1.PolicyOrBuilder getDocumentAclPolicyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The document text extraction enabled flag.
    * If the flag is set to true, DWH will perform text extraction on the raw
@@ -90,11 +116,14 @@ public interface IngestPipelineConfigOrBuilder extends
    * 
* * bool enable_document_text_extraction = 2; + * * @return The enableDocumentTextExtraction. */ boolean getEnableDocumentTextExtraction(); /** + * + * *
    * Optional. The name of the folder to which all ingested documents will be
    * linked during ingestion process. Format is
@@ -102,10 +131,13 @@ public interface IngestPipelineConfigOrBuilder extends
    * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The folder. */ java.lang.String getFolder(); /** + * + * *
    * Optional. The name of the folder to which all ingested documents will be
    * linked during ingestion process. Format is
@@ -113,12 +145,14 @@ public interface IngestPipelineConfigOrBuilder extends
    * 
* * string folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for folder. */ - com.google.protobuf.ByteString - getFolderBytes(); + com.google.protobuf.ByteString getFolderBytes(); /** + * + * *
    * The Cloud Function resource name. The Cloud Function needs to live inside
    * consumer project and is accessible to Document AI Warehouse P4SA.
@@ -146,10 +180,13 @@ public interface IngestPipelineConfigOrBuilder extends
    * 
* * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * * @return The cloudFunction. */ java.lang.String getCloudFunction(); /** + * + * *
    * The Cloud Function resource name. The Cloud Function needs to live inside
    * consumer project and is accessible to Document AI Warehouse P4SA.
@@ -177,8 +214,8 @@ public interface IngestPipelineConfigOrBuilder extends
    * 
* * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for cloudFunction. */ - com.google.protobuf.ByteString - getCloudFunctionBytes(); + com.google.protobuf.ByteString getCloudFunctionBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java similarity index 64% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java index b732aece5567..fe7835371274 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArray.java @@ -1,90 +1,120 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Integer values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.IntegerArray} */ -public final class IntegerArray extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IntegerArray extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.IntegerArray) IntegerArrayOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IntegerArray.newBuilder() to construct. private IntegerArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IntegerArray() { values_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IntegerArray(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.IntegerArray.class, com.google.cloud.contentwarehouse.v1.IntegerArray.Builder.class); + com.google.cloud.contentwarehouse.v1.IntegerArray.class, + com.google.cloud.contentwarehouse.v1.IntegerArray.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList values_; /** + * + * *
    * List of integer values.
    * 
* * repeated int32 values = 1; + * * @return A list containing the values. */ @java.lang.Override - public java.util.List - getValuesList() { + public java.util.List getValuesList() { return values_; } /** + * + * *
    * List of integer values.
    * 
* * repeated int32 values = 1; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
    * List of integer values.
    * 
* * repeated int32 values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ public int getValues(int index) { return values_.getInt(index); } + private int valuesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +126,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getValuesList().size() > 0) { output.writeUInt32NoTag(10); @@ -118,14 +147,12 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(values_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(values_.getInt(i)); } size += dataSize; if (!getValuesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } valuesMemoizedSerializedSize = dataSize; } @@ -137,15 +164,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.contentwarehouse.v1.IntegerArray)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.IntegerArray other = (com.google.cloud.contentwarehouse.v1.IntegerArray) obj; + com.google.cloud.contentwarehouse.v1.IntegerArray other = + (com.google.cloud.contentwarehouse.v1.IntegerArray) obj; - if (!getValuesList() - .equals(other.getValuesList())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -167,131 +194,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.IntegerArray 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.contentwarehouse.v1.IntegerArray parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IntegerArray parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.IntegerArray parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.IntegerArray 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.contentwarehouse.v1.IntegerArray parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.IntegerArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.IntegerArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Integer values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.IntegerArray} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.IntegerArray) com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.IntegerArray.class, com.google.cloud.contentwarehouse.v1.IntegerArray.Builder.class); + com.google.cloud.contentwarehouse.v1.IntegerArray.class, + com.google.cloud.contentwarehouse.v1.IntegerArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.IntegerArray.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -301,9 +332,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor; } @java.lang.Override @@ -322,14 +353,18 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.IntegerArray buildPartial() { - com.google.cloud.contentwarehouse.v1.IntegerArray result = new com.google.cloud.contentwarehouse.v1.IntegerArray(this); + com.google.cloud.contentwarehouse.v1.IntegerArray result = + new com.google.cloud.contentwarehouse.v1.IntegerArray(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.IntegerArray result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.IntegerArray result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); @@ -345,38 +380,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.IntegerArray 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.contentwarehouse.v1.IntegerArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.IntegerArray)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.IntegerArray) other); } else { super.mergeFrom(other); return this; @@ -384,7 +420,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.IntegerArray other) { - if (other == com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance()) + return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; @@ -421,28 +458,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - int v = input.readInt32(); - ensureValuesIsMutable(); - values_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValuesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - values_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + int v = input.readInt32(); + ensureValuesIsMutable(); + values_.addInt(v); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValuesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + values_.addInt(input.readInt32()); + } + 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) { @@ -452,9 +492,11 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Internal.IntList values_ = emptyIntList(); + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = mutableCopy(values_); @@ -462,35 +504,44 @@ private void ensureValuesIsMutable() { } } /** + * + * *
      * List of integer values.
      * 
* * repeated int32 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_; } /** + * + * *
      * List of integer values.
      * 
* * repeated int32 values = 1; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
      * List of integer values.
      * 
* * repeated int32 values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -498,17 +549,19 @@ public int getValues(int index) { return values_.getInt(index); } /** + * + * *
      * List of integer values.
      * 
* * repeated int32 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, int value) { + public Builder setValues(int index, int value) { ensureValuesIsMutable(); values_.setInt(index, value); @@ -516,11 +569,14 @@ public Builder setValues( return this; } /** + * + * *
      * List of integer values.
      * 
* * repeated int32 values = 1; + * * @param value The values to add. * @return This builder for chaining. */ @@ -532,28 +588,32 @@ public Builder addValues(int value) { return this; } /** + * + * *
      * List of integer values.
      * 
* * repeated int32 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; } /** + * + * *
      * List of integer values.
      * 
* * repeated int32 values = 1; + * * @return This builder for chaining. */ public Builder clearValues() { @@ -562,9 +622,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); } @@ -574,12 +634,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.IntegerArray) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.IntegerArray) private static final com.google.cloud.contentwarehouse.v1.IntegerArray DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.IntegerArray(); } @@ -588,27 +648,27 @@ public static com.google.cloud.contentwarehouse.v1.IntegerArray getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IntegerArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 IntegerArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -623,6 +683,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.IntegerArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java similarity index 57% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java index 408d653542c4..6b9d52e1bfb3 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerArrayOrBuilder.java @@ -1,36 +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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface IntegerArrayOrBuilder extends +public interface IntegerArrayOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.IntegerArray) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of integer values.
    * 
* * repeated int32 values = 1; + * * @return A list containing the values. */ java.util.List getValuesList(); /** + * + * *
    * List of integer values.
    * 
* * repeated int32 values = 1; + * * @return The count of values. */ int getValuesCount(); /** + * + * *
    * List of integer values.
    * 
* * repeated int32 values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java similarity index 63% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java index 385dd10953bb..753a659b7566 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptions.java @@ -1,48 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Configurations for an integer property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.IntegerTypeOptions} */ -public final class IntegerTypeOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IntegerTypeOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.IntegerTypeOptions) IntegerTypeOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IntegerTypeOptions.newBuilder() to construct. private IntegerTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IntegerTypeOptions() { - } + + private IntegerTypeOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IntegerTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.class, com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.class, + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -73,12 +91,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.IntegerTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions other = (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions other = + (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions 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.contentwarehouse.v1.IntegerTypeOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions 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.contentwarehouse.v1.IntegerTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.IntegerTypeOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Configurations for an integer property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.IntegerTypeOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.IntegerTypeOptions) com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.class, com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.class, + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -229,9 +253,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; } @java.lang.Override @@ -250,7 +274,8 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions result = new com.google.cloud.contentwarehouse.v1.IntegerTypeOptions(this); + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions result = + new com.google.cloud.contentwarehouse.v1.IntegerTypeOptions(this); onBuilt(); return result; } @@ -259,38 +284,39 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.IntegerTypeOptions)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) other); } else { super.mergeFrom(other); return this; @@ -298,7 +324,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.IntegerTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -325,12 +352,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -340,9 +368,9 @@ public Builder mergeFrom( } // finally 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); } @@ -352,12 +380,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.IntegerTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.IntegerTypeOptions) private static final com.google.cloud.contentwarehouse.v1.IntegerTypeOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.IntegerTypeOptions(); } @@ -366,27 +394,27 @@ public static com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IntegerTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 IntegerTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -401,6 +429,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..dfac3e42de2d --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java @@ -0,0 +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/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface IntegerTypeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.IntegerTypeOptions) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java similarity index 67% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java index 74e099169a07..03e25c813ad7 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRule.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * A triggered rule that failed the validation check(s) after parsing.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.InvalidRule} */ -public final class InvalidRule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InvalidRule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.InvalidRule) InvalidRuleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InvalidRule.newBuilder() to construct. private InvalidRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InvalidRule() { error_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InvalidRule(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.InvalidRule.class, com.google.cloud.contentwarehouse.v1.InvalidRule.Builder.class); + com.google.cloud.contentwarehouse.v1.InvalidRule.class, + com.google.cloud.contentwarehouse.v1.InvalidRule.Builder.class); } public static final int RULE_FIELD_NUMBER = 1; private com.google.cloud.contentwarehouse.v1.Rule rule_; /** + * + * *
    * Triggered rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return Whether the rule field is set. */ @java.lang.Override @@ -58,11 +80,14 @@ public boolean hasRule() { return rule_ != null; } /** + * + * *
    * Triggered rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return The rule. */ @java.lang.Override @@ -70,6 +95,8 @@ public com.google.cloud.contentwarehouse.v1.Rule getRule() { return rule_ == null ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; } /** + * + * *
    * Triggered rule.
    * 
@@ -82,14 +109,18 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { } public static final int ERROR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object error_ = ""; /** + * + * *
    * Validation error on a parsed expression.
    * 
* * string error = 2; + * * @return The error. */ @java.lang.Override @@ -98,29 +129,29 @@ public java.lang.String getError() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } } /** + * + * *
    * Validation error on a parsed expression.
    * 
* * string error = 2; + * * @return The bytes for error. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorBytes() { + public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { @@ -129,6 +160,7 @@ public java.lang.String getError() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +172,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (rule_ != null) { output.writeMessage(1, getRule()); } @@ -158,8 +189,7 @@ public int getSerializedSize() { size = 0; if (rule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRule()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); @@ -172,20 +202,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.contentwarehouse.v1.InvalidRule)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.InvalidRule other = (com.google.cloud.contentwarehouse.v1.InvalidRule) obj; + com.google.cloud.contentwarehouse.v1.InvalidRule other = + (com.google.cloud.contentwarehouse.v1.InvalidRule) obj; if (hasRule() != other.hasRule()) return false; if (hasRule()) { - if (!getRule() - .equals(other.getRule())) return false; + if (!getRule().equals(other.getRule())) return false; } - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -208,132 +237,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.InvalidRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.InvalidRule 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.contentwarehouse.v1.InvalidRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.InvalidRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.InvalidRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 triggered rule that failed the validation check(s) after parsing.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.InvalidRule} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.InvalidRule) com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.InvalidRule.class, com.google.cloud.contentwarehouse.v1.InvalidRule.Builder.class); + com.google.cloud.contentwarehouse.v1.InvalidRule.class, + com.google.cloud.contentwarehouse.v1.InvalidRule.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.InvalidRule.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -348,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; } @java.lang.Override @@ -369,8 +402,11 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.InvalidRule buildPartial() { - com.google.cloud.contentwarehouse.v1.InvalidRule result = new com.google.cloud.contentwarehouse.v1.InvalidRule(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.InvalidRule result = + new com.google.cloud.contentwarehouse.v1.InvalidRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -378,9 +414,7 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule buildPartial() { private void buildPartial0(com.google.cloud.contentwarehouse.v1.InvalidRule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.rule_ = ruleBuilder_ == null - ? rule_ - : ruleBuilder_.build(); + result.rule_ = ruleBuilder_ == null ? rule_ : ruleBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.error_ = error_; @@ -391,38 +425,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.InvalidRule 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.contentwarehouse.v1.InvalidRule) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.InvalidRule)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.InvalidRule) other); } else { super.mergeFrom(other); return this; @@ -430,7 +465,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.InvalidRule other) { - if (other == com.google.cloud.contentwarehouse.v1.InvalidRule.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.InvalidRule.getDefaultInstance()) + return this; if (other.hasRule()) { mergeRule(other.getRule()); } @@ -465,24 +501,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getRuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - error_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getRuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + error_ = 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) { @@ -492,38 +529,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.contentwarehouse.v1.Rule rule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> ruleBuilder_; + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + ruleBuilder_; /** + * + * *
      * Triggered rule.
      * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return Whether the rule field is set. */ public boolean hasRule() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Triggered rule.
      * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return The rule. */ public com.google.cloud.contentwarehouse.v1.Rule getRule() { if (ruleBuilder_ == null) { - return rule_ == null ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; + return rule_ == null + ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() + : rule_; } else { return ruleBuilder_.getMessage(); } } /** + * + * *
      * Triggered rule.
      * 
@@ -544,14 +595,15 @@ public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** + * + * *
      * Triggered rule.
      * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; */ - public Builder setRule( - com.google.cloud.contentwarehouse.v1.Rule.Builder builderForValue) { + public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule.Builder builderForValue) { if (ruleBuilder_ == null) { rule_ = builderForValue.build(); } else { @@ -562,6 +614,8 @@ public Builder setRule( return this; } /** + * + * *
      * Triggered rule.
      * 
@@ -570,9 +624,9 @@ public Builder setRule( */ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { if (ruleBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - rule_ != null && - rule_ != com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && rule_ != null + && rule_ != com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()) { getRuleBuilder().mergeFrom(value); } else { rule_ = value; @@ -585,6 +639,8 @@ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** + * + * *
      * Triggered rule.
      * 
@@ -602,6 +658,8 @@ public Builder clearRule() { return this; } /** + * + * *
      * Triggered rule.
      * 
@@ -614,6 +672,8 @@ public com.google.cloud.contentwarehouse.v1.Rule.Builder getRuleBuilder() { return getRuleFieldBuilder().getBuilder(); } /** + * + * *
      * Triggered rule.
      * 
@@ -624,11 +684,14 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { if (ruleBuilder_ != null) { return ruleBuilder_.getMessageOrBuilder(); } else { - return rule_ == null ? - com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; + return rule_ == null + ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() + : rule_; } } /** + * + * *
      * Triggered rule.
      * 
@@ -636,14 +699,17 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { * .google.cloud.contentwarehouse.v1.Rule rule = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder> getRuleFieldBuilder() { if (ruleBuilder_ == null) { - ruleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( - getRule(), - getParentForChildren(), - isClean()); + ruleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( + getRule(), getParentForChildren(), isClean()); rule_ = null; } return ruleBuilder_; @@ -651,18 +717,20 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { private java.lang.Object error_ = ""; /** + * + * *
      * Validation error on a parsed expression.
      * 
* * string error = 2; + * * @return The error. */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; @@ -671,20 +739,21 @@ public java.lang.String getError() { } } /** + * + * *
      * Validation error on a parsed expression.
      * 
* * string error = 2; + * * @return The bytes for error. */ - public com.google.protobuf.ByteString - getErrorBytes() { + public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { @@ -692,28 +761,35 @@ public java.lang.String getError() { } } /** + * + * *
      * Validation error on a parsed expression.
      * 
* * string error = 2; + * * @param value The error to set. * @return This builder for chaining. */ - public Builder setError( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setError(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } error_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Validation error on a parsed expression.
      * 
* * string error = 2; + * * @return This builder for chaining. */ public Builder clearError() { @@ -723,26 +799,30 @@ public Builder clearError() { return this; } /** + * + * *
      * Validation error on a parsed expression.
      * 
* * string error = 2; + * * @param value The bytes for error to set. * @return This builder for chaining. */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); error_ = 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); } @@ -752,12 +832,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.InvalidRule) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.InvalidRule) private static final com.google.cloud.contentwarehouse.v1.InvalidRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.InvalidRule(); } @@ -766,27 +846,27 @@ public static com.google.cloud.contentwarehouse.v1.InvalidRule getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InvalidRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 InvalidRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -801,6 +881,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.InvalidRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java similarity index 61% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java index 1ab964d30a31..f95e131d0b05 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/InvalidRuleOrBuilder.java @@ -1,31 +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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface InvalidRuleOrBuilder extends +public interface InvalidRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.InvalidRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Triggered rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return Whether the rule field is set. */ boolean hasRule(); /** + * + * *
    * Triggered rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return The rule. */ com.google.cloud.contentwarehouse.v1.Rule getRule(); /** + * + * *
    * Triggered rule.
    * 
@@ -35,22 +59,27 @@ public interface InvalidRuleOrBuilder extends com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder(); /** + * + * *
    * Validation error on a parsed expression.
    * 
* * string error = 2; + * * @return The error. */ java.lang.String getError(); /** + * + * *
    * Validation error on a parsed expression.
    * 
* * string error = 2; + * * @return The bytes for error. */ - com.google.protobuf.ByteString - getErrorBytes(); + com.google.protobuf.ByteString getErrorBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java similarity index 67% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java index 12e4423aae78..5ffa10791e52 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequest.java @@ -1,24 +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/contentwarehouse/v1/document_schema_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentSchemaService.ListDocumentSchemas.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest} */ -public final class ListDocumentSchemasRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDocumentSchemasRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) ListDocumentSchemasRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDocumentSchemasRequest.newBuilder() to construct. private ListDocumentSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDocumentSchemasRequest() { parent_ = ""; pageToken_ = ""; @@ -26,34 +44,41 @@ private ListDocumentSchemasRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDocumentSchemasRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.class, com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.class, + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent, which owns this collection of document schemas.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 @@ -62,30 +87,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent, which owns this collection of document schemas.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 { @@ -96,6 +123,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of document schemas to return. The service may return
    * fewer than this value.
@@ -104,6 +133,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,9 +142,12 @@ 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 `ListDocumentSchemas` call.
    * Provide this to retrieve the subsequent page.
@@ -124,6 +157,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -132,14 +166,15 @@ 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 `ListDocumentSchemas` call.
    * Provide this to retrieve the subsequent page.
@@ -149,16 +184,15 @@ 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 { @@ -167,6 +201,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -202,8 +236,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -216,19 +249,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.contentwarehouse.v1.ListDocumentSchemasRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest other = (com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) obj; + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest other = + (com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) 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; } @@ -252,131 +283,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest 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.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest 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.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 DocumentSchemaService.ListDocumentSchemas.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.class, com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.class, + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -388,13 +424,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.getDefaultInstance(); } @@ -409,13 +446,17 @@ public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest result = new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest result = + new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -432,46 +473,50 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListDocumentSche public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListDocumentSchemasRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest other) { + if (other + == com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -511,27 +556,31 @@ 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) { @@ -541,23 +590,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of document schemas.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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; @@ -566,21 +620,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of document schemas.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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 { @@ -588,30 +645,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of document schemas.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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, which owns this collection of document schemas.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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() { @@ -621,18 +689,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent, which owns this collection of document schemas.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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; @@ -640,8 +714,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of document schemas to return. The service may return
      * fewer than this value.
@@ -650,6 +726,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -657,6 +734,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of document schemas to return. The service may return
      * fewer than this value.
@@ -665,6 +744,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -676,6 +756,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of document schemas to return. The service may return
      * fewer than this value.
@@ -684,6 +766,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -695,6 +778,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -704,13 +789,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; @@ -719,6 +804,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -728,15 +815,14 @@ 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 { @@ -744,6 +830,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -753,18 +841,22 @@ public java.lang.String getPageToken() {
      * 
* * 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 `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -774,6 +866,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -783,6 +876,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListDocumentSchemas` call.
      * Provide this to retrieve the subsequent page.
@@ -792,21 +887,23 @@ 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); } @@ -816,41 +913,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) - private static final com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest(); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDocumentSchemasRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListDocumentSchemasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -862,9 +961,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java index 9ab03c524212..4f0c4e95b98a 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasRequestOrBuilder.java @@ -1,35 +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/contentwarehouse/v1/document_schema_service.proto package com.google.cloud.contentwarehouse.v1; -public interface ListDocumentSchemasRequestOrBuilder extends +public interface ListDocumentSchemasRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of document schemas.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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, which owns this collection of document schemas.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 document schemas to return. The service may return
    * fewer than this value.
@@ -38,11 +65,14 @@ public interface ListDocumentSchemasRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListDocumentSchemas` call.
    * Provide this to retrieve the subsequent page.
@@ -52,10 +82,13 @@ public interface ListDocumentSchemasRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListDocumentSchemas` call.
    * Provide this to retrieve the subsequent page.
@@ -65,8 +98,8 @@ public interface ListDocumentSchemasRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java similarity index 72% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java index 57f202cfc42e..a0a6c94b0803 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponse.java @@ -1,24 +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/contentwarehouse/v1/document_schema_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Response message for DocumentSchemaService.ListDocumentSchemas.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse} */ -public final class ListDocumentSchemasResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDocumentSchemasResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) ListDocumentSchemasResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDocumentSchemasResponse.newBuilder() to construct. private ListDocumentSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDocumentSchemasResponse() { documentSchemas_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListDocumentSchemasResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDocumentSchemasResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.class, com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.class, + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.Builder.class); } public static final int DOCUMENT_SCHEMAS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documentSchemas_; /** + * + * *
    * The document schemas from the specified parent.
    * 
@@ -55,10 +77,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ @java.lang.Override - public java.util.List getDocumentSchemasList() { + public java.util.List + getDocumentSchemasList() { return documentSchemas_; } /** + * + * *
    * The document schemas from the specified parent.
    * 
@@ -66,11 +91,13 @@ public java.util.List getDo * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDocumentSchemasOrBuilderList() { return documentSchemas_; } /** + * + * *
    * The document schemas from the specified parent.
    * 
@@ -82,6 +109,8 @@ public int getDocumentSchemasCount() { return documentSchemas_.size(); } /** + * + * *
    * The document schemas from the specified parent.
    * 
@@ -93,6 +122,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchemas(in return documentSchemas_.get(index); } /** + * + * *
    * The document schemas from the specified parent.
    * 
@@ -106,15 +137,19 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `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 @@ -123,30 +158,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `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() { + 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 { @@ -155,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < documentSchemas_.size(); i++) { output.writeMessage(1, documentSchemas_.get(i)); } @@ -184,8 +219,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < documentSchemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, documentSchemas_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documentSchemas_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +232,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.contentwarehouse.v1.ListDocumentSchemasResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse other = (com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) obj; + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse other = + (com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) obj; - if (!getDocumentSchemasList() - .equals(other.getDocumentSchemasList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getDocumentSchemasList().equals(other.getDocumentSchemasList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +265,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse 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.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse 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.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 DocumentSchemaService.ListDocumentSchemas.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.class, com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.class, + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +411,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.getDefaultInstance(); } @@ -394,14 +433,18 @@ public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse build() @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse result = new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse(this); + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse result = + new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse result) { if (documentSchemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { documentSchemas_ = java.util.Collections.unmodifiableList(documentSchemas_); @@ -413,7 +456,8 @@ private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.Lis } } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +468,50 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListDocumentSche public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListDocumentSchemasResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse other) { + if (other + == com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.getDefaultInstance()) + return this; if (documentSchemasBuilder_ == null) { if (!other.documentSchemas_.isEmpty()) { if (documentSchemas_.isEmpty()) { @@ -482,9 +530,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListDocumentSchema documentSchemasBuilder_ = null; documentSchemas_ = other.documentSchemas_; bitField0_ = (bitField0_ & ~0x00000001); - documentSchemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDocumentSchemasFieldBuilder() : null; + documentSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDocumentSchemasFieldBuilder() + : null; } else { documentSchemasBuilder_.addAllMessages(other.documentSchemas_); } @@ -521,30 +570,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.DocumentSchema m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.DocumentSchema.parser(), - extensionRegistry); - if (documentSchemasBuilder_ == null) { - ensureDocumentSchemasIsMutable(); - documentSchemas_.add(m); - } else { - documentSchemasBuilder_.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.contentwarehouse.v1.DocumentSchema m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.DocumentSchema.parser(), + extensionRegistry); + if (documentSchemasBuilder_ == null) { + ensureDocumentSchemasIsMutable(); + documentSchemas_.add(m); + } else { + documentSchemasBuilder_.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) { @@ -554,28 +606,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List documentSchemas_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDocumentSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - documentSchemas_ = new java.util.ArrayList(documentSchemas_); + documentSchemas_ = + new java.util.ArrayList( + documentSchemas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> documentSchemasBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentSchema, + com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> + documentSchemasBuilder_; /** + * + * *
      * The document schemas from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ - public java.util.List getDocumentSchemasList() { + public java.util.List + getDocumentSchemasList() { if (documentSchemasBuilder_ == null) { return java.util.Collections.unmodifiableList(documentSchemas_); } else { @@ -583,6 +645,8 @@ public java.util.List getDo } } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -597,6 +661,8 @@ public int getDocumentSchemasCount() { } } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -611,6 +677,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchemas(in } } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -632,6 +700,8 @@ public Builder setDocumentSchemas( return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -650,6 +720,8 @@ public Builder setDocumentSchemas( return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -670,6 +742,8 @@ public Builder addDocumentSchemas(com.google.cloud.contentwarehouse.v1.DocumentS return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -691,6 +765,8 @@ public Builder addDocumentSchemas( return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -709,6 +785,8 @@ public Builder addDocumentSchemas( return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -727,6 +805,8 @@ public Builder addDocumentSchemas( return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -737,8 +817,7 @@ public Builder addAllDocumentSchemas( java.lang.Iterable values) { if (documentSchemasBuilder_ == null) { ensureDocumentSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, documentSchemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentSchemas_); onChanged(); } else { documentSchemasBuilder_.addAllMessages(values); @@ -746,6 +825,8 @@ public Builder addAllDocumentSchemas( return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -763,6 +844,8 @@ public Builder clearDocumentSchemas() { return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -780,6 +863,8 @@ public Builder removeDocumentSchemas(int index) { return this; } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -791,6 +876,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSc return getDocumentSchemasFieldBuilder().getBuilder(index); } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -800,19 +887,22 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSc public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemasOrBuilder( int index) { if (documentSchemasBuilder_ == null) { - return documentSchemas_.get(index); } else { + return documentSchemas_.get(index); + } else { return documentSchemasBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The document schemas from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ - public java.util.List - getDocumentSchemasOrBuilderList() { + public java.util.List + getDocumentSchemasOrBuilderList() { if (documentSchemasBuilder_ != null) { return documentSchemasBuilder_.getMessageOrBuilderList(); } else { @@ -820,6 +910,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS } } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -827,10 +919,12 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentS * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder addDocumentSchemasBuilder() { - return getDocumentSchemasFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()); + return getDocumentSchemasFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()); } /** + * + * *
      * The document schemas from the specified parent.
      * 
@@ -839,26 +933,35 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder addDocumentSc */ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder addDocumentSchemasBuilder( int index) { - return getDocumentSchemasFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()); + return getDocumentSchemasFieldBuilder() + .addBuilder( + index, com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()); } /** + * + * *
      * The document schemas from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ - public java.util.List - getDocumentSchemasBuilderList() { + public java.util.List + getDocumentSchemasBuilderList() { return getDocumentSchemasFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentSchema, + com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> getDocumentSchemasFieldBuilder() { if (documentSchemasBuilder_ == null) { - documentSchemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder>( + documentSchemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentSchema, + com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder>( documentSchemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -870,19 +973,21 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder addDocumentSc private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -891,21 +996,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `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() { + 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 { @@ -913,30 +1019,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `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() { @@ -946,27 +1059,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `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(); } + 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); } @@ -976,41 +1093,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) - private static final com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse(); } - public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDocumentSchemasResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListDocumentSchemasResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1141,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java index b785420f4f4f..5b7847a92354 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListDocumentSchemasResponseOrBuilder.java @@ -1,22 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema_service.proto package com.google.cloud.contentwarehouse.v1; -public interface ListDocumentSchemasResponseOrBuilder extends +public interface ListDocumentSchemasResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The document schemas from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ - java.util.List - getDocumentSchemasList(); + java.util.List getDocumentSchemasList(); /** + * + * *
    * The document schemas from the specified parent.
    * 
@@ -25,6 +44,8 @@ public interface ListDocumentSchemasResponseOrBuilder extends */ com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchemas(int index); /** + * + * *
    * The document schemas from the specified parent.
    * 
@@ -33,15 +54,19 @@ public interface ListDocumentSchemasResponseOrBuilder extends */ int getDocumentSchemasCount(); /** + * + * *
    * The document schemas from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentSchema document_schemas = 1; */ - java.util.List + java.util.List getDocumentSchemasOrBuilderList(); /** + * + * *
    * The document schemas from the specified parent.
    * 
@@ -52,24 +77,29 @@ com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemasO int index); /** + * + * *
    * A token, which can be sent as `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, which can be sent as `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(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java similarity index 70% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java index b9be5a77dff9..f66d38187731 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequest.java @@ -1,24 +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/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Response message for DocumentLinkService.ListLinkedSources.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest} */ -public final class ListLinkedSourcesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLinkedSourcesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) ListLinkedSourcesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLinkedSourcesRequest.newBuilder() to construct. private ListLinkedSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLinkedSourcesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,35 +44,42 @@ private ListLinkedSourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLinkedSourcesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.class, com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.class, + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the document, for which all source links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_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 @@ -63,31 +88,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the document, for which all source links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_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 { @@ -98,6 +125,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of document-links to return. The service may return
    * fewer than this value.
@@ -107,6 +136,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -115,9 +145,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListLinkedSources` call.
    * Provide this to retrieve the subsequent page.
@@ -127,6 +160,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -135,14 +169,15 @@ 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 `ListLinkedSources` call.
    * Provide this to retrieve the subsequent page.
@@ -152,16 +187,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -172,12 +206,15 @@ public java.lang.String getPageToken() { public static final int REQUEST_METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -185,19 +222,26 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
@@ -206,11 +250,15 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+        : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -222,8 +270,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -249,12 +296,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata());
     }
     if (pageSize_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(3, pageSize_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
@@ -267,23 +312,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.contentwarehouse.v1.ListLinkedSourcesRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest other = (com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) obj;
-
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (getPageSize()
-        != other.getPageSize()) return false;
-    if (!getPageToken()
-        .equals(other.getPageToken())) return false;
+    com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest other =
+        (com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) obj;
+
+    if (!getParent().equals(other.getParent())) return false;
+    if (getPageSize() != other.getPageSize()) return false;
+    if (!getPageToken().equals(other.getPageToken())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata()
-          .equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -312,131 +354,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest 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.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest 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.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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 DocumentLinkService.ListLinkedSources.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.class, com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.class, + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -453,13 +500,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.getDefaultInstance(); } @@ -474,13 +522,17 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest result = new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest result = + new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -492,9 +544,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedSource result.pageToken_ = pageToken_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.requestMetadata_ = requestMetadataBuilder_ == null - ? requestMetadata_ - : requestMetadataBuilder_.build(); + result.requestMetadata_ = + requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); } } @@ -502,38 +553,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedSource public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListLinkedSourcesRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) other); } else { super.mergeFrom(other); return this; @@ -541,7 +593,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -584,34 +638,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - 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(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + 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) { @@ -621,24 +678,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the document, for which all source links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_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; @@ -647,22 +709,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the document, for which all source links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_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 { @@ -670,32 +735,43 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the document, for which all source links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_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 name of the document, for which all source links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_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() { @@ -705,19 +781,25 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the document, for which all source links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{source_document_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; @@ -725,8 +807,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of document-links to return. The service may return
      * fewer than this value.
@@ -736,6 +820,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -743,6 +828,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of document-links to return. The service may return
      * fewer than this value.
@@ -752,6 +839,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -763,6 +851,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of document-links to return. The service may return
      * fewer than this value.
@@ -772,6 +862,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -783,6 +874,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -792,13 +885,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -807,6 +900,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -816,15 +911,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -832,6 +926,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -841,18 +937,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + 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 `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -862,6 +962,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -871,6 +972,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListLinkedSources` call.
      * Provide this to retrieve the subsequent page.
@@ -880,12 +983,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -895,36 +1000,49 @@ public Builder setPageTokenBytes( private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> + requestMetadataBuilder_; /** + * + * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -946,6 +1064,8 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -965,6 +1085,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -972,11 +1094,13 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(
+        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          requestMetadata_ != null &&
-          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && requestMetadata_ != null
+            && requestMetadata_
+                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -989,6 +1113,8 @@ public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.Request
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1007,6 +1133,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1014,12 +1142,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+        getRequestMetadataBuilder() {
       bitField0_ |= 0x00000008;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1027,15 +1158,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMe
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+        getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+        return requestMetadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+            : requestMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -1044,21 +1179,24 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(),
-                getParentForChildren(),
-                isClean());
+        requestMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RequestMetadata,
+                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(), getParentForChildren(), isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
+
     @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);
     }
 
@@ -1068,12 +1206,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest)
-  private static final com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest();
   }
@@ -1082,27 +1221,27 @@ public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest getD
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ListLinkedSourcesRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 ListLinkedSourcesRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1117,6 +1256,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java
similarity index 72%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java
index e65aa781398b..17c8a0a5f938 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesRequestOrBuilder.java
@@ -1,37 +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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_link_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface ListLinkedSourcesRequestOrBuilder extends
+public interface ListLinkedSourcesRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The name of the document, for which all source links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_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 name of the document, for which all source links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{source_document_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(); /** + * + * *
    * The maximum number of document-links to return. The service may return
    * fewer than this value.
@@ -41,11 +68,14 @@ public interface ListLinkedSourcesRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListLinkedSources` call.
    * Provide this to retrieve the subsequent page.
@@ -55,10 +85,13 @@ public interface ListLinkedSourcesRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListLinkedSources` call.
    * Provide this to retrieve the subsequent page.
@@ -68,32 +101,40 @@ public interface ListLinkedSourcesRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java
similarity index 72%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java
index 7cca29c7a13d..5f04a6238673 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponse.java
@@ -1,24 +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/contentwarehouse/v1/document_link_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Response message for DocumentLinkService.ListLinkedSources.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse} */ -public final class ListLinkedSourcesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLinkedSourcesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) ListLinkedSourcesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLinkedSourcesResponse.newBuilder() to construct. private ListLinkedSourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLinkedSourcesResponse() { documentLinks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListLinkedSourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLinkedSourcesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.class, com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.class, + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.Builder.class); } public static final int DOCUMENT_LINKS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documentLinks_; /** + * + * *
    * Source document-links.
    * 
@@ -59,6 +81,8 @@ public java.util.List getDocu return documentLinks_; } /** + * + * *
    * Source document-links.
    * 
@@ -66,11 +90,13 @@ public java.util.List getDocu * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDocumentLinksOrBuilderList() { return documentLinks_; } /** + * + * *
    * Source document-links.
    * 
@@ -82,6 +108,8 @@ public int getDocumentLinksCount() { return documentLinks_.size(); } /** + * + * *
    * Source document-links.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in return documentLinks_.get(index); } /** + * + * *
    * Source document-links.
    * 
@@ -106,15 +136,19 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `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 @@ -123,30 +157,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `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() { + 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 { @@ -155,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < documentLinks_.size(); i++) { output.writeMessage(1, documentLinks_.get(i)); } @@ -184,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < documentLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, documentLinks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documentLinks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +231,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.contentwarehouse.v1.ListLinkedSourcesResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse other = (com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) obj; + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse other = + (com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) obj; - if (!getDocumentLinksList() - .equals(other.getDocumentLinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getDocumentLinksList().equals(other.getDocumentLinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +264,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse 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.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse 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.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 DocumentLinkService.ListLinkedSources.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.class, com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.class, + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +410,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.getDefaultInstance(); } @@ -394,14 +432,18 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse result = new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse(this); + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse result = + new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse result) { if (documentLinksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { documentLinks_ = java.util.Collections.unmodifiableList(documentLinks_); @@ -413,7 +455,8 @@ private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.Lis } } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,38 +467,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedSource public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListLinkedSourcesResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) other); } else { super.mergeFrom(other); return this; @@ -463,7 +507,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.getDefaultInstance()) + return this; if (documentLinksBuilder_ == null) { if (!other.documentLinks_.isEmpty()) { if (documentLinks_.isEmpty()) { @@ -482,9 +528,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesR documentLinksBuilder_ = null; documentLinks_ = other.documentLinks_; bitField0_ = (bitField0_ & ~0x00000001); - documentLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDocumentLinksFieldBuilder() : null; + documentLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDocumentLinksFieldBuilder() + : null; } else { documentLinksBuilder_.addAllMessages(other.documentLinks_); } @@ -521,30 +568,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.DocumentLink m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.DocumentLink.parser(), - extensionRegistry); - if (documentLinksBuilder_ == null) { - ensureDocumentLinksIsMutable(); - documentLinks_.add(m); - } else { - documentLinksBuilder_.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.contentwarehouse.v1.DocumentLink m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.DocumentLink.parser(), + extensionRegistry); + if (documentLinksBuilder_ == null) { + ensureDocumentLinksIsMutable(); + documentLinks_.add(m); + } else { + documentLinksBuilder_.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) { @@ -554,28 +604,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List documentLinks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDocumentLinksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - documentLinks_ = new java.util.ArrayList(documentLinks_); + documentLinks_ = + new java.util.ArrayList( + documentLinks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> documentLinksBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentLink, + com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> + documentLinksBuilder_; /** + * + * *
      * Source document-links.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - public java.util.List getDocumentLinksList() { + public java.util.List + getDocumentLinksList() { if (documentLinksBuilder_ == null) { return java.util.Collections.unmodifiableList(documentLinks_); } else { @@ -583,6 +643,8 @@ public java.util.List getDocu } } /** + * + * *
      * Source document-links.
      * 
@@ -597,6 +659,8 @@ public int getDocumentLinksCount() { } } /** + * + * *
      * Source document-links.
      * 
@@ -611,6 +675,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in } } /** + * + * *
      * Source document-links.
      * 
@@ -632,6 +698,8 @@ public Builder setDocumentLinks( return this; } /** + * + * *
      * Source document-links.
      * 
@@ -650,6 +718,8 @@ public Builder setDocumentLinks( return this; } /** + * + * *
      * Source document-links.
      * 
@@ -670,6 +740,8 @@ public Builder addDocumentLinks(com.google.cloud.contentwarehouse.v1.DocumentLin return this; } /** + * + * *
      * Source document-links.
      * 
@@ -691,6 +763,8 @@ public Builder addDocumentLinks( return this; } /** + * + * *
      * Source document-links.
      * 
@@ -709,6 +783,8 @@ public Builder addDocumentLinks( return this; } /** + * + * *
      * Source document-links.
      * 
@@ -727,6 +803,8 @@ public Builder addDocumentLinks( return this; } /** + * + * *
      * Source document-links.
      * 
@@ -737,8 +815,7 @@ public Builder addAllDocumentLinks( java.lang.Iterable values) { if (documentLinksBuilder_ == null) { ensureDocumentLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, documentLinks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentLinks_); onChanged(); } else { documentLinksBuilder_.addAllMessages(values); @@ -746,6 +823,8 @@ public Builder addAllDocumentLinks( return this; } /** + * + * *
      * Source document-links.
      * 
@@ -763,6 +842,8 @@ public Builder clearDocumentLinks() { return this; } /** + * + * *
      * Source document-links.
      * 
@@ -780,6 +861,8 @@ public Builder removeDocumentLinks(int index) { return this; } /** + * + * *
      * Source document-links.
      * 
@@ -791,6 +874,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink return getDocumentLinksFieldBuilder().getBuilder(index); } /** + * + * *
      * Source document-links.
      * 
@@ -800,19 +885,22 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinksOrBuilder( int index) { if (documentLinksBuilder_ == null) { - return documentLinks_.get(index); } else { + return documentLinks_.get(index); + } else { return documentLinksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Source document-links.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - public java.util.List - getDocumentLinksOrBuilderList() { + public java.util.List + getDocumentLinksOrBuilderList() { if (documentLinksBuilder_ != null) { return documentLinksBuilder_.getMessageOrBuilderList(); } else { @@ -820,6 +908,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin } } /** + * + * *
      * Source document-links.
      * 
@@ -827,10 +917,12 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLinksBuilder() { - return getDocumentLinksFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); + return getDocumentLinksFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); } /** + * + * *
      * Source document-links.
      * 
@@ -839,26 +931,35 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLink */ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLinksBuilder( int index) { - return getDocumentLinksFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); + return getDocumentLinksFieldBuilder() + .addBuilder( + index, com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); } /** + * + * *
      * Source document-links.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - public java.util.List - getDocumentLinksBuilderList() { + public java.util.List + getDocumentLinksBuilderList() { return getDocumentLinksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentLink, + com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> getDocumentLinksFieldBuilder() { if (documentLinksBuilder_ == null) { - documentLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>( + documentLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentLink, + com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>( documentLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -870,19 +971,21 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLink private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -891,21 +994,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `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() { + 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 { @@ -913,30 +1017,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `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() { @@ -946,27 +1057,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `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(); } + 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); } @@ -976,41 +1091,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) - private static final com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse(); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLinkedSourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListLinkedSourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1139,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java index 65538bf208f5..4e1d0a8e4b55 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedSourcesResponseOrBuilder.java @@ -1,22 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; -public interface ListLinkedSourcesResponseOrBuilder extends +public interface ListLinkedSourcesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Source document-links.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - java.util.List - getDocumentLinksList(); + java.util.List getDocumentLinksList(); /** + * + * *
    * Source document-links.
    * 
@@ -25,6 +44,8 @@ public interface ListLinkedSourcesResponseOrBuilder extends */ com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int index); /** + * + * *
    * Source document-links.
    * 
@@ -33,43 +54,51 @@ public interface ListLinkedSourcesResponseOrBuilder extends */ int getDocumentLinksCount(); /** + * + * *
    * Source document-links.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - java.util.List + java.util.List getDocumentLinksOrBuilderList(); /** + * + * *
    * Source document-links.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinksOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinksOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `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, which can be sent as `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(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java similarity index 67% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java index 7e2fe3df0b2d..247a186d71b3 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequest.java @@ -1,59 +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/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentLinkService.ListLinkedTargets.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest} */ -public final class ListLinkedTargetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLinkedTargetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) ListLinkedTargetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLinkedTargetsRequest.newBuilder() to construct. private ListLinkedTargetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLinkedTargetsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLinkedTargetsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.class, com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.class, + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the document, for which all target links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{target_document_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 @@ -62,31 +87,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the document, for which all target links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{target_document_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 { @@ -97,12 +124,15 @@ public java.lang.String getParent() { public static final int REQUEST_METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -110,19 +140,26 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
@@ -131,11 +168,15 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+        : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -147,8 +188,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -168,8 +208,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -179,19 +218,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.contentwarehouse.v1.ListLinkedTargetsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest other = (com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) obj;
+    com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest other =
+        (com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
+    if (!getParent().equals(other.getParent())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata()
-          .equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -216,131 +254,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest 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.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest 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.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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 DocumentLinkService.ListLinkedTargets.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.class, com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.class, + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,13 +398,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.getDefaultInstance(); } @@ -376,21 +420,24 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest result = new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest result = + new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMetadata_ = requestMetadataBuilder_ == null - ? requestMetadata_ - : requestMetadataBuilder_.build(); + result.requestMetadata_ = + requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); } } @@ -398,38 +445,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedTarget public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListLinkedTargetsRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) other); } else { super.mergeFrom(other); return this; @@ -437,7 +485,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -472,24 +522,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRequestMetadataFieldBuilder().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(getRequestMetadataFieldBuilder().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) { @@ -499,24 +550,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the document, for which all target links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{target_document_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; @@ -525,22 +581,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the document, for which all target links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{target_document_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 { @@ -548,32 +607,43 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the document, for which all target links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{target_document_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 name of the document, for which all target links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{target_document_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() { @@ -583,19 +653,25 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the document, for which all target links are
      * returned. Format:
      * projects/{project_number}/locations/{location}/documents/{target_document_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; @@ -605,36 +681,49 @@ public Builder setParentBytes( private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> + requestMetadataBuilder_; /** + * + * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -656,6 +745,8 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -675,6 +766,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -682,11 +775,13 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(
+        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          requestMetadata_ != null &&
-          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && requestMetadata_ != null
+            && requestMetadata_
+                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -699,6 +794,8 @@ public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.Request
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -717,6 +814,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -724,12 +823,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+        getRequestMetadataBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -737,15 +839,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMe
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+        getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+        return requestMetadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+            : requestMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the document creator, used to enforce
      * access control for the service.
@@ -754,21 +860,24 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(),
-                getParentForChildren(),
-                isClean());
+        requestMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RequestMetadata,
+                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(), getParentForChildren(), isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
+
     @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);
     }
 
@@ -778,12 +887,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest)
-  private static final com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest();
   }
@@ -792,27 +902,27 @@ public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest getD
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ListLinkedTargetsRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 ListLinkedTargetsRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -827,6 +937,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java
index e1c0ba832fb4..fa0a3a5ffaa1 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsRequestOrBuilder.java
@@ -1,57 +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/contentwarehouse/v1/document_link_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface ListLinkedTargetsRequestOrBuilder extends
+public interface ListLinkedTargetsRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The name of the document, for which all target links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{target_document_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 name of the document, for which all target links are
    * returned. Format:
    * projects/{project_number}/locations/{location}/documents/{target_document_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(); /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 2; + * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** + * + * *
    * The meta information collected about the document creator, used to enforce
    * access control for the service.
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java
similarity index 72%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java
index 20cd68657065..1331171df123 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponse.java
@@ -1,24 +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/contentwarehouse/v1/document_link_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Response message for DocumentLinkService.ListLinkedTargets.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse} */ -public final class ListLinkedTargetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLinkedTargetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) ListLinkedTargetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLinkedTargetsResponse.newBuilder() to construct. private ListLinkedTargetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLinkedTargetsResponse() { documentLinks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListLinkedTargetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLinkedTargetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.class, com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.class, + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.Builder.class); } public static final int DOCUMENT_LINKS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List documentLinks_; /** + * + * *
    * Target document-links.
    * 
@@ -59,6 +81,8 @@ public java.util.List getDocu return documentLinks_; } /** + * + * *
    * Target document-links.
    * 
@@ -66,11 +90,13 @@ public java.util.List getDocu * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDocumentLinksOrBuilderList() { return documentLinks_; } /** + * + * *
    * Target document-links.
    * 
@@ -82,6 +108,8 @@ public int getDocumentLinksCount() { return documentLinks_.size(); } /** + * + * *
    * Target document-links.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in return documentLinks_.get(index); } /** + * + * *
    * Target document-links.
    * 
@@ -106,15 +136,19 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `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 @@ -123,30 +157,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `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() { + 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 { @@ -155,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < documentLinks_.size(); i++) { output.writeMessage(1, documentLinks_.get(i)); } @@ -184,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < documentLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, documentLinks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documentLinks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +231,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.contentwarehouse.v1.ListLinkedTargetsResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse other = (com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) obj; + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse other = + (com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) obj; - if (!getDocumentLinksList() - .equals(other.getDocumentLinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getDocumentLinksList().equals(other.getDocumentLinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +264,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse 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.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse 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.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 DocumentLinkService.ListLinkedTargets.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.class, com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.class, + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +410,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto + .internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.getDefaultInstance(); } @@ -394,14 +432,18 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse result = new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse(this); + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse result = + new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse result) { if (documentLinksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { documentLinks_ = java.util.Collections.unmodifiableList(documentLinks_); @@ -413,7 +455,8 @@ private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.Lis } } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,38 +467,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListLinkedTarget public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListLinkedTargetsResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) other); } else { super.mergeFrom(other); return this; @@ -463,7 +507,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.getDefaultInstance()) + return this; if (documentLinksBuilder_ == null) { if (!other.documentLinks_.isEmpty()) { if (documentLinks_.isEmpty()) { @@ -482,9 +528,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsR documentLinksBuilder_ = null; documentLinks_ = other.documentLinks_; bitField0_ = (bitField0_ & ~0x00000001); - documentLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDocumentLinksFieldBuilder() : null; + documentLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDocumentLinksFieldBuilder() + : null; } else { documentLinksBuilder_.addAllMessages(other.documentLinks_); } @@ -521,30 +568,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.DocumentLink m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.DocumentLink.parser(), - extensionRegistry); - if (documentLinksBuilder_ == null) { - ensureDocumentLinksIsMutable(); - documentLinks_.add(m); - } else { - documentLinksBuilder_.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.contentwarehouse.v1.DocumentLink m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.DocumentLink.parser(), + extensionRegistry); + if (documentLinksBuilder_ == null) { + ensureDocumentLinksIsMutable(); + documentLinks_.add(m); + } else { + documentLinksBuilder_.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) { @@ -554,28 +604,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List documentLinks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDocumentLinksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - documentLinks_ = new java.util.ArrayList(documentLinks_); + documentLinks_ = + new java.util.ArrayList( + documentLinks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> documentLinksBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentLink, + com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> + documentLinksBuilder_; /** + * + * *
      * Target document-links.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - public java.util.List getDocumentLinksList() { + public java.util.List + getDocumentLinksList() { if (documentLinksBuilder_ == null) { return java.util.Collections.unmodifiableList(documentLinks_); } else { @@ -583,6 +643,8 @@ public java.util.List getDocu } } /** + * + * *
      * Target document-links.
      * 
@@ -597,6 +659,8 @@ public int getDocumentLinksCount() { } } /** + * + * *
      * Target document-links.
      * 
@@ -611,6 +675,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int in } } /** + * + * *
      * Target document-links.
      * 
@@ -632,6 +698,8 @@ public Builder setDocumentLinks( return this; } /** + * + * *
      * Target document-links.
      * 
@@ -650,6 +718,8 @@ public Builder setDocumentLinks( return this; } /** + * + * *
      * Target document-links.
      * 
@@ -670,6 +740,8 @@ public Builder addDocumentLinks(com.google.cloud.contentwarehouse.v1.DocumentLin return this; } /** + * + * *
      * Target document-links.
      * 
@@ -691,6 +763,8 @@ public Builder addDocumentLinks( return this; } /** + * + * *
      * Target document-links.
      * 
@@ -709,6 +783,8 @@ public Builder addDocumentLinks( return this; } /** + * + * *
      * Target document-links.
      * 
@@ -727,6 +803,8 @@ public Builder addDocumentLinks( return this; } /** + * + * *
      * Target document-links.
      * 
@@ -737,8 +815,7 @@ public Builder addAllDocumentLinks( java.lang.Iterable values) { if (documentLinksBuilder_ == null) { ensureDocumentLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, documentLinks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentLinks_); onChanged(); } else { documentLinksBuilder_.addAllMessages(values); @@ -746,6 +823,8 @@ public Builder addAllDocumentLinks( return this; } /** + * + * *
      * Target document-links.
      * 
@@ -763,6 +842,8 @@ public Builder clearDocumentLinks() { return this; } /** + * + * *
      * Target document-links.
      * 
@@ -780,6 +861,8 @@ public Builder removeDocumentLinks(int index) { return this; } /** + * + * *
      * Target document-links.
      * 
@@ -791,6 +874,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink return getDocumentLinksFieldBuilder().getBuilder(index); } /** + * + * *
      * Target document-links.
      * 
@@ -800,19 +885,22 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder getDocumentLink public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinksOrBuilder( int index) { if (documentLinksBuilder_ == null) { - return documentLinks_.get(index); } else { + return documentLinks_.get(index); + } else { return documentLinksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Target document-links.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - public java.util.List - getDocumentLinksOrBuilderList() { + public java.util.List + getDocumentLinksOrBuilderList() { if (documentLinksBuilder_ != null) { return documentLinksBuilder_.getMessageOrBuilderList(); } else { @@ -820,6 +908,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin } } /** + * + * *
      * Target document-links.
      * 
@@ -827,10 +917,12 @@ public com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLin * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLinksBuilder() { - return getDocumentLinksFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); + return getDocumentLinksFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); } /** + * + * *
      * Target document-links.
      * 
@@ -839,26 +931,35 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLink */ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLinksBuilder( int index) { - return getDocumentLinksFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); + return getDocumentLinksFieldBuilder() + .addBuilder( + index, com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance()); } /** + * + * *
      * Target document-links.
      * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - public java.util.List - getDocumentLinksBuilderList() { + public java.util.List + getDocumentLinksBuilderList() { return getDocumentLinksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentLink, + com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder> getDocumentLinksFieldBuilder() { if (documentLinksBuilder_ == null) { - documentLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentLink, com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>( + documentLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentLink, + com.google.cloud.contentwarehouse.v1.DocumentLink.Builder, + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>( documentLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -870,19 +971,21 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink.Builder addDocumentLink private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -891,21 +994,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `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() { + 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 { @@ -913,30 +1017,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `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() { @@ -946,27 +1057,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `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(); } + 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); } @@ -976,41 +1091,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) - private static final com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse(); } - public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLinkedTargetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListLinkedTargetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1139,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java index 388a602dfba1..4ced83a6c3ff 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListLinkedTargetsResponseOrBuilder.java @@ -1,22 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_link_service.proto package com.google.cloud.contentwarehouse.v1; -public interface ListLinkedTargetsResponseOrBuilder extends +public interface ListLinkedTargetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Target document-links.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - java.util.List - getDocumentLinksList(); + java.util.List getDocumentLinksList(); /** + * + * *
    * Target document-links.
    * 
@@ -25,6 +44,8 @@ public interface ListLinkedTargetsResponseOrBuilder extends */ com.google.cloud.contentwarehouse.v1.DocumentLink getDocumentLinks(int index); /** + * + * *
    * Target document-links.
    * 
@@ -33,43 +54,51 @@ public interface ListLinkedTargetsResponseOrBuilder extends */ int getDocumentLinksCount(); /** + * + * *
    * Target document-links.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - java.util.List + java.util.List getDocumentLinksOrBuilderList(); /** + * + * *
    * Target document-links.
    * 
* * repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1; */ - com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinksOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder getDocumentLinksOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `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, which can be sent as `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(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java index 026da89a2c2e..eced13b09804 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequest.java @@ -1,24 +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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for RuleSetService.ListRuleSets.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListRuleSetsRequest} */ -public final class ListRuleSetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuleSetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListRuleSetsRequest) ListRuleSetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuleSetsRequest.newBuilder() to construct. private ListRuleSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuleSetsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,34 +44,41 @@ private ListRuleSetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuleSetsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.class, com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.class, + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent, which owns this collection of document.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 @@ -62,30 +87,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent, which owns this collection of document.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 { @@ -96,6 +123,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of rule sets to return. The service may return
    * fewer than this value.
@@ -104,6 +133,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,9 +142,12 @@ 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 `ListRuleSets` call.
    * Provide this to retrieve the subsequent page.
@@ -124,6 +157,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -132,14 +166,15 @@ 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 `ListRuleSets` call.
    * Provide this to retrieve the subsequent page.
@@ -149,16 +184,15 @@ 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 { @@ -167,6 +201,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -202,8 +236,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -216,19 +249,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.contentwarehouse.v1.ListRuleSetsRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest other = (com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest) obj; + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest other = + (com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest) 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; } @@ -252,131 +283,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest 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.contentwarehouse.v1.ListRuleSetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest 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.contentwarehouse.v1.ListRuleSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 RuleSetService.ListRuleSets.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListRuleSetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListRuleSetsRequest) com.google.cloud.contentwarehouse.v1.ListRuleSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.class, com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.class, + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +424,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; } @java.lang.Override @@ -409,8 +445,11 @@ public com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest result = new com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest result = + new com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -432,38 +471,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListRuleSetsRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest) other); } else { super.mergeFrom(other); return this; @@ -471,7 +511,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -511,27 +552,31 @@ 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) { @@ -541,23 +586,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of document.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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; @@ -566,21 +616,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of document.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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 { @@ -588,30 +641,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of document.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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, which owns this collection of document.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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() { @@ -621,18 +685,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent, which owns this collection of document.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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; @@ -640,8 +710,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of rule sets to return. The service may return
      * fewer than this value.
@@ -650,6 +722,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -657,6 +730,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of rule sets to return. The service may return
      * fewer than this value.
@@ -665,6 +740,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -676,6 +752,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of rule sets to return. The service may return
      * fewer than this value.
@@ -684,6 +762,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -695,6 +774,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -704,13 +785,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; @@ -719,6 +800,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -728,15 +811,14 @@ 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 { @@ -744,6 +826,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -753,18 +837,22 @@ public java.lang.String getPageToken() {
      * 
* * 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 `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -774,6 +862,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -783,6 +872,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListRuleSets` call.
      * Provide this to retrieve the subsequent page.
@@ -792,21 +883,23 @@ 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); } @@ -816,12 +909,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListRuleSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListRuleSetsRequest) private static final com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest(); } @@ -830,27 +923,27 @@ public static com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuleSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListRuleSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -865,6 +958,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java index 4439d3cb1d90..f63ec1cc62f6 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsRequestOrBuilder.java @@ -1,35 +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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface ListRuleSetsRequestOrBuilder extends +public interface ListRuleSetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListRuleSetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of document.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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, which owns this collection of document.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 rule sets to return. The service may return
    * fewer than this value.
@@ -38,11 +65,14 @@ public interface ListRuleSetsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListRuleSets` call.
    * Provide this to retrieve the subsequent page.
@@ -52,10 +82,13 @@ public interface ListRuleSetsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListRuleSets` call.
    * Provide this to retrieve the subsequent page.
@@ -65,8 +98,8 @@ public interface ListRuleSetsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java similarity index 72% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java index 6dc78ec93692..30b63055b725 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponse.java @@ -1,24 +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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Response message for RuleSetService.ListRuleSets.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListRuleSetsResponse} */ -public final class ListRuleSetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuleSetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListRuleSetsResponse) ListRuleSetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuleSetsResponse.newBuilder() to construct. private ListRuleSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuleSetsResponse() { ruleSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListRuleSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuleSetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.class, com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.class, + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.Builder.class); } public static final int RULE_SETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List ruleSets_; /** + * + * *
    * The rule sets from the specified parent.
    * 
@@ -59,6 +81,8 @@ public java.util.List getRuleSetsL return ruleSets_; } /** + * + * *
    * The rule sets from the specified parent.
    * 
@@ -66,11 +90,13 @@ public java.util.List getRuleSetsL * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRuleSetsOrBuilderList() { return ruleSets_; } /** + * + * *
    * The rule sets from the specified parent.
    * 
@@ -82,6 +108,8 @@ public int getRuleSetsCount() { return ruleSets_.size(); } /** + * + * *
    * The rule sets from the specified parent.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSets(int index) { return ruleSets_.get(index); } /** + * + * *
    * The rule sets from the specified parent.
    * 
@@ -100,21 +130,24 @@ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSets(int index) { * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilder(int index) { return ruleSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `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 @@ -123,30 +156,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `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() { + 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 { @@ -155,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < ruleSets_.size(); i++) { output.writeMessage(1, ruleSets_.get(i)); } @@ -184,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < ruleSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, ruleSets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ruleSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +230,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.contentwarehouse.v1.ListRuleSetsResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse other = (com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse) obj; + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse other = + (com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse) obj; - if (!getRuleSetsList() - .equals(other.getRuleSetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getRuleSetsList().equals(other.getRuleSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +263,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse 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.contentwarehouse.v1.ListRuleSetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse 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.contentwarehouse.v1.ListRuleSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 RuleSetService.ListRuleSets.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListRuleSetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListRuleSetsResponse) com.google.cloud.contentwarehouse.v1.ListRuleSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.class, com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.class, + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; } @java.lang.Override @@ -394,14 +430,18 @@ public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse result = new com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse(this); + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse result = + new com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse result) { if (ruleSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { ruleSets_ = java.util.Collections.unmodifiableList(ruleSets_); @@ -424,38 +464,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListRuleSetsResp public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListRuleSetsResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse) other); } else { super.mergeFrom(other); return this; @@ -463,7 +504,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.getDefaultInstance()) + return this; if (ruleSetsBuilder_ == null) { if (!other.ruleSets_.isEmpty()) { if (ruleSets_.isEmpty()) { @@ -482,9 +524,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListRuleSetsRespon ruleSetsBuilder_ = null; ruleSets_ = other.ruleSets_; bitField0_ = (bitField0_ & ~0x00000001); - ruleSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRuleSetsFieldBuilder() : null; + ruleSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRuleSetsFieldBuilder() + : null; } else { ruleSetsBuilder_.addAllMessages(other.ruleSets_); } @@ -521,30 +564,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.RuleSet m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.RuleSet.parser(), - extensionRegistry); - if (ruleSetsBuilder_ == null) { - ensureRuleSetsIsMutable(); - ruleSets_.add(m); - } else { - ruleSetsBuilder_.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.contentwarehouse.v1.RuleSet m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.RuleSet.parser(), extensionRegistry); + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + ruleSets_.add(m); + } else { + ruleSetsBuilder_.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) { @@ -554,21 +599,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List ruleSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRuleSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - ruleSets_ = new java.util.ArrayList(ruleSets_); + ruleSets_ = + new java.util.ArrayList(ruleSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> ruleSetsBuilder_; + com.google.cloud.contentwarehouse.v1.RuleSet, + com.google.cloud.contentwarehouse.v1.RuleSet.Builder, + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> + ruleSetsBuilder_; /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -583,6 +636,8 @@ public java.util.List getRuleSetsL } } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -597,6 +652,8 @@ public int getRuleSetsCount() { } } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -611,14 +668,15 @@ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSets(int index) { } } /** + * + * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public Builder setRuleSets( - int index, com.google.cloud.contentwarehouse.v1.RuleSet value) { + public Builder setRuleSets(int index, com.google.cloud.contentwarehouse.v1.RuleSet value) { if (ruleSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -632,6 +690,8 @@ public Builder setRuleSets( return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -650,6 +710,8 @@ public Builder setRuleSets( return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -670,14 +732,15 @@ public Builder addRuleSets(com.google.cloud.contentwarehouse.v1.RuleSet value) { return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public Builder addRuleSets( - int index, com.google.cloud.contentwarehouse.v1.RuleSet value) { + public Builder addRuleSets(int index, com.google.cloud.contentwarehouse.v1.RuleSet value) { if (ruleSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -691,6 +754,8 @@ public Builder addRuleSets( return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -709,6 +774,8 @@ public Builder addRuleSets( return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -727,6 +794,8 @@ public Builder addRuleSets( return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -737,8 +806,7 @@ public Builder addAllRuleSets( java.lang.Iterable values) { if (ruleSetsBuilder_ == null) { ensureRuleSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ruleSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ruleSets_); onChanged(); } else { ruleSetsBuilder_.addAllMessages(values); @@ -746,6 +814,8 @@ public Builder addAllRuleSets( return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -763,6 +833,8 @@ public Builder clearRuleSets() { return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -780,39 +852,44 @@ public Builder removeRuleSets(int index) { return this; } /** + * + * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public com.google.cloud.contentwarehouse.v1.RuleSet.Builder getRuleSetsBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.RuleSet.Builder getRuleSetsBuilder(int index) { return getRuleSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilder(int index) { if (ruleSetsBuilder_ == null) { - return ruleSets_.get(index); } else { + return ruleSets_.get(index); + } else { return ruleSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public java.util.List - getRuleSetsOrBuilderList() { + public java.util.List + getRuleSetsOrBuilderList() { if (ruleSetsBuilder_ != null) { return ruleSetsBuilder_.getMessageOrBuilderList(); } else { @@ -820,6 +897,8 @@ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilde } } /** + * + * *
      * The rule sets from the specified parent.
      * 
@@ -827,42 +906,48 @@ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilde * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ public com.google.cloud.contentwarehouse.v1.RuleSet.Builder addRuleSetsBuilder() { - return getRuleSetsFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()); + return getRuleSetsFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()); } /** + * + * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public com.google.cloud.contentwarehouse.v1.RuleSet.Builder addRuleSetsBuilder( - int index) { - return getRuleSetsFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.RuleSet.Builder addRuleSetsBuilder(int index) { + return getRuleSetsFieldBuilder() + .addBuilder(index, com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()); } /** + * + * *
      * The rule sets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - public java.util.List - getRuleSetsBuilderList() { + public java.util.List + getRuleSetsBuilderList() { return getRuleSetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> + com.google.cloud.contentwarehouse.v1.RuleSet, + com.google.cloud.contentwarehouse.v1.RuleSet.Builder, + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> getRuleSetsFieldBuilder() { if (ruleSetsBuilder_ == null) { - ruleSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>( - ruleSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + ruleSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RuleSet, + com.google.cloud.contentwarehouse.v1.RuleSet.Builder, + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>( + ruleSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); ruleSets_ = null; } return ruleSetsBuilder_; @@ -870,19 +955,21 @@ public com.google.cloud.contentwarehouse.v1.RuleSet.Builder addRuleSetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -891,21 +978,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `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() { + 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 { @@ -913,30 +1001,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `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() { @@ -946,27 +1041,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `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(); } + 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); } @@ -976,12 +1075,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListRuleSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListRuleSetsResponse) private static final com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse(); } @@ -990,27 +1089,27 @@ public static com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuleSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListRuleSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,6 +1124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java index e44a6c926e3f..57bd48d24250 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListRuleSetsResponseOrBuilder.java @@ -1,22 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface ListRuleSetsResponseOrBuilder extends +public interface ListRuleSetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListRuleSetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The rule sets from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - java.util.List - getRuleSetsList(); + java.util.List getRuleSetsList(); /** + * + * *
    * The rule sets from the specified parent.
    * 
@@ -25,6 +44,8 @@ public interface ListRuleSetsResponseOrBuilder extends */ com.google.cloud.contentwarehouse.v1.RuleSet getRuleSets(int index); /** + * + * *
    * The rule sets from the specified parent.
    * 
@@ -33,43 +54,51 @@ public interface ListRuleSetsResponseOrBuilder extends */ int getRuleSetsCount(); /** + * + * *
    * The rule sets from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - java.util.List + java.util.List getRuleSetsOrBuilderList(); /** + * + * *
    * The rule sets from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.RuleSet rule_sets = 1; */ - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `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, which can be sent as `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(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java index 3ae9b962da0a..580a68d6cc65 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for SynonymSetService.ListSynonymSets.
  * Will return all synonymSets belonging to the customer project.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.ListSynonymSetsRequest}
  */
-public final class ListSynonymSetsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListSynonymSetsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListSynonymSetsRequest)
     ListSynonymSetsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListSynonymSetsRequest.newBuilder() to construct.
   private ListSynonymSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListSynonymSetsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -27,34 +45,41 @@ private ListSynonymSetsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListSynonymSetsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+        .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+        .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.class, com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.Builder.class);
+            com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.class,
+            com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 @@ -63,30 +88,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 { @@ -97,6 +124,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of synonymSets to return. The service may return
    * fewer than this value.
@@ -105,6 +134,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,9 +143,12 @@ 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 `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
@@ -125,6 +158,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -133,14 +167,15 @@ 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 `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
@@ -150,16 +185,15 @@ 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 { @@ -168,6 +202,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +214,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -203,8 +237,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -217,19 +250,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.contentwarehouse.v1.ListSynonymSetsRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest other = (com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) obj; + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest other = + (com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) 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; } @@ -253,98 +284,104 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest 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.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest 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.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 SynonymSetService.ListSynonymSets.
    * Will return all synonymSets belonging to the customer project.
@@ -352,33 +389,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.ListSynonymSetsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListSynonymSetsRequest)
       com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+          .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+          .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.class, com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.Builder.class);
+              com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.class,
+              com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -390,9 +426,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+          .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -411,8 +447,11 @@ public com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest buildPartial() {
-      com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest result = new com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest result =
+          new com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -434,38 +473,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListSynonymSetsR
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListSynonymSetsRequest) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest)other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -473,7 +513,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest other) {
-      if (other == com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -513,27 +554,31 @@ 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) {
@@ -543,23 +588,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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; @@ -568,21 +618,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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 { @@ -590,30 +643,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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 name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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() { @@ -623,18 +687,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent name.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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; @@ -642,8 +712,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of synonymSets to return. The service may return
      * fewer than this value.
@@ -652,6 +724,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -659,6 +732,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of synonymSets to return. The service may return
      * fewer than this value.
@@ -667,6 +742,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -678,6 +754,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of synonymSets to return. The service may return
      * fewer than this value.
@@ -686,6 +764,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -697,6 +776,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -706,13 +787,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; @@ -721,6 +802,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -730,15 +813,14 @@ 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 { @@ -746,6 +828,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -755,18 +839,22 @@ public java.lang.String getPageToken() {
      * 
* * 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 `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -776,6 +864,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -785,6 +874,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
@@ -794,21 +885,23 @@ 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); } @@ -818,12 +911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) private static final com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest(); } @@ -832,27 +925,27 @@ public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSynonymSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListSynonymSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +960,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java index f22dbb66e1e6..ebf17095d259 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsRequestOrBuilder.java @@ -1,35 +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/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface ListSynonymSetsRequestOrBuilder extends +public interface ListSynonymSetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 name.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 synonymSets to return. The service may return
    * fewer than this value.
@@ -38,11 +65,14 @@ public interface ListSynonymSetsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
@@ -52,10 +82,13 @@ public interface ListSynonymSetsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
@@ -65,8 +98,8 @@ public interface ListSynonymSetsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java similarity index 72% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java index 02b0480a8246..154241e602d4 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponse.java @@ -1,24 +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/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Response message for SynonymSetService.ListSynonymSets.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListSynonymSetsResponse} */ -public final class ListSynonymSetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSynonymSetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) ListSynonymSetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSynonymSetsResponse.newBuilder() to construct. private ListSynonymSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSynonymSetsResponse() { synonymSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListSynonymSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSynonymSetsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.class, com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.class, + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.Builder.class); } public static final int SYNONYM_SETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List synonymSets_; /** + * + * *
    * The synonymSets from the specified parent.
    * 
@@ -59,6 +81,8 @@ public java.util.List getSynony return synonymSets_; } /** + * + * *
    * The synonymSets from the specified parent.
    * 
@@ -66,11 +90,13 @@ public java.util.List getSynony * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSynonymSetsOrBuilderList() { return synonymSets_; } /** + * + * *
    * The synonymSets from the specified parent.
    * 
@@ -82,6 +108,8 @@ public int getSynonymSetsCount() { return synonymSets_.size(); } /** + * + * *
    * The synonymSets from the specified parent.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSets(int index) return synonymSets_.get(index); } /** + * + * *
    * The synonymSets from the specified parent.
    * 
@@ -106,15 +136,19 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,30 +157,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent 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 { @@ -155,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < synonymSets_.size(); i++) { output.writeMessage(1, synonymSets_.get(i)); } @@ -184,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < synonymSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, synonymSets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, synonymSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -198,17 +231,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.contentwarehouse.v1.ListSynonymSetsResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse other = (com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) obj; + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse other = + (com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) obj; - if (!getSynonymSetsList() - .equals(other.getSynonymSetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSynonymSetsList().equals(other.getSynonymSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +264,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse 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.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse 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.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 SynonymSetService.ListSynonymSets.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ListSynonymSetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.class, com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.class, + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +410,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.getDefaultInstance(); } @@ -394,14 +432,18 @@ public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse result = new com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse(this); + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse result = + new com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse result) { if (synonymSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { synonymSets_ = java.util.Collections.unmodifiableList(synonymSets_); @@ -413,7 +455,8 @@ private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.Lis } } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,38 +467,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ListSynonymSetsR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ListSynonymSetsResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) other); } else { super.mergeFrom(other); return this; @@ -463,7 +507,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.getDefaultInstance()) + return this; if (synonymSetsBuilder_ == null) { if (!other.synonymSets_.isEmpty()) { if (synonymSets_.isEmpty()) { @@ -482,9 +528,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRes synonymSetsBuilder_ = null; synonymSets_ = other.synonymSets_; bitField0_ = (bitField0_ & ~0x00000001); - synonymSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSynonymSetsFieldBuilder() : null; + synonymSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSynonymSetsFieldBuilder() + : null; } else { synonymSetsBuilder_.addAllMessages(other.synonymSets_); } @@ -521,30 +568,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.SynonymSet m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.SynonymSet.parser(), - extensionRegistry); - if (synonymSetsBuilder_ == null) { - ensureSynonymSetsIsMutable(); - synonymSets_.add(m); - } else { - synonymSetsBuilder_.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.contentwarehouse.v1.SynonymSet m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.SynonymSet.parser(), + extensionRegistry); + if (synonymSetsBuilder_ == null) { + ensureSynonymSetsIsMutable(); + synonymSets_.add(m); + } else { + synonymSetsBuilder_.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) { @@ -554,21 +604,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List synonymSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSynonymSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - synonymSets_ = new java.util.ArrayList(synonymSets_); + synonymSets_ = + new java.util.ArrayList(synonymSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> synonymSetsBuilder_; + com.google.cloud.contentwarehouse.v1.SynonymSet, + com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> + synonymSetsBuilder_; /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -583,6 +641,8 @@ public java.util.List getSynony } } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -597,6 +657,8 @@ public int getSynonymSetsCount() { } } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -611,6 +673,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSets(int index) } } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -632,6 +696,8 @@ public Builder setSynonymSets( return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -650,6 +716,8 @@ public Builder setSynonymSets( return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -670,6 +738,8 @@ public Builder addSynonymSets(com.google.cloud.contentwarehouse.v1.SynonymSet va return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -691,6 +761,8 @@ public Builder addSynonymSets( return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -709,6 +781,8 @@ public Builder addSynonymSets( return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -727,6 +801,8 @@ public Builder addSynonymSets( return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -737,8 +813,7 @@ public Builder addAllSynonymSets( java.lang.Iterable values) { if (synonymSetsBuilder_ == null) { ensureSynonymSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, synonymSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, synonymSets_); onChanged(); } else { synonymSetsBuilder_.addAllMessages(values); @@ -746,6 +821,8 @@ public Builder addAllSynonymSets( return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -763,6 +840,8 @@ public Builder clearSynonymSets() { return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -780,6 +859,8 @@ public Builder removeSynonymSets(int index) { return this; } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -791,6 +872,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetsBui return getSynonymSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -800,19 +883,22 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetsBui public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOrBuilder( int index) { if (synonymSetsBuilder_ == null) { - return synonymSets_.get(index); } else { + return synonymSets_.get(index); + } else { return synonymSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The synonymSets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ - public java.util.List - getSynonymSetsOrBuilderList() { + public java.util.List + getSynonymSetsOrBuilderList() { if (synonymSetsBuilder_ != null) { return synonymSetsBuilder_.getMessageOrBuilderList(); } else { @@ -820,6 +906,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOr } } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -827,10 +915,12 @@ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOr * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder addSynonymSetsBuilder() { - return getSynonymSetsFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()); + return getSynonymSetsFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()); } /** + * + * *
      * The synonymSets from the specified parent.
      * 
@@ -839,30 +929,35 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder addSynonymSetsBui */ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder addSynonymSetsBuilder( int index) { - return getSynonymSetsFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()); + return getSynonymSetsFieldBuilder() + .addBuilder(index, com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()); } /** + * + * *
      * The synonymSets from the specified parent.
      * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ - public java.util.List - getSynonymSetsBuilderList() { + public java.util.List + getSynonymSetsBuilderList() { return getSynonymSetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> + com.google.cloud.contentwarehouse.v1.SynonymSet, + com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> getSynonymSetsFieldBuilder() { if (synonymSetsBuilder_ == null) { - synonymSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder>( - synonymSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + synonymSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.SynonymSet, + com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder>( + synonymSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); synonymSets_ = null; } return synonymSetsBuilder_; @@ -870,19 +965,21 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder addSynonymSetsBui private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent 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; @@ -891,21 +988,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent 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 { @@ -913,30 +1011,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent 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; } /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent page.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -946,27 +1051,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListSynonymSets` call.
      * Provide this to retrieve the subsequent 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); } @@ -976,12 +1085,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) - private static final com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse(); } @@ -990,27 +1100,27 @@ public static com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSynonymSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListSynonymSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,6 +1135,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java index c3642c5949d1..14b05e3bc221 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ListSynonymSetsResponseOrBuilder.java @@ -1,22 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface ListSynonymSetsResponseOrBuilder extends +public interface ListSynonymSetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ListSynonymSetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The synonymSets from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ - java.util.List - getSynonymSetsList(); + java.util.List getSynonymSetsList(); /** + * + * *
    * The synonymSets from the specified parent.
    * 
@@ -25,6 +44,8 @@ public interface ListSynonymSetsResponseOrBuilder extends */ com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSets(int index); /** + * + * *
    * The synonymSets from the specified parent.
    * 
@@ -33,43 +54,51 @@ public interface ListSynonymSetsResponseOrBuilder extends */ int getSynonymSetsCount(); /** + * + * *
    * The synonymSets from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ - java.util.List + java.util.List getSynonymSetsOrBuilderList(); /** + * + * *
    * The synonymSets from the specified parent.
    * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet synonym_sets = 1; */ - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetsOrBuilder(int index); /** + * + * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A page token, received from a previous `ListSynonymSets` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java similarity index 67% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java index db57b2c90ee9..4d4b45988f38 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequest.java @@ -1,24 +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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentService.LockDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.LockDocumentRequest} */ -public final class LockDocumentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LockDocumentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.LockDocumentRequest) LockDocumentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LockDocumentRequest.newBuilder() to construct. private LockDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LockDocumentRequest() { name_ = ""; collectionId_ = ""; @@ -26,35 +44,42 @@ private LockDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LockDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.LockDocumentRequest.class, com.google.cloud.contentwarehouse.v1.LockDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.LockDocumentRequest.class, + com.google.cloud.contentwarehouse.v1.LockDocumentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the document to lock.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{document}.
    * 
* - * 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 @@ -63,31 +88,33 @@ 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 name of the document to lock.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{document}.
    * 
* - * 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 { @@ -96,14 +123,18 @@ public java.lang.String getName() { } public static final int COLLECTION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object collectionId_ = ""; /** + * + * *
    * The collection the document connects to.
    * 
* * string collection_id = 2; + * * @return The collectionId. */ @java.lang.Override @@ -112,29 +143,29 @@ public java.lang.String getCollectionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collectionId_ = s; return s; } } /** + * + * *
    * The collection the document connects to.
    * 
* * string collection_id = 2; + * * @return The bytes for collectionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCollectionIdBytes() { + public com.google.protobuf.ByteString getCollectionIdBytes() { java.lang.Object ref = collectionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); collectionId_ = b; return b; } else { @@ -145,11 +176,14 @@ public java.lang.String getCollectionId() { public static final int LOCKING_USER_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.UserInfo lockingUser_; /** + * + * *
    * The user information who locks the document.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; + * * @return Whether the lockingUser field is set. */ @java.lang.Override @@ -157,18 +191,25 @@ public boolean hasLockingUser() { return lockingUser_ != null; } /** + * + * *
    * The user information who locks the document.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; + * * @return The lockingUser. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfo getLockingUser() { - return lockingUser_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : lockingUser_; + return lockingUser_ == null + ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() + : lockingUser_; } /** + * + * *
    * The user information who locks the document.
    * 
@@ -177,10 +218,13 @@ public com.google.cloud.contentwarehouse.v1.UserInfo getLockingUser() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getLockingUserOrBuilder() { - return lockingUser_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : lockingUser_; + return lockingUser_ == null + ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() + : lockingUser_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,8 +236,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -219,8 +262,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, collectionId_); } if (lockingUser_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLockingUser()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLockingUser()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,21 +272,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.contentwarehouse.v1.LockDocumentRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.LockDocumentRequest other = (com.google.cloud.contentwarehouse.v1.LockDocumentRequest) obj; + com.google.cloud.contentwarehouse.v1.LockDocumentRequest other = + (com.google.cloud.contentwarehouse.v1.LockDocumentRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getCollectionId() - .equals(other.getCollectionId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getCollectionId().equals(other.getCollectionId())) return false; if (hasLockingUser() != other.hasLockingUser()) return false; if (hasLockingUser()) { - if (!getLockingUser() - .equals(other.getLockingUser())) return false; + if (!getLockingUser().equals(other.getLockingUser())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -271,131 +311,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest 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.contentwarehouse.v1.LockDocumentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest 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.contentwarehouse.v1.LockDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.LockDocumentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.LockDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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.LockDocument.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.LockDocumentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.LockDocumentRequest) com.google.cloud.contentwarehouse.v1.LockDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.LockDocumentRequest.class, com.google.cloud.contentwarehouse.v1.LockDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.LockDocumentRequest.class, + com.google.cloud.contentwarehouse.v1.LockDocumentRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.LockDocumentRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +456,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; } @java.lang.Override @@ -432,8 +477,11 @@ public com.google.cloud.contentwarehouse.v1.LockDocumentRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.LockDocumentRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.LockDocumentRequest result = new com.google.cloud.contentwarehouse.v1.LockDocumentRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.LockDocumentRequest result = + new com.google.cloud.contentwarehouse.v1.LockDocumentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -447,9 +495,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.LockDocumentRequ result.collectionId_ = collectionId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.lockingUser_ = lockingUserBuilder_ == null - ? lockingUser_ - : lockingUserBuilder_.build(); + result.lockingUser_ = + lockingUserBuilder_ == null ? lockingUser_ : lockingUserBuilder_.build(); } } @@ -457,38 +504,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.LockDocumentRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.LockDocumentRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.LockDocumentRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.LockDocumentRequest) other); } else { super.mergeFrom(other); return this; @@ -496,7 +544,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.LockDocumentRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.LockDocumentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.LockDocumentRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -536,29 +585,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - collectionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getLockingUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - 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: + { + collectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getLockingUserFieldBuilder().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) { @@ -568,24 +619,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the document to lock.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{document}.
      * 
* - * 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; @@ -594,22 +650,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to lock.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{document}.
      * 
* - * 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 { @@ -617,32 +676,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to lock.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{document}.
      * 
* - * 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 name of the document to lock.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{document}.
      * 
* - * 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() { @@ -652,19 +722,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the document to lock.
      * Format:
      * projects/{project_number}/locations/{location}/documents/{document}.
      * 
* - * 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; @@ -674,18 +750,20 @@ public Builder setNameBytes( private java.lang.Object collectionId_ = ""; /** + * + * *
      * The collection the document connects to.
      * 
* * string collection_id = 2; + * * @return The collectionId. */ public java.lang.String getCollectionId() { java.lang.Object ref = collectionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collectionId_ = s; return s; @@ -694,20 +772,21 @@ public java.lang.String getCollectionId() { } } /** + * + * *
      * The collection the document connects to.
      * 
* * string collection_id = 2; + * * @return The bytes for collectionId. */ - public com.google.protobuf.ByteString - getCollectionIdBytes() { + public com.google.protobuf.ByteString getCollectionIdBytes() { java.lang.Object ref = collectionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); collectionId_ = b; return b; } else { @@ -715,28 +794,35 @@ public java.lang.String getCollectionId() { } } /** + * + * *
      * The collection the document connects to.
      * 
* * string collection_id = 2; + * * @param value The collectionId to set. * @return This builder for chaining. */ - public Builder setCollectionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCollectionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } collectionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The collection the document connects to.
      * 
* * string collection_id = 2; + * * @return This builder for chaining. */ public Builder clearCollectionId() { @@ -746,17 +832,21 @@ public Builder clearCollectionId() { return this; } /** + * + * *
      * The collection the document connects to.
      * 
* * string collection_id = 2; + * * @param value The bytes for collectionId to set. * @return This builder for chaining. */ - public Builder setCollectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCollectionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); collectionId_ = value; bitField0_ |= 0x00000002; @@ -766,34 +856,47 @@ public Builder setCollectionIdBytes( private com.google.cloud.contentwarehouse.v1.UserInfo lockingUser_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> lockingUserBuilder_; + com.google.cloud.contentwarehouse.v1.UserInfo, + com.google.cloud.contentwarehouse.v1.UserInfo.Builder, + com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> + lockingUserBuilder_; /** + * + * *
      * The user information who locks the document.
      * 
* * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; + * * @return Whether the lockingUser field is set. */ public boolean hasLockingUser() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The user information who locks the document.
      * 
* * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; + * * @return The lockingUser. */ public com.google.cloud.contentwarehouse.v1.UserInfo getLockingUser() { if (lockingUserBuilder_ == null) { - return lockingUser_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : lockingUser_; + return lockingUser_ == null + ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() + : lockingUser_; } else { return lockingUserBuilder_.getMessage(); } } /** + * + * *
      * The user information who locks the document.
      * 
@@ -814,6 +917,8 @@ public Builder setLockingUser(com.google.cloud.contentwarehouse.v1.UserInfo valu return this; } /** + * + * *
      * The user information who locks the document.
      * 
@@ -832,6 +937,8 @@ public Builder setLockingUser( return this; } /** + * + * *
      * The user information who locks the document.
      * 
@@ -840,9 +947,9 @@ public Builder setLockingUser( */ public Builder mergeLockingUser(com.google.cloud.contentwarehouse.v1.UserInfo value) { if (lockingUserBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - lockingUser_ != null && - lockingUser_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && lockingUser_ != null + && lockingUser_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) { getLockingUserBuilder().mergeFrom(value); } else { lockingUser_ = value; @@ -855,6 +962,8 @@ public Builder mergeLockingUser(com.google.cloud.contentwarehouse.v1.UserInfo va return this; } /** + * + * *
      * The user information who locks the document.
      * 
@@ -872,6 +981,8 @@ public Builder clearLockingUser() { return this; } /** + * + * *
      * The user information who locks the document.
      * 
@@ -884,6 +995,8 @@ public com.google.cloud.contentwarehouse.v1.UserInfo.Builder getLockingUserBuild return getLockingUserFieldBuilder().getBuilder(); } /** + * + * *
      * The user information who locks the document.
      * 
@@ -894,11 +1007,14 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getLockingUserOrBu if (lockingUserBuilder_ != null) { return lockingUserBuilder_.getMessageOrBuilder(); } else { - return lockingUser_ == null ? - com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : lockingUser_; + return lockingUser_ == null + ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() + : lockingUser_; } } /** + * + * *
      * The user information who locks the document.
      * 
@@ -906,21 +1022,24 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getLockingUserOrBu * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.UserInfo, + com.google.cloud.contentwarehouse.v1.UserInfo.Builder, + com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> getLockingUserFieldBuilder() { if (lockingUserBuilder_ == null) { - lockingUserBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>( - getLockingUser(), - getParentForChildren(), - isClean()); + lockingUserBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.UserInfo, + com.google.cloud.contentwarehouse.v1.UserInfo.Builder, + com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>( + getLockingUser(), getParentForChildren(), isClean()); lockingUser_ = null; } return lockingUserBuilder_; } + @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); } @@ -930,12 +1049,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.LockDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.LockDocumentRequest) private static final com.google.cloud.contentwarehouse.v1.LockDocumentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.LockDocumentRequest(); } @@ -944,27 +1063,27 @@ public static com.google.cloud.contentwarehouse.v1.LockDocumentRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LockDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 LockDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -979,6 +1098,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.LockDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java index 322f746a7ecc..7bcdd9ec3b24 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LockDocumentRequestOrBuilder.java @@ -1,75 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface LockDocumentRequestOrBuilder extends +public interface LockDocumentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.LockDocumentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the document to lock.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{document}.
    * 
* - * 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 name of the document to lock.
    * Format:
    * projects/{project_number}/locations/{location}/documents/{document}.
    * 
* - * 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(); /** + * + * *
    * The collection the document connects to.
    * 
* * string collection_id = 2; + * * @return The collectionId. */ java.lang.String getCollectionId(); /** + * + * *
    * The collection the document connects to.
    * 
* * string collection_id = 2; + * * @return The bytes for collectionId. */ - com.google.protobuf.ByteString - getCollectionIdBytes(); + com.google.protobuf.ByteString getCollectionIdBytes(); /** + * + * *
    * The user information who locks the document.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; + * * @return Whether the lockingUser field is set. */ boolean hasLockingUser(); /** + * + * *
    * The user information who locks the document.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo locking_user = 3; + * * @return The lockingUser. */ com.google.cloud.contentwarehouse.v1.UserInfo getLockingUser(); /** + * + * *
    * The user information who locks the document.
    * 
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java similarity index 59% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java index 0e6aa007ff15..56484fc3f894 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapProperty.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Map property value.
  * Represents a structured entries of key value pairs, consisting of field names
@@ -12,77 +29,84 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.MapProperty}
  */
-public final class MapProperty extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MapProperty extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.MapProperty)
     MapPropertyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MapProperty.newBuilder() to construct.
   private MapProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MapProperty() {
-  }
+
+  private MapProperty() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MapProperty();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.DocumentProto
+        .internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 1:
         return internalGetFields();
       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.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.DocumentProto
+        .internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.MapProperty.class, com.google.cloud.contentwarehouse.v1.MapProperty.Builder.class);
+            com.google.cloud.contentwarehouse.v1.MapProperty.class,
+            com.google.cloud.contentwarehouse.v1.MapProperty.Builder.class);
   }
 
   public static final int FIELDS_FIELD_NUMBER = 1;
+
   private static final class FieldsDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.cloud.contentwarehouse.v1.Value> defaultEntry =
+            java.lang.String, com.google.cloud.contentwarehouse.v1.Value>
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.cloud.contentwarehouse.v1.Value.getDefaultInstance());
+                .newDefaultInstance(
+                    com.google.cloud.contentwarehouse.v1.DocumentProto
+                        .internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor,
+                    com.google.protobuf.WireFormat.FieldType.STRING,
+                    "",
+                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                    com.google.cloud.contentwarehouse.v1.Value.getDefaultInstance());
   }
+
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.contentwarehouse.v1.Value> fields_;
   private com.google.protobuf.MapField
-  internalGetFields() {
+      fields_;
+
+  private com.google.protobuf.MapField
+      internalGetFields() {
     if (fields_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          FieldsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry);
     }
     return fields_;
   }
+
   public int getFieldsCount() {
     return internalGetFields().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Unordered map of dynamically typed values.
    * 
@@ -90,20 +114,21 @@ public int getFieldsCount() { * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public boolean containsFields( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsFields(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetFields().getMap().containsKey(key); } - /** - * Use {@link #getFieldsMap()} instead. - */ + /** Use {@link #getFieldsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFields() { return getFieldsMap(); } /** + * + * *
    * Unordered map of dynamically typed values.
    * 
@@ -111,10 +136,13 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public java.util.Map getFieldsMap() { + public java.util.Map + getFieldsMap() { return internalGetFields().getMap(); } /** + * + * *
    * Unordered map of dynamically typed values.
    * 
@@ -122,17 +150,20 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public /* nullable */ -com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( + public /* nullable */ com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.contentwarehouse.v1.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.cloud.contentwarehouse.v1.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetFields().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Unordered map of dynamically typed values.
    * 
@@ -140,9 +171,10 @@ com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetFields().getMap(); if (!map.containsKey(key)) { @@ -152,6 +184,7 @@ public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,14 +196,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetFields(), - FieldsDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @@ -180,15 +208,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetFields().getMap().entrySet()) { + for (java.util.Map.Entry entry : + internalGetFields().getMap().entrySet()) { com.google.protobuf.MapEntry - fields__ = FieldsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fields__); + fields__ = + FieldsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -198,15 +227,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.contentwarehouse.v1.MapProperty)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.MapProperty other = (com.google.cloud.contentwarehouse.v1.MapProperty) obj; + com.google.cloud.contentwarehouse.v1.MapProperty other = + (com.google.cloud.contentwarehouse.v1.MapProperty) obj; - if (!internalGetFields().equals( - other.internalGetFields())) return false; + if (!internalGetFields().equals(other.internalGetFields())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,99 +256,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MapProperty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.MapProperty parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.MapProperty 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.contentwarehouse.v1.MapProperty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.MapProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.MapProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Map property value.
    * Represents a structured entries of key value pairs, consisting of field names
@@ -328,55 +362,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.MapProperty}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.MapProperty)
       com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.DocumentProto
+          .internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetFields();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 1:
           return internalGetMutableFields();
         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.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.DocumentProto
+          .internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.MapProperty.class, com.google.cloud.contentwarehouse.v1.MapProperty.Builder.class);
+              com.google.cloud.contentwarehouse.v1.MapProperty.class,
+              com.google.cloud.contentwarehouse.v1.MapProperty.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.MapProperty.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -386,9 +417,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.DocumentProto
+          .internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor;
     }
 
     @java.lang.Override
@@ -407,8 +438,11 @@ public com.google.cloud.contentwarehouse.v1.MapProperty build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.MapProperty buildPartial() {
-      com.google.cloud.contentwarehouse.v1.MapProperty result = new com.google.cloud.contentwarehouse.v1.MapProperty(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.contentwarehouse.v1.MapProperty result =
+          new com.google.cloud.contentwarehouse.v1.MapProperty(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -425,38 +459,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.MapProperty 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.contentwarehouse.v1.MapProperty) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.MapProperty)other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.MapProperty) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -464,9 +499,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.MapProperty other) {
-      if (other == com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance()) return this;
-      internalGetMutableFields().mergeFrom(
-          other.internalGetFields());
+      if (other == com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance())
+        return this;
+      internalGetMutableFields().mergeFrom(other.internalGetFields());
       bitField0_ |= 0x00000001;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -494,21 +529,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.protobuf.MapEntry
-              fields__ = input.readMessage(
-                  FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableFields().getMutableMap().put(
-                  fields__.getKey(), fields__.getValue());
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.protobuf.MapEntry<
+                        java.lang.String, com.google.cloud.contentwarehouse.v1.Value>
+                    fields__ =
+                        input.readMessage(
+                            FieldsDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                internalGetMutableFields()
+                    .getMutableMap()
+                    .put(fields__.getKey(), fields__.getValue());
+                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) {
@@ -518,23 +559,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.contentwarehouse.v1.Value> fields_;
-    private com.google.protobuf.MapField
+            java.lang.String, com.google.cloud.contentwarehouse.v1.Value>
+        fields_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.contentwarehouse.v1.Value>
         internalGetFields() {
       if (fields_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            FieldsDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry);
       }
       return fields_;
     }
-    private com.google.protobuf.MapField
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.contentwarehouse.v1.Value>
         internalGetMutableFields() {
       if (fields_ == null) {
-        fields_ = com.google.protobuf.MapField.newMapField(
-            FieldsDefaultEntryHolder.defaultEntry);
+        fields_ = com.google.protobuf.MapField.newMapField(FieldsDefaultEntryHolder.defaultEntry);
       }
       if (!fields_.isMutable()) {
         fields_ = fields_.copy();
@@ -543,10 +588,13 @@ public Builder mergeFrom(
       onChanged();
       return fields_;
     }
+
     public int getFieldsCount() {
       return internalGetFields().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Unordered map of dynamically typed values.
      * 
@@ -554,20 +602,21 @@ public int getFieldsCount() { * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public boolean containsFields( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsFields(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetFields().getMap().containsKey(key); } - /** - * Use {@link #getFieldsMap()} instead. - */ + /** Use {@link #getFieldsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFields() { return getFieldsMap(); } /** + * + * *
      * Unordered map of dynamically typed values.
      * 
@@ -575,10 +624,13 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public java.util.Map getFieldsMap() { + public java.util.Map + getFieldsMap() { return internalGetFields().getMap(); } /** + * + * *
      * Unordered map of dynamically typed values.
      * 
@@ -586,17 +638,20 @@ public java.util.Mapmap<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public /* nullable */ -com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( + public /* nullable */ com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.contentwarehouse.v1.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.cloud.contentwarehouse.v1.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetFields().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Unordered map of dynamically typed values.
      * 
@@ -604,9 +659,10 @@ com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetFields().getMap(); if (!map.containsKey(key)) { @@ -614,29 +670,29 @@ public com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow( } return map.get(key); } + public Builder clearFields() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableFields().getMutableMap() - .clear(); + internalGetMutableFields().getMutableMap().clear(); return this; } /** + * + * *
      * Unordered map of dynamically typed values.
      * 
* * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ - public Builder removeFields( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableFields().getMutableMap() - .remove(key); + public Builder removeFields(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFields().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableFields() { @@ -644,6 +700,8 @@ public Builder removeFields( return internalGetMutableFields().getMutableMap(); } /** + * + * *
      * Unordered map of dynamically typed values.
      * 
@@ -651,16 +709,20 @@ public Builder removeFields( * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ public Builder putFields( - java.lang.String key, - com.google.cloud.contentwarehouse.v1.Value value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableFields().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.contentwarehouse.v1.Value value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFields().getMutableMap().put(key, value); bitField0_ |= 0x00000001; return this; } /** + * + * *
      * Unordered map of dynamically typed values.
      * 
@@ -669,14 +731,13 @@ public Builder putFields( */ public Builder putAllFields( java.util.Map values) { - internalGetMutableFields().getMutableMap() - .putAll(values); + internalGetMutableFields().getMutableMap().putAll(values); bitField0_ |= 0x00000001; 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); } @@ -686,12 +747,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.MapProperty) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.MapProperty) private static final com.google.cloud.contentwarehouse.v1.MapProperty DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.MapProperty(); } @@ -700,27 +761,27 @@ public static com.google.cloud.contentwarehouse.v1.MapProperty getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 MapProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -735,6 +796,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.MapProperty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java similarity index 57% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java index c63f7710da4c..48f80021d7d1 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapPropertyOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface MapPropertyOrBuilder extends +public interface MapPropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.MapProperty) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Unordered map of dynamically typed values.
    * 
@@ -16,30 +34,31 @@ public interface MapPropertyOrBuilder extends */ int getFieldsCount(); /** + * + * *
    * Unordered map of dynamically typed values.
    * 
* * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ - boolean containsFields( - java.lang.String key); - /** - * Use {@link #getFieldsMap()} instead. - */ + boolean containsFields(java.lang.String key); + /** Use {@link #getFieldsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getFields(); + java.util.Map getFields(); /** + * + * *
    * Unordered map of dynamically typed values.
    * 
* * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ - java.util.Map - getFieldsMap(); + java.util.Map getFieldsMap(); /** + * + * *
    * Unordered map of dynamically typed values.
    * 
@@ -47,17 +66,18 @@ boolean containsFields( * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ /* nullable */ -com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( + com.google.cloud.contentwarehouse.v1.Value getFieldsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.contentwarehouse.v1.Value defaultValue); + com.google.cloud.contentwarehouse.v1.Value defaultValue); /** + * + * *
    * Unordered map of dynamically typed values.
    * 
* * map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1; */ - com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow( - java.lang.String key); + com.google.cloud.contentwarehouse.v1.Value getFieldsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java similarity index 63% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java index b594542de9a9..28f72df84518 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptions.java @@ -1,48 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Configurations for a Map property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.MapTypeOptions} */ -public final class MapTypeOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MapTypeOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.MapTypeOptions) MapTypeOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MapTypeOptions.newBuilder() to construct. private MapTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MapTypeOptions() { - } + + private MapTypeOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MapTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.MapTypeOptions.class, com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.MapTypeOptions.class, + com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -73,12 +91,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.MapTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.MapTypeOptions other = (com.google.cloud.contentwarehouse.v1.MapTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.MapTypeOptions other = + (com.google.cloud.contentwarehouse.v1.MapTypeOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.MapTypeOptions 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.contentwarehouse.v1.MapTypeOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.MapTypeOptions 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.contentwarehouse.v1.MapTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.MapTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.MapTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Configurations for a Map property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.MapTypeOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.MapTypeOptions) com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.MapTypeOptions.class, com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.MapTypeOptions.class, + com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.MapTypeOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -229,9 +252,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; } @java.lang.Override @@ -250,7 +273,8 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.MapTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.MapTypeOptions result = new com.google.cloud.contentwarehouse.v1.MapTypeOptions(this); + com.google.cloud.contentwarehouse.v1.MapTypeOptions result = + new com.google.cloud.contentwarehouse.v1.MapTypeOptions(this); onBuilt(); return result; } @@ -259,38 +283,39 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.MapTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.MapTypeOptions)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.MapTypeOptions) other); } else { super.mergeFrom(other); return this; @@ -298,7 +323,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.MapTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -325,12 +351,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -340,9 +367,9 @@ public Builder mergeFrom( } // finally 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); } @@ -352,12 +379,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.MapTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.MapTypeOptions) private static final com.google.cloud.contentwarehouse.v1.MapTypeOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.MapTypeOptions(); } @@ -366,27 +393,27 @@ public static com.google.cloud.contentwarehouse.v1.MapTypeOptions getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 MapTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -401,6 +428,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.MapTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..760fb216dc68 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java @@ -0,0 +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/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface MapTypeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.MapTypeOptions) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java similarity index 74% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java index 80544ac68ca4..7b042121308f 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptions.java @@ -1,51 +1,71 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Options for merging updated fields.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.MergeFieldsOptions} */ -public final class MergeFieldsOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MergeFieldsOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.MergeFieldsOptions) MergeFieldsOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MergeFieldsOptions.newBuilder() to construct. private MergeFieldsOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MergeFieldsOptions() { - } + + private MergeFieldsOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MergeFieldsOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.class, com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.class, + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder.class); } private int bitField0_; public static final int REPLACE_MESSAGE_FIELDS_FIELD_NUMBER = 1; private boolean replaceMessageFields_ = false; /** + * + * *
    * When merging message fields, the default behavior is to merge
    * the content of two message fields together. If you instead want to use
@@ -56,6 +76,7 @@ protected java.lang.Object newInstance(
    * 
* * optional bool replace_message_fields = 1; + * * @return Whether the replaceMessageFields field is set. */ @java.lang.Override @@ -63,6 +84,8 @@ public boolean hasReplaceMessageFields() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * When merging message fields, the default behavior is to merge
    * the content of two message fields together. If you instead want to use
@@ -73,6 +96,7 @@ public boolean hasReplaceMessageFields() {
    * 
* * optional bool replace_message_fields = 1; + * * @return The replaceMessageFields. */ @java.lang.Override @@ -83,6 +107,8 @@ public boolean getReplaceMessageFields() { public static final int REPLACE_REPEATED_FIELDS_FIELD_NUMBER = 2; private boolean replaceRepeatedFields_ = false; /** + * + * *
    * When merging repeated fields, the default behavior is to append
    * entries from the source repeated field to the destination repeated field.
@@ -96,6 +122,7 @@ public boolean getReplaceMessageFields() {
    * 
* * optional bool replace_repeated_fields = 2; + * * @return Whether the replaceRepeatedFields field is set. */ @java.lang.Override @@ -103,6 +130,8 @@ public boolean hasReplaceRepeatedFields() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * When merging repeated fields, the default behavior is to append
    * entries from the source repeated field to the destination repeated field.
@@ -116,6 +145,7 @@ public boolean hasReplaceRepeatedFields() {
    * 
* * optional bool replace_repeated_fields = 2; + * * @return The replaceRepeatedFields. */ @java.lang.Override @@ -124,6 +154,7 @@ public boolean getReplaceRepeatedFields() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +166,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, replaceMessageFields_); } @@ -153,12 +183,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, replaceMessageFields_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, replaceMessageFields_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, replaceRepeatedFields_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, replaceRepeatedFields_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,22 +196,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.contentwarehouse.v1.MergeFieldsOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions other = (com.google.cloud.contentwarehouse.v1.MergeFieldsOptions) obj; + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions other = + (com.google.cloud.contentwarehouse.v1.MergeFieldsOptions) obj; if (hasReplaceMessageFields() != other.hasReplaceMessageFields()) return false; if (hasReplaceMessageFields()) { - if (getReplaceMessageFields() - != other.getReplaceMessageFields()) return false; + if (getReplaceMessageFields() != other.getReplaceMessageFields()) return false; } if (hasReplaceRepeatedFields() != other.hasReplaceRepeatedFields()) return false; if (hasReplaceRepeatedFields()) { - if (getReplaceRepeatedFields() - != other.getReplaceRepeatedFields()) return false; + if (getReplaceRepeatedFields() != other.getReplaceRepeatedFields()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -198,13 +225,11 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); if (hasReplaceMessageFields()) { hash = (37 * hash) + REPLACE_MESSAGE_FIELDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReplaceMessageFields()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReplaceMessageFields()); } if (hasReplaceRepeatedFields()) { hash = (37 * hash) + REPLACE_REPEATED_FIELDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReplaceRepeatedFields()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReplaceRepeatedFields()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -212,131 +237,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions 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.contentwarehouse.v1.MergeFieldsOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions 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.contentwarehouse.v1.MergeFieldsOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.MergeFieldsOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Options for merging updated fields.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.MergeFieldsOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.MergeFieldsOptions) com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.class, com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.class, + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; } @java.lang.Override @@ -368,8 +398,11 @@ public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions result = new com.google.cloud.contentwarehouse.v1.MergeFieldsOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions result = + new com.google.cloud.contentwarehouse.v1.MergeFieldsOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -392,38 +425,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.MergeFieldsOptio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.MergeFieldsOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.MergeFieldsOptions)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.MergeFieldsOptions) other); } else { super.mergeFrom(other); return this; @@ -431,7 +465,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.MergeFieldsOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance()) + return this; if (other.hasReplaceMessageFields()) { setReplaceMessageFields(other.getReplaceMessageFields()); } @@ -464,22 +499,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - replaceMessageFields_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - replaceRepeatedFields_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + replaceMessageFields_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + replaceRepeatedFields_ = 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) { @@ -489,10 +527,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean replaceMessageFields_ ; + private boolean replaceMessageFields_; /** + * + * *
      * When merging message fields, the default behavior is to merge
      * the content of two message fields together. If you instead want to use
@@ -503,6 +544,7 @@ public Builder mergeFrom(
      * 
* * optional bool replace_message_fields = 1; + * * @return Whether the replaceMessageFields field is set. */ @java.lang.Override @@ -510,6 +552,8 @@ public boolean hasReplaceMessageFields() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * When merging message fields, the default behavior is to merge
      * the content of two message fields together. If you instead want to use
@@ -520,6 +564,7 @@ public boolean hasReplaceMessageFields() {
      * 
* * optional bool replace_message_fields = 1; + * * @return The replaceMessageFields. */ @java.lang.Override @@ -527,6 +572,8 @@ public boolean getReplaceMessageFields() { return replaceMessageFields_; } /** + * + * *
      * When merging message fields, the default behavior is to merge
      * the content of two message fields together. If you instead want to use
@@ -537,6 +584,7 @@ public boolean getReplaceMessageFields() {
      * 
* * optional bool replace_message_fields = 1; + * * @param value The replaceMessageFields to set. * @return This builder for chaining. */ @@ -548,6 +596,8 @@ public Builder setReplaceMessageFields(boolean value) { return this; } /** + * + * *
      * When merging message fields, the default behavior is to merge
      * the content of two message fields together. If you instead want to use
@@ -558,6 +608,7 @@ public Builder setReplaceMessageFields(boolean value) {
      * 
* * optional bool replace_message_fields = 1; + * * @return This builder for chaining. */ public Builder clearReplaceMessageFields() { @@ -567,8 +618,10 @@ public Builder clearReplaceMessageFields() { return this; } - private boolean replaceRepeatedFields_ ; + private boolean replaceRepeatedFields_; /** + * + * *
      * When merging repeated fields, the default behavior is to append
      * entries from the source repeated field to the destination repeated field.
@@ -582,6 +635,7 @@ public Builder clearReplaceMessageFields() {
      * 
* * optional bool replace_repeated_fields = 2; + * * @return Whether the replaceRepeatedFields field is set. */ @java.lang.Override @@ -589,6 +643,8 @@ public boolean hasReplaceRepeatedFields() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * When merging repeated fields, the default behavior is to append
      * entries from the source repeated field to the destination repeated field.
@@ -602,6 +658,7 @@ public boolean hasReplaceRepeatedFields() {
      * 
* * optional bool replace_repeated_fields = 2; + * * @return The replaceRepeatedFields. */ @java.lang.Override @@ -609,6 +666,8 @@ public boolean getReplaceRepeatedFields() { return replaceRepeatedFields_; } /** + * + * *
      * When merging repeated fields, the default behavior is to append
      * entries from the source repeated field to the destination repeated field.
@@ -622,6 +681,7 @@ public boolean getReplaceRepeatedFields() {
      * 
* * optional bool replace_repeated_fields = 2; + * * @param value The replaceRepeatedFields to set. * @return This builder for chaining. */ @@ -633,6 +693,8 @@ public Builder setReplaceRepeatedFields(boolean value) { return this; } /** + * + * *
      * When merging repeated fields, the default behavior is to append
      * entries from the source repeated field to the destination repeated field.
@@ -646,6 +708,7 @@ public Builder setReplaceRepeatedFields(boolean value) {
      * 
* * optional bool replace_repeated_fields = 2; + * * @return This builder for chaining. */ public Builder clearReplaceRepeatedFields() { @@ -654,9 +717,9 @@ public Builder clearReplaceRepeatedFields() { 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); } @@ -666,12 +729,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.MergeFieldsOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.MergeFieldsOptions) private static final com.google.cloud.contentwarehouse.v1.MergeFieldsOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.MergeFieldsOptions(); } @@ -680,27 +743,27 @@ public static com.google.cloud.contentwarehouse.v1.MergeFieldsOptions getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MergeFieldsOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 MergeFieldsOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -715,6 +778,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java similarity index 80% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java index c61943337768..8b089a4f20b5 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MergeFieldsOptionsOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; -public interface MergeFieldsOptionsOrBuilder extends +public interface MergeFieldsOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.MergeFieldsOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * When merging message fields, the default behavior is to merge
    * the content of two message fields together. If you instead want to use
@@ -18,10 +36,13 @@ public interface MergeFieldsOptionsOrBuilder extends
    * 
* * optional bool replace_message_fields = 1; + * * @return Whether the replaceMessageFields field is set. */ boolean hasReplaceMessageFields(); /** + * + * *
    * When merging message fields, the default behavior is to merge
    * the content of two message fields together. If you instead want to use
@@ -32,11 +53,14 @@ public interface MergeFieldsOptionsOrBuilder extends
    * 
* * optional bool replace_message_fields = 1; + * * @return The replaceMessageFields. */ boolean getReplaceMessageFields(); /** + * + * *
    * When merging repeated fields, the default behavior is to append
    * entries from the source repeated field to the destination repeated field.
@@ -50,10 +74,13 @@ public interface MergeFieldsOptionsOrBuilder extends
    * 
* * optional bool replace_repeated_fields = 2; + * * @return Whether the replaceRepeatedFields field is set. */ boolean hasReplaceRepeatedFields(); /** + * + * *
    * When merging repeated fields, the default behavior is to append
    * entries from the source repeated field to the destination repeated field.
@@ -67,6 +94,7 @@ public interface MergeFieldsOptionsOrBuilder extends
    * 
* * optional bool replace_repeated_fields = 2; + * * @return The replaceRepeatedFields. */ boolean getReplaceRepeatedFields(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java new file mode 100644 index 000000000000..a785ff999cc2 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java @@ -0,0 +1,129 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/pipeline_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class PipelineServiceProto { + private PipelineServiceProto() {} + + 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_contentwarehouse_v1_RunPipelineRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_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/contentwarehouse/v1/pipel" + + "ine_service.proto\022 google.cloud.contentw" + + "arehouse.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032-google/cloud/contentwarehouse/v1" + + "/common.proto\0320google/cloud/contentwareh" + + "ouse/v1/pipelines.proto\032#google/longrunn" + + "ing/operations.proto\"\272\004\n\022RunPipelineRequ" + + "est\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareh" + + "ouse.googleapis.com/Location\022R\n\023gcs_inge" + + "st_pipeline\030\002 \001(\01323.google.cloud.content" + + "warehouse.v1.GcsIngestPipelineH\000\022|\n*gcs_" + + "ingest_with_doc_ai_processors_pipeline\030\003" + + " \001(\0132F.google.cloud.contentwarehouse.v1." + + "GcsIngestWithDocAiProcessorsPipelineH\000\022T" + + "\n\023export_cdw_pipeline\030\004 \001(\01325.google.clo" + + "ud.contentwarehouse.v1.ExportToCdwPipeli" + + "neH\000\022b\n\034process_with_doc_ai_pipeline\030\005 \001" + + "(\0132:.google.cloud.contentwarehouse.v1.Pr" + + "ocessWithDocAiPipelineH\000\022K\n\020request_meta" + + "data\030\006 \001(\01321.google.cloud.contentwarehou" + + "se.v1.RequestMetadataB\n\n\010pipeline2\271\002\n\017Pi" + + "pelineService\022\320\001\n\013RunPipeline\0224.google.c" + + "loud.contentwarehouse.v1.RunPipelineRequ" + + "est\032\035.google.longrunning.Operation\"l\312A*\n" + + "\023RunPipelineResponse\022\023RunPipelineMetadat" + + "a\332A\004name\202\323\344\223\0022\"-/v1/{name=projects/*/loc" + + "ations/*}:runPipeline:\001*\032S\312A\037contentware" + + "house.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\374\001\n$com.go" + + "ogle.cloud.contentwarehouse.v1B\024Pipeline" + + "ServiceProtoP\001ZPcloud.google.com/go/cont" + + "entwarehouse/apiv1/contentwarehousepb;co" + + "ntentwarehousepb\252\002 Google.Cloud.ContentW" + + "arehouse.V1\312\002 Google\\Cloud\\ContentWareho" + + "use\\V1\352\002#Google::Cloud::ContentWarehouse" + + "::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.contentwarehouse.v1.CommonProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.PipelinesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor, + new java.lang.String[] { + "Name", + "GcsIngestPipeline", + "GcsIngestWithDocAiProcessorsPipeline", + "ExportCdwPipeline", + "ProcessWithDocAiPipeline", + "RequestMetadata", + "Pipeline", + }); + 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.contentwarehouse.v1.CommonProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.PipelinesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java new file mode 100644 index 000000000000..ab55bc8fb500 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java @@ -0,0 +1,299 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/pipelines.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class PipelinesProto { + private PipelinesProto() {} + + 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_contentwarehouse_v1_RunPipelineResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_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/contentwarehouse/v1/pipel" + + "ines.proto\022 google.cloud.contentwarehous" + + "e.v1\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032-google/cloud/c" + + "ontentwarehouse/v1/common.proto\032\032google/" + + "iam/v1/policy.proto\032\027google/rpc/status.p" + + "roto\"\025\n\023RunPipelineResponse\"\372\007\n\023RunPipel" + + "ineMetadata\022\030\n\020total_file_count\030\001 \001(\005\022\031\n" + + "\021failed_file_count\030\002 \001(\005\022=\n\tuser_info\030\003 " + + "\001(\0132*.google.cloud.contentwarehouse.v1.U" + + "serInfo\022w\n\034gcs_ingest_pipeline_metadata\030" + + "\004 \001(\0132O.google.cloud.contentwarehouse.v1" + + ".RunPipelineMetadata.GcsIngestPipelineMe" + + "tadataH\000\022|\n\037export_to_cdw_pipeline_metad" + + "ata\030\006 \001(\0132Q.google.cloud.contentwarehous" + + "e.v1.RunPipelineMetadata.ExportToCdwPipe" + + "lineMetadataH\000\022\207\001\n%process_with_doc_ai_p" + + "ipeline_metadata\030\007 \001(\0132V.google.cloud.co" + + "ntentwarehouse.v1.RunPipelineMetadata.Pr" + + "ocessWithDocAiPipelineMetadataH\000\022t\n\034indi" + + "vidual_document_statuses\030\005 \003(\0132N.google." + + "cloud.contentwarehouse.v1.RunPipelineMet" + + "adata.IndividualDocumentStatus\032/\n\031GcsIng" + + "estPipelineMetadata\022\022\n\ninput_path\030\001 \001(\t\032" + + "]\n\033ExportToCdwPipelineMetadata\022\021\n\tdocume" + + "nts\030\001 \003(\t\022\026\n\016doc_ai_dataset\030\002 \001(\t\022\023\n\013out" + + "put_path\030\003 \001(\t\032~\n ProcessWithDocAiPipeli" + + "neMetadata\022\021\n\tdocuments\030\001 \003(\t\022G\n\016process" + + "or_info\030\002 \001(\0132/.google.cloud.contentware" + + "house.v1.ProcessorInfo\032S\n\030IndividualDocu" + + "mentStatus\022\023\n\013document_id\030\001 \001(\t\022\"\n\006statu" + + "s\030\002 \001(\0132\022.google.rpc.StatusB\023\n\021pipeline_" + + "metadata\"S\n\rProcessorInfo\022\026\n\016processor_n" + + "ame\030\001 \001(\t\022\025\n\rdocument_type\030\002 \001(\t\022\023\n\013sche" + + "ma_name\030\003 \001(\t\"\323\001\n\024IngestPipelineConfig\0222" + + "\n\023document_acl_policy\030\001 \001(\0132\025.google.iam" + + ".v1.Policy\022\'\n\037enable_document_text_extra" + + "ction\030\002 \001(\010\022\024\n\006folder\030\003 \001(\tB\004\342A\001\001\022H\n\016clo" + + "ud_function\030\004 \001(\tB0\372A-\n+cloudfunctions.g" + + "oogleapis.com/CloudFunction\"\314\001\n\021GcsInges" + + "tPipeline\022\022\n\ninput_path\030\001 \001(\t\022\023\n\013schema_" + + "name\030\002 \001(\t\022\026\n\016processor_type\030\003 \001(\t\022\037\n\027sk" + + "ip_ingested_documents\030\004 \001(\010\022U\n\017pipeline_" + + "config\030\005 \001(\01326.google.cloud.contentwareh" + + "ouse.v1.IngestPipelineConfigB\004\342A\001\001\"\203\003\n$G" + + "csIngestWithDocAiProcessorsPipeline\022\022\n\ni" + + "nput_path\030\001 \001(\t\022V\n\035split_classify_proces" + + "sor_info\030\002 \001(\0132/.google.cloud.contentwar" + + "ehouse.v1.ProcessorInfo\022P\n\027extract_proce" + + "ssor_infos\030\003 \003(\0132/.google.cloud.contentw" + + "arehouse.v1.ProcessorInfo\022%\n\035processor_r" + + "esults_folder_path\030\004 \001(\t\022\037\n\027skip_ingeste" + + "d_documents\030\005 \001(\010\022U\n\017pipeline_config\030\006 \001" + + "(\01326.google.cloud.contentwarehouse.v1.In" + + "gestPipelineConfigB\004\342A\001\001\"\200\001\n\023ExportToCdw" + + "Pipeline\022\021\n\tdocuments\030\001 \003(\t\022\032\n\022export_fo" + + "lder_path\030\002 \001(\t\022\034\n\016doc_ai_dataset\030\003 \001(\tB" + + "\004\342A\001\001\022\034\n\024training_split_ratio\030\004 \001(\002\"\271\001\n\030" + + "ProcessWithDocAiPipeline\022\021\n\tdocuments\030\001 " + + "\003(\t\022\032\n\022export_folder_path\030\002 \001(\t\022G\n\016proce" + + "ssor_info\030\003 \001(\0132/.google.cloud.contentwa" + + "rehouse.v1.ProcessorInfo\022%\n\035processor_re" + + "sults_folder_path\030\004 \001(\tB\344\002\n$com.google.c" + + "loud.contentwarehouse.v1B\016PipelinesProto" + + "P\001ZPcloud.google.com/go/contentwarehouse" + + "/apiv1/contentwarehousepb;contentwarehou" + + "sepb\252\002 Google.Cloud.ContentWarehouse.V1\312" + + "\002 Google\\Cloud\\ContentWarehouse\\V1\352\002#Goo" + + "gle::Cloud::ContentWarehouse::V1\352Ak\n+clo" + + "udfunctions.googleapis.com/CloudFunction" + + "\022 * The configuration of processing documents in Document Warehouse with DocAi * processors pipeline. @@ -11,47 +28,51 @@ * * Protobuf type {@code google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline} */ -public final class ProcessWithDocAiPipeline extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProcessWithDocAiPipeline extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) ProcessWithDocAiPipelineOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProcessWithDocAiPipeline.newBuilder() to construct. private ProcessWithDocAiPipeline(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProcessWithDocAiPipeline() { - documents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); exportFolderPath_ = ""; processorResultsFolderPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProcessWithDocAiPipeline(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.class, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder.class); + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.class, + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder.class); } public static final int DOCUMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -59,13 +80,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string documents = 1; + * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList - getDocumentsList() { + public com.google.protobuf.ProtocolStringList getDocumentsList() { return documents_; } /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -73,12 +96,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string documents = 1; + * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -86,6 +112,7 @@ public int getDocumentsCount() {
    * 
* * repeated string documents = 1; + * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -93,6 +120,8 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -100,18 +129,21 @@ public java.lang.String getDocuments(int index) {
    * 
* * repeated string documents = 1; + * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString - getDocumentsBytes(int index) { + public com.google.protobuf.ByteString getDocumentsBytes(int index) { return documents_.getByteString(index); } public static final int EXPORT_FOLDER_PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object exportFolderPath_ = ""; /** + * + * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -119,6 +151,7 @@ public java.lang.String getDocuments(int index) {
    * 
* * string export_folder_path = 2; + * * @return The exportFolderPath. */ @java.lang.Override @@ -127,14 +160,15 @@ public java.lang.String getExportFolderPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exportFolderPath_ = s; return s; } } /** + * + * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -142,16 +176,15 @@ public java.lang.String getExportFolderPath() {
    * 
* * string export_folder_path = 2; + * * @return The bytes for exportFolderPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getExportFolderPathBytes() { + public com.google.protobuf.ByteString getExportFolderPathBytes() { java.lang.Object ref = exportFolderPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); exportFolderPath_ = b; return b; } else { @@ -162,11 +195,14 @@ public java.lang.String getExportFolderPath() { public static final int PROCESSOR_INFO_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.ProcessorInfo processorInfo_; /** + * + * *
    * The CDW processor information.
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; + * * @return Whether the processorInfo field is set. */ @java.lang.Override @@ -174,18 +210,25 @@ public boolean hasProcessorInfo() { return processorInfo_ != null; } /** + * + * *
    * The CDW processor information.
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; + * * @return The processorInfo. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() { - return processorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; + return processorInfo_ == null + ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() + : processorInfo_; } /** + * + * *
    * The CDW processor information.
    * 
@@ -194,13 +237,18 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder() { - return processorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; + return processorInfo_ == null + ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() + : processorInfo_; } public static final int PROCESSOR_RESULTS_FOLDER_PATH_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object processorResultsFolderPath_ = ""; /** + * + * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -208,6 +256,7 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorI
    * 
* * string processor_results_folder_path = 4; + * * @return The processorResultsFolderPath. */ @java.lang.Override @@ -216,14 +265,15 @@ public java.lang.String getProcessorResultsFolderPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorResultsFolderPath_ = s; return s; } } /** + * + * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -231,16 +281,15 @@ public java.lang.String getProcessorResultsFolderPath() {
    * 
* * string processor_results_folder_path = 4; + * * @return The bytes for processorResultsFolderPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getProcessorResultsFolderPathBytes() { + public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() { java.lang.Object ref = processorResultsFolderPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); processorResultsFolderPath_ = b; return b; } else { @@ -249,6 +298,7 @@ public java.lang.String getProcessorResultsFolderPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,8 +310,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < documents_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i)); } @@ -295,11 +344,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exportFolderPath_); } if (processorInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProcessorInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProcessorInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorResultsFolderPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, processorResultsFolderPath_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, processorResultsFolderPath_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -309,24 +358,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.contentwarehouse.v1.ProcessWithDocAiPipeline)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline other = (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) obj; + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline other = + (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) obj; - if (!getDocumentsList() - .equals(other.getDocumentsList())) return false; - if (!getExportFolderPath() - .equals(other.getExportFolderPath())) return false; + if (!getDocumentsList().equals(other.getDocumentsList())) return false; + if (!getExportFolderPath().equals(other.getExportFolderPath())) return false; if (hasProcessorInfo() != other.hasProcessorInfo()) return false; if (hasProcessorInfo()) { - if (!getProcessorInfo() - .equals(other.getProcessorInfo())) return false; + if (!getProcessorInfo().equals(other.getProcessorInfo())) return false; } - if (!getProcessorResultsFolderPath() - .equals(other.getProcessorResultsFolderPath())) return false; + if (!getProcessorResultsFolderPath().equals(other.getProcessorResultsFolderPath())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,98 +403,104 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline 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.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline 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.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The configuration of processing documents in Document Warehouse with DocAi
    * processors pipeline.
@@ -455,39 +508,37 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline)
       com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto
+          .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto
+          .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.class, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder.class);
+              com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.class,
+              com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      documents_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      documents_ = com.google.protobuf.LazyStringArrayList.emptyList();
       exportFolderPath_ = "";
       processorInfo_ = null;
       if (processorInfoBuilder_ != null) {
@@ -499,13 +550,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.PipelinesProto
+          .internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getDefaultInstanceForType() {
+    public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline
+        getDefaultInstanceForType() {
       return com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance();
     }
 
@@ -520,13 +572,17 @@ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline buildPartial() {
-      com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline result = new com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline result =
+          new com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline result) {
+    private void buildPartial0(
+        com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         documents_.makeImmutable();
@@ -536,9 +592,8 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ProcessWithDocAi
         result.exportFolderPath_ = exportFolderPath_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.processorInfo_ = processorInfoBuilder_ == null
-            ? processorInfo_
-            : processorInfoBuilder_.build();
+        result.processorInfo_ =
+            processorInfoBuilder_ == null ? processorInfo_ : processorInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.processorResultsFolderPath_ = processorResultsFolderPath_;
@@ -549,38 +604,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ProcessWithDocAi
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ProcessWithDocAiPipeline) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline)other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -588,7 +644,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline other) {
-      if (other == com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance())
+        return this;
       if (!other.documents_.isEmpty()) {
         if (documents_.isEmpty()) {
           documents_ = other.documents_;
@@ -638,35 +696,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureDocumentsIsMutable();
-              documents_.add(s);
-              break;
-            } // case 10
-            case 18: {
-              exportFolderPath_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getProcessorInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              processorResultsFolderPath_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureDocumentsIsMutable();
+                documents_.add(s);
+                break;
+              } // case 10
+            case 18:
+              {
+                exportFolderPath_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getProcessorInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                processorResultsFolderPath_ = 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) {
@@ -676,10 +737,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList documents_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
+
     private void ensureDocumentsIsMutable() {
       if (!documents_.isModifiable()) {
         documents_ = new com.google.protobuf.LazyStringArrayList(documents_);
@@ -687,6 +750,8 @@ private void ensureDocumentsIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
+     *
+     *
      * 
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -694,14 +759,16 @@ private void ensureDocumentsIsMutable() {
      * 
* * repeated string documents = 1; + * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList - getDocumentsList() { + public com.google.protobuf.ProtocolStringList getDocumentsList() { documents_.makeImmutable(); return documents_; } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -709,12 +776,15 @@ private void ensureDocumentsIsMutable() {
      * 
* * repeated string documents = 1; + * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -722,6 +792,7 @@ public int getDocumentsCount() {
      * 
* * repeated string documents = 1; + * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -729,6 +800,8 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -736,14 +809,16 @@ public java.lang.String getDocuments(int index) {
      * 
* * repeated string documents = 1; + * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString - getDocumentsBytes(int index) { + public com.google.protobuf.ByteString getDocumentsBytes(int index) { return documents_.getByteString(index); } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -751,13 +826,15 @@ public java.lang.String getDocuments(int index) {
      * 
* * repeated string documents = 1; + * * @param index The index to set the value at. * @param value The documents to set. * @return This builder for chaining. */ - public Builder setDocuments( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocuments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentsIsMutable(); documents_.set(index, value); bitField0_ |= 0x00000001; @@ -765,6 +842,8 @@ public Builder setDocuments( return this; } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -772,12 +851,14 @@ public Builder setDocuments(
      * 
* * repeated string documents = 1; + * * @param value The documents to add. * @return This builder for chaining. */ - public Builder addDocuments( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocuments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentsIsMutable(); documents_.add(value); bitField0_ |= 0x00000001; @@ -785,6 +866,8 @@ public Builder addDocuments( return this; } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -792,19 +875,20 @@ public Builder addDocuments(
      * 
* * repeated string documents = 1; + * * @param values The documents to add. * @return This builder for chaining. */ - public Builder addAllDocuments( - java.lang.Iterable values) { + public Builder addAllDocuments(java.lang.Iterable values) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -812,16 +896,19 @@ public Builder addAllDocuments(
      * 
* * repeated string documents = 1; + * * @return This builder for chaining. */ public Builder clearDocuments() { - documents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * The list of all the resource names of the documents to be processed.
      * Format:
@@ -829,12 +916,14 @@ public Builder clearDocuments() {
      * 
* * repeated string documents = 1; + * * @param value The bytes of the documents to add. * @return This builder for chaining. */ - public Builder addDocumentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDocumentsIsMutable(); documents_.add(value); @@ -845,6 +934,8 @@ public Builder addDocumentsBytes( private java.lang.Object exportFolderPath_ = ""; /** + * + * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -852,13 +943,13 @@ public Builder addDocumentsBytes(
      * 
* * string export_folder_path = 2; + * * @return The exportFolderPath. */ public java.lang.String getExportFolderPath() { java.lang.Object ref = exportFolderPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exportFolderPath_ = s; return s; @@ -867,6 +958,8 @@ public java.lang.String getExportFolderPath() { } } /** + * + * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -874,15 +967,14 @@ public java.lang.String getExportFolderPath() {
      * 
* * string export_folder_path = 2; + * * @return The bytes for exportFolderPath. */ - public com.google.protobuf.ByteString - getExportFolderPathBytes() { + public com.google.protobuf.ByteString getExportFolderPathBytes() { java.lang.Object ref = exportFolderPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); exportFolderPath_ = b; return b; } else { @@ -890,6 +982,8 @@ public java.lang.String getExportFolderPath() { } } /** + * + * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -897,18 +991,22 @@ public java.lang.String getExportFolderPath() {
      * 
* * string export_folder_path = 2; + * * @param value The exportFolderPath to set. * @return This builder for chaining. */ - public Builder setExportFolderPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExportFolderPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } exportFolderPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -916,6 +1014,7 @@ public Builder setExportFolderPath(
      * 
* * string export_folder_path = 2; + * * @return This builder for chaining. */ public Builder clearExportFolderPath() { @@ -925,6 +1024,8 @@ public Builder clearExportFolderPath() { return this; } /** + * + * *
      * The Cloud Storage folder path used to store the exported documents before
      * being sent to CDW.
@@ -932,12 +1033,14 @@ public Builder clearExportFolderPath() {
      * 
* * string export_folder_path = 2; + * * @param value The bytes for exportFolderPath to set. * @return This builder for chaining. */ - public Builder setExportFolderPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExportFolderPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); exportFolderPath_ = value; bitField0_ |= 0x00000002; @@ -947,34 +1050,47 @@ public Builder setExportFolderPathBytes( private com.google.cloud.contentwarehouse.v1.ProcessorInfo processorInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> processorInfoBuilder_; + com.google.cloud.contentwarehouse.v1.ProcessorInfo, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, + com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> + processorInfoBuilder_; /** + * + * *
      * The CDW processor information.
      * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; + * * @return Whether the processorInfo field is set. */ public boolean hasProcessorInfo() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The CDW processor information.
      * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; + * * @return The processorInfo. */ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() { if (processorInfoBuilder_ == null) { - return processorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; + return processorInfo_ == null + ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() + : processorInfo_; } else { return processorInfoBuilder_.getMessage(); } } /** + * + * *
      * The CDW processor information.
      * 
@@ -995,6 +1111,8 @@ public Builder setProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorIn return this; } /** + * + * *
      * The CDW processor information.
      * 
@@ -1013,6 +1131,8 @@ public Builder setProcessorInfo( return this; } /** + * + * *
      * The CDW processor information.
      * 
@@ -1021,9 +1141,10 @@ public Builder setProcessorInfo( */ public Builder mergeProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { if (processorInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - processorInfo_ != null && - processorInfo_ != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && processorInfo_ != null + && processorInfo_ + != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) { getProcessorInfoBuilder().mergeFrom(value); } else { processorInfo_ = value; @@ -1036,6 +1157,8 @@ public Builder mergeProcessorInfo(com.google.cloud.contentwarehouse.v1.Processor return this; } /** + * + * *
      * The CDW processor information.
      * 
@@ -1053,6 +1176,8 @@ public Builder clearProcessorInfo() { return this; } /** + * + * *
      * The CDW processor information.
      * 
@@ -1065,6 +1190,8 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder getProcessorIn return getProcessorInfoFieldBuilder().getBuilder(); } /** + * + * *
      * The CDW processor information.
      * 
@@ -1075,11 +1202,14 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorI if (processorInfoBuilder_ != null) { return processorInfoBuilder_.getMessageOrBuilder(); } else { - return processorInfo_ == null ? - com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; + return processorInfo_ == null + ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() + : processorInfo_; } } /** + * + * *
      * The CDW processor information.
      * 
@@ -1087,14 +1217,17 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorI * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.ProcessorInfo, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, + com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> getProcessorInfoFieldBuilder() { if (processorInfoBuilder_ == null) { - processorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( - getProcessorInfo(), - getParentForChildren(), - isClean()); + processorInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ProcessorInfo, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, + com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( + getProcessorInfo(), getParentForChildren(), isClean()); processorInfo_ = null; } return processorInfoBuilder_; @@ -1102,6 +1235,8 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorI private java.lang.Object processorResultsFolderPath_ = ""; /** + * + * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1109,13 +1244,13 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorI
      * 
* * string processor_results_folder_path = 4; + * * @return The processorResultsFolderPath. */ public java.lang.String getProcessorResultsFolderPath() { java.lang.Object ref = processorResultsFolderPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorResultsFolderPath_ = s; return s; @@ -1124,6 +1259,8 @@ public java.lang.String getProcessorResultsFolderPath() { } } /** + * + * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1131,15 +1268,14 @@ public java.lang.String getProcessorResultsFolderPath() {
      * 
* * string processor_results_folder_path = 4; + * * @return The bytes for processorResultsFolderPath. */ - public com.google.protobuf.ByteString - getProcessorResultsFolderPathBytes() { + public com.google.protobuf.ByteString getProcessorResultsFolderPathBytes() { java.lang.Object ref = processorResultsFolderPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); processorResultsFolderPath_ = b; return b; } else { @@ -1147,6 +1283,8 @@ public java.lang.String getProcessorResultsFolderPath() { } } /** + * + * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1154,18 +1292,22 @@ public java.lang.String getProcessorResultsFolderPath() {
      * 
* * string processor_results_folder_path = 4; + * * @param value The processorResultsFolderPath to set. * @return This builder for chaining. */ - public Builder setProcessorResultsFolderPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProcessorResultsFolderPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } processorResultsFolderPath_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1173,6 +1315,7 @@ public Builder setProcessorResultsFolderPath(
      * 
* * string processor_results_folder_path = 4; + * * @return This builder for chaining. */ public Builder clearProcessorResultsFolderPath() { @@ -1182,6 +1325,8 @@ public Builder clearProcessorResultsFolderPath() { return this; } /** + * + * *
      * The Cloud Storage folder path used to store the raw results from
      * processors.
@@ -1189,21 +1334,23 @@ public Builder clearProcessorResultsFolderPath() {
      * 
* * string processor_results_folder_path = 4; + * * @param value The bytes for processorResultsFolderPath to set. * @return This builder for chaining. */ - public Builder setProcessorResultsFolderPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProcessorResultsFolderPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); processorResultsFolderPath_ = 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); } @@ -1213,12 +1360,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) - private static final com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline(); } @@ -1227,27 +1375,27 @@ public static com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProcessWithDocAiPipeline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ProcessWithDocAiPipeline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1262,6 +1410,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java similarity index 77% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java index c5f73e395ad5..3dbed890082e 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessWithDocAiPipelineOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface ProcessWithDocAiPipelineOrBuilder extends +public interface ProcessWithDocAiPipelineOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -15,11 +33,13 @@ public interface ProcessWithDocAiPipelineOrBuilder extends
    * 
* * repeated string documents = 1; + * * @return A list containing the documents. */ - java.util.List - getDocumentsList(); + java.util.List getDocumentsList(); /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -27,10 +47,13 @@ public interface ProcessWithDocAiPipelineOrBuilder extends
    * 
* * repeated string documents = 1; + * * @return The count of documents. */ int getDocumentsCount(); /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -38,11 +61,14 @@ public interface ProcessWithDocAiPipelineOrBuilder extends
    * 
* * repeated string documents = 1; + * * @param index The index of the element to return. * @return The documents at the given index. */ java.lang.String getDocuments(int index); /** + * + * *
    * The list of all the resource names of the documents to be processed.
    * Format:
@@ -50,13 +76,15 @@ public interface ProcessWithDocAiPipelineOrBuilder extends
    * 
* * repeated string documents = 1; + * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - com.google.protobuf.ByteString - getDocumentsBytes(int index); + com.google.protobuf.ByteString getDocumentsBytes(int index); /** + * + * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -64,10 +92,13 @@ public interface ProcessWithDocAiPipelineOrBuilder extends
    * 
* * string export_folder_path = 2; + * * @return The exportFolderPath. */ java.lang.String getExportFolderPath(); /** + * + * *
    * The Cloud Storage folder path used to store the exported documents before
    * being sent to CDW.
@@ -75,30 +106,38 @@ public interface ProcessWithDocAiPipelineOrBuilder extends
    * 
* * string export_folder_path = 2; + * * @return The bytes for exportFolderPath. */ - com.google.protobuf.ByteString - getExportFolderPathBytes(); + com.google.protobuf.ByteString getExportFolderPathBytes(); /** + * + * *
    * The CDW processor information.
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; + * * @return Whether the processorInfo field is set. */ boolean hasProcessorInfo(); /** + * + * *
    * The CDW processor information.
    * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 3; + * * @return The processorInfo. */ com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo(); /** + * + * *
    * The CDW processor information.
    * 
@@ -108,6 +147,8 @@ public interface ProcessWithDocAiPipelineOrBuilder extends com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder(); /** + * + * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -115,10 +156,13 @@ public interface ProcessWithDocAiPipelineOrBuilder extends
    * 
* * string processor_results_folder_path = 4; + * * @return The processorResultsFolderPath. */ java.lang.String getProcessorResultsFolderPath(); /** + * + * *
    * The Cloud Storage folder path used to store the raw results from
    * processors.
@@ -126,8 +170,8 @@ public interface ProcessWithDocAiPipelineOrBuilder extends
    * 
* * string processor_results_folder_path = 4; + * * @return The bytes for processorResultsFolderPath. */ - com.google.protobuf.ByteString - getProcessorResultsFolderPathBytes(); + com.google.protobuf.ByteString getProcessorResultsFolderPathBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java similarity index 71% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java index 64bde423c85f..5aacaafc5067 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfo.java @@ -1,24 +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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * The DocAI processor information.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ProcessorInfo} */ -public final class ProcessorInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProcessorInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ProcessorInfo) ProcessorInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProcessorInfo.newBuilder() to construct. private ProcessorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProcessorInfo() { processorName_ = ""; documentType_ = ""; @@ -27,28 +45,32 @@ private ProcessorInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProcessorInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ProcessorInfo.class, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder.class); + com.google.cloud.contentwarehouse.v1.ProcessorInfo.class, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder.class); } public static final int PROCESSOR_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object processorName_ = ""; /** + * + * *
    * The processor resource name.
    * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -57,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string processor_name = 1; + * * @return The processorName. */ @java.lang.Override @@ -65,14 +88,15 @@ public java.lang.String getProcessorName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorName_ = s; return s; } } /** + * + * *
    * The processor resource name.
    * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -81,16 +105,15 @@ public java.lang.String getProcessorName() {
    * 
* * string processor_name = 1; + * * @return The bytes for processorName. */ @java.lang.Override - public com.google.protobuf.ByteString - getProcessorNameBytes() { + public com.google.protobuf.ByteString getProcessorNameBytes() { java.lang.Object ref = processorName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); processorName_ = b; return b; } else { @@ -99,14 +122,18 @@ public java.lang.String getProcessorName() { } public static final int DOCUMENT_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object documentType_ = ""; /** + * + * *
    * The processor will process the documents with this document type.
    * 
* * string document_type = 2; + * * @return The documentType. */ @java.lang.Override @@ -115,29 +142,29 @@ public java.lang.String getDocumentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentType_ = s; return s; } } /** + * + * *
    * The processor will process the documents with this document type.
    * 
* * string document_type = 2; + * * @return The bytes for documentType. */ @java.lang.Override - public com.google.protobuf.ByteString - getDocumentTypeBytes() { + public com.google.protobuf.ByteString getDocumentTypeBytes() { java.lang.Object ref = documentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentType_ = b; return b; } else { @@ -146,9 +173,12 @@ public java.lang.String getDocumentType() { } public static final int SCHEMA_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object schemaName_ = ""; /** + * + * *
    * The Document schema resource name. All documents processed by this
    * processor will use this schema.
@@ -157,6 +187,7 @@ public java.lang.String getDocumentType() {
    * 
* * string schema_name = 3; + * * @return The schemaName. */ @java.lang.Override @@ -165,14 +196,15 @@ public java.lang.String getSchemaName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; } } /** + * + * *
    * The Document schema resource name. All documents processed by this
    * processor will use this schema.
@@ -181,16 +213,15 @@ public java.lang.String getSchemaName() {
    * 
* * string schema_name = 3; + * * @return The bytes for schemaName. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaNameBytes() { + public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schemaName_ = b; return b; } else { @@ -199,6 +230,7 @@ public java.lang.String getSchemaName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, processorName_); } @@ -247,19 +278,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.contentwarehouse.v1.ProcessorInfo)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ProcessorInfo other = (com.google.cloud.contentwarehouse.v1.ProcessorInfo) obj; + com.google.cloud.contentwarehouse.v1.ProcessorInfo other = + (com.google.cloud.contentwarehouse.v1.ProcessorInfo) obj; - if (!getProcessorName() - .equals(other.getProcessorName())) return false; - if (!getDocumentType() - .equals(other.getDocumentType())) return false; - if (!getSchemaName() - .equals(other.getSchemaName())) return false; + if (!getProcessorName().equals(other.getProcessorName())) return false; + if (!getDocumentType().equals(other.getDocumentType())) return false; + if (!getSchemaName().equals(other.getSchemaName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -283,131 +312,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ProcessorInfo 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.contentwarehouse.v1.ProcessorInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ProcessorInfo 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.contentwarehouse.v1.ProcessorInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ProcessorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ProcessorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The DocAI processor information.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ProcessorInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ProcessorInfo) com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ProcessorInfo.class, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder.class); + com.google.cloud.contentwarehouse.v1.ProcessorInfo.class, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ProcessorInfo.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +452,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; } @java.lang.Override @@ -440,8 +473,11 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfo buildPartial() { - com.google.cloud.contentwarehouse.v1.ProcessorInfo result = new com.google.cloud.contentwarehouse.v1.ProcessorInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.ProcessorInfo result = + new com.google.cloud.contentwarehouse.v1.ProcessorInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -463,38 +499,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ProcessorInfo 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.contentwarehouse.v1.ProcessorInfo) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ProcessorInfo)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ProcessorInfo) other); } else { super.mergeFrom(other); return this; @@ -502,7 +539,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ProcessorInfo other) { - if (other == com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) + return this; if (!other.getProcessorName().isEmpty()) { processorName_ = other.processorName_; bitField0_ |= 0x00000001; @@ -544,27 +582,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - processorName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - documentType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - schemaName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + processorName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + documentType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + schemaName_ = 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) { @@ -574,10 +616,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object processorName_ = ""; /** + * + * *
      * The processor resource name.
      * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -586,13 +631,13 @@ public Builder mergeFrom(
      * 
* * string processor_name = 1; + * * @return The processorName. */ public java.lang.String getProcessorName() { java.lang.Object ref = processorName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorName_ = s; return s; @@ -601,6 +646,8 @@ public java.lang.String getProcessorName() { } } /** + * + * *
      * The processor resource name.
      * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -609,15 +656,14 @@ public java.lang.String getProcessorName() {
      * 
* * string processor_name = 1; + * * @return The bytes for processorName. */ - public com.google.protobuf.ByteString - getProcessorNameBytes() { + public com.google.protobuf.ByteString getProcessorNameBytes() { java.lang.Object ref = processorName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); processorName_ = b; return b; } else { @@ -625,6 +671,8 @@ public java.lang.String getProcessorName() { } } /** + * + * *
      * The processor resource name.
      * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -633,18 +681,22 @@ public java.lang.String getProcessorName() {
      * 
* * string processor_name = 1; + * * @param value The processorName to set. * @return This builder for chaining. */ - public Builder setProcessorName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProcessorName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } processorName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The processor resource name.
      * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -653,6 +705,7 @@ public Builder setProcessorName(
      * 
* * string processor_name = 1; + * * @return This builder for chaining. */ public Builder clearProcessorName() { @@ -662,6 +715,8 @@ public Builder clearProcessorName() { return this; } /** + * + * *
      * The processor resource name.
      * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -670,12 +725,14 @@ public Builder clearProcessorName() {
      * 
* * string processor_name = 1; + * * @param value The bytes for processorName to set. * @return This builder for chaining. */ - public Builder setProcessorNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProcessorNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); processorName_ = value; bitField0_ |= 0x00000001; @@ -685,18 +742,20 @@ public Builder setProcessorNameBytes( private java.lang.Object documentType_ = ""; /** + * + * *
      * The processor will process the documents with this document type.
      * 
* * string document_type = 2; + * * @return The documentType. */ public java.lang.String getDocumentType() { java.lang.Object ref = documentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentType_ = s; return s; @@ -705,20 +764,21 @@ public java.lang.String getDocumentType() { } } /** + * + * *
      * The processor will process the documents with this document type.
      * 
* * string document_type = 2; + * * @return The bytes for documentType. */ - public com.google.protobuf.ByteString - getDocumentTypeBytes() { + public com.google.protobuf.ByteString getDocumentTypeBytes() { java.lang.Object ref = documentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentType_ = b; return b; } else { @@ -726,28 +786,35 @@ public java.lang.String getDocumentType() { } } /** + * + * *
      * The processor will process the documents with this document type.
      * 
* * string document_type = 2; + * * @param value The documentType to set. * @return This builder for chaining. */ - public Builder setDocumentType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } documentType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The processor will process the documents with this document type.
      * 
* * string document_type = 2; + * * @return This builder for chaining. */ public Builder clearDocumentType() { @@ -757,17 +824,21 @@ public Builder clearDocumentType() { return this; } /** + * + * *
      * The processor will process the documents with this document type.
      * 
* * string document_type = 2; + * * @param value The bytes for documentType to set. * @return This builder for chaining. */ - public Builder setDocumentTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); documentType_ = value; bitField0_ |= 0x00000002; @@ -777,6 +848,8 @@ public Builder setDocumentTypeBytes( private java.lang.Object schemaName_ = ""; /** + * + * *
      * The Document schema resource name. All documents processed by this
      * processor will use this schema.
@@ -785,13 +858,13 @@ public Builder setDocumentTypeBytes(
      * 
* * string schema_name = 3; + * * @return The schemaName. */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; @@ -800,6 +873,8 @@ public java.lang.String getSchemaName() { } } /** + * + * *
      * The Document schema resource name. All documents processed by this
      * processor will use this schema.
@@ -808,15 +883,14 @@ public java.lang.String getSchemaName() {
      * 
* * string schema_name = 3; + * * @return The bytes for schemaName. */ - public com.google.protobuf.ByteString - getSchemaNameBytes() { + public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schemaName_ = b; return b; } else { @@ -824,6 +898,8 @@ public java.lang.String getSchemaName() { } } /** + * + * *
      * The Document schema resource name. All documents processed by this
      * processor will use this schema.
@@ -832,18 +908,22 @@ public java.lang.String getSchemaName() {
      * 
* * string schema_name = 3; + * * @param value The schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schemaName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The Document schema resource name. All documents processed by this
      * processor will use this schema.
@@ -852,6 +932,7 @@ public Builder setSchemaName(
      * 
* * string schema_name = 3; + * * @return This builder for chaining. */ public Builder clearSchemaName() { @@ -861,6 +942,8 @@ public Builder clearSchemaName() { return this; } /** + * + * *
      * The Document schema resource name. All documents processed by this
      * processor will use this schema.
@@ -869,21 +952,23 @@ public Builder clearSchemaName() {
      * 
* * string schema_name = 3; + * * @param value The bytes for schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schemaName_ = 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); } @@ -893,12 +978,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ProcessorInfo) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ProcessorInfo) private static final com.google.cloud.contentwarehouse.v1.ProcessorInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ProcessorInfo(); } @@ -907,27 +992,27 @@ public static com.google.cloud.contentwarehouse.v1.ProcessorInfo getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProcessorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ProcessorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,6 +1027,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ProcessorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java similarity index 70% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java index 484331f2ad8e..1443887561e1 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ProcessorInfoOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface ProcessorInfoOrBuilder extends +public interface ProcessorInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ProcessorInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The processor resource name.
    * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -16,10 +34,13 @@ public interface ProcessorInfoOrBuilder extends
    * 
* * string processor_name = 1; + * * @return The processorName. */ java.lang.String getProcessorName(); /** + * + * *
    * The processor resource name.
    * Format is `projects/{project}/locations/{location}/processors/{processor}`,
@@ -28,32 +49,39 @@ public interface ProcessorInfoOrBuilder extends
    * 
* * string processor_name = 1; + * * @return The bytes for processorName. */ - com.google.protobuf.ByteString - getProcessorNameBytes(); + com.google.protobuf.ByteString getProcessorNameBytes(); /** + * + * *
    * The processor will process the documents with this document type.
    * 
* * string document_type = 2; + * * @return The documentType. */ java.lang.String getDocumentType(); /** + * + * *
    * The processor will process the documents with this document type.
    * 
* * string document_type = 2; + * * @return The bytes for documentType. */ - com.google.protobuf.ByteString - getDocumentTypeBytes(); + com.google.protobuf.ByteString getDocumentTypeBytes(); /** + * + * *
    * The Document schema resource name. All documents processed by this
    * processor will use this schema.
@@ -62,10 +90,13 @@ public interface ProcessorInfoOrBuilder extends
    * 
* * string schema_name = 3; + * * @return The schemaName. */ java.lang.String getSchemaName(); /** + * + * *
    * The Document schema resource name. All documents processed by this
    * processor will use this schema.
@@ -74,8 +105,8 @@ public interface ProcessorInfoOrBuilder extends
    * 
* * string schema_name = 3; + * * @return The bytes for schemaName. */ - com.google.protobuf.ByteString - getSchemaNameBytes(); + com.google.protobuf.ByteString getSchemaNameBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java similarity index 74% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java index bf1ff05ae564..f1b64527ecb8 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Property.java @@ -1,53 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Property of a document.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.Property} */ -public final class Property extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Property extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.Property) PropertyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Property() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Property(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Property.class, com.google.cloud.contentwarehouse.v1.Property.Builder.class); + com.google.cloud.contentwarehouse.v1.Property.class, + com.google.cloud.contentwarehouse.v1.Property.Builder.class); } private int valuesCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object values_; + public enum ValuesCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INTEGER_VALUES(2), FLOAT_VALUES(3), @@ -59,6 +81,7 @@ public enum ValuesCase TIMESTAMP_VALUES(9), VALUES_NOT_SET(0); private final int value; + private ValuesCase(int value) { this.value = value; } @@ -74,39 +97,52 @@ public static ValuesCase valueOf(int value) { public static ValuesCase forNumber(int value) { switch (value) { - case 2: return INTEGER_VALUES; - case 3: return FLOAT_VALUES; - case 4: return TEXT_VALUES; - case 5: return ENUM_VALUES; - case 6: return PROPERTY_VALUES; - case 7: return DATE_TIME_VALUES; - case 8: return MAP_PROPERTY; - case 9: return TIMESTAMP_VALUES; - case 0: return VALUES_NOT_SET; - default: return null; + case 2: + return INTEGER_VALUES; + case 3: + return FLOAT_VALUES; + case 4: + return TEXT_VALUES; + case 5: + return ENUM_VALUES; + case 6: + return PROPERTY_VALUES; + case 7: + return DATE_TIME_VALUES; + case 8: + return MAP_PROPERTY; + case 9: + return TIMESTAMP_VALUES; + case 0: + return VALUES_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ValuesCase - getValuesCase() { - return ValuesCase.forNumber( - valuesCase_); + public ValuesCase getValuesCase() { + return ValuesCase.forNumber(valuesCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Must match the name of a PropertyDefinition in the
    * DocumentSchema.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -115,30 +151,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. Must match the name of a PropertyDefinition in the
    * DocumentSchema.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -148,11 +184,14 @@ public java.lang.String getName() { public static final int INTEGER_VALUES_FIELD_NUMBER = 2; /** + * + * *
    * Integer property values.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; + * * @return Whether the integerValues field is set. */ @java.lang.Override @@ -160,21 +199,26 @@ public boolean hasIntegerValues() { return valuesCase_ == 2; } /** + * + * *
    * Integer property values.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; + * * @return The integerValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.IntegerArray getIntegerValues() { if (valuesCase_ == 2) { - return (com.google.cloud.contentwarehouse.v1.IntegerArray) values_; + return (com.google.cloud.contentwarehouse.v1.IntegerArray) values_; } return com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance(); } /** + * + * *
    * Integer property values.
    * 
@@ -184,18 +228,21 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray getIntegerValues() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder getIntegerValuesOrBuilder() { if (valuesCase_ == 2) { - return (com.google.cloud.contentwarehouse.v1.IntegerArray) values_; + return (com.google.cloud.contentwarehouse.v1.IntegerArray) values_; } return com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance(); } public static final int FLOAT_VALUES_FIELD_NUMBER = 3; /** + * + * *
    * Float property values.
    * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; + * * @return Whether the floatValues field is set. */ @java.lang.Override @@ -203,21 +250,26 @@ public boolean hasFloatValues() { return valuesCase_ == 3; } /** + * + * *
    * Float property values.
    * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; + * * @return The floatValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.FloatArray getFloatValues() { if (valuesCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.FloatArray) values_; + return (com.google.cloud.contentwarehouse.v1.FloatArray) values_; } return com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance(); } /** + * + * *
    * Float property values.
    * 
@@ -227,18 +279,21 @@ public com.google.cloud.contentwarehouse.v1.FloatArray getFloatValues() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder getFloatValuesOrBuilder() { if (valuesCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.FloatArray) values_; + return (com.google.cloud.contentwarehouse.v1.FloatArray) values_; } return com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance(); } public static final int TEXT_VALUES_FIELD_NUMBER = 4; /** + * + * *
    * String/text property values.
    * 
* * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; + * * @return Whether the textValues field is set. */ @java.lang.Override @@ -246,21 +301,26 @@ public boolean hasTextValues() { return valuesCase_ == 4; } /** + * + * *
    * String/text property values.
    * 
* * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; + * * @return The textValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TextArray getTextValues() { if (valuesCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.TextArray) values_; + return (com.google.cloud.contentwarehouse.v1.TextArray) values_; } return com.google.cloud.contentwarehouse.v1.TextArray.getDefaultInstance(); } /** + * + * *
    * String/text property values.
    * 
@@ -270,18 +330,21 @@ public com.google.cloud.contentwarehouse.v1.TextArray getTextValues() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder getTextValuesOrBuilder() { if (valuesCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.TextArray) values_; + return (com.google.cloud.contentwarehouse.v1.TextArray) values_; } return com.google.cloud.contentwarehouse.v1.TextArray.getDefaultInstance(); } public static final int ENUM_VALUES_FIELD_NUMBER = 5; /** + * + * *
    * Enum property values.
    * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; + * * @return Whether the enumValues field is set. */ @java.lang.Override @@ -289,21 +352,26 @@ public boolean hasEnumValues() { return valuesCase_ == 5; } /** + * + * *
    * Enum property values.
    * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; + * * @return The enumValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumArray getEnumValues() { if (valuesCase_ == 5) { - return (com.google.cloud.contentwarehouse.v1.EnumArray) values_; + return (com.google.cloud.contentwarehouse.v1.EnumArray) values_; } return com.google.cloud.contentwarehouse.v1.EnumArray.getDefaultInstance(); } /** + * + * *
    * Enum property values.
    * 
@@ -313,18 +381,21 @@ public com.google.cloud.contentwarehouse.v1.EnumArray getEnumValues() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder getEnumValuesOrBuilder() { if (valuesCase_ == 5) { - return (com.google.cloud.contentwarehouse.v1.EnumArray) values_; + return (com.google.cloud.contentwarehouse.v1.EnumArray) values_; } return com.google.cloud.contentwarehouse.v1.EnumArray.getDefaultInstance(); } public static final int PROPERTY_VALUES_FIELD_NUMBER = 6; /** + * + * *
    * Nested structured data property values.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; + * * @return Whether the propertyValues field is set. */ @java.lang.Override @@ -332,21 +403,26 @@ public boolean hasPropertyValues() { return valuesCase_ == 6; } /** + * + * *
    * Nested structured data property values.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; + * * @return The propertyValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyArray getPropertyValues() { if (valuesCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.PropertyArray) values_; + return (com.google.cloud.contentwarehouse.v1.PropertyArray) values_; } return com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance(); } /** + * + * *
    * Nested structured data property values.
    * 
@@ -356,19 +432,22 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray getPropertyValues() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder getPropertyValuesOrBuilder() { if (valuesCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.PropertyArray) values_; + return (com.google.cloud.contentwarehouse.v1.PropertyArray) values_; } return com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance(); } public static final int DATE_TIME_VALUES_FIELD_NUMBER = 7; /** + * + * *
    * Date time property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7; + * * @return Whether the dateTimeValues field is set. */ @java.lang.Override @@ -376,22 +455,27 @@ public boolean hasDateTimeValues() { return valuesCase_ == 7; } /** + * + * *
    * Date time property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7; + * * @return The dateTimeValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DateTimeArray getDateTimeValues() { if (valuesCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_; + return (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_; } return com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance(); } /** + * + * *
    * Date time property values.
    * It is not supported by CMEK compliant deployment.
@@ -402,18 +486,21 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray getDateTimeValues() {
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder getDateTimeValuesOrBuilder() {
     if (valuesCase_ == 7) {
-       return (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_;
+      return (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_;
     }
     return com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance();
   }
 
   public static final int MAP_PROPERTY_FIELD_NUMBER = 8;
   /**
+   *
+   *
    * 
    * Map property values.
    * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; + * * @return Whether the mapProperty field is set. */ @java.lang.Override @@ -421,21 +508,26 @@ public boolean hasMapProperty() { return valuesCase_ == 8; } /** + * + * *
    * Map property values.
    * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; + * * @return The mapProperty. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.MapProperty getMapProperty() { if (valuesCase_ == 8) { - return (com.google.cloud.contentwarehouse.v1.MapProperty) values_; + return (com.google.cloud.contentwarehouse.v1.MapProperty) values_; } return com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance(); } /** + * + * *
    * Map property values.
    * 
@@ -445,19 +537,22 @@ public com.google.cloud.contentwarehouse.v1.MapProperty getMapProperty() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder getMapPropertyOrBuilder() { if (valuesCase_ == 8) { - return (com.google.cloud.contentwarehouse.v1.MapProperty) values_; + return (com.google.cloud.contentwarehouse.v1.MapProperty) values_; } return com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance(); } public static final int TIMESTAMP_VALUES_FIELD_NUMBER = 9; /** + * + * *
    * Timestamp property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9; + * * @return Whether the timestampValues field is set. */ @java.lang.Override @@ -465,22 +560,27 @@ public boolean hasTimestampValues() { return valuesCase_ == 9; } /** + * + * *
    * Timestamp property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9; + * * @return The timestampValues. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampArray getTimestampValues() { if (valuesCase_ == 9) { - return (com.google.cloud.contentwarehouse.v1.TimestampArray) values_; + return (com.google.cloud.contentwarehouse.v1.TimestampArray) values_; } return com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance(); } /** + * + * *
    * Timestamp property values.
    * It is not supported by CMEK compliant deployment.
@@ -489,14 +589,16 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray getTimestampValues()
    * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder getTimestampValuesOrBuilder() {
+  public com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder
+      getTimestampValuesOrBuilder() {
     if (valuesCase_ == 9) {
-       return (com.google.cloud.contentwarehouse.v1.TimestampArray) values_;
+      return (com.google.cloud.contentwarehouse.v1.TimestampArray) values_;
     }
     return com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -508,8 +610,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -550,36 +651,44 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (valuesCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.contentwarehouse.v1.IntegerArray) values_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.contentwarehouse.v1.IntegerArray) values_);
     }
     if (valuesCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, (com.google.cloud.contentwarehouse.v1.FloatArray) values_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, (com.google.cloud.contentwarehouse.v1.FloatArray) values_);
     }
     if (valuesCase_ == 4) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, (com.google.cloud.contentwarehouse.v1.TextArray) values_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              4, (com.google.cloud.contentwarehouse.v1.TextArray) values_);
     }
     if (valuesCase_ == 5) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, (com.google.cloud.contentwarehouse.v1.EnumArray) values_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              5, (com.google.cloud.contentwarehouse.v1.EnumArray) values_);
     }
     if (valuesCase_ == 6) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, (com.google.cloud.contentwarehouse.v1.PropertyArray) values_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              6, (com.google.cloud.contentwarehouse.v1.PropertyArray) values_);
     }
     if (valuesCase_ == 7) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              7, (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_);
     }
     if (valuesCase_ == 8) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, (com.google.cloud.contentwarehouse.v1.MapProperty) values_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              8, (com.google.cloud.contentwarehouse.v1.MapProperty) values_);
     }
     if (valuesCase_ == 9) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, (com.google.cloud.contentwarehouse.v1.TimestampArray) values_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              9, (com.google.cloud.contentwarehouse.v1.TimestampArray) values_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -589,48 +698,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.contentwarehouse.v1.Property)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.Property other = (com.google.cloud.contentwarehouse.v1.Property) obj;
+    com.google.cloud.contentwarehouse.v1.Property other =
+        (com.google.cloud.contentwarehouse.v1.Property) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (!getValuesCase().equals(other.getValuesCase())) return false;
     switch (valuesCase_) {
       case 2:
-        if (!getIntegerValues()
-            .equals(other.getIntegerValues())) return false;
+        if (!getIntegerValues().equals(other.getIntegerValues())) return false;
         break;
       case 3:
-        if (!getFloatValues()
-            .equals(other.getFloatValues())) return false;
+        if (!getFloatValues().equals(other.getFloatValues())) return false;
         break;
       case 4:
-        if (!getTextValues()
-            .equals(other.getTextValues())) return false;
+        if (!getTextValues().equals(other.getTextValues())) return false;
         break;
       case 5:
-        if (!getEnumValues()
-            .equals(other.getEnumValues())) return false;
+        if (!getEnumValues().equals(other.getEnumValues())) return false;
         break;
       case 6:
-        if (!getPropertyValues()
-            .equals(other.getPropertyValues())) return false;
+        if (!getPropertyValues().equals(other.getPropertyValues())) return false;
         break;
       case 7:
-        if (!getDateTimeValues()
-            .equals(other.getDateTimeValues())) return false;
+        if (!getDateTimeValues().equals(other.getDateTimeValues())) return false;
         break;
       case 8:
-        if (!getMapProperty()
-            .equals(other.getMapProperty())) return false;
+        if (!getMapProperty().equals(other.getMapProperty())) return false;
         break;
       case 9:
-        if (!getTimestampValues()
-            .equals(other.getTimestampValues())) return false;
+        if (!getTimestampValues().equals(other.getTimestampValues())) return false;
         break;
       case 0:
       default:
@@ -689,132 +790,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.contentwarehouse.v1.Property parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.contentwarehouse.v1.Property parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.Property parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.Property parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.Property parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.Property parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.Property parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.Property 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.contentwarehouse.v1.Property parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.Property parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.Property parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.Property 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.contentwarehouse.v1.Property parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.Property parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.Property prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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;
   }
   /**
+   *
+   *
    * 
    * Property of a document.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.Property} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.Property) com.google.cloud.contentwarehouse.v1.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Property.class, com.google.cloud.contentwarehouse.v1.Property.Builder.class); + com.google.cloud.contentwarehouse.v1.Property.class, + com.google.cloud.contentwarehouse.v1.Property.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.Property.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -850,9 +955,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_Property_descriptor; } @java.lang.Override @@ -871,8 +976,11 @@ public com.google.cloud.contentwarehouse.v1.Property build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.Property buildPartial() { - com.google.cloud.contentwarehouse.v1.Property result = new com.google.cloud.contentwarehouse.v1.Property(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.Property result = + new com.google.cloud.contentwarehouse.v1.Property(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -888,36 +996,28 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Property result) private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Property result) { result.valuesCase_ = valuesCase_; result.values_ = this.values_; - if (valuesCase_ == 2 && - integerValuesBuilder_ != null) { + if (valuesCase_ == 2 && integerValuesBuilder_ != null) { result.values_ = integerValuesBuilder_.build(); } - if (valuesCase_ == 3 && - floatValuesBuilder_ != null) { + if (valuesCase_ == 3 && floatValuesBuilder_ != null) { result.values_ = floatValuesBuilder_.build(); } - if (valuesCase_ == 4 && - textValuesBuilder_ != null) { + if (valuesCase_ == 4 && textValuesBuilder_ != null) { result.values_ = textValuesBuilder_.build(); } - if (valuesCase_ == 5 && - enumValuesBuilder_ != null) { + if (valuesCase_ == 5 && enumValuesBuilder_ != null) { result.values_ = enumValuesBuilder_.build(); } - if (valuesCase_ == 6 && - propertyValuesBuilder_ != null) { + if (valuesCase_ == 6 && propertyValuesBuilder_ != null) { result.values_ = propertyValuesBuilder_.build(); } - if (valuesCase_ == 7 && - dateTimeValuesBuilder_ != null) { + if (valuesCase_ == 7 && dateTimeValuesBuilder_ != null) { result.values_ = dateTimeValuesBuilder_.build(); } - if (valuesCase_ == 8 && - mapPropertyBuilder_ != null) { + if (valuesCase_ == 8 && mapPropertyBuilder_ != null) { result.values_ = mapPropertyBuilder_.build(); } - if (valuesCase_ == 9 && - timestampValuesBuilder_ != null) { + if (valuesCase_ == 9 && timestampValuesBuilder_ != null) { result.values_ = timestampValuesBuilder_.build(); } } @@ -926,38 +1026,39 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Property 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.contentwarehouse.v1.Property) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.Property)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.Property) other); } else { super.mergeFrom(other); return this; @@ -972,41 +1073,50 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Property other) { onChanged(); } switch (other.getValuesCase()) { - case INTEGER_VALUES: { - mergeIntegerValues(other.getIntegerValues()); - break; - } - case FLOAT_VALUES: { - mergeFloatValues(other.getFloatValues()); - break; - } - case TEXT_VALUES: { - mergeTextValues(other.getTextValues()); - break; - } - case ENUM_VALUES: { - mergeEnumValues(other.getEnumValues()); - break; - } - case PROPERTY_VALUES: { - mergePropertyValues(other.getPropertyValues()); - break; - } - case DATE_TIME_VALUES: { - mergeDateTimeValues(other.getDateTimeValues()); - break; - } - case MAP_PROPERTY: { - mergeMapProperty(other.getMapProperty()); - break; - } - case TIMESTAMP_VALUES: { - mergeTimestampValues(other.getTimestampValues()); - break; - } - case VALUES_NOT_SET: { - break; - } + case INTEGER_VALUES: + { + mergeIntegerValues(other.getIntegerValues()); + break; + } + case FLOAT_VALUES: + { + mergeFloatValues(other.getFloatValues()); + break; + } + case TEXT_VALUES: + { + mergeTextValues(other.getTextValues()); + break; + } + case ENUM_VALUES: + { + mergeEnumValues(other.getEnumValues()); + break; + } + case PROPERTY_VALUES: + { + mergePropertyValues(other.getPropertyValues()); + break; + } + case DATE_TIME_VALUES: + { + mergeDateTimeValues(other.getDateTimeValues()); + break; + } + case MAP_PROPERTY: + { + mergeMapProperty(other.getMapProperty()); + break; + } + case TIMESTAMP_VALUES: + { + mergeTimestampValues(other.getTimestampValues()); + break; + } + case VALUES_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1034,73 +1144,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getIntegerValuesFieldBuilder().getBuilder(), - extensionRegistry); - valuesCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getFloatValuesFieldBuilder().getBuilder(), - extensionRegistry); - valuesCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getTextValuesFieldBuilder().getBuilder(), - extensionRegistry); - valuesCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getEnumValuesFieldBuilder().getBuilder(), - extensionRegistry); - valuesCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getPropertyValuesFieldBuilder().getBuilder(), - extensionRegistry); - valuesCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getDateTimeValuesFieldBuilder().getBuilder(), - extensionRegistry); - valuesCase_ = 7; - break; - } // case 58 - case 66: { - input.readMessage( - getMapPropertyFieldBuilder().getBuilder(), - extensionRegistry); - valuesCase_ = 8; - break; - } // case 66 - case 74: { - input.readMessage( - getTimestampValuesFieldBuilder().getBuilder(), - extensionRegistry); - valuesCase_ = 9; - break; - } // case 74 - 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(getIntegerValuesFieldBuilder().getBuilder(), extensionRegistry); + valuesCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getFloatValuesFieldBuilder().getBuilder(), extensionRegistry); + valuesCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getTextValuesFieldBuilder().getBuilder(), extensionRegistry); + valuesCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getEnumValuesFieldBuilder().getBuilder(), extensionRegistry); + valuesCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getPropertyValuesFieldBuilder().getBuilder(), extensionRegistry); + valuesCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getDateTimeValuesFieldBuilder().getBuilder(), extensionRegistry); + valuesCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getMapPropertyFieldBuilder().getBuilder(), extensionRegistry); + valuesCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage(getTimestampValuesFieldBuilder().getBuilder(), extensionRegistry); + valuesCase_ = 9; + 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) { @@ -1110,12 +1214,12 @@ public Builder mergeFrom( } // finally return this; } + private int valuesCase_ = 0; private java.lang.Object values_; - public ValuesCase - getValuesCase() { - return ValuesCase.forNumber( - valuesCase_); + + public ValuesCase getValuesCase() { + return ValuesCase.forNumber(valuesCase_); } public Builder clearValues() { @@ -1129,19 +1233,21 @@ public Builder clearValues() { private java.lang.Object name_ = ""; /** + * + * *
      * Required. Must match the name of a PropertyDefinition in the
      * DocumentSchema.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -1150,21 +1256,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Must match the name of a PropertyDefinition in the
      * DocumentSchema.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -1172,30 +1279,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Must match the name of a PropertyDefinition in the
      * DocumentSchema.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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. Must match the name of a PropertyDefinition in the
      * DocumentSchema.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1205,18 +1319,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Must match the name of a PropertyDefinition in the
      * DocumentSchema.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -1225,13 +1343,19 @@ public Builder setNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IntegerArray, com.google.cloud.contentwarehouse.v1.IntegerArray.Builder, com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder> integerValuesBuilder_; + com.google.cloud.contentwarehouse.v1.IntegerArray, + com.google.cloud.contentwarehouse.v1.IntegerArray.Builder, + com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder> + integerValuesBuilder_; /** + * + * *
      * Integer property values.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; + * * @return Whether the integerValues field is set. */ @java.lang.Override @@ -1239,11 +1363,14 @@ public boolean hasIntegerValues() { return valuesCase_ == 2; } /** + * + * *
      * Integer property values.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; + * * @return The integerValues. */ @java.lang.Override @@ -1261,6 +1388,8 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray getIntegerValues() { } } /** + * + * *
      * Integer property values.
      * 
@@ -1281,6 +1410,8 @@ public Builder setIntegerValues(com.google.cloud.contentwarehouse.v1.IntegerArra return this; } /** + * + * *
      * Integer property values.
      * 
@@ -1299,6 +1430,8 @@ public Builder setIntegerValues( return this; } /** + * + * *
      * Integer property values.
      * 
@@ -1307,10 +1440,13 @@ public Builder setIntegerValues( */ public Builder mergeIntegerValues(com.google.cloud.contentwarehouse.v1.IntegerArray value) { if (integerValuesBuilder_ == null) { - if (valuesCase_ == 2 && - values_ != com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance()) { - values_ = com.google.cloud.contentwarehouse.v1.IntegerArray.newBuilder((com.google.cloud.contentwarehouse.v1.IntegerArray) values_) - .mergeFrom(value).buildPartial(); + if (valuesCase_ == 2 + && values_ != com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance()) { + values_ = + com.google.cloud.contentwarehouse.v1.IntegerArray.newBuilder( + (com.google.cloud.contentwarehouse.v1.IntegerArray) values_) + .mergeFrom(value) + .buildPartial(); } else { values_ = value; } @@ -1326,6 +1462,8 @@ public Builder mergeIntegerValues(com.google.cloud.contentwarehouse.v1.IntegerAr return this; } /** + * + * *
      * Integer property values.
      * 
@@ -1349,6 +1487,8 @@ public Builder clearIntegerValues() { return this; } /** + * + * *
      * Integer property values.
      * 
@@ -1359,6 +1499,8 @@ public com.google.cloud.contentwarehouse.v1.IntegerArray.Builder getIntegerValue return getIntegerValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Integer property values.
      * 
@@ -1377,6 +1519,8 @@ public com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder getIntegerValu } } /** + * + * *
      * Integer property values.
      * 
@@ -1384,14 +1528,19 @@ public com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder getIntegerValu * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IntegerArray, com.google.cloud.contentwarehouse.v1.IntegerArray.Builder, com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder> + com.google.cloud.contentwarehouse.v1.IntegerArray, + com.google.cloud.contentwarehouse.v1.IntegerArray.Builder, + com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder> getIntegerValuesFieldBuilder() { if (integerValuesBuilder_ == null) { if (!(valuesCase_ == 2)) { values_ = com.google.cloud.contentwarehouse.v1.IntegerArray.getDefaultInstance(); } - integerValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IntegerArray, com.google.cloud.contentwarehouse.v1.IntegerArray.Builder, com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder>( + integerValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.IntegerArray, + com.google.cloud.contentwarehouse.v1.IntegerArray.Builder, + com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder>( (com.google.cloud.contentwarehouse.v1.IntegerArray) values_, getParentForChildren(), isClean()); @@ -1403,13 +1552,19 @@ public com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder getIntegerValu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.FloatArray, com.google.cloud.contentwarehouse.v1.FloatArray.Builder, com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder> floatValuesBuilder_; + com.google.cloud.contentwarehouse.v1.FloatArray, + com.google.cloud.contentwarehouse.v1.FloatArray.Builder, + com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder> + floatValuesBuilder_; /** + * + * *
      * Float property values.
      * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; + * * @return Whether the floatValues field is set. */ @java.lang.Override @@ -1417,11 +1572,14 @@ public boolean hasFloatValues() { return valuesCase_ == 3; } /** + * + * *
      * Float property values.
      * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; + * * @return The floatValues. */ @java.lang.Override @@ -1439,6 +1597,8 @@ public com.google.cloud.contentwarehouse.v1.FloatArray getFloatValues() { } } /** + * + * *
      * Float property values.
      * 
@@ -1459,6 +1619,8 @@ public Builder setFloatValues(com.google.cloud.contentwarehouse.v1.FloatArray va return this; } /** + * + * *
      * Float property values.
      * 
@@ -1477,6 +1639,8 @@ public Builder setFloatValues( return this; } /** + * + * *
      * Float property values.
      * 
@@ -1485,10 +1649,13 @@ public Builder setFloatValues( */ public Builder mergeFloatValues(com.google.cloud.contentwarehouse.v1.FloatArray value) { if (floatValuesBuilder_ == null) { - if (valuesCase_ == 3 && - values_ != com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance()) { - values_ = com.google.cloud.contentwarehouse.v1.FloatArray.newBuilder((com.google.cloud.contentwarehouse.v1.FloatArray) values_) - .mergeFrom(value).buildPartial(); + if (valuesCase_ == 3 + && values_ != com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance()) { + values_ = + com.google.cloud.contentwarehouse.v1.FloatArray.newBuilder( + (com.google.cloud.contentwarehouse.v1.FloatArray) values_) + .mergeFrom(value) + .buildPartial(); } else { values_ = value; } @@ -1504,6 +1671,8 @@ public Builder mergeFloatValues(com.google.cloud.contentwarehouse.v1.FloatArray return this; } /** + * + * *
      * Float property values.
      * 
@@ -1527,6 +1696,8 @@ public Builder clearFloatValues() { return this; } /** + * + * *
      * Float property values.
      * 
@@ -1537,6 +1708,8 @@ public com.google.cloud.contentwarehouse.v1.FloatArray.Builder getFloatValuesBui return getFloatValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Float property values.
      * 
@@ -1555,6 +1728,8 @@ public com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder getFloatValuesOr } } /** + * + * *
      * Float property values.
      * 
@@ -1562,14 +1737,19 @@ public com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder getFloatValuesOr * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.FloatArray, com.google.cloud.contentwarehouse.v1.FloatArray.Builder, com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder> + com.google.cloud.contentwarehouse.v1.FloatArray, + com.google.cloud.contentwarehouse.v1.FloatArray.Builder, + com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder> getFloatValuesFieldBuilder() { if (floatValuesBuilder_ == null) { if (!(valuesCase_ == 3)) { values_ = com.google.cloud.contentwarehouse.v1.FloatArray.getDefaultInstance(); } - floatValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.FloatArray, com.google.cloud.contentwarehouse.v1.FloatArray.Builder, com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder>( + floatValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.FloatArray, + com.google.cloud.contentwarehouse.v1.FloatArray.Builder, + com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder>( (com.google.cloud.contentwarehouse.v1.FloatArray) values_, getParentForChildren(), isClean()); @@ -1581,13 +1761,19 @@ public com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder getFloatValuesOr } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TextArray, com.google.cloud.contentwarehouse.v1.TextArray.Builder, com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder> textValuesBuilder_; + com.google.cloud.contentwarehouse.v1.TextArray, + com.google.cloud.contentwarehouse.v1.TextArray.Builder, + com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder> + textValuesBuilder_; /** + * + * *
      * String/text property values.
      * 
* * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; + * * @return Whether the textValues field is set. */ @java.lang.Override @@ -1595,11 +1781,14 @@ public boolean hasTextValues() { return valuesCase_ == 4; } /** + * + * *
      * String/text property values.
      * 
* * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; + * * @return The textValues. */ @java.lang.Override @@ -1617,6 +1806,8 @@ public com.google.cloud.contentwarehouse.v1.TextArray getTextValues() { } } /** + * + * *
      * String/text property values.
      * 
@@ -1637,6 +1828,8 @@ public Builder setTextValues(com.google.cloud.contentwarehouse.v1.TextArray valu return this; } /** + * + * *
      * String/text property values.
      * 
@@ -1655,6 +1848,8 @@ public Builder setTextValues( return this; } /** + * + * *
      * String/text property values.
      * 
@@ -1663,10 +1858,13 @@ public Builder setTextValues( */ public Builder mergeTextValues(com.google.cloud.contentwarehouse.v1.TextArray value) { if (textValuesBuilder_ == null) { - if (valuesCase_ == 4 && - values_ != com.google.cloud.contentwarehouse.v1.TextArray.getDefaultInstance()) { - values_ = com.google.cloud.contentwarehouse.v1.TextArray.newBuilder((com.google.cloud.contentwarehouse.v1.TextArray) values_) - .mergeFrom(value).buildPartial(); + if (valuesCase_ == 4 + && values_ != com.google.cloud.contentwarehouse.v1.TextArray.getDefaultInstance()) { + values_ = + com.google.cloud.contentwarehouse.v1.TextArray.newBuilder( + (com.google.cloud.contentwarehouse.v1.TextArray) values_) + .mergeFrom(value) + .buildPartial(); } else { values_ = value; } @@ -1682,6 +1880,8 @@ public Builder mergeTextValues(com.google.cloud.contentwarehouse.v1.TextArray va return this; } /** + * + * *
      * String/text property values.
      * 
@@ -1705,6 +1905,8 @@ public Builder clearTextValues() { return this; } /** + * + * *
      * String/text property values.
      * 
@@ -1715,6 +1917,8 @@ public com.google.cloud.contentwarehouse.v1.TextArray.Builder getTextValuesBuild return getTextValuesFieldBuilder().getBuilder(); } /** + * + * *
      * String/text property values.
      * 
@@ -1733,6 +1937,8 @@ public com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder getTextValuesOrBu } } /** + * + * *
      * String/text property values.
      * 
@@ -1740,14 +1946,19 @@ public com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder getTextValuesOrBu * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TextArray, com.google.cloud.contentwarehouse.v1.TextArray.Builder, com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder> + com.google.cloud.contentwarehouse.v1.TextArray, + com.google.cloud.contentwarehouse.v1.TextArray.Builder, + com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder> getTextValuesFieldBuilder() { if (textValuesBuilder_ == null) { if (!(valuesCase_ == 4)) { values_ = com.google.cloud.contentwarehouse.v1.TextArray.getDefaultInstance(); } - textValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TextArray, com.google.cloud.contentwarehouse.v1.TextArray.Builder, com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder>( + textValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.TextArray, + com.google.cloud.contentwarehouse.v1.TextArray.Builder, + com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder>( (com.google.cloud.contentwarehouse.v1.TextArray) values_, getParentForChildren(), isClean()); @@ -1759,13 +1970,19 @@ public com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder getTextValuesOrBu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumArray, com.google.cloud.contentwarehouse.v1.EnumArray.Builder, com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder> enumValuesBuilder_; + com.google.cloud.contentwarehouse.v1.EnumArray, + com.google.cloud.contentwarehouse.v1.EnumArray.Builder, + com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder> + enumValuesBuilder_; /** + * + * *
      * Enum property values.
      * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; + * * @return Whether the enumValues field is set. */ @java.lang.Override @@ -1773,11 +1990,14 @@ public boolean hasEnumValues() { return valuesCase_ == 5; } /** + * + * *
      * Enum property values.
      * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; + * * @return The enumValues. */ @java.lang.Override @@ -1795,6 +2015,8 @@ public com.google.cloud.contentwarehouse.v1.EnumArray getEnumValues() { } } /** + * + * *
      * Enum property values.
      * 
@@ -1815,6 +2037,8 @@ public Builder setEnumValues(com.google.cloud.contentwarehouse.v1.EnumArray valu return this; } /** + * + * *
      * Enum property values.
      * 
@@ -1833,6 +2057,8 @@ public Builder setEnumValues( return this; } /** + * + * *
      * Enum property values.
      * 
@@ -1841,10 +2067,13 @@ public Builder setEnumValues( */ public Builder mergeEnumValues(com.google.cloud.contentwarehouse.v1.EnumArray value) { if (enumValuesBuilder_ == null) { - if (valuesCase_ == 5 && - values_ != com.google.cloud.contentwarehouse.v1.EnumArray.getDefaultInstance()) { - values_ = com.google.cloud.contentwarehouse.v1.EnumArray.newBuilder((com.google.cloud.contentwarehouse.v1.EnumArray) values_) - .mergeFrom(value).buildPartial(); + if (valuesCase_ == 5 + && values_ != com.google.cloud.contentwarehouse.v1.EnumArray.getDefaultInstance()) { + values_ = + com.google.cloud.contentwarehouse.v1.EnumArray.newBuilder( + (com.google.cloud.contentwarehouse.v1.EnumArray) values_) + .mergeFrom(value) + .buildPartial(); } else { values_ = value; } @@ -1860,6 +2089,8 @@ public Builder mergeEnumValues(com.google.cloud.contentwarehouse.v1.EnumArray va return this; } /** + * + * *
      * Enum property values.
      * 
@@ -1883,6 +2114,8 @@ public Builder clearEnumValues() { return this; } /** + * + * *
      * Enum property values.
      * 
@@ -1893,6 +2126,8 @@ public com.google.cloud.contentwarehouse.v1.EnumArray.Builder getEnumValuesBuild return getEnumValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Enum property values.
      * 
@@ -1911,6 +2146,8 @@ public com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder getEnumValuesOrBu } } /** + * + * *
      * Enum property values.
      * 
@@ -1918,14 +2155,19 @@ public com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder getEnumValuesOrBu * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumArray, com.google.cloud.contentwarehouse.v1.EnumArray.Builder, com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder> + com.google.cloud.contentwarehouse.v1.EnumArray, + com.google.cloud.contentwarehouse.v1.EnumArray.Builder, + com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder> getEnumValuesFieldBuilder() { if (enumValuesBuilder_ == null) { if (!(valuesCase_ == 5)) { values_ = com.google.cloud.contentwarehouse.v1.EnumArray.getDefaultInstance(); } - enumValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumArray, com.google.cloud.contentwarehouse.v1.EnumArray.Builder, com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder>( + enumValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.EnumArray, + com.google.cloud.contentwarehouse.v1.EnumArray.Builder, + com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder>( (com.google.cloud.contentwarehouse.v1.EnumArray) values_, getParentForChildren(), isClean()); @@ -1937,13 +2179,19 @@ public com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder getEnumValuesOrBu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyArray, com.google.cloud.contentwarehouse.v1.PropertyArray.Builder, com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder> propertyValuesBuilder_; + com.google.cloud.contentwarehouse.v1.PropertyArray, + com.google.cloud.contentwarehouse.v1.PropertyArray.Builder, + com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder> + propertyValuesBuilder_; /** + * + * *
      * Nested structured data property values.
      * 
* * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; + * * @return Whether the propertyValues field is set. */ @java.lang.Override @@ -1951,11 +2199,14 @@ public boolean hasPropertyValues() { return valuesCase_ == 6; } /** + * + * *
      * Nested structured data property values.
      * 
* * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; + * * @return The propertyValues. */ @java.lang.Override @@ -1973,6 +2224,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray getPropertyValues() { } } /** + * + * *
      * Nested structured data property values.
      * 
@@ -1993,6 +2246,8 @@ public Builder setPropertyValues(com.google.cloud.contentwarehouse.v1.PropertyAr return this; } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2011,6 +2266,8 @@ public Builder setPropertyValues( return this; } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2019,10 +2276,13 @@ public Builder setPropertyValues( */ public Builder mergePropertyValues(com.google.cloud.contentwarehouse.v1.PropertyArray value) { if (propertyValuesBuilder_ == null) { - if (valuesCase_ == 6 && - values_ != com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance()) { - values_ = com.google.cloud.contentwarehouse.v1.PropertyArray.newBuilder((com.google.cloud.contentwarehouse.v1.PropertyArray) values_) - .mergeFrom(value).buildPartial(); + if (valuesCase_ == 6 + && values_ != com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance()) { + values_ = + com.google.cloud.contentwarehouse.v1.PropertyArray.newBuilder( + (com.google.cloud.contentwarehouse.v1.PropertyArray) values_) + .mergeFrom(value) + .buildPartial(); } else { values_ = value; } @@ -2038,6 +2298,8 @@ public Builder mergePropertyValues(com.google.cloud.contentwarehouse.v1.Property return this; } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2061,6 +2323,8 @@ public Builder clearPropertyValues() { return this; } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2071,6 +2335,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray.Builder getPropertyVal return getPropertyValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2078,7 +2344,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray.Builder getPropertyVal * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder getPropertyValuesOrBuilder() { + public com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder + getPropertyValuesOrBuilder() { if ((valuesCase_ == 6) && (propertyValuesBuilder_ != null)) { return propertyValuesBuilder_.getMessageOrBuilder(); } else { @@ -2089,6 +2356,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder getPropertyVa } } /** + * + * *
      * Nested structured data property values.
      * 
@@ -2096,14 +2365,19 @@ public com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder getPropertyVa * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyArray, com.google.cloud.contentwarehouse.v1.PropertyArray.Builder, com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder> + com.google.cloud.contentwarehouse.v1.PropertyArray, + com.google.cloud.contentwarehouse.v1.PropertyArray.Builder, + com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder> getPropertyValuesFieldBuilder() { if (propertyValuesBuilder_ == null) { if (!(valuesCase_ == 6)) { values_ = com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance(); } - propertyValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyArray, com.google.cloud.contentwarehouse.v1.PropertyArray.Builder, com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder>( + propertyValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.PropertyArray, + com.google.cloud.contentwarehouse.v1.PropertyArray.Builder, + com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder>( (com.google.cloud.contentwarehouse.v1.PropertyArray) values_, getParentForChildren(), isClean()); @@ -2115,14 +2389,20 @@ public com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder getPropertyVa } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DateTimeArray, com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder, com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder> dateTimeValuesBuilder_; + com.google.cloud.contentwarehouse.v1.DateTimeArray, + com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder, + com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder> + dateTimeValuesBuilder_; /** + * + * *
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
      * 
* * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7; + * * @return Whether the dateTimeValues field is set. */ @java.lang.Override @@ -2130,12 +2410,15 @@ public boolean hasDateTimeValues() { return valuesCase_ == 7; } /** + * + * *
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
      * 
* * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7; + * * @return The dateTimeValues. */ @java.lang.Override @@ -2153,6 +2436,8 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray getDateTimeValues() { } } /** + * + * *
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2174,6 +2459,8 @@ public Builder setDateTimeValues(com.google.cloud.contentwarehouse.v1.DateTimeAr
       return this;
     }
     /**
+     *
+     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2193,6 +2480,8 @@ public Builder setDateTimeValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2202,10 +2491,13 @@ public Builder setDateTimeValues(
      */
     public Builder mergeDateTimeValues(com.google.cloud.contentwarehouse.v1.DateTimeArray value) {
       if (dateTimeValuesBuilder_ == null) {
-        if (valuesCase_ == 7 &&
-            values_ != com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance()) {
-          values_ = com.google.cloud.contentwarehouse.v1.DateTimeArray.newBuilder((com.google.cloud.contentwarehouse.v1.DateTimeArray) values_)
-              .mergeFrom(value).buildPartial();
+        if (valuesCase_ == 7
+            && values_ != com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance()) {
+          values_ =
+              com.google.cloud.contentwarehouse.v1.DateTimeArray.newBuilder(
+                      (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           values_ = value;
         }
@@ -2221,6 +2513,8 @@ public Builder mergeDateTimeValues(com.google.cloud.contentwarehouse.v1.DateTime
       return this;
     }
     /**
+     *
+     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2245,6 +2539,8 @@ public Builder clearDateTimeValues() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2256,6 +2552,8 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder getDateTimeVal
       return getDateTimeValuesFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2264,7 +2562,8 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder getDateTimeVal
      * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;
      */
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder getDateTimeValuesOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder
+        getDateTimeValuesOrBuilder() {
       if ((valuesCase_ == 7) && (dateTimeValuesBuilder_ != null)) {
         return dateTimeValuesBuilder_.getMessageOrBuilder();
       } else {
@@ -2275,6 +2574,8 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder getDateTimeVa
       }
     }
     /**
+     *
+     *
      * 
      * Date time property values.
      * It is not supported by CMEK compliant deployment.
@@ -2283,14 +2584,19 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder getDateTimeVa
      * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.DateTimeArray, com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder, com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.DateTimeArray,
+            com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder,
+            com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder>
         getDateTimeValuesFieldBuilder() {
       if (dateTimeValuesBuilder_ == null) {
         if (!(valuesCase_ == 7)) {
           values_ = com.google.cloud.contentwarehouse.v1.DateTimeArray.getDefaultInstance();
         }
-        dateTimeValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.DateTimeArray, com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder, com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder>(
+        dateTimeValuesBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.DateTimeArray,
+                com.google.cloud.contentwarehouse.v1.DateTimeArray.Builder,
+                com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder>(
                 (com.google.cloud.contentwarehouse.v1.DateTimeArray) values_,
                 getParentForChildren(),
                 isClean());
@@ -2302,13 +2608,19 @@ public com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder getDateTimeVa
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.MapProperty, com.google.cloud.contentwarehouse.v1.MapProperty.Builder, com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder> mapPropertyBuilder_;
+            com.google.cloud.contentwarehouse.v1.MapProperty,
+            com.google.cloud.contentwarehouse.v1.MapProperty.Builder,
+            com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder>
+        mapPropertyBuilder_;
     /**
+     *
+     *
      * 
      * Map property values.
      * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; + * * @return Whether the mapProperty field is set. */ @java.lang.Override @@ -2316,11 +2628,14 @@ public boolean hasMapProperty() { return valuesCase_ == 8; } /** + * + * *
      * Map property values.
      * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; + * * @return The mapProperty. */ @java.lang.Override @@ -2338,6 +2653,8 @@ public com.google.cloud.contentwarehouse.v1.MapProperty getMapProperty() { } } /** + * + * *
      * Map property values.
      * 
@@ -2358,6 +2675,8 @@ public Builder setMapProperty(com.google.cloud.contentwarehouse.v1.MapProperty v return this; } /** + * + * *
      * Map property values.
      * 
@@ -2376,6 +2695,8 @@ public Builder setMapProperty( return this; } /** + * + * *
      * Map property values.
      * 
@@ -2384,10 +2705,13 @@ public Builder setMapProperty( */ public Builder mergeMapProperty(com.google.cloud.contentwarehouse.v1.MapProperty value) { if (mapPropertyBuilder_ == null) { - if (valuesCase_ == 8 && - values_ != com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance()) { - values_ = com.google.cloud.contentwarehouse.v1.MapProperty.newBuilder((com.google.cloud.contentwarehouse.v1.MapProperty) values_) - .mergeFrom(value).buildPartial(); + if (valuesCase_ == 8 + && values_ != com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance()) { + values_ = + com.google.cloud.contentwarehouse.v1.MapProperty.newBuilder( + (com.google.cloud.contentwarehouse.v1.MapProperty) values_) + .mergeFrom(value) + .buildPartial(); } else { values_ = value; } @@ -2403,6 +2727,8 @@ public Builder mergeMapProperty(com.google.cloud.contentwarehouse.v1.MapProperty return this; } /** + * + * *
      * Map property values.
      * 
@@ -2426,6 +2752,8 @@ public Builder clearMapProperty() { return this; } /** + * + * *
      * Map property values.
      * 
@@ -2436,6 +2764,8 @@ public com.google.cloud.contentwarehouse.v1.MapProperty.Builder getMapPropertyBu return getMapPropertyFieldBuilder().getBuilder(); } /** + * + * *
      * Map property values.
      * 
@@ -2454,6 +2784,8 @@ public com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder getMapPropertyO } } /** + * + * *
      * Map property values.
      * 
@@ -2461,14 +2793,19 @@ public com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder getMapPropertyO * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MapProperty, com.google.cloud.contentwarehouse.v1.MapProperty.Builder, com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder> + com.google.cloud.contentwarehouse.v1.MapProperty, + com.google.cloud.contentwarehouse.v1.MapProperty.Builder, + com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder> getMapPropertyFieldBuilder() { if (mapPropertyBuilder_ == null) { if (!(valuesCase_ == 8)) { values_ = com.google.cloud.contentwarehouse.v1.MapProperty.getDefaultInstance(); } - mapPropertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MapProperty, com.google.cloud.contentwarehouse.v1.MapProperty.Builder, com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder>( + mapPropertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.MapProperty, + com.google.cloud.contentwarehouse.v1.MapProperty.Builder, + com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder>( (com.google.cloud.contentwarehouse.v1.MapProperty) values_, getParentForChildren(), isClean()); @@ -2480,14 +2817,20 @@ public com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder getMapPropertyO } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampArray, com.google.cloud.contentwarehouse.v1.TimestampArray.Builder, com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder> timestampValuesBuilder_; + com.google.cloud.contentwarehouse.v1.TimestampArray, + com.google.cloud.contentwarehouse.v1.TimestampArray.Builder, + com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder> + timestampValuesBuilder_; /** + * + * *
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
      * 
* * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9; + * * @return Whether the timestampValues field is set. */ @java.lang.Override @@ -2495,12 +2838,15 @@ public boolean hasTimestampValues() { return valuesCase_ == 9; } /** + * + * *
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
      * 
* * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9; + * * @return The timestampValues. */ @java.lang.Override @@ -2518,6 +2864,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray getTimestampValues() } } /** + * + * *
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2539,6 +2887,8 @@ public Builder setTimestampValues(com.google.cloud.contentwarehouse.v1.Timestamp
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2558,6 +2908,8 @@ public Builder setTimestampValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2567,10 +2919,14 @@ public Builder setTimestampValues(
      */
     public Builder mergeTimestampValues(com.google.cloud.contentwarehouse.v1.TimestampArray value) {
       if (timestampValuesBuilder_ == null) {
-        if (valuesCase_ == 9 &&
-            values_ != com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance()) {
-          values_ = com.google.cloud.contentwarehouse.v1.TimestampArray.newBuilder((com.google.cloud.contentwarehouse.v1.TimestampArray) values_)
-              .mergeFrom(value).buildPartial();
+        if (valuesCase_ == 9
+            && values_
+                != com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance()) {
+          values_ =
+              com.google.cloud.contentwarehouse.v1.TimestampArray.newBuilder(
+                      (com.google.cloud.contentwarehouse.v1.TimestampArray) values_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           values_ = value;
         }
@@ -2586,6 +2942,8 @@ public Builder mergeTimestampValues(com.google.cloud.contentwarehouse.v1.Timesta
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2610,6 +2968,8 @@ public Builder clearTimestampValues() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2621,6 +2981,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray.Builder getTimestampV
       return getTimestampValuesFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2629,7 +2991,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray.Builder getTimestampV
      * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;
      */
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder getTimestampValuesOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder
+        getTimestampValuesOrBuilder() {
       if ((valuesCase_ == 9) && (timestampValuesBuilder_ != null)) {
         return timestampValuesBuilder_.getMessageOrBuilder();
       } else {
@@ -2640,6 +3003,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder getTimestamp
       }
     }
     /**
+     *
+     *
      * 
      * Timestamp property values.
      * It is not supported by CMEK compliant deployment.
@@ -2648,14 +3013,19 @@ public com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder getTimestamp
      * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.TimestampArray, com.google.cloud.contentwarehouse.v1.TimestampArray.Builder, com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.TimestampArray,
+            com.google.cloud.contentwarehouse.v1.TimestampArray.Builder,
+            com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder>
         getTimestampValuesFieldBuilder() {
       if (timestampValuesBuilder_ == null) {
         if (!(valuesCase_ == 9)) {
           values_ = com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance();
         }
-        timestampValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.TimestampArray, com.google.cloud.contentwarehouse.v1.TimestampArray.Builder, com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder>(
+        timestampValuesBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.TimestampArray,
+                com.google.cloud.contentwarehouse.v1.TimestampArray.Builder,
+                com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder>(
                 (com.google.cloud.contentwarehouse.v1.TimestampArray) values_,
                 getParentForChildren(),
                 isClean());
@@ -2665,9 +3035,9 @@ public com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder getTimestamp
       onChanged();
       return timestampValuesBuilder_;
     }
+
     @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);
     }
 
@@ -2677,12 +3047,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.Property)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.Property)
   private static final com.google.cloud.contentwarehouse.v1.Property DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.Property();
   }
@@ -2691,27 +3061,27 @@ public static com.google.cloud.contentwarehouse.v1.Property getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Property parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 Property parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2726,6 +3096,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.Property getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java
similarity index 70%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java
index aad8a9bad77f..e559d1405fc6 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArray.java
@@ -1,52 +1,74 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Property values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyArray} */ -public final class PropertyArray extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PropertyArray extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PropertyArray) PropertyArrayOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PropertyArray.newBuilder() to construct. private PropertyArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PropertyArray() { properties_ = 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 PropertyArray(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyArray.class, com.google.cloud.contentwarehouse.v1.PropertyArray.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyArray.class, + com.google.cloud.contentwarehouse.v1.PropertyArray.Builder.class); } public static final int PROPERTIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List properties_; /** + * + * *
    * List of property values.
    * 
@@ -58,6 +80,8 @@ public java.util.List getProperti return properties_; } /** + * + * *
    * List of property values.
    * 
@@ -65,11 +89,13 @@ public java.util.List getProperti * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPropertiesOrBuilderList() { return properties_; } /** + * + * *
    * List of property values.
    * 
@@ -81,6 +107,8 @@ public int getPropertiesCount() { return properties_.size(); } /** + * + * *
    * List of property values.
    * 
@@ -92,6 +120,8 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { return properties_.get(index); } /** + * + * *
    * List of property values.
    * 
@@ -99,12 +129,12 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder(int index) { return properties_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,8 +146,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < properties_.size(); i++) { output.writeMessage(1, properties_.get(i)); } @@ -131,8 +160,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, properties_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -142,15 +170,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.contentwarehouse.v1.PropertyArray)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.PropertyArray other = (com.google.cloud.contentwarehouse.v1.PropertyArray) obj; + com.google.cloud.contentwarehouse.v1.PropertyArray other = + (com.google.cloud.contentwarehouse.v1.PropertyArray) obj; - if (!getPropertiesList() - .equals(other.getPropertiesList())) return false; + if (!getPropertiesList().equals(other.getPropertiesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,131 +200,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.PropertyArray 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.contentwarehouse.v1.PropertyArray parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyArray parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyArray parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.PropertyArray 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.contentwarehouse.v1.PropertyArray parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.PropertyArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.PropertyArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Property values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyArray} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PropertyArray) com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyArray.class, com.google.cloud.contentwarehouse.v1.PropertyArray.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyArray.class, + com.google.cloud.contentwarehouse.v1.PropertyArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.PropertyArray.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,9 +344,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor; } @java.lang.Override @@ -333,14 +365,18 @@ public com.google.cloud.contentwarehouse.v1.PropertyArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyArray buildPartial() { - com.google.cloud.contentwarehouse.v1.PropertyArray result = new com.google.cloud.contentwarehouse.v1.PropertyArray(this); + com.google.cloud.contentwarehouse.v1.PropertyArray result = + new com.google.cloud.contentwarehouse.v1.PropertyArray(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.PropertyArray result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.PropertyArray result) { if (propertiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { properties_ = java.util.Collections.unmodifiableList(properties_); @@ -360,38 +396,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.PropertyArray 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.contentwarehouse.v1.PropertyArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyArray)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyArray) other); } else { super.mergeFrom(other); return this; @@ -399,7 +436,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyArray other) { - if (other == com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.PropertyArray.getDefaultInstance()) + return this; if (propertiesBuilder_ == null) { if (!other.properties_.isEmpty()) { if (properties_.isEmpty()) { @@ -418,9 +456,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyArray othe propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000001); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertiesFieldBuilder() : null; + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertiesFieldBuilder() + : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } @@ -452,25 +491,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.Property m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.Property.parser(), - extensionRegistry); - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(m); - } else { - propertiesBuilder_.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.contentwarehouse.v1.Property m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.Property.parser(), extensionRegistry); + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(m); + } else { + propertiesBuilder_.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) { @@ -480,21 +520,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List properties_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePropertiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - properties_ = new java.util.ArrayList(properties_); + properties_ = + new java.util.ArrayList(properties_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Property, com.google.cloud.contentwarehouse.v1.Property.Builder, com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> propertiesBuilder_; + com.google.cloud.contentwarehouse.v1.Property, + com.google.cloud.contentwarehouse.v1.Property.Builder, + com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> + propertiesBuilder_; /** + * + * *
      * List of property values.
      * 
@@ -509,6 +557,8 @@ public java.util.List getProperti } } /** + * + * *
      * List of property values.
      * 
@@ -523,6 +573,8 @@ public int getPropertiesCount() { } } /** + * + * *
      * List of property values.
      * 
@@ -537,14 +589,15 @@ public com.google.cloud.contentwarehouse.v1.Property getProperties(int index) { } } /** + * + * *
      * List of property values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - public Builder setProperties( - int index, com.google.cloud.contentwarehouse.v1.Property value) { + public Builder setProperties(int index, com.google.cloud.contentwarehouse.v1.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -558,6 +611,8 @@ public Builder setProperties( return this; } /** + * + * *
      * List of property values.
      * 
@@ -576,6 +631,8 @@ public Builder setProperties( return this; } /** + * + * *
      * List of property values.
      * 
@@ -596,14 +653,15 @@ public Builder addProperties(com.google.cloud.contentwarehouse.v1.Property value return this; } /** + * + * *
      * List of property values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - public Builder addProperties( - int index, com.google.cloud.contentwarehouse.v1.Property value) { + public Builder addProperties(int index, com.google.cloud.contentwarehouse.v1.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -617,6 +675,8 @@ public Builder addProperties( return this; } /** + * + * *
      * List of property values.
      * 
@@ -635,6 +695,8 @@ public Builder addProperties( return this; } /** + * + * *
      * List of property values.
      * 
@@ -653,6 +715,8 @@ public Builder addProperties( return this; } /** + * + * *
      * List of property values.
      * 
@@ -663,8 +727,7 @@ public Builder addAllProperties( java.lang.Iterable values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, properties_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); @@ -672,6 +735,8 @@ public Builder addAllProperties( return this; } /** + * + * *
      * List of property values.
      * 
@@ -689,6 +754,8 @@ public Builder clearProperties() { return this; } /** + * + * *
      * List of property values.
      * 
@@ -706,17 +773,20 @@ public Builder removeProperties(int index) { return this; } /** + * + * *
      * List of property values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - public com.google.cloud.contentwarehouse.v1.Property.Builder getPropertiesBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.Property.Builder getPropertiesBuilder(int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of property values.
      * 
@@ -726,19 +796,22 @@ public com.google.cloud.contentwarehouse.v1.Property.Builder getPropertiesBuilde public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder( int index) { if (propertiesBuilder_ == null) { - return properties_.get(index); } else { + return properties_.get(index); + } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of property values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - public java.util.List - getPropertiesOrBuilderList() { + public java.util.List + getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { @@ -746,6 +819,8 @@ public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBui } } /** + * + * *
      * List of property values.
      * 
@@ -753,49 +828,55 @@ public com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBui * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilder() { - return getPropertiesFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); + return getPropertiesFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); } /** + * + * *
      * List of property values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilder( - int index) { - return getPropertiesFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.Property.Builder addPropertiesBuilder(int index) { + return getPropertiesFieldBuilder() + .addBuilder(index, com.google.cloud.contentwarehouse.v1.Property.getDefaultInstance()); } /** + * + * *
      * List of property values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - public java.util.List - getPropertiesBuilderList() { + public java.util.List + getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Property, com.google.cloud.contentwarehouse.v1.Property.Builder, com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> + com.google.cloud.contentwarehouse.v1.Property, + com.google.cloud.contentwarehouse.v1.Property.Builder, + com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { - propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Property, com.google.cloud.contentwarehouse.v1.Property.Builder, com.google.cloud.contentwarehouse.v1.PropertyOrBuilder>( - properties_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + propertiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Property, + com.google.cloud.contentwarehouse.v1.Property.Builder, + com.google.cloud.contentwarehouse.v1.PropertyOrBuilder>( + properties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; } + @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); } @@ -805,12 +886,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.PropertyArray) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PropertyArray) private static final com.google.cloud.contentwarehouse.v1.PropertyArray DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PropertyArray(); } @@ -819,27 +900,27 @@ public static com.google.cloud.contentwarehouse.v1.PropertyArray getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PropertyArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,6 +935,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.PropertyArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java similarity index 65% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java index cd574911adf8..a34851a4e1a9 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyArrayOrBuilder.java @@ -1,22 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface PropertyArrayOrBuilder extends +public interface PropertyArrayOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PropertyArray) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of property values.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - java.util.List - getPropertiesList(); + java.util.List getPropertiesList(); /** + * + * *
    * List of property values.
    * 
@@ -25,6 +44,8 @@ public interface PropertyArrayOrBuilder extends */ com.google.cloud.contentwarehouse.v1.Property getProperties(int index); /** + * + * *
    * List of property values.
    * 
@@ -33,21 +54,24 @@ public interface PropertyArrayOrBuilder extends */ int getPropertiesCount(); /** + * + * *
    * List of property values.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - java.util.List + java.util.List getPropertiesOrBuilderList(); /** + * + * *
    * List of property values.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Property properties = 1; */ - com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.PropertyOrBuilder getPropertiesOrBuilder(int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java index d5b776ec0db8..dd49ea275e0a 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinition.java @@ -1,24 +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/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Defines the metadata for a schema property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyDefinition} */ -public final class PropertyDefinition extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PropertyDefinition extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PropertyDefinition) PropertyDefinitionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PropertyDefinition.newBuilder() to construct. private PropertyDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PropertyDefinition() { name_ = ""; displayName_ = ""; @@ -28,34 +46,38 @@ private PropertyDefinition() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PropertyDefinition(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.class, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.class, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder.class); } /** + * + * *
    * Stores the retrieval importance.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance} */ - public enum RetrievalImportance - implements com.google.protobuf.ProtocolMessageEnum { + public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No importance specified. Default medium importance.
      * 
@@ -64,6 +86,8 @@ public enum RetrievalImportance */ RETRIEVAL_IMPORTANCE_UNSPECIFIED(0), /** + * + * *
      * Highest importance.
      * 
@@ -72,6 +96,8 @@ public enum RetrievalImportance */ HIGHEST(1), /** + * + * *
      * Higher importance.
      * 
@@ -80,6 +106,8 @@ public enum RetrievalImportance */ HIGHER(2), /** + * + * *
      * High importance.
      * 
@@ -88,6 +116,8 @@ public enum RetrievalImportance */ HIGH(3), /** + * + * *
      * Medium importance.
      * 
@@ -96,6 +126,8 @@ public enum RetrievalImportance */ MEDIUM(4), /** + * + * *
      * Low importance (negative).
      * 
@@ -104,6 +136,8 @@ public enum RetrievalImportance */ LOW(5), /** + * + * *
      * Lowest importance (negative).
      * 
@@ -115,6 +149,8 @@ public enum RetrievalImportance ; /** + * + * *
      * No importance specified. Default medium importance.
      * 
@@ -123,6 +159,8 @@ public enum RetrievalImportance */ public static final int RETRIEVAL_IMPORTANCE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Highest importance.
      * 
@@ -131,6 +169,8 @@ public enum RetrievalImportance */ public static final int HIGHEST_VALUE = 1; /** + * + * *
      * Higher importance.
      * 
@@ -139,6 +179,8 @@ public enum RetrievalImportance */ public static final int HIGHER_VALUE = 2; /** + * + * *
      * High importance.
      * 
@@ -147,6 +189,8 @@ public enum RetrievalImportance */ public static final int HIGH_VALUE = 3; /** + * + * *
      * Medium importance.
      * 
@@ -155,6 +199,8 @@ public enum RetrievalImportance */ public static final int MEDIUM_VALUE = 4; /** + * + * *
      * Low importance (negative).
      * 
@@ -163,6 +209,8 @@ public enum RetrievalImportance */ public static final int LOW_VALUE = 5; /** + * + * *
      * Lowest importance (negative).
      * 
@@ -171,7 +219,6 @@ public enum RetrievalImportance */ public static final int LOWEST_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -196,14 +243,22 @@ public static RetrievalImportance valueOf(int value) { */ public static RetrievalImportance forNumber(int value) { switch (value) { - case 0: return RETRIEVAL_IMPORTANCE_UNSPECIFIED; - case 1: return HIGHEST; - case 2: return HIGHER; - case 3: return HIGH; - case 4: return MEDIUM; - case 5: return LOW; - case 6: return LOWEST; - default: return null; + case 0: + return RETRIEVAL_IMPORTANCE_UNSPECIFIED; + case 1: + return HIGHEST; + case 2: + return HIGHER; + case 3: + return HIGH; + case 4: + return MEDIUM; + case 5: + return LOW; + case 6: + return LOWEST; + default: + return null; } } @@ -211,29 +266,31 @@ public static RetrievalImportance forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RetrievalImportance> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RetrievalImportance findValueByNumber(int number) { - return RetrievalImportance.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RetrievalImportance findValueByNumber(int number) { + return RetrievalImportance.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDescriptor() + .getEnumTypes() + .get(0); } private static final RetrievalImportance[] VALUES = values(); @@ -241,8 +298,7 @@ public RetrievalImportance findValueByNumber(int number) { public static RetrievalImportance 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; @@ -259,66 +315,80 @@ private RetrievalImportance(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance) } - public interface SchemaSourceOrBuilder extends + public interface SchemaSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The schema name in the source.
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * The schema name in the source.
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * The Doc AI processor type name.
      * 
* * string processor_type = 2; + * * @return The processorType. */ java.lang.String getProcessorType(); /** + * + * *
      * The Doc AI processor type name.
      * 
* * string processor_type = 2; + * * @return The bytes for processorType. */ - com.google.protobuf.ByteString - getProcessorTypeBytes(); + com.google.protobuf.ByteString getProcessorTypeBytes(); } /** + * + * *
    * The schema source information.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource} */ - public static final class SchemaSource extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SchemaSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) SchemaSourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SchemaSource.newBuilder() to construct. private SchemaSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SchemaSource() { name_ = ""; processorType_ = ""; @@ -326,33 +396,38 @@ private SchemaSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SchemaSource(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.class, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.class, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
      * The schema name in the source.
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -361,29 +436,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * The schema name in the source.
      * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -392,14 +467,18 @@ public java.lang.String getName() { } public static final int PROCESSOR_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object processorType_ = ""; /** + * + * *
      * The Doc AI processor type name.
      * 
* * string processor_type = 2; + * * @return The processorType. */ @java.lang.Override @@ -408,29 +487,29 @@ public java.lang.String getProcessorType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorType_ = s; return s; } } /** + * + * *
      * The Doc AI processor type name.
      * 
* * string processor_type = 2; + * * @return The bytes for processorType. */ @java.lang.Override - public com.google.protobuf.ByteString - getProcessorTypeBytes() { + public com.google.protobuf.ByteString getProcessorTypeBytes() { java.lang.Object ref = processorType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); processorType_ = b; return b; } else { @@ -439,6 +518,7 @@ public java.lang.String getProcessorType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -450,8 +530,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -481,17 +560,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.contentwarehouse.v1.PropertyDefinition.SchemaSource)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource other = (com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) obj; + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource other = + (com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getProcessorType() - .equals(other.getProcessorType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getProcessorType().equals(other.getProcessorType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -513,89 +591,95 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource 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.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -605,39 +689,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The schema source information.
      * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.class, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.class, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder.class); } - // Construct using com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -648,19 +735,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource + getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource build() { - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result = buildPartial(); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -669,13 +759,17 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource buil @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource buildPartial() { - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result = new com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result = + new com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -689,46 +783,53 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.PropertyDefiniti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.PropertyDefinition.SchemaSource) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource)other); + return mergeFrom( + (com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource other) { - if (other == com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource other) { + if (other + == com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -765,22 +866,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - processorType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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: + { + processorType_ = 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) { @@ -790,22 +894,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
        * The schema name in the source.
        * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -814,20 +921,21 @@ public java.lang.String getName() { } } /** + * + * *
        * The schema name in the source.
        * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -835,28 +943,35 @@ public java.lang.String getName() { } } /** + * + * *
        * The schema name in the source.
        * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The schema name in the source.
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -866,17 +981,21 @@ public Builder clearName() { return this; } /** + * + * *
        * The schema name in the source.
        * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -886,18 +1005,20 @@ public Builder setNameBytes( private java.lang.Object processorType_ = ""; /** + * + * *
        * The Doc AI processor type name.
        * 
* * string processor_type = 2; + * * @return The processorType. */ public java.lang.String getProcessorType() { java.lang.Object ref = processorType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); processorType_ = s; return s; @@ -906,20 +1027,21 @@ public java.lang.String getProcessorType() { } } /** + * + * *
        * The Doc AI processor type name.
        * 
* * string processor_type = 2; + * * @return The bytes for processorType. */ - public com.google.protobuf.ByteString - getProcessorTypeBytes() { + public com.google.protobuf.ByteString getProcessorTypeBytes() { java.lang.Object ref = processorType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); processorType_ = b; return b; } else { @@ -927,28 +1049,35 @@ public java.lang.String getProcessorType() { } } /** + * + * *
        * The Doc AI processor type name.
        * 
* * string processor_type = 2; + * * @param value The processorType to set. * @return This builder for chaining. */ - public Builder setProcessorType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProcessorType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } processorType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The Doc AI processor type name.
        * 
* * string processor_type = 2; + * * @return This builder for chaining. */ public Builder clearProcessorType() { @@ -958,23 +1087,28 @@ public Builder clearProcessorType() { return this; } /** + * + * *
        * The Doc AI processor type name.
        * 
* * string processor_type = 2; + * * @param value The bytes for processorType to set. * @return This builder for chaining. */ - public Builder setProcessorTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProcessorTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); processorType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -987,41 +1121,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) - private static final com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource(); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 SchemaSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,17 +1170,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int valueTypeOptionsCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object valueTypeOptions_; + public enum ValueTypeOptionsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INTEGER_TYPE_OPTIONS(7), FLOAT_TYPE_OPTIONS(8), @@ -1055,6 +1195,7 @@ public enum ValueTypeOptionsCase TIMESTAMP_TYPE_OPTIONS(16), VALUETYPEOPTIONS_NOT_SET(0); private final int value; + private ValueTypeOptionsCase(int value) { this.value = value; } @@ -1070,33 +1211,45 @@ public static ValueTypeOptionsCase valueOf(int value) { public static ValueTypeOptionsCase forNumber(int value) { switch (value) { - case 7: return INTEGER_TYPE_OPTIONS; - case 8: return FLOAT_TYPE_OPTIONS; - case 9: return TEXT_TYPE_OPTIONS; - case 10: return PROPERTY_TYPE_OPTIONS; - case 11: return ENUM_TYPE_OPTIONS; - case 13: return DATE_TIME_TYPE_OPTIONS; - case 15: return MAP_TYPE_OPTIONS; - case 16: return TIMESTAMP_TYPE_OPTIONS; - case 0: return VALUETYPEOPTIONS_NOT_SET; - default: return null; + case 7: + return INTEGER_TYPE_OPTIONS; + case 8: + return FLOAT_TYPE_OPTIONS; + case 9: + return TEXT_TYPE_OPTIONS; + case 10: + return PROPERTY_TYPE_OPTIONS; + case 11: + return ENUM_TYPE_OPTIONS; + case 13: + return DATE_TIME_TYPE_OPTIONS; + case 15: + return MAP_TYPE_OPTIONS; + case 16: + return TIMESTAMP_TYPE_OPTIONS; + case 0: + return VALUETYPEOPTIONS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ValueTypeOptionsCase - getValueTypeOptionsCase() { - return ValueTypeOptionsCase.forNumber( - valueTypeOptionsCase_); + public ValueTypeOptionsCase getValueTypeOptionsCase() { + return ValueTypeOptionsCase.forNumber(valueTypeOptionsCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the metadata property.
    * Must be unique within a document schema and is case insensitive.
@@ -1105,6 +1258,7 @@ public int getNumber() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -1113,14 +1267,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the metadata property.
    * Must be unique within a document schema and is case insensitive.
@@ -1129,16 +1284,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -1147,14 +1301,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * The display-name for the property, used for front-end.
    * 
* * string display_name = 12; + * * @return The displayName. */ @java.lang.Override @@ -1163,29 +1321,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 for the property, used for front-end.
    * 
* * string display_name = 12; + * * @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 { @@ -1196,11 +1354,14 @@ public java.lang.String getDisplayName() { public static final int IS_REPEATABLE_FIELD_NUMBER = 2; private boolean isRepeatable_ = false; /** + * + * *
    * Whether the property can have multiple values.
    * 
* * bool is_repeatable = 2; + * * @return The isRepeatable. */ @java.lang.Override @@ -1211,12 +1372,15 @@ public boolean getIsRepeatable() { public static final int IS_FILTERABLE_FIELD_NUMBER = 3; private boolean isFilterable_ = false; /** + * + * *
    * Whether the property can be filtered. If this is a sub-property, all the
    * parent properties must be marked filterable.
    * 
* * bool is_filterable = 3; + * * @return The isFilterable. */ @java.lang.Override @@ -1227,11 +1391,14 @@ public boolean getIsFilterable() { public static final int IS_SEARCHABLE_FIELD_NUMBER = 4; private boolean isSearchable_ = false; /** + * + * *
    * Indicates that the property should be included in a global search.
    * 
* * bool is_searchable = 4; + * * @return The isSearchable. */ @java.lang.Override @@ -1242,6 +1409,8 @@ public boolean getIsSearchable() { public static final int IS_METADATA_FIELD_NUMBER = 5; private boolean isMetadata_ = false; /** + * + * *
    * Whether the property is user supplied metadata.
    * This out-of-the box placeholder setting can be used to tag derived
@@ -1250,6 +1419,7 @@ public boolean getIsSearchable() {
    * 
* * bool is_metadata = 5; + * * @return The isMetadata. */ @java.lang.Override @@ -1260,6 +1430,8 @@ public boolean getIsMetadata() { public static final int IS_REQUIRED_FIELD_NUMBER = 14; private boolean isRequired_ = false; /** + * + * *
    * Whether the property is mandatory.
    * Default is 'false', i.e. populating property value can be skipped.
@@ -1267,6 +1439,7 @@ public boolean getIsMetadata() {
    * 
* * bool is_required = 14; + * * @return The isRequired. */ @java.lang.Override @@ -1277,36 +1450,56 @@ public boolean getIsRequired() { public static final int RETRIEVAL_IMPORTANCE_FIELD_NUMBER = 18; private int retrievalImportance_ = 0; /** + * + * *
    * The retrieval importance of the property during search.
    * 
* - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * * @return The enum numeric value on the wire for retrievalImportance. */ - @java.lang.Override public int getRetrievalImportanceValue() { + @java.lang.Override + public int getRetrievalImportanceValue() { return retrievalImportance_; } /** + * + * *
    * The retrieval importance of the property during search.
    * 
* - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * * @return The retrievalImportance. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance getRetrievalImportance() { - com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance result = com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.forNumber(retrievalImportance_); - return result == null ? com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance + getRetrievalImportance() { + com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance result = + com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.forNumber( + retrievalImportance_); + return result == null + ? com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.UNRECOGNIZED + : result; } public static final int INTEGER_TYPE_OPTIONS_FIELD_NUMBER = 7; /** + * + * *
    * Integer property.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; + * * @return Whether the integerTypeOptions field is set. */ @java.lang.Override @@ -1314,21 +1507,26 @@ public boolean hasIntegerTypeOptions() { return valueTypeOptionsCase_ == 7; } /** + * + * *
    * Integer property.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; + * * @return The integerTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getIntegerTypeOptions() { if (valueTypeOptionsCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance(); } /** + * + * *
    * Integer property.
    * 
@@ -1336,20 +1534,24 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getIntegerTypeOpt * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder getIntegerTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder + getIntegerTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance(); } public static final int FLOAT_TYPE_OPTIONS_FIELD_NUMBER = 8; /** + * + * *
    * Float property.
    * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; + * * @return Whether the floatTypeOptions field is set. */ @java.lang.Override @@ -1357,21 +1559,26 @@ public boolean hasFloatTypeOptions() { return valueTypeOptionsCase_ == 8; } /** + * + * *
    * Float property.
    * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; + * * @return The floatTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.FloatTypeOptions getFloatTypeOptions() { if (valueTypeOptionsCase_ == 8) { - return (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance(); } /** + * + * *
    * Float property.
    * 
@@ -1379,20 +1586,24 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptions getFloatTypeOptions * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder getFloatTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder + getFloatTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 8) { - return (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance(); } public static final int TEXT_TYPE_OPTIONS_FIELD_NUMBER = 9; /** + * + * *
    * Text/string property.
    * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; + * * @return Whether the textTypeOptions field is set. */ @java.lang.Override @@ -1400,21 +1611,26 @@ public boolean hasTextTypeOptions() { return valueTypeOptionsCase_ == 9; } /** + * + * *
    * Text/string property.
    * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; + * * @return The textTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions() { if (valueTypeOptionsCase_ == 9) { - return (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance(); } /** + * + * *
    * Text/string property.
    * 
@@ -1422,20 +1638,24 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions() * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder getTextTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder + getTextTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 9) { - return (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance(); } public static final int PROPERTY_TYPE_OPTIONS_FIELD_NUMBER = 10; /** + * + * *
    * Nested structured data property.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * * @return Whether the propertyTypeOptions field is set. */ @java.lang.Override @@ -1443,21 +1663,26 @@ public boolean hasPropertyTypeOptions() { return valueTypeOptionsCase_ == 10; } /** + * + * *
    * Nested structured data property.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * * @return The propertyTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getPropertyTypeOptions() { if (valueTypeOptionsCase_ == 10) { - return (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance(); } /** + * + * *
    * Nested structured data property.
    * 
@@ -1465,20 +1690,24 @@ public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getPropertyTypeO * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder getPropertyTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder + getPropertyTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 10) { - return (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance(); } public static final int ENUM_TYPE_OPTIONS_FIELD_NUMBER = 11; /** + * + * *
    * Enum/categorical property.
    * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; + * * @return Whether the enumTypeOptions field is set. */ @java.lang.Override @@ -1486,21 +1715,26 @@ public boolean hasEnumTypeOptions() { return valueTypeOptionsCase_ == 11; } /** + * + * *
    * Enum/categorical property.
    * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; + * * @return The enumTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions() { if (valueTypeOptionsCase_ == 11) { - return (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance(); } /** + * + * *
    * Enum/categorical property.
    * 
@@ -1508,21 +1742,25 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions() * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder getEnumTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder + getEnumTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 11) { - return (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance(); } public static final int DATE_TIME_TYPE_OPTIONS_FIELD_NUMBER = 13; /** + * + * *
    * Date time property.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * * @return Whether the dateTimeTypeOptions field is set. */ @java.lang.Override @@ -1530,22 +1768,27 @@ public boolean hasDateTimeTypeOptions() { return valueTypeOptionsCase_ == 13; } /** + * + * *
    * Date time property.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * * @return The dateTimeTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDateTimeTypeOptions() { if (valueTypeOptionsCase_ == 13) { - return (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance(); } /** + * + * *
    * Date time property.
    * It is not supported by CMEK compliant deployment.
@@ -1554,20 +1797,24 @@ public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDateTimeTypeO
    * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder getDateTimeTypeOptionsOrBuilder() {
+  public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder
+      getDateTimeTypeOptionsOrBuilder() {
     if (valueTypeOptionsCase_ == 13) {
-       return (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_;
+      return (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_;
     }
     return com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance();
   }
 
   public static final int MAP_TYPE_OPTIONS_FIELD_NUMBER = 15;
   /**
+   *
+   *
    * 
    * Map property.
    * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; + * * @return Whether the mapTypeOptions field is set. */ @java.lang.Override @@ -1575,21 +1822,26 @@ public boolean hasMapTypeOptions() { return valueTypeOptionsCase_ == 15; } /** + * + * *
    * Map property.
    * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; + * * @return The mapTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions() { if (valueTypeOptionsCase_ == 15) { - return (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance(); } /** + * + * *
    * Map property.
    * 
@@ -1599,19 +1851,23 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder getMapTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 15) { - return (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance(); } public static final int TIMESTAMP_TYPE_OPTIONS_FIELD_NUMBER = 16; /** + * + * *
    * Timestamp property.
    * It is not supported by CMEK compliant deployment.
    * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * + * * @return Whether the timestampTypeOptions field is set. */ @java.lang.Override @@ -1619,99 +1875,133 @@ public boolean hasTimestampTypeOptions() { return valueTypeOptionsCase_ == 16; } /** + * + * *
    * Timestamp property.
    * It is not supported by CMEK compliant deployment.
    * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * + * * @return The timestampTypeOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getTimestampTypeOptions() { if (valueTypeOptionsCase_ == 16) { - return (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance(); } /** + * + * *
    * Timestamp property.
    * It is not supported by CMEK compliant deployment.
    * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder getTimestampTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder + getTimestampTypeOptionsOrBuilder() { if (valueTypeOptionsCase_ == 16) { - return (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_; + return (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_; } return com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance(); } public static final int SCHEMA_SOURCES_FIELD_NUMBER = 19; + @SuppressWarnings("serial") - private java.util.List schemaSources_; + private java.util.List + schemaSources_; /** + * + * *
    * The mapping information between this property to another schema source.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ @java.lang.Override - public java.util.List getSchemaSourcesList() { + public java.util.List + getSchemaSourcesList() { return schemaSources_; } /** + * + * *
    * The mapping information between this property to another schema source.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> getSchemaSourcesOrBuilderList() { return schemaSources_; } /** + * + * *
    * The mapping information between this property to another schema source.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ @java.lang.Override public int getSchemaSourcesCount() { return schemaSources_.size(); } /** + * + * *
    * The mapping information between this property to another schema source.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources( + int index) { return schemaSources_.get(index); } /** + * + * *
    * The mapping information between this property to another schema source.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder getSchemaSourcesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder + getSchemaSourcesOrBuilder(int index) { return schemaSources_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1723,8 +2013,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1741,36 +2030,47 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeBool(5, isMetadata_); } if (valueTypeOptionsCase_ == 7) { - output.writeMessage(7, (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_); + output.writeMessage( + 7, (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 8) { - output.writeMessage(8, (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_); + output.writeMessage( + 8, (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 9) { - output.writeMessage(9, (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_); + output.writeMessage( + 9, (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 10) { - output.writeMessage(10, (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_); + output.writeMessage( + 10, (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 11) { - output.writeMessage(11, (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_); + output.writeMessage( + 11, (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, displayName_); } if (valueTypeOptionsCase_ == 13) { - output.writeMessage(13, (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_); + output.writeMessage( + 13, (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_); } if (isRequired_ != false) { output.writeBool(14, isRequired_); } if (valueTypeOptionsCase_ == 15) { - output.writeMessage(15, (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_); + output.writeMessage( + 15, (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 16) { - output.writeMessage(16, (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_); + output.writeMessage( + 16, (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_); } - if (retrievalImportance_ != com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.RETRIEVAL_IMPORTANCE_UNSPECIFIED.getNumber()) { + if (retrievalImportance_ + != com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance + .RETRIEVAL_IMPORTANCE_UNSPECIFIED + .getNumber()) { output.writeEnum(18, retrievalImportance_); } for (int i = 0; i < schemaSources_.size(); i++) { @@ -1789,67 +2089,71 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (isRepeatable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isRepeatable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isRepeatable_); } if (isFilterable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isFilterable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isFilterable_); } if (isSearchable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isSearchable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isSearchable_); } if (isMetadata_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isMetadata_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isMetadata_); } if (valueTypeOptionsCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, displayName_); } if (valueTypeOptionsCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_); } if (isRequired_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, isRequired_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, isRequired_); } if (valueTypeOptionsCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_); } if (valueTypeOptionsCase_ == 16) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_); } - if (retrievalImportance_ != com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.RETRIEVAL_IMPORTANCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(18, retrievalImportance_); + if (retrievalImportance_ + != com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance + .RETRIEVAL_IMPORTANCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, retrievalImportance_); } for (int i = 0; i < schemaSources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, schemaSources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, schemaSources_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1859,63 +2163,48 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.PropertyDefinition)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.PropertyDefinition other = (com.google.cloud.contentwarehouse.v1.PropertyDefinition) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (getIsRepeatable() - != other.getIsRepeatable()) return false; - if (getIsFilterable() - != other.getIsFilterable()) return false; - if (getIsSearchable() - != other.getIsSearchable()) return false; - if (getIsMetadata() - != other.getIsMetadata()) return false; - if (getIsRequired() - != other.getIsRequired()) return false; + com.google.cloud.contentwarehouse.v1.PropertyDefinition other = + (com.google.cloud.contentwarehouse.v1.PropertyDefinition) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (getIsRepeatable() != other.getIsRepeatable()) return false; + if (getIsFilterable() != other.getIsFilterable()) return false; + if (getIsSearchable() != other.getIsSearchable()) return false; + if (getIsMetadata() != other.getIsMetadata()) return false; + if (getIsRequired() != other.getIsRequired()) return false; if (retrievalImportance_ != other.retrievalImportance_) return false; - if (!getSchemaSourcesList() - .equals(other.getSchemaSourcesList())) return false; + if (!getSchemaSourcesList().equals(other.getSchemaSourcesList())) return false; if (!getValueTypeOptionsCase().equals(other.getValueTypeOptionsCase())) return false; switch (valueTypeOptionsCase_) { case 7: - if (!getIntegerTypeOptions() - .equals(other.getIntegerTypeOptions())) return false; + if (!getIntegerTypeOptions().equals(other.getIntegerTypeOptions())) return false; break; case 8: - if (!getFloatTypeOptions() - .equals(other.getFloatTypeOptions())) return false; + if (!getFloatTypeOptions().equals(other.getFloatTypeOptions())) return false; break; case 9: - if (!getTextTypeOptions() - .equals(other.getTextTypeOptions())) return false; + if (!getTextTypeOptions().equals(other.getTextTypeOptions())) return false; break; case 10: - if (!getPropertyTypeOptions() - .equals(other.getPropertyTypeOptions())) return false; + if (!getPropertyTypeOptions().equals(other.getPropertyTypeOptions())) return false; break; case 11: - if (!getEnumTypeOptions() - .equals(other.getEnumTypeOptions())) return false; + if (!getEnumTypeOptions().equals(other.getEnumTypeOptions())) return false; break; case 13: - if (!getDateTimeTypeOptions() - .equals(other.getDateTimeTypeOptions())) return false; + if (!getDateTimeTypeOptions().equals(other.getDateTimeTypeOptions())) return false; break; case 15: - if (!getMapTypeOptions() - .equals(other.getMapTypeOptions())) return false; + if (!getMapTypeOptions().equals(other.getMapTypeOptions())) return false; break; case 16: - if (!getTimestampTypeOptions() - .equals(other.getTimestampTypeOptions())) return false; + if (!getTimestampTypeOptions().equals(other.getTimestampTypeOptions())) return false; break; case 0: default: @@ -1936,20 +2225,15 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + IS_REPEATABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsRepeatable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRepeatable()); hash = (37 * hash) + IS_FILTERABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFilterable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsFilterable()); hash = (37 * hash) + IS_SEARCHABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsSearchable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsSearchable()); hash = (37 * hash) + IS_METADATA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsMetadata()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsMetadata()); hash = (37 * hash) + IS_REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsRequired()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRequired()); hash = (37 * hash) + RETRIEVAL_IMPORTANCE_FIELD_NUMBER; hash = (53 * hash) + retrievalImportance_; if (getSchemaSourcesCount() > 0) { @@ -1998,131 +2282,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.PropertyDefinition 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.contentwarehouse.v1.PropertyDefinition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.PropertyDefinition 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.contentwarehouse.v1.PropertyDefinition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.PropertyDefinition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.PropertyDefinition prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.PropertyDefinition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 metadata for a schema property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyDefinition} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PropertyDefinition) com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.class, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.class, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.PropertyDefinition.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2172,9 +2461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; } @java.lang.Override @@ -2193,15 +2482,19 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyDefinition buildPartial() { - com.google.cloud.contentwarehouse.v1.PropertyDefinition result = new com.google.cloud.contentwarehouse.v1.PropertyDefinition(this); + com.google.cloud.contentwarehouse.v1.PropertyDefinition result = + new com.google.cloud.contentwarehouse.v1.PropertyDefinition(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.PropertyDefinition result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.PropertyDefinition result) { if (schemaSourcesBuilder_ == null) { if (((bitField0_ & 0x00010000) != 0)) { schemaSources_ = java.util.Collections.unmodifiableList(schemaSources_); @@ -2241,39 +2534,32 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.PropertyDefiniti } } - private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.PropertyDefinition result) { + private void buildPartialOneofs( + com.google.cloud.contentwarehouse.v1.PropertyDefinition result) { result.valueTypeOptionsCase_ = valueTypeOptionsCase_; result.valueTypeOptions_ = this.valueTypeOptions_; - if (valueTypeOptionsCase_ == 7 && - integerTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 7 && integerTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = integerTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 8 && - floatTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 8 && floatTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = floatTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 9 && - textTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 9 && textTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = textTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 10 && - propertyTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 10 && propertyTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = propertyTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 11 && - enumTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 11 && enumTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = enumTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 13 && - dateTimeTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 13 && dateTimeTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = dateTimeTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 15 && - mapTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 15 && mapTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = mapTypeOptionsBuilder_.build(); } - if (valueTypeOptionsCase_ == 16 && - timestampTypeOptionsBuilder_ != null) { + if (valueTypeOptionsCase_ == 16 && timestampTypeOptionsBuilder_ != null) { result.valueTypeOptions_ = timestampTypeOptionsBuilder_.build(); } } @@ -2282,38 +2568,39 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.PropertyDef public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.PropertyDefinition) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyDefinition)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyDefinition) other); } else { super.mergeFrom(other); return this; @@ -2321,7 +2608,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyDefinition other) { - if (other == com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -2368,50 +2656,60 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyDefinition schemaSourcesBuilder_ = null; schemaSources_ = other.schemaSources_; bitField0_ = (bitField0_ & ~0x00010000); - schemaSourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSchemaSourcesFieldBuilder() : null; + schemaSourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSchemaSourcesFieldBuilder() + : null; } else { schemaSourcesBuilder_.addAllMessages(other.schemaSources_); } } } switch (other.getValueTypeOptionsCase()) { - case INTEGER_TYPE_OPTIONS: { - mergeIntegerTypeOptions(other.getIntegerTypeOptions()); - break; - } - case FLOAT_TYPE_OPTIONS: { - mergeFloatTypeOptions(other.getFloatTypeOptions()); - break; - } - case TEXT_TYPE_OPTIONS: { - mergeTextTypeOptions(other.getTextTypeOptions()); - break; - } - case PROPERTY_TYPE_OPTIONS: { - mergePropertyTypeOptions(other.getPropertyTypeOptions()); - break; - } - case ENUM_TYPE_OPTIONS: { - mergeEnumTypeOptions(other.getEnumTypeOptions()); - break; - } - case DATE_TIME_TYPE_OPTIONS: { - mergeDateTimeTypeOptions(other.getDateTimeTypeOptions()); - break; - } - case MAP_TYPE_OPTIONS: { - mergeMapTypeOptions(other.getMapTypeOptions()); - break; - } - case TIMESTAMP_TYPE_OPTIONS: { - mergeTimestampTypeOptions(other.getTimestampTypeOptions()); - break; - } - case VALUETYPEOPTIONS_NOT_SET: { - break; - } + case INTEGER_TYPE_OPTIONS: + { + mergeIntegerTypeOptions(other.getIntegerTypeOptions()); + break; + } + case FLOAT_TYPE_OPTIONS: + { + mergeFloatTypeOptions(other.getFloatTypeOptions()); + break; + } + case TEXT_TYPE_OPTIONS: + { + mergeTextTypeOptions(other.getTextTypeOptions()); + break; + } + case PROPERTY_TYPE_OPTIONS: + { + mergePropertyTypeOptions(other.getPropertyTypeOptions()); + break; + } + case ENUM_TYPE_OPTIONS: + { + mergeEnumTypeOptions(other.getEnumTypeOptions()); + break; + } + case DATE_TIME_TYPE_OPTIONS: + { + mergeDateTimeTypeOptions(other.getDateTimeTypeOptions()); + break; + } + case MAP_TYPE_OPTIONS: + { + mergeMapTypeOptions(other.getMapTypeOptions()); + break; + } + case TIMESTAMP_TYPE_OPTIONS: + { + mergeTimestampTypeOptions(other.getTimestampTypeOptions()); + break; + } + case VALUETYPEOPTIONS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2439,121 +2737,129 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - isRepeatable_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 24: { - isFilterable_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 32: { - isSearchable_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 40: { - isMetadata_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 58: { - input.readMessage( - getIntegerTypeOptionsFieldBuilder().getBuilder(), - extensionRegistry); - valueTypeOptionsCase_ = 7; - break; - } // case 58 - case 66: { - input.readMessage( - getFloatTypeOptionsFieldBuilder().getBuilder(), - extensionRegistry); - valueTypeOptionsCase_ = 8; - break; - } // case 66 - case 74: { - input.readMessage( - getTextTypeOptionsFieldBuilder().getBuilder(), - extensionRegistry); - valueTypeOptionsCase_ = 9; - break; - } // case 74 - case 82: { - input.readMessage( - getPropertyTypeOptionsFieldBuilder().getBuilder(), - extensionRegistry); - valueTypeOptionsCase_ = 10; - break; - } // case 82 - case 90: { - input.readMessage( - getEnumTypeOptionsFieldBuilder().getBuilder(), - extensionRegistry); - valueTypeOptionsCase_ = 11; - break; - } // case 90 - case 98: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 98 - case 106: { - input.readMessage( - getDateTimeTypeOptionsFieldBuilder().getBuilder(), - extensionRegistry); - valueTypeOptionsCase_ = 13; - break; - } // case 106 - case 112: { - isRequired_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 112 - case 122: { - input.readMessage( - getMapTypeOptionsFieldBuilder().getBuilder(), - extensionRegistry); - valueTypeOptionsCase_ = 15; - break; - } // case 122 - case 130: { - input.readMessage( - getTimestampTypeOptionsFieldBuilder().getBuilder(), - extensionRegistry); - valueTypeOptionsCase_ = 16; - break; - } // case 130 - case 144: { - retrievalImportance_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 144 - case 154: { - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.parser(), - extensionRegistry); - if (schemaSourcesBuilder_ == null) { - ensureSchemaSourcesIsMutable(); - schemaSources_.add(m); - } else { - schemaSourcesBuilder_.addMessage(m); - } - break; - } // case 154 - 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: + { + isRepeatable_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 24: + { + isFilterable_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 32: + { + isSearchable_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 40: + { + isMetadata_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 58: + { + input.readMessage( + getIntegerTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); + valueTypeOptionsCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + getFloatTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); + valueTypeOptionsCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage(getTextTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); + valueTypeOptionsCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + getPropertyTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); + valueTypeOptionsCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage(getEnumTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); + valueTypeOptionsCase_ = 11; + break; + } // case 90 + case 98: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 98 + case 106: + { + input.readMessage( + getDateTimeTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); + valueTypeOptionsCase_ = 13; + break; + } // case 106 + case 112: + { + isRequired_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 112 + case 122: + { + input.readMessage(getMapTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); + valueTypeOptionsCase_ = 15; + break; + } // case 122 + case 130: + { + input.readMessage( + getTimestampTypeOptionsFieldBuilder().getBuilder(), extensionRegistry); + valueTypeOptionsCase_ = 16; + break; + } // case 130 + case 144: + { + retrievalImportance_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 144 + case 154: + { + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource + .parser(), + extensionRegistry); + if (schemaSourcesBuilder_ == null) { + ensureSchemaSourcesIsMutable(); + schemaSources_.add(m); + } else { + schemaSourcesBuilder_.addMessage(m); + } + break; + } // case 154 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2563,12 +2869,12 @@ public Builder mergeFrom( } // finally return this; } + private int valueTypeOptionsCase_ = 0; private java.lang.Object valueTypeOptions_; - public ValueTypeOptionsCase - getValueTypeOptionsCase() { - return ValueTypeOptionsCase.forNumber( - valueTypeOptionsCase_); + + public ValueTypeOptionsCase getValueTypeOptionsCase() { + return ValueTypeOptionsCase.forNumber(valueTypeOptionsCase_); } public Builder clearValueTypeOptions() { @@ -2582,6 +2888,8 @@ public Builder clearValueTypeOptions() { private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -2590,13 +2898,13 @@ public Builder clearValueTypeOptions() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -2605,6 +2913,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -2613,15 +2923,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -2629,6 +2938,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -2637,18 +2948,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -2657,6 +2972,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2666,6 +2982,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the metadata property.
      * Must be unique within a document schema and is case insensitive.
@@ -2674,12 +2992,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -2689,18 +3009,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The display-name for the property, used for front-end.
      * 
* * string display_name = 12; + * * @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; @@ -2709,20 +3031,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The display-name for the property, used for front-end.
      * 
* * string display_name = 12; + * * @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 { @@ -2730,28 +3053,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The display-name for the property, used for front-end.
      * 
* * string display_name = 12; + * * @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 for the property, used for front-end.
      * 
* * string display_name = 12; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2761,17 +3091,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * The display-name for the property, used for front-end.
      * 
* * string display_name = 12; + * * @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; @@ -2779,13 +3113,16 @@ public Builder setDisplayNameBytes( return this; } - private boolean isRepeatable_ ; + private boolean isRepeatable_; /** + * + * *
      * Whether the property can have multiple values.
      * 
* * bool is_repeatable = 2; + * * @return The isRepeatable. */ @java.lang.Override @@ -2793,11 +3130,14 @@ public boolean getIsRepeatable() { return isRepeatable_; } /** + * + * *
      * Whether the property can have multiple values.
      * 
* * bool is_repeatable = 2; + * * @param value The isRepeatable to set. * @return This builder for chaining. */ @@ -2809,11 +3149,14 @@ public Builder setIsRepeatable(boolean value) { return this; } /** + * + * *
      * Whether the property can have multiple values.
      * 
* * bool is_repeatable = 2; + * * @return This builder for chaining. */ public Builder clearIsRepeatable() { @@ -2823,14 +3166,17 @@ public Builder clearIsRepeatable() { return this; } - private boolean isFilterable_ ; + private boolean isFilterable_; /** + * + * *
      * Whether the property can be filtered. If this is a sub-property, all the
      * parent properties must be marked filterable.
      * 
* * bool is_filterable = 3; + * * @return The isFilterable. */ @java.lang.Override @@ -2838,12 +3184,15 @@ public boolean getIsFilterable() { return isFilterable_; } /** + * + * *
      * Whether the property can be filtered. If this is a sub-property, all the
      * parent properties must be marked filterable.
      * 
* * bool is_filterable = 3; + * * @param value The isFilterable to set. * @return This builder for chaining. */ @@ -2855,12 +3204,15 @@ public Builder setIsFilterable(boolean value) { return this; } /** + * + * *
      * Whether the property can be filtered. If this is a sub-property, all the
      * parent properties must be marked filterable.
      * 
* * bool is_filterable = 3; + * * @return This builder for chaining. */ public Builder clearIsFilterable() { @@ -2870,13 +3222,16 @@ public Builder clearIsFilterable() { return this; } - private boolean isSearchable_ ; + private boolean isSearchable_; /** + * + * *
      * Indicates that the property should be included in a global search.
      * 
* * bool is_searchable = 4; + * * @return The isSearchable. */ @java.lang.Override @@ -2884,11 +3239,14 @@ public boolean getIsSearchable() { return isSearchable_; } /** + * + * *
      * Indicates that the property should be included in a global search.
      * 
* * bool is_searchable = 4; + * * @param value The isSearchable to set. * @return This builder for chaining. */ @@ -2900,11 +3258,14 @@ public Builder setIsSearchable(boolean value) { return this; } /** + * + * *
      * Indicates that the property should be included in a global search.
      * 
* * bool is_searchable = 4; + * * @return This builder for chaining. */ public Builder clearIsSearchable() { @@ -2914,8 +3275,10 @@ public Builder clearIsSearchable() { return this; } - private boolean isMetadata_ ; + private boolean isMetadata_; /** + * + * *
      * Whether the property is user supplied metadata.
      * This out-of-the box placeholder setting can be used to tag derived
@@ -2924,6 +3287,7 @@ public Builder clearIsSearchable() {
      * 
* * bool is_metadata = 5; + * * @return The isMetadata. */ @java.lang.Override @@ -2931,6 +3295,8 @@ public boolean getIsMetadata() { return isMetadata_; } /** + * + * *
      * Whether the property is user supplied metadata.
      * This out-of-the box placeholder setting can be used to tag derived
@@ -2939,6 +3305,7 @@ public boolean getIsMetadata() {
      * 
* * bool is_metadata = 5; + * * @param value The isMetadata to set. * @return This builder for chaining. */ @@ -2950,6 +3317,8 @@ public Builder setIsMetadata(boolean value) { return this; } /** + * + * *
      * Whether the property is user supplied metadata.
      * This out-of-the box placeholder setting can be used to tag derived
@@ -2958,6 +3327,7 @@ public Builder setIsMetadata(boolean value) {
      * 
* * bool is_metadata = 5; + * * @return This builder for chaining. */ public Builder clearIsMetadata() { @@ -2967,8 +3337,10 @@ public Builder clearIsMetadata() { return this; } - private boolean isRequired_ ; + private boolean isRequired_; /** + * + * *
      * Whether the property is mandatory.
      * Default is 'false', i.e. populating property value can be skipped.
@@ -2976,6 +3348,7 @@ public Builder clearIsMetadata() {
      * 
* * bool is_required = 14; + * * @return The isRequired. */ @java.lang.Override @@ -2983,6 +3356,8 @@ public boolean getIsRequired() { return isRequired_; } /** + * + * *
      * Whether the property is mandatory.
      * Default is 'false', i.e. populating property value can be skipped.
@@ -2990,6 +3365,7 @@ public boolean getIsRequired() {
      * 
* * bool is_required = 14; + * * @param value The isRequired to set. * @return This builder for chaining. */ @@ -3001,6 +3377,8 @@ public Builder setIsRequired(boolean value) { return this; } /** + * + * *
      * Whether the property is mandatory.
      * Default is 'false', i.e. populating property value can be skipped.
@@ -3008,6 +3386,7 @@ public Builder setIsRequired(boolean value) {
      * 
* * bool is_required = 14; + * * @return This builder for chaining. */ public Builder clearIsRequired() { @@ -3019,22 +3398,33 @@ public Builder clearIsRequired() { private int retrievalImportance_ = 0; /** + * + * *
      * The retrieval importance of the property during search.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * * @return The enum numeric value on the wire for retrievalImportance. */ - @java.lang.Override public int getRetrievalImportanceValue() { + @java.lang.Override + public int getRetrievalImportanceValue() { return retrievalImportance_; } /** + * + * *
      * The retrieval importance of the property during search.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * * @param value The enum numeric value on the wire for retrievalImportance to set. * @return This builder for chaining. */ @@ -3045,28 +3435,44 @@ public Builder setRetrievalImportanceValue(int value) { return this; } /** + * + * *
      * The retrieval importance of the property during search.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * * @return The retrievalImportance. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance getRetrievalImportance() { - com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance result = com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.forNumber(retrievalImportance_); - return result == null ? com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.UNRECOGNIZED : result; + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance + getRetrievalImportance() { + com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance result = + com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.forNumber( + retrievalImportance_); + return result == null + ? com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.UNRECOGNIZED + : result; } /** + * + * *
      * The retrieval importance of the property during search.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * * @param value The retrievalImportance to set. * @return This builder for chaining. */ - public Builder setRetrievalImportance(com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance value) { + public Builder setRetrievalImportance( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance value) { if (value == null) { throw new NullPointerException(); } @@ -3076,11 +3482,16 @@ public Builder setRetrievalImportance(com.google.cloud.contentwarehouse.v1.Prope return this; } /** + * + * *
      * The retrieval importance of the property during search.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * * @return This builder for chaining. */ public Builder clearRetrievalImportance() { @@ -3091,13 +3502,19 @@ public Builder clearRetrievalImportance() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions, com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder> integerTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions, + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder> + integerTypeOptionsBuilder_; /** + * + * *
      * Integer property.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; + * * @return Whether the integerTypeOptions field is set. */ @java.lang.Override @@ -3105,11 +3522,14 @@ public boolean hasIntegerTypeOptions() { return valueTypeOptionsCase_ == 7; } /** + * + * *
      * Integer property.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; + * * @return The integerTypeOptions. */ @java.lang.Override @@ -3127,13 +3547,16 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getIntegerTypeOpt } } /** + * + * *
      * Integer property.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; */ - public Builder setIntegerTypeOptions(com.google.cloud.contentwarehouse.v1.IntegerTypeOptions value) { + public Builder setIntegerTypeOptions( + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions value) { if (integerTypeOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3147,6 +3570,8 @@ public Builder setIntegerTypeOptions(com.google.cloud.contentwarehouse.v1.Intege return this; } /** + * + * *
      * Integer property.
      * 
@@ -3165,18 +3590,25 @@ public Builder setIntegerTypeOptions( return this; } /** + * + * *
      * Integer property.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; */ - public Builder mergeIntegerTypeOptions(com.google.cloud.contentwarehouse.v1.IntegerTypeOptions value) { + public Builder mergeIntegerTypeOptions( + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions value) { if (integerTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 7 && - valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_) - .mergeFrom(value).buildPartial(); + if (valueTypeOptionsCase_ == 7 + && valueTypeOptions_ + != com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.newBuilder( + (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_) + .mergeFrom(value) + .buildPartial(); } else { valueTypeOptions_ = value; } @@ -3192,6 +3624,8 @@ public Builder mergeIntegerTypeOptions(com.google.cloud.contentwarehouse.v1.Inte return this; } /** + * + * *
      * Integer property.
      * 
@@ -3215,16 +3649,21 @@ public Builder clearIntegerTypeOptions() { return this; } /** + * + * *
      * Integer property.
      * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; */ - public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder getIntegerTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder + getIntegerTypeOptionsBuilder() { return getIntegerTypeOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Integer property.
      * 
@@ -3232,7 +3671,8 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder getIntege * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder getIntegerTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder + getIntegerTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 7) && (integerTypeOptionsBuilder_ != null)) { return integerTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -3243,6 +3683,8 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder getInteg } } /** + * + * *
      * Integer property.
      * 
@@ -3250,14 +3692,20 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder getInteg * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions, com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions, + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder> getIntegerTypeOptionsFieldBuilder() { if (integerTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 7)) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance(); + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance(); } - integerTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.IntegerTypeOptions, com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder>( + integerTypeOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions, + com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -3269,13 +3717,19 @@ public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder getInteg } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.FloatTypeOptions, com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder> floatTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.FloatTypeOptions, + com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder> + floatTypeOptionsBuilder_; /** + * + * *
      * Float property.
      * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; + * * @return Whether the floatTypeOptions field is set. */ @java.lang.Override @@ -3283,11 +3737,14 @@ public boolean hasFloatTypeOptions() { return valueTypeOptionsCase_ == 8; } /** + * + * *
      * Float property.
      * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; + * * @return The floatTypeOptions. */ @java.lang.Override @@ -3305,13 +3762,16 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptions getFloatTypeOptions } } /** + * + * *
      * Float property.
      * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; */ - public Builder setFloatTypeOptions(com.google.cloud.contentwarehouse.v1.FloatTypeOptions value) { + public Builder setFloatTypeOptions( + com.google.cloud.contentwarehouse.v1.FloatTypeOptions value) { if (floatTypeOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3325,6 +3785,8 @@ public Builder setFloatTypeOptions(com.google.cloud.contentwarehouse.v1.FloatTyp return this; } /** + * + * *
      * Float property.
      * 
@@ -3343,18 +3805,25 @@ public Builder setFloatTypeOptions( return this; } /** + * + * *
      * Float property.
      * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; */ - public Builder mergeFloatTypeOptions(com.google.cloud.contentwarehouse.v1.FloatTypeOptions value) { + public Builder mergeFloatTypeOptions( + com.google.cloud.contentwarehouse.v1.FloatTypeOptions value) { if (floatTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 8 && - valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.FloatTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_) - .mergeFrom(value).buildPartial(); + if (valueTypeOptionsCase_ == 8 + && valueTypeOptions_ + != com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.FloatTypeOptions.newBuilder( + (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_) + .mergeFrom(value) + .buildPartial(); } else { valueTypeOptions_ = value; } @@ -3370,6 +3839,8 @@ public Builder mergeFloatTypeOptions(com.google.cloud.contentwarehouse.v1.FloatT return this; } /** + * + * *
      * Float property.
      * 
@@ -3393,16 +3864,21 @@ public Builder clearFloatTypeOptions() { return this; } /** + * + * *
      * Float property.
      * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; */ - public com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder getFloatTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder + getFloatTypeOptionsBuilder() { return getFloatTypeOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Float property.
      * 
@@ -3410,7 +3886,8 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder getFloatTyp * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder getFloatTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder + getFloatTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 8) && (floatTypeOptionsBuilder_ != null)) { return floatTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -3421,6 +3898,8 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder getFloatTy } } /** + * + * *
      * Float property.
      * 
@@ -3428,14 +3907,20 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder getFloatTy * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.FloatTypeOptions, com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.FloatTypeOptions, + com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder> getFloatTypeOptionsFieldBuilder() { if (floatTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 8)) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance(); + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance(); } - floatTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.FloatTypeOptions, com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder>( + floatTypeOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.FloatTypeOptions, + com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -3447,13 +3932,19 @@ public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder getFloatTy } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TextTypeOptions, com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder> textTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.TextTypeOptions, + com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder> + textTypeOptionsBuilder_; /** + * + * *
      * Text/string property.
      * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; + * * @return Whether the textTypeOptions field is set. */ @java.lang.Override @@ -3461,11 +3952,14 @@ public boolean hasTextTypeOptions() { return valueTypeOptionsCase_ == 9; } /** + * + * *
      * Text/string property.
      * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; + * * @return The textTypeOptions. */ @java.lang.Override @@ -3483,6 +3977,8 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions() } } /** + * + * *
      * Text/string property.
      * 
@@ -3503,6 +3999,8 @@ public Builder setTextTypeOptions(com.google.cloud.contentwarehouse.v1.TextTypeO return this; } /** + * + * *
      * Text/string property.
      * 
@@ -3521,18 +4019,25 @@ public Builder setTextTypeOptions( return this; } /** + * + * *
      * Text/string property.
      * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; */ - public Builder mergeTextTypeOptions(com.google.cloud.contentwarehouse.v1.TextTypeOptions value) { + public Builder mergeTextTypeOptions( + com.google.cloud.contentwarehouse.v1.TextTypeOptions value) { if (textTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 9 && - valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.TextTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_) - .mergeFrom(value).buildPartial(); + if (valueTypeOptionsCase_ == 9 + && valueTypeOptions_ + != com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.TextTypeOptions.newBuilder( + (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_) + .mergeFrom(value) + .buildPartial(); } else { valueTypeOptions_ = value; } @@ -3548,6 +4053,8 @@ public Builder mergeTextTypeOptions(com.google.cloud.contentwarehouse.v1.TextTyp return this; } /** + * + * *
      * Text/string property.
      * 
@@ -3571,16 +4078,21 @@ public Builder clearTextTypeOptions() { return this; } /** + * + * *
      * Text/string property.
      * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; */ - public com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder getTextTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder + getTextTypeOptionsBuilder() { return getTextTypeOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Text/string property.
      * 
@@ -3588,7 +4100,8 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder getTextTypeO * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder getTextTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder + getTextTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 9) && (textTypeOptionsBuilder_ != null)) { return textTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -3599,6 +4112,8 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder getTextType } } /** + * + * *
      * Text/string property.
      * 
@@ -3606,14 +4121,20 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder getTextType * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TextTypeOptions, com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.TextTypeOptions, + com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder> getTextTypeOptionsFieldBuilder() { if (textTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 9)) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance(); + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance(); } - textTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TextTypeOptions, com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder>( + textTypeOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.TextTypeOptions, + com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -3625,13 +4146,20 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder getTextType } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions, com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder> propertyTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions, + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder> + propertyTypeOptionsBuilder_; /** + * + * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * + * * @return Whether the propertyTypeOptions field is set. */ @java.lang.Override @@ -3639,11 +4167,15 @@ public boolean hasPropertyTypeOptions() { return valueTypeOptionsCase_ == 10; } /** + * + * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * + * * @return The propertyTypeOptions. */ @java.lang.Override @@ -3661,13 +4193,17 @@ public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getPropertyTypeO } } /** + * + * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * */ - public Builder setPropertyTypeOptions(com.google.cloud.contentwarehouse.v1.PropertyTypeOptions value) { + public Builder setPropertyTypeOptions( + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions value) { if (propertyTypeOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3681,11 +4217,14 @@ public Builder setPropertyTypeOptions(com.google.cloud.contentwarehouse.v1.Prope return this; } /** + * + * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * */ public Builder setPropertyTypeOptions( com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder builderForValue) { @@ -3699,18 +4238,26 @@ public Builder setPropertyTypeOptions( return this; } /** + * + * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * */ - public Builder mergePropertyTypeOptions(com.google.cloud.contentwarehouse.v1.PropertyTypeOptions value) { + public Builder mergePropertyTypeOptions( + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions value) { if (propertyTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 10 && - valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_) - .mergeFrom(value).buildPartial(); + if (valueTypeOptionsCase_ == 10 + && valueTypeOptions_ + != com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.newBuilder( + (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_) + .mergeFrom(value) + .buildPartial(); } else { valueTypeOptions_ = value; } @@ -3726,11 +4273,14 @@ public Builder mergePropertyTypeOptions(com.google.cloud.contentwarehouse.v1.Pro return this; } /** + * + * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * */ public Builder clearPropertyTypeOptions() { if (propertyTypeOptionsBuilder_ == null) { @@ -3749,24 +4299,32 @@ public Builder clearPropertyTypeOptions() { return this; } /** + * + * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder getPropertyTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder + getPropertyTypeOptionsBuilder() { return getPropertyTypeOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder getPropertyTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder + getPropertyTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 10) && (propertyTypeOptionsBuilder_ != null)) { return propertyTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -3777,21 +4335,30 @@ public com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder getProp } } /** + * + * *
      * Nested structured data property.
      * 
* - * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions, com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions, + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder> getPropertyTypeOptionsFieldBuilder() { if (propertyTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 10)) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance(); + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance(); } - propertyTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions, com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder>( + propertyTypeOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions, + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -3803,13 +4370,19 @@ public com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder getProp } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumTypeOptions, com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder> enumTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.EnumTypeOptions, + com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder> + enumTypeOptionsBuilder_; /** + * + * *
      * Enum/categorical property.
      * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; + * * @return Whether the enumTypeOptions field is set. */ @java.lang.Override @@ -3817,11 +4390,14 @@ public boolean hasEnumTypeOptions() { return valueTypeOptionsCase_ == 11; } /** + * + * *
      * Enum/categorical property.
      * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; + * * @return The enumTypeOptions. */ @java.lang.Override @@ -3839,6 +4415,8 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions() } } /** + * + * *
      * Enum/categorical property.
      * 
@@ -3859,6 +4437,8 @@ public Builder setEnumTypeOptions(com.google.cloud.contentwarehouse.v1.EnumTypeO return this; } /** + * + * *
      * Enum/categorical property.
      * 
@@ -3877,18 +4457,25 @@ public Builder setEnumTypeOptions( return this; } /** + * + * *
      * Enum/categorical property.
      * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; */ - public Builder mergeEnumTypeOptions(com.google.cloud.contentwarehouse.v1.EnumTypeOptions value) { + public Builder mergeEnumTypeOptions( + com.google.cloud.contentwarehouse.v1.EnumTypeOptions value) { if (enumTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 11 && - valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.EnumTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_) - .mergeFrom(value).buildPartial(); + if (valueTypeOptionsCase_ == 11 + && valueTypeOptions_ + != com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.EnumTypeOptions.newBuilder( + (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_) + .mergeFrom(value) + .buildPartial(); } else { valueTypeOptions_ = value; } @@ -3904,6 +4491,8 @@ public Builder mergeEnumTypeOptions(com.google.cloud.contentwarehouse.v1.EnumTyp return this; } /** + * + * *
      * Enum/categorical property.
      * 
@@ -3927,16 +4516,21 @@ public Builder clearEnumTypeOptions() { return this; } /** + * + * *
      * Enum/categorical property.
      * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; */ - public com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder getEnumTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder + getEnumTypeOptionsBuilder() { return getEnumTypeOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Enum/categorical property.
      * 
@@ -3944,7 +4538,8 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder getEnumTypeO * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder getEnumTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder + getEnumTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 11) && (enumTypeOptionsBuilder_ != null)) { return enumTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -3955,6 +4550,8 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder getEnumType } } /** + * + * *
      * Enum/categorical property.
      * 
@@ -3962,14 +4559,20 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder getEnumType * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumTypeOptions, com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.EnumTypeOptions, + com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder> getEnumTypeOptionsFieldBuilder() { if (enumTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 11)) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance(); + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance(); } - enumTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumTypeOptions, com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder>( + enumTypeOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.EnumTypeOptions, + com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -3981,14 +4584,21 @@ public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder getEnumType } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder> dateTimeTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions, + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder> + dateTimeTypeOptionsBuilder_; /** + * + * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * + * * @return Whether the dateTimeTypeOptions field is set. */ @java.lang.Override @@ -3996,12 +4606,16 @@ public boolean hasDateTimeTypeOptions() { return valueTypeOptionsCase_ == 13; } /** + * + * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * + * * @return The dateTimeTypeOptions. */ @java.lang.Override @@ -4019,14 +4633,18 @@ public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDateTimeTypeO } } /** + * + * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * */ - public Builder setDateTimeTypeOptions(com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions value) { + public Builder setDateTimeTypeOptions( + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions value) { if (dateTimeTypeOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4040,12 +4658,15 @@ public Builder setDateTimeTypeOptions(com.google.cloud.contentwarehouse.v1.DateT return this; } /** + * + * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * */ public Builder setDateTimeTypeOptions( com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder builderForValue) { @@ -4059,19 +4680,27 @@ public Builder setDateTimeTypeOptions( return this; } /** + * + * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * */ - public Builder mergeDateTimeTypeOptions(com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions value) { + public Builder mergeDateTimeTypeOptions( + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions value) { if (dateTimeTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 13 && - valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_) - .mergeFrom(value).buildPartial(); + if (valueTypeOptionsCase_ == 13 + && valueTypeOptions_ + != com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.newBuilder( + (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_) + .mergeFrom(value) + .buildPartial(); } else { valueTypeOptions_ = value; } @@ -4087,12 +4716,15 @@ public Builder mergeDateTimeTypeOptions(com.google.cloud.contentwarehouse.v1.Dat return this; } /** + * + * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * */ public Builder clearDateTimeTypeOptions() { if (dateTimeTypeOptionsBuilder_ == null) { @@ -4111,26 +4743,34 @@ public Builder clearDateTimeTypeOptions() { return this; } /** + * + * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * */ - public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder getDateTimeTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder + getDateTimeTypeOptionsBuilder() { return getDateTimeTypeOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder getDateTimeTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder + getDateTimeTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 13) && (dateTimeTypeOptionsBuilder_ != null)) { return dateTimeTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -4141,22 +4781,31 @@ public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder getDate } } /** + * + * *
      * Date time property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions, + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder> getDateTimeTypeOptionsFieldBuilder() { if (dateTimeTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 13)) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance(); + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance(); } - dateTimeTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder>( + dateTimeTypeOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions, + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -4168,13 +4817,19 @@ public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder getDate } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MapTypeOptions, com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder> mapTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.MapTypeOptions, + com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder> + mapTypeOptionsBuilder_; /** + * + * *
      * Map property.
      * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; + * * @return Whether the mapTypeOptions field is set. */ @java.lang.Override @@ -4182,11 +4837,14 @@ public boolean hasMapTypeOptions() { return valueTypeOptionsCase_ == 15; } /** + * + * *
      * Map property.
      * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; + * * @return The mapTypeOptions. */ @java.lang.Override @@ -4204,6 +4862,8 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions() { } } /** + * + * *
      * Map property.
      * 
@@ -4224,6 +4884,8 @@ public Builder setMapTypeOptions(com.google.cloud.contentwarehouse.v1.MapTypeOpt return this; } /** + * + * *
      * Map property.
      * 
@@ -4242,6 +4904,8 @@ public Builder setMapTypeOptions( return this; } /** + * + * *
      * Map property.
      * 
@@ -4250,10 +4914,14 @@ public Builder setMapTypeOptions( */ public Builder mergeMapTypeOptions(com.google.cloud.contentwarehouse.v1.MapTypeOptions value) { if (mapTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 15 && - valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.MapTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_) - .mergeFrom(value).buildPartial(); + if (valueTypeOptionsCase_ == 15 + && valueTypeOptions_ + != com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.MapTypeOptions.newBuilder( + (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_) + .mergeFrom(value) + .buildPartial(); } else { valueTypeOptions_ = value; } @@ -4269,6 +4937,8 @@ public Builder mergeMapTypeOptions(com.google.cloud.contentwarehouse.v1.MapTypeO return this; } /** + * + * *
      * Map property.
      * 
@@ -4292,6 +4962,8 @@ public Builder clearMapTypeOptions() { return this; } /** + * + * *
      * Map property.
      * 
@@ -4302,6 +4974,8 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder getMapTypeOpt return getMapTypeOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Map property.
      * 
@@ -4309,7 +4983,8 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder getMapTypeOpt * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder getMapTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder + getMapTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 15) && (mapTypeOptionsBuilder_ != null)) { return mapTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -4320,6 +4995,8 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder getMapTypeOp } } /** + * + * *
      * Map property.
      * 
@@ -4327,14 +5004,20 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder getMapTypeOp * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MapTypeOptions, com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.MapTypeOptions, + com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder> getMapTypeOptionsFieldBuilder() { if (mapTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 15)) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance(); + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance(); } - mapTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MapTypeOptions, com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder>( + mapTypeOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.MapTypeOptions, + com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -4346,14 +5029,21 @@ public com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder getMapTypeOp } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions, com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder> timestampTypeOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions, + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder> + timestampTypeOptionsBuilder_; /** + * + * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * + * * @return Whether the timestampTypeOptions field is set. */ @java.lang.Override @@ -4361,12 +5051,16 @@ public boolean hasTimestampTypeOptions() { return valueTypeOptionsCase_ == 16; } /** + * + * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * + * * @return The timestampTypeOptions. */ @java.lang.Override @@ -4384,14 +5078,18 @@ public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getTimestampTyp } } /** + * + * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * */ - public Builder setTimestampTypeOptions(com.google.cloud.contentwarehouse.v1.TimestampTypeOptions value) { + public Builder setTimestampTypeOptions( + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions value) { if (timestampTypeOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4405,12 +5103,15 @@ public Builder setTimestampTypeOptions(com.google.cloud.contentwarehouse.v1.Time return this; } /** + * + * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * */ public Builder setTimestampTypeOptions( com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder builderForValue) { @@ -4424,19 +5125,27 @@ public Builder setTimestampTypeOptions( return this; } /** + * + * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * */ - public Builder mergeTimestampTypeOptions(com.google.cloud.contentwarehouse.v1.TimestampTypeOptions value) { + public Builder mergeTimestampTypeOptions( + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions value) { if (timestampTypeOptionsBuilder_ == null) { - if (valueTypeOptionsCase_ == 16 && - valueTypeOptions_ != com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance()) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.newBuilder((com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_) - .mergeFrom(value).buildPartial(); + if (valueTypeOptionsCase_ == 16 + && valueTypeOptions_ + != com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance()) { + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.newBuilder( + (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_) + .mergeFrom(value) + .buildPartial(); } else { valueTypeOptions_ = value; } @@ -4452,12 +5161,15 @@ public Builder mergeTimestampTypeOptions(com.google.cloud.contentwarehouse.v1.Ti return this; } /** + * + * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * */ public Builder clearTimestampTypeOptions() { if (timestampTypeOptionsBuilder_ == null) { @@ -4476,26 +5188,34 @@ public Builder clearTimestampTypeOptions() { return this; } /** + * + * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * */ - public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder getTimestampTypeOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder + getTimestampTypeOptionsBuilder() { return getTimestampTypeOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder getTimestampTypeOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder + getTimestampTypeOptionsOrBuilder() { if ((valueTypeOptionsCase_ == 16) && (timestampTypeOptionsBuilder_ != null)) { return timestampTypeOptionsBuilder_.getMessageOrBuilder(); } else { @@ -4506,22 +5226,31 @@ public com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder getTim } } /** + * + * *
      * Timestamp property.
      * It is not supported by CMEK compliant deployment.
      * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions, com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions, + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder> getTimestampTypeOptionsFieldBuilder() { if (timestampTypeOptionsBuilder_ == null) { if (!(valueTypeOptionsCase_ == 16)) { - valueTypeOptions_ = com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance(); + valueTypeOptions_ = + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance(); } - timestampTypeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions, com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder, com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder>( + timestampTypeOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions, + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder, + com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder>( (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_, getParentForChildren(), isClean()); @@ -4532,26 +5261,38 @@ public com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder getTim return timestampTypeOptionsBuilder_; } - private java.util.List schemaSources_ = - java.util.Collections.emptyList(); + private java.util.List + schemaSources_ = java.util.Collections.emptyList(); + private void ensureSchemaSourcesIsMutable() { if (!((bitField0_ & 0x00010000) != 0)) { - schemaSources_ = new java.util.ArrayList(schemaSources_); + schemaSources_ = + new java.util.ArrayList< + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource>( + schemaSources_); bitField0_ |= 0x00010000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> schemaSourcesBuilder_; + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> + schemaSourcesBuilder_; /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ - public java.util.List getSchemaSourcesList() { + public java.util.List + getSchemaSourcesList() { if (schemaSourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(schemaSources_); } else { @@ -4559,11 +5300,15 @@ public java.util.List * The mapping information between this property to another schema source. *
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ public int getSchemaSourcesCount() { if (schemaSourcesBuilder_ == null) { @@ -4573,13 +5318,18 @@ public int getSchemaSourcesCount() { } } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources( + int index) { if (schemaSourcesBuilder_ == null) { return schemaSources_.get(index); } else { @@ -4587,11 +5337,15 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getS } } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ public Builder setSchemaSources( int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource value) { @@ -4608,14 +5362,20 @@ public Builder setSchemaSources( return this; } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ public Builder setSchemaSources( - int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder + builderForValue) { if (schemaSourcesBuilder_ == null) { ensureSchemaSourcesIsMutable(); schemaSources_.set(index, builderForValue.build()); @@ -4626,13 +5386,18 @@ public Builder setSchemaSources( return this; } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ - public Builder addSchemaSources(com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource value) { + public Builder addSchemaSources( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource value) { if (schemaSourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4646,11 +5411,15 @@ public Builder addSchemaSources(com.google.cloud.contentwarehouse.v1.PropertyDef return this; } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ public Builder addSchemaSources( int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource value) { @@ -4667,14 +5436,19 @@ public Builder addSchemaSources( return this; } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ public Builder addSchemaSources( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder builderForValue) { + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder + builderForValue) { if (schemaSourcesBuilder_ == null) { ensureSchemaSourcesIsMutable(); schemaSources_.add(builderForValue.build()); @@ -4685,14 +5459,20 @@ public Builder addSchemaSources( return this; } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ public Builder addSchemaSources( - int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder + builderForValue) { if (schemaSourcesBuilder_ == null) { ensureSchemaSourcesIsMutable(); schemaSources_.add(index, builderForValue.build()); @@ -4703,18 +5483,23 @@ public Builder addSchemaSources( return this; } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ public Builder addAllSchemaSources( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource> + values) { if (schemaSourcesBuilder_ == null) { ensureSchemaSourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, schemaSources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemaSources_); onChanged(); } else { schemaSourcesBuilder_.addAllMessages(values); @@ -4722,11 +5507,15 @@ public Builder addAllSchemaSources( return this; } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ public Builder clearSchemaSources() { if (schemaSourcesBuilder_ == null) { @@ -4739,11 +5528,15 @@ public Builder clearSchemaSources() { return this; } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ public Builder removeSchemaSources(int index) { if (schemaSourcesBuilder_ == null) { @@ -4756,39 +5549,53 @@ public Builder removeSchemaSources(int index) { return this; } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder getSchemaSourcesBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder + getSchemaSourcesBuilder(int index) { return getSchemaSourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder getSchemaSourcesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder + getSchemaSourcesOrBuilder(int index) { if (schemaSourcesBuilder_ == null) { - return schemaSources_.get(index); } else { + return schemaSources_.get(index); + } else { return schemaSourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ - public java.util.List - getSchemaSourcesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> + getSchemaSourcesOrBuilderList() { if (schemaSourcesBuilder_ != null) { return schemaSourcesBuilder_.getMessageOrBuilderList(); } else { @@ -4796,45 +5603,70 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBui } } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder addSchemaSourcesBuilder() { - return getSchemaSourcesFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder + addSchemaSourcesBuilder() { + return getSchemaSourcesFieldBuilder() + .addBuilder( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource + .getDefaultInstance()); } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder addSchemaSourcesBuilder( - int index) { - return getSchemaSourcesFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder + addSchemaSourcesBuilder(int index) { + return getSchemaSourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource + .getDefaultInstance()); } /** + * + * *
      * The mapping information between this property to another schema source.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ - public java.util.List - getSchemaSourcesBuilderList() { + public java.util.List< + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder> + getSchemaSourcesBuilderList() { return getSchemaSourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> getSchemaSourcesFieldBuilder() { if (schemaSourcesBuilder_ == null) { - schemaSourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder>( + schemaSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder>( schemaSources_, ((bitField0_ & 0x00010000) != 0), getParentForChildren(), @@ -4843,9 +5675,9 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Buil } return schemaSourcesBuilder_; } + @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); } @@ -4855,12 +5687,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.PropertyDefinition) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PropertyDefinition) private static final com.google.cloud.contentwarehouse.v1.PropertyDefinition DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PropertyDefinition(); } @@ -4869,27 +5701,27 @@ public static com.google.cloud.contentwarehouse.v1.PropertyDefinition getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PropertyDefinition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4904,6 +5736,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.PropertyDefinition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java similarity index 79% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java index 47a8faf2c8ef..8cbf417ec74b 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyDefinitionOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; -public interface PropertyDefinitionOrBuilder extends +public interface PropertyDefinitionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PropertyDefinition) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the metadata property.
    * Must be unique within a document schema and is case insensitive.
@@ -16,10 +34,13 @@ public interface PropertyDefinitionOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the metadata property.
    * Must be unique within a document schema and is case insensitive.
@@ -28,63 +49,79 @@ public interface PropertyDefinitionOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The display-name for the property, used for front-end.
    * 
* * string display_name = 12; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The display-name for the property, used for front-end.
    * 
* * string display_name = 12; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Whether the property can have multiple values.
    * 
* * bool is_repeatable = 2; + * * @return The isRepeatable. */ boolean getIsRepeatable(); /** + * + * *
    * Whether the property can be filtered. If this is a sub-property, all the
    * parent properties must be marked filterable.
    * 
* * bool is_filterable = 3; + * * @return The isFilterable. */ boolean getIsFilterable(); /** + * + * *
    * Indicates that the property should be included in a global search.
    * 
* * bool is_searchable = 4; + * * @return The isSearchable. */ boolean getIsSearchable(); /** + * + * *
    * Whether the property is user supplied metadata.
    * This out-of-the box placeholder setting can be used to tag derived
@@ -93,11 +130,14 @@ public interface PropertyDefinitionOrBuilder extends
    * 
* * bool is_metadata = 5; + * * @return The isMetadata. */ boolean getIsMetadata(); /** + * + * *
    * Whether the property is mandatory.
    * Default is 'false', i.e. populating property value can be skipped.
@@ -105,48 +145,68 @@ public interface PropertyDefinitionOrBuilder extends
    * 
* * bool is_required = 14; + * * @return The isRequired. */ boolean getIsRequired(); /** + * + * *
    * The retrieval importance of the property during search.
    * 
* - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * * @return The enum numeric value on the wire for retrievalImportance. */ int getRetrievalImportanceValue(); /** + * + * *
    * The retrieval importance of the property during search.
    * 
* - * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18; + * + * * @return The retrievalImportance. */ - com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance getRetrievalImportance(); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance + getRetrievalImportance(); /** + * + * *
    * Integer property.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; + * * @return Whether the integerTypeOptions field is set. */ boolean hasIntegerTypeOptions(); /** + * + * *
    * Integer property.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7; + * * @return The integerTypeOptions. */ com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getIntegerTypeOptions(); /** + * + * *
    * Integer property.
    * 
@@ -156,24 +216,32 @@ public interface PropertyDefinitionOrBuilder extends com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder getIntegerTypeOptionsOrBuilder(); /** + * + * *
    * Float property.
    * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; + * * @return Whether the floatTypeOptions field is set. */ boolean hasFloatTypeOptions(); /** + * + * *
    * Float property.
    * 
* * .google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8; + * * @return The floatTypeOptions. */ com.google.cloud.contentwarehouse.v1.FloatTypeOptions getFloatTypeOptions(); /** + * + * *
    * Float property.
    * 
@@ -183,24 +251,32 @@ public interface PropertyDefinitionOrBuilder extends com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder getFloatTypeOptionsOrBuilder(); /** + * + * *
    * Text/string property.
    * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; + * * @return Whether the textTypeOptions field is set. */ boolean hasTextTypeOptions(); /** + * + * *
    * Text/string property.
    * 
* * .google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9; + * * @return The textTypeOptions. */ com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions(); /** + * + * *
    * Text/string property.
    * 
@@ -210,51 +286,68 @@ public interface PropertyDefinitionOrBuilder extends com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder getTextTypeOptionsOrBuilder(); /** + * + * *
    * Nested structured data property.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * * @return Whether the propertyTypeOptions field is set. */ boolean hasPropertyTypeOptions(); /** + * + * *
    * Nested structured data property.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; + * * @return The propertyTypeOptions. */ com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getPropertyTypeOptions(); /** + * + * *
    * Nested structured data property.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10; */ - com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder getPropertyTypeOptionsOrBuilder(); + com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder + getPropertyTypeOptionsOrBuilder(); /** + * + * *
    * Enum/categorical property.
    * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; + * * @return Whether the enumTypeOptions field is set. */ boolean hasEnumTypeOptions(); /** + * + * *
    * Enum/categorical property.
    * 
* * .google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11; + * * @return The enumTypeOptions. */ com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions(); /** + * + * *
    * Enum/categorical property.
    * 
@@ -264,26 +357,34 @@ public interface PropertyDefinitionOrBuilder extends com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder getEnumTypeOptionsOrBuilder(); /** + * + * *
    * Date time property.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * * @return Whether the dateTimeTypeOptions field is set. */ boolean hasDateTimeTypeOptions(); /** + * + * *
    * Date time property.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13; + * * @return The dateTimeTypeOptions. */ com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDateTimeTypeOptions(); /** + * + * *
    * Date time property.
    * It is not supported by CMEK compliant deployment.
@@ -291,27 +392,36 @@ public interface PropertyDefinitionOrBuilder extends
    *
    * .google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
    */
-  com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder getDateTimeTypeOptionsOrBuilder();
+  com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder
+      getDateTimeTypeOptionsOrBuilder();
 
   /**
+   *
+   *
    * 
    * Map property.
    * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; + * * @return Whether the mapTypeOptions field is set. */ boolean hasMapTypeOptions(); /** + * + * *
    * Map property.
    * 
* * .google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15; + * * @return The mapTypeOptions. */ com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions(); /** + * + * *
    * Map property.
    * 
@@ -321,78 +431,112 @@ public interface PropertyDefinitionOrBuilder extends com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder getMapTypeOptionsOrBuilder(); /** + * + * *
    * Timestamp property.
    * It is not supported by CMEK compliant deployment.
    * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * + * * @return Whether the timestampTypeOptions field is set. */ boolean hasTimestampTypeOptions(); /** + * + * *
    * Timestamp property.
    * It is not supported by CMEK compliant deployment.
    * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * + * * @return The timestampTypeOptions. */ com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getTimestampTypeOptions(); /** + * + * *
    * Timestamp property.
    * It is not supported by CMEK compliant deployment.
    * 
* - * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * .google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16; + * */ - com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder getTimestampTypeOptionsOrBuilder(); + com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder + getTimestampTypeOptionsOrBuilder(); /** + * + * *
    * The mapping information between this property to another schema source.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ - java.util.List + java.util.List getSchemaSourcesList(); /** + * + * *
    * The mapping information between this property to another schema source.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources(int index); /** + * + * *
    * The mapping information between this property to another schema source.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ int getSchemaSourcesCount(); /** + * + * *
    * The mapping information between this property to another schema source.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder> getSchemaSourcesOrBuilderList(); /** + * + * *
    * The mapping information between this property to another schema source.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19; + * */ - com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder getSchemaSourcesOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder + getSchemaSourcesOrBuilder(int index); - com.google.cloud.contentwarehouse.v1.PropertyDefinition.ValueTypeOptionsCase getValueTypeOptionsCase(); + com.google.cloud.contentwarehouse.v1.PropertyDefinition.ValueTypeOptionsCase + getValueTypeOptionsCase(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java similarity index 79% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java index efb6ac6adf9c..1e8006f06e8b 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilter.java @@ -1,20 +1,34 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -/** - * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyFilter} - */ -public final class PropertyFilter extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyFilter} */ +public final class PropertyFilter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PropertyFilter) PropertyFilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PropertyFilter.newBuilder() to construct. private PropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PropertyFilter() { documentSchemaName_ = ""; condition_ = ""; @@ -22,28 +36,32 @@ private PropertyFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PropertyFilter(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyFilter.class, com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyFilter.class, + com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder.class); } public static final int DOCUMENT_SCHEMA_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object documentSchemaName_ = ""; /** + * + * *
    * The Document schema name
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -52,6 +70,7 @@ protected java.lang.Object newInstance(
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The documentSchemaName. */ @java.lang.Override @@ -60,14 +79,15 @@ public java.lang.String getDocumentSchemaName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentSchemaName_ = s; return s; } } /** + * + * *
    * The Document schema name
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -76,16 +96,15 @@ public java.lang.String getDocumentSchemaName() {
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for documentSchemaName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDocumentSchemaNameBytes() { + public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { java.lang.Object ref = documentSchemaName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentSchemaName_ = b; return b; } else { @@ -94,9 +113,12 @@ public java.lang.String getDocumentSchemaName() { } public static final int CONDITION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object condition_ = ""; /** + * + * *
    * The filter condition.
    * The syntax for this expression is a subset of SQL syntax.
@@ -143,6 +165,7 @@ public java.lang.String getDocumentSchemaName() {
    * 
* * string condition = 2; + * * @return The condition. */ @java.lang.Override @@ -151,14 +174,15 @@ 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; } } /** + * + * *
    * The filter condition.
    * The syntax for this expression is a subset of SQL syntax.
@@ -205,16 +229,15 @@ public java.lang.String getCondition() {
    * 
* * string condition = 2; + * * @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 { @@ -223,6 +246,7 @@ public java.lang.String getCondition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,8 +258,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentSchemaName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentSchemaName_); } @@ -265,17 +288,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.contentwarehouse.v1.PropertyFilter)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.PropertyFilter other = (com.google.cloud.contentwarehouse.v1.PropertyFilter) obj; + com.google.cloud.contentwarehouse.v1.PropertyFilter other = + (com.google.cloud.contentwarehouse.v1.PropertyFilter) obj; - if (!getDocumentSchemaName() - .equals(other.getDocumentSchemaName())) return false; - if (!getCondition() - .equals(other.getCondition())) return false; + if (!getDocumentSchemaName().equals(other.getDocumentSchemaName())) return false; + if (!getCondition().equals(other.getCondition())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,127 +319,127 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.PropertyFilter 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.contentwarehouse.v1.PropertyFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.PropertyFilter 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.contentwarehouse.v1.PropertyFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.PropertyFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.PropertyFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyFilter} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PropertyFilter) com.google.cloud.contentwarehouse.v1.PropertyFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyFilter.class, com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyFilter.class, + com.google.cloud.contentwarehouse.v1.PropertyFilter.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.PropertyFilter.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; } @java.lang.Override @@ -449,8 +471,11 @@ public com.google.cloud.contentwarehouse.v1.PropertyFilter build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyFilter buildPartial() { - com.google.cloud.contentwarehouse.v1.PropertyFilter result = new com.google.cloud.contentwarehouse.v1.PropertyFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.PropertyFilter result = + new com.google.cloud.contentwarehouse.v1.PropertyFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -469,38 +494,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.PropertyFilter 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.contentwarehouse.v1.PropertyFilter) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyFilter)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyFilter) other); } else { super.mergeFrom(other); return this; @@ -508,7 +534,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyFilter other) { - if (other == com.google.cloud.contentwarehouse.v1.PropertyFilter.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.PropertyFilter.getDefaultInstance()) + return this; if (!other.getDocumentSchemaName().isEmpty()) { documentSchemaName_ = other.documentSchemaName_; bitField0_ |= 0x00000001; @@ -545,22 +572,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - documentSchemaName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - condition_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + documentSchemaName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + condition_ = 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) { @@ -570,10 +600,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object documentSchemaName_ = ""; /** + * + * *
      * The Document schema name
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -582,13 +615,13 @@ public Builder mergeFrom(
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The documentSchemaName. */ public java.lang.String getDocumentSchemaName() { java.lang.Object ref = documentSchemaName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentSchemaName_ = s; return s; @@ -597,6 +630,8 @@ public java.lang.String getDocumentSchemaName() { } } /** + * + * *
      * The Document schema name
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -605,15 +640,14 @@ public java.lang.String getDocumentSchemaName() {
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for documentSchemaName. */ - public com.google.protobuf.ByteString - getDocumentSchemaNameBytes() { + public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { java.lang.Object ref = documentSchemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentSchemaName_ = b; return b; } else { @@ -621,6 +655,8 @@ public java.lang.String getDocumentSchemaName() { } } /** + * + * *
      * The Document schema name
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -629,18 +665,22 @@ public java.lang.String getDocumentSchemaName() {
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The documentSchemaName to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentSchemaName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } documentSchemaName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The Document schema name
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -649,6 +689,7 @@ public Builder setDocumentSchemaName(
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearDocumentSchemaName() { @@ -658,6 +699,8 @@ public Builder clearDocumentSchemaName() { return this; } /** + * + * *
      * The Document schema name
      * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -666,12 +709,14 @@ public Builder clearDocumentSchemaName() {
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for documentSchemaName to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentSchemaNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); documentSchemaName_ = value; bitField0_ |= 0x00000001; @@ -681,6 +726,8 @@ public Builder setDocumentSchemaNameBytes( private java.lang.Object condition_ = ""; /** + * + * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -727,13 +774,13 @@ public Builder setDocumentSchemaNameBytes(
      * 
* * string condition = 2; + * * @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; @@ -742,6 +789,8 @@ public java.lang.String getCondition() { } } /** + * + * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -788,15 +837,14 @@ public java.lang.String getCondition() {
      * 
* * string condition = 2; + * * @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 { @@ -804,6 +852,8 @@ public java.lang.String getCondition() { } } /** + * + * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -850,18 +900,22 @@ public java.lang.String getCondition() {
      * 
* * string condition = 2; + * * @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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -908,6 +962,7 @@ public Builder setCondition(
      * 
* * string condition = 2; + * * @return This builder for chaining. */ public Builder clearCondition() { @@ -917,6 +972,8 @@ public Builder clearCondition() { return this; } /** + * + * *
      * The filter condition.
      * The syntax for this expression is a subset of SQL syntax.
@@ -963,21 +1020,23 @@ public Builder clearCondition() {
      * 
* * string condition = 2; + * * @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_ |= 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); } @@ -987,12 +1046,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.PropertyFilter) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PropertyFilter) private static final com.google.cloud.contentwarehouse.v1.PropertyFilter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PropertyFilter(); } @@ -1001,27 +1060,27 @@ public static com.google.cloud.contentwarehouse.v1.PropertyFilter getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1036,6 +1095,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.PropertyFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java similarity index 87% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java index 0841145e261e..8df044361130 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyFilterOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -public interface PropertyFilterOrBuilder extends +public interface PropertyFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PropertyFilter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Document schema name
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -16,10 +34,13 @@ public interface PropertyFilterOrBuilder extends
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The documentSchemaName. */ java.lang.String getDocumentSchemaName(); /** + * + * *
    * The Document schema name
    * [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name].
@@ -28,12 +49,14 @@ public interface PropertyFilterOrBuilder extends
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for documentSchemaName. */ - com.google.protobuf.ByteString - getDocumentSchemaNameBytes(); + com.google.protobuf.ByteString getDocumentSchemaNameBytes(); /** + * + * *
    * The filter condition.
    * The syntax for this expression is a subset of SQL syntax.
@@ -80,10 +103,13 @@ public interface PropertyFilterOrBuilder extends
    * 
* * string condition = 2; + * * @return The condition. */ java.lang.String getCondition(); /** + * + * *
    * The filter condition.
    * The syntax for this expression is a subset of SQL syntax.
@@ -130,8 +156,8 @@ public interface PropertyFilterOrBuilder extends
    * 
* * string condition = 2; + * * @return The bytes for condition. */ - com.google.protobuf.ByteString - getConditionBytes(); + com.google.protobuf.ByteString getConditionBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java similarity index 87% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java index a60544bbf31b..256ebcfee0a4 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface PropertyOrBuilder extends +public interface PropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.Property) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Must match the name of a PropertyDefinition in the
    * DocumentSchema.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Must match the name of a PropertyDefinition in the
    * DocumentSchema.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Integer property values.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; + * * @return Whether the integerValues field is set. */ boolean hasIntegerValues(); /** + * + * *
    * Integer property values.
    * 
* * .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2; + * * @return The integerValues. */ com.google.cloud.contentwarehouse.v1.IntegerArray getIntegerValues(); /** + * + * *
    * Integer property values.
    * 
@@ -57,24 +86,32 @@ public interface PropertyOrBuilder extends com.google.cloud.contentwarehouse.v1.IntegerArrayOrBuilder getIntegerValuesOrBuilder(); /** + * + * *
    * Float property values.
    * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; + * * @return Whether the floatValues field is set. */ boolean hasFloatValues(); /** + * + * *
    * Float property values.
    * 
* * .google.cloud.contentwarehouse.v1.FloatArray float_values = 3; + * * @return The floatValues. */ com.google.cloud.contentwarehouse.v1.FloatArray getFloatValues(); /** + * + * *
    * Float property values.
    * 
@@ -84,24 +121,32 @@ public interface PropertyOrBuilder extends com.google.cloud.contentwarehouse.v1.FloatArrayOrBuilder getFloatValuesOrBuilder(); /** + * + * *
    * String/text property values.
    * 
* * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; + * * @return Whether the textValues field is set. */ boolean hasTextValues(); /** + * + * *
    * String/text property values.
    * 
* * .google.cloud.contentwarehouse.v1.TextArray text_values = 4; + * * @return The textValues. */ com.google.cloud.contentwarehouse.v1.TextArray getTextValues(); /** + * + * *
    * String/text property values.
    * 
@@ -111,24 +156,32 @@ public interface PropertyOrBuilder extends com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder getTextValuesOrBuilder(); /** + * + * *
    * Enum property values.
    * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; + * * @return Whether the enumValues field is set. */ boolean hasEnumValues(); /** + * + * *
    * Enum property values.
    * 
* * .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5; + * * @return The enumValues. */ com.google.cloud.contentwarehouse.v1.EnumArray getEnumValues(); /** + * + * *
    * Enum property values.
    * 
@@ -138,24 +191,32 @@ public interface PropertyOrBuilder extends com.google.cloud.contentwarehouse.v1.EnumArrayOrBuilder getEnumValuesOrBuilder(); /** + * + * *
    * Nested structured data property values.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; + * * @return Whether the propertyValues field is set. */ boolean hasPropertyValues(); /** + * + * *
    * Nested structured data property values.
    * 
* * .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6; + * * @return The propertyValues. */ com.google.cloud.contentwarehouse.v1.PropertyArray getPropertyValues(); /** + * + * *
    * Nested structured data property values.
    * 
@@ -165,26 +226,34 @@ public interface PropertyOrBuilder extends com.google.cloud.contentwarehouse.v1.PropertyArrayOrBuilder getPropertyValuesOrBuilder(); /** + * + * *
    * Date time property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7; + * * @return Whether the dateTimeValues field is set. */ boolean hasDateTimeValues(); /** + * + * *
    * Date time property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7; + * * @return The dateTimeValues. */ com.google.cloud.contentwarehouse.v1.DateTimeArray getDateTimeValues(); /** + * + * *
    * Date time property values.
    * It is not supported by CMEK compliant deployment.
@@ -195,24 +264,32 @@ public interface PropertyOrBuilder extends
   com.google.cloud.contentwarehouse.v1.DateTimeArrayOrBuilder getDateTimeValuesOrBuilder();
 
   /**
+   *
+   *
    * 
    * Map property values.
    * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; + * * @return Whether the mapProperty field is set. */ boolean hasMapProperty(); /** + * + * *
    * Map property values.
    * 
* * .google.cloud.contentwarehouse.v1.MapProperty map_property = 8; + * * @return The mapProperty. */ com.google.cloud.contentwarehouse.v1.MapProperty getMapProperty(); /** + * + * *
    * Map property values.
    * 
@@ -222,26 +299,34 @@ public interface PropertyOrBuilder extends com.google.cloud.contentwarehouse.v1.MapPropertyOrBuilder getMapPropertyOrBuilder(); /** + * + * *
    * Timestamp property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9; + * * @return Whether the timestampValues field is set. */ boolean hasTimestampValues(); /** + * + * *
    * Timestamp property values.
    * It is not supported by CMEK compliant deployment.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9; + * * @return The timestampValues. */ com.google.cloud.contentwarehouse.v1.TimestampArray getTimestampValues(); /** + * + * *
    * Timestamp property values.
    * It is not supported by CMEK compliant deployment.
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java
similarity index 60%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java
index 28a67e701039..78f338d00c3f 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptions.java
@@ -1,110 +1,153 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/document_schema.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Configurations for a nested structured data property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyTypeOptions} */ -public final class PropertyTypeOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PropertyTypeOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PropertyTypeOptions) PropertyTypeOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PropertyTypeOptions.newBuilder() to construct. private PropertyTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PropertyTypeOptions() { propertyDefinitions_ = 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 PropertyTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.class, com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.class, + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder.class); } public static final int PROPERTY_DEFINITIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List propertyDefinitions_; + private java.util.List + propertyDefinitions_; /** + * + * *
    * Required. List of property definitions.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getPropertyDefinitionsList() { + public java.util.List + getPropertyDefinitionsList() { return propertyDefinitions_; } /** + * + * *
    * Required. List of property definitions.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getPropertyDefinitionsOrBuilderList() { return propertyDefinitions_; } /** + * + * *
    * Required. List of property definitions.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getPropertyDefinitionsCount() { return propertyDefinitions_.size(); } /** + * + * *
    * Required. List of property definitions.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index) { return propertyDefinitions_.get(index); } /** + * + * *
    * Required. List of property definitions.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder + getPropertyDefinitionsOrBuilder(int index) { return propertyDefinitions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,8 +159,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < propertyDefinitions_.size(); i++) { output.writeMessage(1, propertyDefinitions_.get(i)); } @@ -131,8 +173,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < propertyDefinitions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, propertyDefinitions_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, propertyDefinitions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -142,15 +184,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.contentwarehouse.v1.PropertyTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions other = (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions other = + (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) obj; - if (!getPropertyDefinitionsList() - .equals(other.getPropertyDefinitionsList())) return false; + if (!getPropertyDefinitionsList().equals(other.getPropertyDefinitionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,131 +214,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions 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.contentwarehouse.v1.PropertyTypeOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions 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.contentwarehouse.v1.PropertyTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.PropertyTypeOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Configurations for a nested structured data property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyTypeOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PropertyTypeOptions) com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.class, com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.class, + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,9 +359,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; } @java.lang.Override @@ -333,14 +380,18 @@ public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.PropertyTypeOptions result = new com.google.cloud.contentwarehouse.v1.PropertyTypeOptions(this); + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions result = + new com.google.cloud.contentwarehouse.v1.PropertyTypeOptions(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.PropertyTypeOptions result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.PropertyTypeOptions result) { if (propertyDefinitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { propertyDefinitions_ = java.util.Collections.unmodifiableList(propertyDefinitions_); @@ -360,38 +411,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.PropertyTypeOpti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.PropertyTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyTypeOptions)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) other); } else { super.mergeFrom(other); return this; @@ -399,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance()) + return this; if (propertyDefinitionsBuilder_ == null) { if (!other.propertyDefinitions_.isEmpty()) { if (propertyDefinitions_.isEmpty()) { @@ -418,9 +471,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyTypeOption propertyDefinitionsBuilder_ = null; propertyDefinitions_ = other.propertyDefinitions_; bitField0_ = (bitField0_ & ~0x00000001); - propertyDefinitionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertyDefinitionsFieldBuilder() : null; + propertyDefinitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertyDefinitionsFieldBuilder() + : null; } else { propertyDefinitionsBuilder_.addAllMessages(other.propertyDefinitions_); } @@ -452,25 +506,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.PropertyDefinition m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.parser(), - extensionRegistry); - if (propertyDefinitionsBuilder_ == null) { - ensurePropertyDefinitionsIsMutable(); - propertyDefinitions_.add(m); - } else { - propertyDefinitionsBuilder_.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.contentwarehouse.v1.PropertyDefinition m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.PropertyDefinition.parser(), + extensionRegistry); + if (propertyDefinitionsBuilder_ == null) { + ensurePropertyDefinitionsIsMutable(); + propertyDefinitions_.add(m); + } else { + propertyDefinitionsBuilder_.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) { @@ -480,28 +536,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List propertyDefinitions_ = - java.util.Collections.emptyList(); + private java.util.List + propertyDefinitions_ = java.util.Collections.emptyList(); + private void ensurePropertyDefinitionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - propertyDefinitions_ = new java.util.ArrayList(propertyDefinitions_); + propertyDefinitions_ = + new java.util.ArrayList( + propertyDefinitions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> propertyDefinitionsBuilder_; + com.google.cloud.contentwarehouse.v1.PropertyDefinition, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, + com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> + propertyDefinitionsBuilder_; /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getPropertyDefinitionsList() { + public java.util.List + getPropertyDefinitionsList() { if (propertyDefinitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(propertyDefinitions_); } else { @@ -509,11 +577,15 @@ public java.util.List g } } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getPropertyDefinitionsCount() { if (propertyDefinitionsBuilder_ == null) { @@ -523,13 +595,18 @@ public int getPropertyDefinitionsCount() { } } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions( + int index) { if (propertyDefinitionsBuilder_ == null) { return propertyDefinitions_.get(index); } else { @@ -537,11 +614,15 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefini } } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPropertyDefinitions( int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { @@ -558,14 +639,19 @@ public Builder setPropertyDefinitions( return this; } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPropertyDefinitions( - int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { if (propertyDefinitionsBuilder_ == null) { ensurePropertyDefinitionsIsMutable(); propertyDefinitions_.set(index, builderForValue.build()); @@ -576,13 +662,18 @@ public Builder setPropertyDefinitions( return this; } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addPropertyDefinitions(com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { + public Builder addPropertyDefinitions( + com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { if (propertyDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -596,11 +687,15 @@ public Builder addPropertyDefinitions(com.google.cloud.contentwarehouse.v1.Prope return this; } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addPropertyDefinitions( int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition value) { @@ -617,11 +712,15 @@ public Builder addPropertyDefinitions( return this; } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addPropertyDefinitions( com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { @@ -635,14 +734,19 @@ public Builder addPropertyDefinitions( return this; } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addPropertyDefinitions( - int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder builderForValue) { if (propertyDefinitionsBuilder_ == null) { ensurePropertyDefinitionsIsMutable(); propertyDefinitions_.add(index, builderForValue.build()); @@ -653,18 +757,22 @@ public Builder addPropertyDefinitions( return this; } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllPropertyDefinitions( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (propertyDefinitionsBuilder_ == null) { ensurePropertyDefinitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, propertyDefinitions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyDefinitions_); onChanged(); } else { propertyDefinitionsBuilder_.addAllMessages(values); @@ -672,11 +780,15 @@ public Builder addAllPropertyDefinitions( return this; } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPropertyDefinitions() { if (propertyDefinitionsBuilder_ == null) { @@ -689,11 +801,15 @@ public Builder clearPropertyDefinitions() { return this; } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removePropertyDefinitions(int index) { if (propertyDefinitionsBuilder_ == null) { @@ -706,39 +822,53 @@ public Builder removePropertyDefinitions(int index) { return this; } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder getPropertyDefinitionsBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder + getPropertyDefinitionsBuilder(int index) { return getPropertyDefinitionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder + getPropertyDefinitionsOrBuilder(int index) { if (propertyDefinitionsBuilder_ == null) { - return propertyDefinitions_.get(index); } else { + return propertyDefinitions_.get(index); + } else { return propertyDefinitionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getPropertyDefinitionsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> + getPropertyDefinitionsOrBuilderList() { if (propertyDefinitionsBuilder_ != null) { return propertyDefinitionsBuilder_.getMessageOrBuilderList(); } else { @@ -746,45 +876,65 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPrope } } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder addPropertyDefinitionsBuilder() { - return getPropertyDefinitionsFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder + addPropertyDefinitionsBuilder() { + return getPropertyDefinitionsFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder addPropertyDefinitionsBuilder( - int index) { - return getPropertyDefinitionsFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder + addPropertyDefinitionsBuilder(int index) { + return getPropertyDefinitionsFieldBuilder() + .addBuilder( + index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance()); } /** + * + * *
      * Required. List of property definitions.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getPropertyDefinitionsBuilderList() { + public java.util.List + getPropertyDefinitionsBuilderList() { return getPropertyDefinitionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> + com.google.cloud.contentwarehouse.v1.PropertyDefinition, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, + com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder> getPropertyDefinitionsFieldBuilder() { if (propertyDefinitionsBuilder_ == null) { - propertyDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.PropertyDefinition, com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder>( + propertyDefinitionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.PropertyDefinition, + com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder, + com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder>( propertyDefinitions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -793,9 +943,9 @@ public com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder addProper } return propertyDefinitionsBuilder_; } + @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); } @@ -805,12 +955,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.PropertyTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PropertyTypeOptions) private static final com.google.cloud.contentwarehouse.v1.PropertyTypeOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PropertyTypeOptions(); } @@ -819,27 +969,27 @@ public static com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PropertyTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,6 +1004,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..2040623ad3b5 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PropertyTypeOptionsOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface PropertyTypeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PropertyTypeOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. List of property definitions.
+   * 
+ * + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getPropertyDefinitionsList(); + /** + * + * + *
+   * Required. List of property definitions.
+   * 
+ * + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index); + /** + * + * + *
+   * Required. List of property definitions.
+   * 
+ * + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getPropertyDefinitionsCount(); + /** + * + * + *
+   * Required. List of property definitions.
+   * 
+ * + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getPropertyDefinitionsOrBuilderList(); + /** + * + * + *
+   * Required. List of property definitions.
+   * 
+ * + * + * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java similarity index 68% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java index 23ecd51f0ce7..2f2c7cc8563f 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishAction.java @@ -1,60 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents the action responsible for publishing messages to a Pub/Sub topic.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PublishAction} */ -public final class PublishAction extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PublishAction extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PublishAction) PublishActionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PublishAction.newBuilder() to construct. private PublishAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PublishAction() { topicId_ = ""; - messages_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + messages_ = 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 PublishAction(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PublishAction.class, com.google.cloud.contentwarehouse.v1.PublishAction.Builder.class); + com.google.cloud.contentwarehouse.v1.PublishAction.class, + com.google.cloud.contentwarehouse.v1.PublishAction.Builder.class); } public static final int TOPIC_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object topicId_ = ""; /** + * + * *
    * The topic id in the Pub/Sub service for which messages will be published
    * to.
    * 
* * string topic_id = 1; + * * @return The topicId. */ @java.lang.Override @@ -63,30 +85,30 @@ public java.lang.String getTopicId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topicId_ = s; return s; } } /** + * + * *
    * The topic id in the Pub/Sub service for which messages will be published
    * to.
    * 
* * string topic_id = 1; + * * @return The bytes for topicId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTopicIdBytes() { + public com.google.protobuf.ByteString getTopicIdBytes() { java.lang.Object ref = topicId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topicId_ = b; return b; } else { @@ -95,38 +117,47 @@ public java.lang.String getTopicId() { } public static final int MESSAGES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Messages to be published.
    * 
* * repeated string messages = 2; + * * @return A list containing the messages. */ - public com.google.protobuf.ProtocolStringList - getMessagesList() { + public com.google.protobuf.ProtocolStringList getMessagesList() { return messages_; } /** + * + * *
    * Messages to be published.
    * 
* * repeated string messages = 2; + * * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); } /** + * + * *
    * Messages to be published.
    * 
* * repeated string messages = 2; + * * @param index The index of the element to return. * @return The messages at the given index. */ @@ -134,20 +165,23 @@ public java.lang.String getMessages(int index) { return messages_.get(index); } /** + * + * *
    * Messages to be published.
    * 
* * repeated string messages = 2; + * * @param index The index of the value to return. * @return The bytes of the messages at the given index. */ - public com.google.protobuf.ByteString - getMessagesBytes(int index) { + public com.google.protobuf.ByteString getMessagesBytes(int index) { return messages_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +193,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topicId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topicId_); } @@ -195,17 +228,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.contentwarehouse.v1.PublishAction)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.PublishAction other = (com.google.cloud.contentwarehouse.v1.PublishAction) obj; + com.google.cloud.contentwarehouse.v1.PublishAction other = + (com.google.cloud.contentwarehouse.v1.PublishAction) obj; - if (!getTopicId() - .equals(other.getTopicId())) return false; - if (!getMessagesList() - .equals(other.getMessagesList())) return false; + if (!getTopicId().equals(other.getTopicId())) return false; + if (!getMessagesList().equals(other.getMessagesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,145 +261,148 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.PublishAction 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.contentwarehouse.v1.PublishAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.PublishAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.PublishAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.PublishAction 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.contentwarehouse.v1.PublishAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.PublishAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.PublishAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the action responsible for publishing messages to a Pub/Sub topic.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.PublishAction} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PublishAction) com.google.cloud.contentwarehouse.v1.PublishActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.PublishAction.class, com.google.cloud.contentwarehouse.v1.PublishAction.Builder.class); + com.google.cloud.contentwarehouse.v1.PublishAction.class, + com.google.cloud.contentwarehouse.v1.PublishAction.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.PublishAction.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; topicId_ = ""; - messages_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; } @java.lang.Override @@ -386,8 +421,11 @@ public com.google.cloud.contentwarehouse.v1.PublishAction build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.PublishAction buildPartial() { - com.google.cloud.contentwarehouse.v1.PublishAction result = new com.google.cloud.contentwarehouse.v1.PublishAction(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.PublishAction result = + new com.google.cloud.contentwarehouse.v1.PublishAction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -407,38 +445,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.PublishAction 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.contentwarehouse.v1.PublishAction) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.PublishAction)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.PublishAction) other); } else { super.mergeFrom(other); return this; @@ -446,7 +485,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PublishAction other) { - if (other == com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.PublishAction.getDefaultInstance()) + return this; if (!other.getTopicId().isEmpty()) { topicId_ = other.topicId_; bitField0_ |= 0x00000001; @@ -488,23 +528,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topicId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureMessagesIsMutable(); - messages_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + topicId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMessagesIsMutable(); + messages_.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) { @@ -514,23 +557,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object topicId_ = ""; /** + * + * *
      * The topic id in the Pub/Sub service for which messages will be published
      * to.
      * 
* * string topic_id = 1; + * * @return The topicId. */ public java.lang.String getTopicId() { java.lang.Object ref = topicId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topicId_ = s; return s; @@ -539,21 +585,22 @@ public java.lang.String getTopicId() { } } /** + * + * *
      * The topic id in the Pub/Sub service for which messages will be published
      * to.
      * 
* * string topic_id = 1; + * * @return The bytes for topicId. */ - public com.google.protobuf.ByteString - getTopicIdBytes() { + public com.google.protobuf.ByteString getTopicIdBytes() { java.lang.Object ref = topicId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topicId_ = b; return b; } else { @@ -561,30 +608,37 @@ public java.lang.String getTopicId() { } } /** + * + * *
      * The topic id in the Pub/Sub service for which messages will be published
      * to.
      * 
* * string topic_id = 1; + * * @param value The topicId to set. * @return This builder for chaining. */ - public Builder setTopicId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topicId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The topic id in the Pub/Sub service for which messages will be published
      * to.
      * 
* * string topic_id = 1; + * * @return This builder for chaining. */ public Builder clearTopicId() { @@ -594,18 +648,22 @@ public Builder clearTopicId() { return this; } /** + * + * *
      * The topic id in the Pub/Sub service for which messages will be published
      * to.
      * 
* * string topic_id = 1; + * * @param value The bytes for topicId to set. * @return This builder for chaining. */ - public Builder setTopicIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topicId_ = value; bitField0_ |= 0x00000001; @@ -615,6 +673,7 @@ public Builder setTopicIdBytes( private com.google.protobuf.LazyStringArrayList messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMessagesIsMutable() { if (!messages_.isModifiable()) { messages_ = new com.google.protobuf.LazyStringArrayList(messages_); @@ -622,35 +681,43 @@ private void ensureMessagesIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Messages to be published.
      * 
* * repeated string messages = 2; + * * @return A list containing the messages. */ - public com.google.protobuf.ProtocolStringList - getMessagesList() { + public com.google.protobuf.ProtocolStringList getMessagesList() { messages_.makeImmutable(); return messages_; } /** + * + * *
      * Messages to be published.
      * 
* * repeated string messages = 2; + * * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); } /** + * + * *
      * Messages to be published.
      * 
* * repeated string messages = 2; + * * @param index The index of the element to return. * @return The messages at the given index. */ @@ -658,31 +725,37 @@ public java.lang.String getMessages(int index) { return messages_.get(index); } /** + * + * *
      * Messages to be published.
      * 
* * repeated string messages = 2; + * * @param index The index of the value to return. * @return The bytes of the messages at the given index. */ - public com.google.protobuf.ByteString - getMessagesBytes(int index) { + public com.google.protobuf.ByteString getMessagesBytes(int index) { return messages_.getByteString(index); } /** + * + * *
      * Messages to be published.
      * 
* * repeated string messages = 2; + * * @param index The index to set the value at. * @param value The messages to set. * @return This builder for chaining. */ - public Builder setMessages( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessages(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMessagesIsMutable(); messages_.set(index, value); bitField0_ |= 0x00000002; @@ -690,17 +763,21 @@ public Builder setMessages( return this; } /** + * + * *
      * Messages to be published.
      * 
* * repeated string messages = 2; + * * @param value The messages to add. * @return This builder for chaining. */ - public Builder addMessages( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMessages(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMessagesIsMutable(); messages_.add(value); bitField0_ |= 0x00000002; @@ -708,50 +785,58 @@ public Builder addMessages( return this; } /** + * + * *
      * Messages to be published.
      * 
* * repeated string messages = 2; + * * @param values The messages to add. * @return This builder for chaining. */ - public Builder addAllMessages( - java.lang.Iterable values) { + public Builder addAllMessages(java.lang.Iterable values) { ensureMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, messages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Messages to be published.
      * 
* * repeated string messages = 2; + * * @return This builder for chaining. */ public Builder clearMessages() { - messages_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + messages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Messages to be published.
      * 
* * repeated string messages = 2; + * * @param value The bytes of the messages to add. * @return This builder for chaining. */ - public Builder addMessagesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMessagesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureMessagesIsMutable(); messages_.add(value); @@ -759,9 +844,9 @@ public Builder addMessagesBytes( 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); } @@ -771,12 +856,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.PublishAction) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PublishAction) private static final com.google.cloud.contentwarehouse.v1.PublishAction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PublishAction(); } @@ -785,27 +870,27 @@ public static com.google.cloud.contentwarehouse.v1.PublishAction getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PublishAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -820,6 +905,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.PublishAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java similarity index 63% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java index a63198e9c1e6..f49585deb8cd 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PublishActionOrBuilder.java @@ -1,72 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface PublishActionOrBuilder extends +public interface PublishActionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PublishAction) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The topic id in the Pub/Sub service for which messages will be published
    * to.
    * 
* * string topic_id = 1; + * * @return The topicId. */ java.lang.String getTopicId(); /** + * + * *
    * The topic id in the Pub/Sub service for which messages will be published
    * to.
    * 
* * string topic_id = 1; + * * @return The bytes for topicId. */ - com.google.protobuf.ByteString - getTopicIdBytes(); + com.google.protobuf.ByteString getTopicIdBytes(); /** + * + * *
    * Messages to be published.
    * 
* * repeated string messages = 2; + * * @return A list containing the messages. */ - java.util.List - getMessagesList(); + java.util.List getMessagesList(); /** + * + * *
    * Messages to be published.
    * 
* * repeated string messages = 2; + * * @return The count of messages. */ int getMessagesCount(); /** + * + * *
    * Messages to be published.
    * 
* * repeated string messages = 2; + * * @param index The index of the element to return. * @return The messages at the given index. */ java.lang.String getMessages(int index); /** + * + * *
    * Messages to be published.
    * 
* * repeated string messages = 2; + * * @param index The index of the value to return. * @return The bytes of the messages at the given index. */ - com.google.protobuf.ByteString - getMessagesBytes(int index); + com.google.protobuf.ByteString getMessagesBytes(int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java similarity index 72% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java index 8db7f99fb674..20f18586dafe 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResult.java @@ -1,73 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Additional result info for the question-answering feature.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.QAResult} */ -public final class QAResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QAResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.QAResult) QAResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QAResult.newBuilder() to construct. private QAResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private QAResult() { highlights_ = 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 QAResult(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.QAResult.class, com.google.cloud.contentwarehouse.v1.QAResult.Builder.class); + com.google.cloud.contentwarehouse.v1.QAResult.class, + com.google.cloud.contentwarehouse.v1.QAResult.Builder.class); } - public interface HighlightOrBuilder extends + public interface HighlightOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.QAResult.Highlight) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Start index of the highlight.
      * 
* * int32 start_index = 1; + * * @return The startIndex. */ int getStartIndex(); /** + * + * *
      * End index of the highlight, exclusive.
      * 
* * int32 end_index = 2; + * * @return The endIndex. */ int getEndIndex(); } /** + * + * *
    * A text span in the search text snippet that represents a highlighted
    * section (answer context, highly relevant sentence, etc.).
@@ -75,46 +103,50 @@ public interface HighlightOrBuilder extends
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.QAResult.Highlight}
    */
-  public static final class Highlight extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Highlight extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.QAResult.Highlight)
       HighlightOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Highlight.newBuilder() to construct.
     private Highlight(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private Highlight() {
-    }
+
+    private Highlight() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Highlight();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
+          .internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
+          .internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.QAResult.Highlight.class, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder.class);
+              com.google.cloud.contentwarehouse.v1.QAResult.Highlight.class,
+              com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder.class);
     }
 
     public static final int START_INDEX_FIELD_NUMBER = 1;
     private int startIndex_ = 0;
     /**
+     *
+     *
      * 
      * Start index of the highlight.
      * 
* * int32 start_index = 1; + * * @return The startIndex. */ @java.lang.Override @@ -125,11 +157,14 @@ public int getStartIndex() { public static final int END_INDEX_FIELD_NUMBER = 2; private int endIndex_ = 0; /** + * + * *
      * End index of the highlight, exclusive.
      * 
* * int32 end_index = 2; + * * @return The endIndex. */ @java.lang.Override @@ -138,6 +173,7 @@ public int getEndIndex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startIndex_ != 0) { output.writeInt32(1, startIndex_); } @@ -167,12 +202,10 @@ public int getSerializedSize() { size = 0; if (startIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, startIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, startIndex_); } if (endIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, endIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endIndex_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -182,17 +215,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.contentwarehouse.v1.QAResult.Highlight)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.QAResult.Highlight other = (com.google.cloud.contentwarehouse.v1.QAResult.Highlight) obj; + com.google.cloud.contentwarehouse.v1.QAResult.Highlight other = + (com.google.cloud.contentwarehouse.v1.QAResult.Highlight) obj; - if (getStartIndex() - != other.getStartIndex()) return false; - if (getEndIndex() - != other.getEndIndex()) return false; + if (getStartIndex() != other.getStartIndex()) return false; + if (getEndIndex() != other.getEndIndex()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,89 +246,94 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight 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.contentwarehouse.v1.QAResult.Highlight parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight 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.contentwarehouse.v1.QAResult.Highlight parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.QAResult.Highlight prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.QAResult.Highlight prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -306,6 +343,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A text span in the search text snippet that represents a highlighted
      * section (answer context, highly relevant sentence, etc.).
@@ -313,33 +352,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.contentwarehouse.v1.QAResult.Highlight}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.QAResult.Highlight)
         com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
+            .internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable
+        return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
+            .internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.contentwarehouse.v1.QAResult.Highlight.class, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder.class);
+                com.google.cloud.contentwarehouse.v1.QAResult.Highlight.class,
+                com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder.class);
       }
 
       // Construct using com.google.cloud.contentwarehouse.v1.QAResult.Highlight.newBuilder()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -350,9 +389,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
+            .internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor;
       }
 
       @java.lang.Override
@@ -371,8 +410,11 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight build() {
 
       @java.lang.Override
       public com.google.cloud.contentwarehouse.v1.QAResult.Highlight buildPartial() {
-        com.google.cloud.contentwarehouse.v1.QAResult.Highlight result = new com.google.cloud.contentwarehouse.v1.QAResult.Highlight(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.contentwarehouse.v1.QAResult.Highlight result =
+            new com.google.cloud.contentwarehouse.v1.QAResult.Highlight(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -391,38 +433,41 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.QAResult.Highlig
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.QAResult.Highlight) {
-          return mergeFrom((com.google.cloud.contentwarehouse.v1.QAResult.Highlight)other);
+          return mergeFrom((com.google.cloud.contentwarehouse.v1.QAResult.Highlight) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -430,7 +475,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.QAResult.Highlight other) {
-        if (other == com.google.cloud.contentwarehouse.v1.QAResult.Highlight.getDefaultInstance()) return this;
+        if (other == com.google.cloud.contentwarehouse.v1.QAResult.Highlight.getDefaultInstance())
+          return this;
         if (other.getStartIndex() != 0) {
           setStartIndex(other.getStartIndex());
         }
@@ -463,22 +509,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                startIndex_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-              case 16: {
-                endIndex_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  startIndex_ = input.readInt32();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 8
+              case 16:
+                {
+                  endIndex_ = 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) {
@@ -488,15 +537,19 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private int startIndex_ ;
+      private int startIndex_;
       /**
+       *
+       *
        * 
        * Start index of the highlight.
        * 
* * int32 start_index = 1; + * * @return The startIndex. */ @java.lang.Override @@ -504,11 +557,14 @@ public int getStartIndex() { return startIndex_; } /** + * + * *
        * Start index of the highlight.
        * 
* * int32 start_index = 1; + * * @param value The startIndex to set. * @return This builder for chaining. */ @@ -520,11 +576,14 @@ public Builder setStartIndex(int value) { return this; } /** + * + * *
        * Start index of the highlight.
        * 
* * int32 start_index = 1; + * * @return This builder for chaining. */ public Builder clearStartIndex() { @@ -534,13 +593,16 @@ public Builder clearStartIndex() { return this; } - private int endIndex_ ; + private int endIndex_; /** + * + * *
        * End index of the highlight, exclusive.
        * 
* * int32 end_index = 2; + * * @return The endIndex. */ @java.lang.Override @@ -548,11 +610,14 @@ public int getEndIndex() { return endIndex_; } /** + * + * *
        * End index of the highlight, exclusive.
        * 
* * int32 end_index = 2; + * * @param value The endIndex to set. * @return This builder for chaining. */ @@ -564,11 +629,14 @@ public Builder setEndIndex(int value) { return this; } /** + * + * *
        * End index of the highlight, exclusive.
        * 
* * int32 end_index = 2; + * * @return This builder for chaining. */ public Builder clearEndIndex() { @@ -577,6 +645,7 @@ public Builder clearEndIndex() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -589,12 +658,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.QAResult.Highlight) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.QAResult.Highlight) private static final com.google.cloud.contentwarehouse.v1.QAResult.Highlight DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.QAResult.Highlight(); } @@ -603,27 +672,28 @@ public static com.google.cloud.contentwarehouse.v1.QAResult.Highlight getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Highlight parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Highlight parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -638,13 +708,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int HIGHLIGHTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List highlights_; /** + * + * *
    * Highlighted sections in the snippet.
    * 
@@ -652,10 +724,13 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getDefaultInstanc * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ @java.lang.Override - public java.util.List getHighlightsList() { + public java.util.List + getHighlightsList() { return highlights_; } /** + * + * *
    * Highlighted sections in the snippet.
    * 
@@ -663,11 +738,13 @@ public java.util.List g * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHighlightsOrBuilderList() { return highlights_; } /** + * + * *
    * Highlighted sections in the snippet.
    * 
@@ -679,6 +756,8 @@ public int getHighlightsCount() { return highlights_.size(); } /** + * + * *
    * Highlighted sections in the snippet.
    * 
@@ -690,6 +769,8 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getHighlights(int return highlights_.get(index); } /** + * + * *
    * Highlighted sections in the snippet.
    * 
@@ -705,6 +786,8 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 2; private float confidenceScore_ = 0F; /** + * + * *
    * The calibrated confidence score for this document, in the range
    * [0., 1.]. This represents the confidence level for whether the returned
@@ -712,6 +795,7 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl
    * 
* * float confidence_score = 2; + * * @return The confidenceScore. */ @java.lang.Override @@ -720,6 +804,7 @@ public float getConfidenceScore() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -731,8 +816,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < highlights_.size(); i++) { output.writeMessage(1, highlights_.get(i)); } @@ -749,12 +833,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < highlights_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, highlights_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, highlights_.get(i)); } if (java.lang.Float.floatToRawIntBits(confidenceScore_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidenceScore_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidenceScore_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -764,18 +846,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.contentwarehouse.v1.QAResult)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.QAResult other = (com.google.cloud.contentwarehouse.v1.QAResult) obj; + com.google.cloud.contentwarehouse.v1.QAResult other = + (com.google.cloud.contentwarehouse.v1.QAResult) obj; - if (!getHighlightsList() - .equals(other.getHighlightsList())) return false; + if (!getHighlightsList().equals(other.getHighlightsList())) return false; if (java.lang.Float.floatToIntBits(getConfidenceScore()) - != java.lang.Float.floatToIntBits( - other.getConfidenceScore())) return false; + != java.lang.Float.floatToIntBits(other.getConfidenceScore())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -792,139 +873,142 @@ public int hashCode() { hash = (53 * hash) + getHighlightsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidenceScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceScore()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.QAResult 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.contentwarehouse.v1.QAResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.QAResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.QAResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.QAResult 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.contentwarehouse.v1.QAResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.QAResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.QAResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Additional result info for the question-answering feature.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.QAResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.QAResult) com.google.cloud.contentwarehouse.v1.QAResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.QAResult.class, com.google.cloud.contentwarehouse.v1.QAResult.Builder.class); + com.google.cloud.contentwarehouse.v1.QAResult.class, + com.google.cloud.contentwarehouse.v1.QAResult.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.QAResult.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -941,9 +1025,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; } @java.lang.Override @@ -962,9 +1046,12 @@ public com.google.cloud.contentwarehouse.v1.QAResult build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.QAResult buildPartial() { - com.google.cloud.contentwarehouse.v1.QAResult result = new com.google.cloud.contentwarehouse.v1.QAResult(this); + com.google.cloud.contentwarehouse.v1.QAResult result = + new com.google.cloud.contentwarehouse.v1.QAResult(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -992,38 +1079,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.QAResult 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.contentwarehouse.v1.QAResult) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.QAResult)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.QAResult) other); } else { super.mergeFrom(other); return this; @@ -1050,9 +1138,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.QAResult other) { highlightsBuilder_ = null; highlights_ = other.highlights_; bitField0_ = (bitField0_ & ~0x00000001); - highlightsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHighlightsFieldBuilder() : null; + highlightsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHighlightsFieldBuilder() + : null; } else { highlightsBuilder_.addAllMessages(other.highlights_); } @@ -1087,30 +1176,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.QAResult.Highlight m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.QAResult.Highlight.parser(), - extensionRegistry); - if (highlightsBuilder_ == null) { - ensureHighlightsIsMutable(); - highlights_.add(m); - } else { - highlightsBuilder_.addMessage(m); - } - break; - } // case 10 - case 21: { - confidenceScore_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.contentwarehouse.v1.QAResult.Highlight m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.QAResult.Highlight.parser(), + extensionRegistry); + if (highlightsBuilder_ == null) { + ensureHighlightsIsMutable(); + highlights_.add(m); + } else { + highlightsBuilder_.addMessage(m); + } + break; + } // case 10 + case 21: + { + confidenceScore_ = 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) { @@ -1120,28 +1212,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List highlights_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureHighlightsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - highlights_ = new java.util.ArrayList(highlights_); + highlights_ = + new java.util.ArrayList( + highlights_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.QAResult.Highlight, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder, com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder> highlightsBuilder_; + com.google.cloud.contentwarehouse.v1.QAResult.Highlight, + com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder, + com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder> + highlightsBuilder_; /** + * + * *
      * Highlighted sections in the snippet.
      * 
* * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ - public java.util.List getHighlightsList() { + public java.util.List + getHighlightsList() { if (highlightsBuilder_ == null) { return java.util.Collections.unmodifiableList(highlights_); } else { @@ -1149,6 +1251,8 @@ public java.util.List g } } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1163,6 +1267,8 @@ public int getHighlightsCount() { } } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1177,6 +1283,8 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight getHighlights(int } } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1198,6 +1306,8 @@ public Builder setHighlights( return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1205,7 +1315,8 @@ public Builder setHighlights( * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ public Builder setHighlights( - int index, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder builderForValue) { if (highlightsBuilder_ == null) { ensureHighlightsIsMutable(); highlights_.set(index, builderForValue.build()); @@ -1216,6 +1327,8 @@ public Builder setHighlights( return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1236,6 +1349,8 @@ public Builder addHighlights(com.google.cloud.contentwarehouse.v1.QAResult.Highl return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1257,6 +1372,8 @@ public Builder addHighlights( return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1275,6 +1392,8 @@ public Builder addHighlights( return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1282,7 +1401,8 @@ public Builder addHighlights( * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ public Builder addHighlights( - int index, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder builderForValue) { if (highlightsBuilder_ == null) { ensureHighlightsIsMutable(); highlights_.add(index, builderForValue.build()); @@ -1293,6 +1413,8 @@ public Builder addHighlights( return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1300,11 +1422,11 @@ public Builder addHighlights( * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ public Builder addAllHighlights( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (highlightsBuilder_ == null) { ensureHighlightsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, highlights_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, highlights_); onChanged(); } else { highlightsBuilder_.addAllMessages(values); @@ -1312,6 +1434,8 @@ public Builder addAllHighlights( return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1329,6 +1453,8 @@ public Builder clearHighlights() { return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1346,6 +1472,8 @@ public Builder removeHighlights(int index) { return this; } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1357,6 +1485,8 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder getHighli return getHighlightsFieldBuilder().getBuilder(index); } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1366,19 +1496,23 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder getHighli public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighlightsOrBuilder( int index) { if (highlightsBuilder_ == null) { - return highlights_.get(index); } else { + return highlights_.get(index); + } else { return highlightsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Highlighted sections in the snippet.
      * 
* * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ - public java.util.List - getHighlightsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder> + getHighlightsOrBuilderList() { if (highlightsBuilder_ != null) { return highlightsBuilder_.getMessageOrBuilderList(); } else { @@ -1386,6 +1520,8 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl } } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1393,10 +1529,12 @@ public com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighl * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder addHighlightsBuilder() { - return getHighlightsFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.QAResult.Highlight.getDefaultInstance()); + return getHighlightsFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.QAResult.Highlight.getDefaultInstance()); } /** + * + * *
      * Highlighted sections in the snippet.
      * 
@@ -1405,37 +1543,45 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder addHighli */ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder addHighlightsBuilder( int index) { - return getHighlightsFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.getDefaultInstance()); + return getHighlightsFieldBuilder() + .addBuilder( + index, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.getDefaultInstance()); } /** + * + * *
      * Highlighted sections in the snippet.
      * 
* * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ - public java.util.List - getHighlightsBuilderList() { + public java.util.List + getHighlightsBuilderList() { return getHighlightsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.QAResult.Highlight, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder, com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder> + com.google.cloud.contentwarehouse.v1.QAResult.Highlight, + com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder, + com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder> getHighlightsFieldBuilder() { if (highlightsBuilder_ == null) { - highlightsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.QAResult.Highlight, com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder, com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder>( - highlights_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + highlightsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.QAResult.Highlight, + com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder, + com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder>( + highlights_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); highlights_ = null; } return highlightsBuilder_; } - private float confidenceScore_ ; + private float confidenceScore_; /** + * + * *
      * The calibrated confidence score for this document, in the range
      * [0., 1.]. This represents the confidence level for whether the returned
@@ -1443,6 +1589,7 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Highlight.Builder addHighli
      * 
* * float confidence_score = 2; + * * @return The confidenceScore. */ @java.lang.Override @@ -1450,6 +1597,8 @@ public float getConfidenceScore() { return confidenceScore_; } /** + * + * *
      * The calibrated confidence score for this document, in the range
      * [0., 1.]. This represents the confidence level for whether the returned
@@ -1457,6 +1606,7 @@ public float getConfidenceScore() {
      * 
* * float confidence_score = 2; + * * @param value The confidenceScore to set. * @return This builder for chaining. */ @@ -1468,6 +1618,8 @@ public Builder setConfidenceScore(float value) { return this; } /** + * + * *
      * The calibrated confidence score for this document, in the range
      * [0., 1.]. This represents the confidence level for whether the returned
@@ -1475,6 +1627,7 @@ public Builder setConfidenceScore(float value) {
      * 
* * float confidence_score = 2; + * * @return This builder for chaining. */ public Builder clearConfidenceScore() { @@ -1483,9 +1636,9 @@ public Builder clearConfidenceScore() { 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); } @@ -1495,12 +1648,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.QAResult) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.QAResult) private static final com.google.cloud.contentwarehouse.v1.QAResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.QAResult(); } @@ -1509,27 +1662,27 @@ public static com.google.cloud.contentwarehouse.v1.QAResult getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QAResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 QAResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1544,6 +1697,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.QAResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java similarity index 71% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java index a9d1471d747a..952f89319705 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/QAResultOrBuilder.java @@ -1,22 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; -public interface QAResultOrBuilder extends +public interface QAResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.QAResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Highlighted sections in the snippet.
    * 
* * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ - java.util.List - getHighlightsList(); + java.util.List getHighlightsList(); /** + * + * *
    * Highlighted sections in the snippet.
    * 
@@ -25,6 +44,8 @@ public interface QAResultOrBuilder extends */ com.google.cloud.contentwarehouse.v1.QAResult.Highlight getHighlights(int index); /** + * + * *
    * Highlighted sections in the snippet.
    * 
@@ -33,15 +54,19 @@ public interface QAResultOrBuilder extends */ int getHighlightsCount(); /** + * + * *
    * Highlighted sections in the snippet.
    * 
* * repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1; */ - java.util.List + java.util.List getHighlightsOrBuilderList(); /** + * + * *
    * Highlighted sections in the snippet.
    * 
@@ -52,6 +77,8 @@ com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighlightsOr int index); /** + * + * *
    * The calibrated confidence score for this document, in the range
    * [0., 1.]. This represents the confidence level for whether the returned
@@ -59,6 +86,7 @@ com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder getHighlightsOr
    * 
* * float confidence_score = 2; + * * @return The confidenceScore. */ float getConfidenceScore(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java similarity index 72% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java index 27196f070e96..4df731d9fb29 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RawDocumentFileType.java @@ -1,18 +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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * When a raw document is supplied, this indicates the file format
  * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.RawDocumentFileType} */ -public enum RawDocumentFileType - implements com.google.protobuf.ProtocolMessageEnum { +public enum RawDocumentFileType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * No raw document specified or it is non-parsable
    * 
@@ -21,6 +39,8 @@ public enum RawDocumentFileType */ RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED(0), /** + * + * *
    * Adobe PDF format
    * 
@@ -29,6 +49,8 @@ public enum RawDocumentFileType */ RAW_DOCUMENT_FILE_TYPE_PDF(1), /** + * + * *
    * Microsoft Word format
    * 
@@ -37,6 +59,8 @@ public enum RawDocumentFileType */ RAW_DOCUMENT_FILE_TYPE_DOCX(2), /** + * + * *
    * Microsoft Excel format
    * 
@@ -45,6 +69,8 @@ public enum RawDocumentFileType */ RAW_DOCUMENT_FILE_TYPE_XLSX(3), /** + * + * *
    * Microsoft Powerpoint format
    * 
@@ -53,6 +79,8 @@ public enum RawDocumentFileType */ RAW_DOCUMENT_FILE_TYPE_PPTX(4), /** + * + * *
    * UTF-8 encoded text format
    * 
@@ -61,6 +89,8 @@ public enum RawDocumentFileType */ RAW_DOCUMENT_FILE_TYPE_TEXT(5), /** + * + * *
    * TIFF or TIF image file format
    * 
@@ -72,6 +102,8 @@ public enum RawDocumentFileType ; /** + * + * *
    * No raw document specified or it is non-parsable
    * 
@@ -80,6 +112,8 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Adobe PDF format
    * 
@@ -88,6 +122,8 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_PDF_VALUE = 1; /** + * + * *
    * Microsoft Word format
    * 
@@ -96,6 +132,8 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_DOCX_VALUE = 2; /** + * + * *
    * Microsoft Excel format
    * 
@@ -104,6 +142,8 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_XLSX_VALUE = 3; /** + * + * *
    * Microsoft Powerpoint format
    * 
@@ -112,6 +152,8 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_PPTX_VALUE = 4; /** + * + * *
    * UTF-8 encoded text format
    * 
@@ -120,6 +162,8 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_TEXT_VALUE = 5; /** + * + * *
    * TIFF or TIF image file format
    * 
@@ -128,7 +172,6 @@ public enum RawDocumentFileType */ public static final int RAW_DOCUMENT_FILE_TYPE_TIFF_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -153,14 +196,22 @@ public static RawDocumentFileType valueOf(int value) { */ public static RawDocumentFileType forNumber(int value) { switch (value) { - case 0: return RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED; - case 1: return RAW_DOCUMENT_FILE_TYPE_PDF; - case 2: return RAW_DOCUMENT_FILE_TYPE_DOCX; - case 3: return RAW_DOCUMENT_FILE_TYPE_XLSX; - case 4: return RAW_DOCUMENT_FILE_TYPE_PPTX; - case 5: return RAW_DOCUMENT_FILE_TYPE_TEXT; - case 6: return RAW_DOCUMENT_FILE_TYPE_TIFF; - default: return null; + case 0: + return RAW_DOCUMENT_FILE_TYPE_UNSPECIFIED; + case 1: + return RAW_DOCUMENT_FILE_TYPE_PDF; + case 2: + return RAW_DOCUMENT_FILE_TYPE_DOCX; + case 3: + return RAW_DOCUMENT_FILE_TYPE_XLSX; + case 4: + return RAW_DOCUMENT_FILE_TYPE_PPTX; + case 5: + return RAW_DOCUMENT_FILE_TYPE_TEXT; + case 6: + return RAW_DOCUMENT_FILE_TYPE_TIFF; + default: + return null; } } @@ -168,28 +219,28 @@ public static RawDocumentFileType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RawDocumentFileType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RawDocumentFileType findValueByNumber(int number) { - return RawDocumentFileType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RawDocumentFileType findValueByNumber(int number) { + return RawDocumentFileType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor().getEnumTypes().get(0); } @@ -198,8 +249,7 @@ public RawDocumentFileType findValueByNumber(int number) { public static RawDocumentFileType 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; @@ -215,4 +265,3 @@ private RawDocumentFileType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.RawDocumentFileType) } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java index 1cc897ab38ce..e64699011e6b 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderAction.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents the action responsible for remove a document from a specific
  * folder.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.RemoveFromFolderAction}
  */
-public final class RemoveFromFolderAction extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RemoveFromFolderAction extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RemoveFromFolderAction)
     RemoveFromFolderActionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RemoveFromFolderAction.newBuilder() to construct.
   private RemoveFromFolderAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RemoveFromFolderAction() {
     condition_ = "";
     folder_ = "";
@@ -27,33 +45,38 @@ private RemoveFromFolderAction() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RemoveFromFolderAction();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+        .internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+        .internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.class, com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder.class);
+            com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.class,
+            com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder.class);
   }
 
   public static final int CONDITION_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object condition_ = "";
   /**
+   *
+   *
    * 
    * Condition of the action to be executed.
    * 
* * string condition = 1; + * * @return The condition. */ @java.lang.Override @@ -62,29 +85,29 @@ 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; } } /** + * + * *
    * Condition of the action to be executed.
    * 
* * 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 { @@ -93,9 +116,12 @@ public java.lang.String getCondition() { } public static final int FOLDER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object folder_ = ""; /** + * + * *
    * Name of the folder under which new document is to be added.
    * Format:
@@ -103,6 +129,7 @@ public java.lang.String getCondition() {
    * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } + * * @return The folder. */ @java.lang.Override @@ -111,14 +138,15 @@ public java.lang.String getFolder() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folder_ = s; return s; } } /** + * + * *
    * Name of the folder under which new document is to be added.
    * Format:
@@ -126,16 +154,15 @@ public java.lang.String getFolder() {
    * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for folder. */ @java.lang.Override - public com.google.protobuf.ByteString - getFolderBytes() { + public com.google.protobuf.ByteString getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); folder_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getFolder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, condition_); } @@ -186,17 +213,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.contentwarehouse.v1.RemoveFromFolderAction)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction other = (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) obj; + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction other = + (com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) obj; - if (!getCondition() - .equals(other.getCondition())) return false; - if (!getFolder() - .equals(other.getFolder())) return false; + if (!getCondition().equals(other.getCondition())) return false; + if (!getFolder().equals(other.getFolder())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,98 +244,104 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction 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.contentwarehouse.v1.RemoveFromFolderAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction 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.contentwarehouse.v1.RemoveFromFolderAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the action responsible for remove a document from a specific
    * folder.
@@ -317,33 +349,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.RemoveFromFolderAction}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RemoveFromFolderAction)
       com.google.cloud.contentwarehouse.v1.RemoveFromFolderActionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+          .internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+          .internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.class, com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder.class);
+              com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.class,
+              com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -354,9 +385,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+          .internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
     }
 
     @java.lang.Override
@@ -375,8 +406,11 @@ public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction buildPartial() {
-      com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction result = new com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction result =
+          new com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -395,38 +429,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RemoveFromFolder
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.RemoveFromFolderAction) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction)other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -434,7 +469,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction other) {
-      if (other == com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance()) return this;
+      if (other == com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction.getDefaultInstance())
+        return this;
       if (!other.getCondition().isEmpty()) {
         condition_ = other.condition_;
         bitField0_ |= 0x00000001;
@@ -471,22 +507,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              condition_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              folder_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            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 18:
+              {
+                folder_ = 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) {
@@ -496,22 +535,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object condition_ = "";
     /**
+     *
+     *
      * 
      * Condition of the action to be executed.
      * 
* * 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; @@ -520,20 +562,21 @@ public java.lang.String getCondition() { } } /** + * + * *
      * Condition of the action to be executed.
      * 
* * 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 { @@ -541,28 +584,35 @@ public java.lang.String getCondition() { } } /** + * + * *
      * Condition of the action to be executed.
      * 
* * 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; } /** + * + * *
      * Condition of the action to be executed.
      * 
* * string condition = 1; + * * @return This builder for chaining. */ public Builder clearCondition() { @@ -572,17 +622,21 @@ public Builder clearCondition() { return this; } /** + * + * *
      * Condition of the action to be executed.
      * 
* * 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; @@ -592,6 +646,8 @@ public Builder setConditionBytes( private java.lang.Object folder_ = ""; /** + * + * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -599,13 +655,13 @@ public Builder setConditionBytes(
      * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } + * * @return The folder. */ public java.lang.String getFolder() { java.lang.Object ref = folder_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folder_ = s; return s; @@ -614,6 +670,8 @@ public java.lang.String getFolder() { } } /** + * + * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -621,15 +679,14 @@ public java.lang.String getFolder() {
      * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for folder. */ - public com.google.protobuf.ByteString - getFolderBytes() { + public com.google.protobuf.ByteString getFolderBytes() { java.lang.Object ref = folder_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); folder_ = b; return b; } else { @@ -637,6 +694,8 @@ public java.lang.String getFolder() { } } /** + * + * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -644,18 +703,22 @@ public java.lang.String getFolder() {
      * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } + * * @param value The folder to set. * @return This builder for chaining. */ - public Builder setFolder( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } folder_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -663,6 +726,7 @@ public Builder setFolder(
      * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearFolder() { @@ -672,6 +736,8 @@ public Builder clearFolder() { return this; } /** + * + * *
      * Name of the folder under which new document is to be added.
      * Format:
@@ -679,21 +745,23 @@ public Builder clearFolder() {
      * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for folder to set. * @return This builder for chaining. */ - public Builder setFolderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); folder_ = 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); } @@ -703,12 +771,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RemoveFromFolderAction) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RemoveFromFolderAction) private static final com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction(); } @@ -717,27 +785,27 @@ public static com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RemoveFromFolderAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RemoveFromFolderAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,6 +820,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RemoveFromFolderAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java similarity index 61% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java index be0e4fb9cbf0..1720d2e9fd30 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RemoveFromFolderActionOrBuilder.java @@ -1,33 +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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface RemoveFromFolderActionOrBuilder extends +public interface RemoveFromFolderActionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RemoveFromFolderAction) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Condition of the action to be executed.
    * 
* * string condition = 1; + * * @return The condition. */ java.lang.String getCondition(); /** + * + * *
    * Condition of the action to be executed.
    * 
* * string condition = 1; + * * @return The bytes for condition. */ - com.google.protobuf.ByteString - getConditionBytes(); + com.google.protobuf.ByteString getConditionBytes(); /** + * + * *
    * Name of the folder under which new document is to be added.
    * Format:
@@ -35,10 +58,13 @@ public interface RemoveFromFolderActionOrBuilder extends
    * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } + * * @return The folder. */ java.lang.String getFolder(); /** + * + * *
    * Name of the folder under which new document is to be added.
    * Format:
@@ -46,8 +72,8 @@ public interface RemoveFromFolderActionOrBuilder extends
    * 
* * string folder = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for folder. */ - com.google.protobuf.ByteString - getFolderBytes(); + com.google.protobuf.ByteString getFolderBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java similarity index 66% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java index fecc118fdb90..3dc52c8739bf 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadata.java @@ -1,55 +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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Meta information is used to improve the performance of the service.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RequestMetadata} */ -public final class RequestMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RequestMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RequestMetadata) RequestMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RequestMetadata.newBuilder() to construct. private RequestMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RequestMetadata() { - } + + private RequestMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RequestMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RequestMetadata.class, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RequestMetadata.class, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder.class); } public static final int USER_INFO_FIELD_NUMBER = 1; private com.google.cloud.contentwarehouse.v1.UserInfo userInfo_; /** + * + * *
    * Provides user unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; + * * @return Whether the userInfo field is set. */ @java.lang.Override @@ -57,18 +78,25 @@ public boolean hasUserInfo() { return userInfo_ != null; } /** + * + * *
    * Provides user unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; + * * @return The userInfo. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() { - return userInfo_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() + : userInfo_; } /** + * + * *
    * Provides user unique identification and groups information.
    * 
@@ -77,10 +105,13 @@ public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuilder() { - return userInfo_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() + : userInfo_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -92,8 +123,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userInfo_ != null) { output.writeMessage(1, getUserInfo()); } @@ -107,8 +137,7 @@ public int getSerializedSize() { size = 0; if (userInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUserInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUserInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -118,17 +147,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.contentwarehouse.v1.RequestMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RequestMetadata other = (com.google.cloud.contentwarehouse.v1.RequestMetadata) obj; + com.google.cloud.contentwarehouse.v1.RequestMetadata other = + (com.google.cloud.contentwarehouse.v1.RequestMetadata) obj; if (hasUserInfo() != other.hasUserInfo()) return false; if (hasUserInfo()) { - if (!getUserInfo() - .equals(other.getUserInfo())) return false; + if (!getUserInfo().equals(other.getUserInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -151,131 +180,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.RequestMetadata 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.contentwarehouse.v1.RequestMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.RequestMetadata 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.contentwarehouse.v1.RequestMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.RequestMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RequestMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Meta information is used to improve the performance of the service.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RequestMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RequestMetadata) com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RequestMetadata.class, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RequestMetadata.class, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RequestMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor; } @java.lang.Override @@ -310,8 +343,11 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.RequestMetadata result = new com.google.cloud.contentwarehouse.v1.RequestMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.RequestMetadata result = + new com.google.cloud.contentwarehouse.v1.RequestMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -319,9 +355,7 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata buildPartial() { private void buildPartial0(com.google.cloud.contentwarehouse.v1.RequestMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.userInfo_ = userInfoBuilder_ == null - ? userInfo_ - : userInfoBuilder_.build(); + result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); } } @@ -329,38 +363,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RequestMetadata public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.RequestMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RequestMetadata)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RequestMetadata) other); } else { super.mergeFrom(other); return this; @@ -368,7 +403,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RequestMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) + return this; if (other.hasUserInfo()) { mergeUserInfo(other.getUserInfo()); } @@ -398,19 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUserInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,38 +456,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.contentwarehouse.v1.UserInfo userInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> userInfoBuilder_; + com.google.cloud.contentwarehouse.v1.UserInfo, + com.google.cloud.contentwarehouse.v1.UserInfo.Builder, + com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> + userInfoBuilder_; /** + * + * *
      * Provides user unique identification and groups information.
      * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; + * * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Provides user unique identification and groups information.
      * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; + * * @return The userInfo. */ public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() { if (userInfoBuilder_ == null) { - return userInfo_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() + : userInfo_; } else { return userInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides user unique identification and groups information.
      * 
@@ -472,6 +522,8 @@ public Builder setUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value) return this; } /** + * + * *
      * Provides user unique identification and groups information.
      * 
@@ -490,6 +542,8 @@ public Builder setUserInfo( return this; } /** + * + * *
      * Provides user unique identification and groups information.
      * 
@@ -498,9 +552,9 @@ public Builder setUserInfo( */ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value) { if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - userInfo_ != null && - userInfo_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && userInfo_ != null + && userInfo_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) { getUserInfoBuilder().mergeFrom(value); } else { userInfo_ = value; @@ -513,6 +567,8 @@ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value return this; } /** + * + * *
      * Provides user unique identification and groups information.
      * 
@@ -530,6 +586,8 @@ public Builder clearUserInfo() { return this; } /** + * + * *
      * Provides user unique identification and groups information.
      * 
@@ -542,6 +600,8 @@ public com.google.cloud.contentwarehouse.v1.UserInfo.Builder getUserInfoBuilder( return getUserInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides user unique identification and groups information.
      * 
@@ -552,11 +612,14 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuild if (userInfoBuilder_ != null) { return userInfoBuilder_.getMessageOrBuilder(); } else { - return userInfo_ == null ? - com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() + : userInfo_; } } /** + * + * *
      * Provides user unique identification and groups information.
      * 
@@ -564,21 +627,24 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuild * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.UserInfo, + com.google.cloud.contentwarehouse.v1.UserInfo.Builder, + com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> getUserInfoFieldBuilder() { if (userInfoBuilder_ == null) { - userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>( - getUserInfo(), - getParentForChildren(), - isClean()); + userInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.UserInfo, + com.google.cloud.contentwarehouse.v1.UserInfo.Builder, + com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>( + getUserInfo(), getParentForChildren(), isClean()); userInfo_ = null; } return userInfoBuilder_; } + @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); } @@ -588,12 +654,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RequestMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RequestMetadata) private static final com.google.cloud.contentwarehouse.v1.RequestMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RequestMetadata(); } @@ -602,27 +668,27 @@ public static com.google.cloud.contentwarehouse.v1.RequestMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequestMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RequestMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,6 +703,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RequestMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java similarity index 61% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java index 1f0f03a81275..9373ebf6c4f5 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RequestMetadataOrBuilder.java @@ -1,31 +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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; -public interface RequestMetadataOrBuilder extends +public interface RequestMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RequestMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Provides user unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; + * * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** + * + * *
    * Provides user unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 1; + * * @return The userInfo. */ com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo(); /** + * + * *
    * Provides user unique identification and groups information.
    * 
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java similarity index 65% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java index 51fc9cab388b..c9b37cd3853d 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadata.java @@ -1,58 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Additional information returned to client, such as debugging information.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ResponseMetadata} */ -public final class ResponseMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResponseMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.ResponseMetadata) ResponseMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResponseMetadata.newBuilder() to construct. private ResponseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResponseMetadata() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResponseMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ResponseMetadata.class, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.ResponseMetadata.class, + com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder.class); } public static final int REQUEST_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * A unique id associated with this call. This id is logged for tracking
    * purpose.
    * 
* * string request_id = 1; + * * @return The requestId. */ @java.lang.Override @@ -61,30 +84,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * A unique id associated with this call. This id is logged for tracking
    * purpose.
    * 
* * string request_id = 1; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -93,6 +116,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +128,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); } @@ -129,15 +152,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.contentwarehouse.v1.ResponseMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.ResponseMetadata other = (com.google.cloud.contentwarehouse.v1.ResponseMetadata) obj; + com.google.cloud.contentwarehouse.v1.ResponseMetadata other = + (com.google.cloud.contentwarehouse.v1.ResponseMetadata) obj; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +180,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.ResponseMetadata 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.contentwarehouse.v1.ResponseMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.ResponseMetadata 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.contentwarehouse.v1.ResponseMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.ResponseMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.ResponseMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.ResponseMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Additional information returned to client, such as debugging information.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.ResponseMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.ResponseMetadata) com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.ResponseMetadata.class, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.ResponseMetadata.class, + com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.ResponseMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +319,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; } @java.lang.Override @@ -312,8 +340,11 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.ResponseMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.ResponseMetadata result = new com.google.cloud.contentwarehouse.v1.ResponseMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.ResponseMetadata result = + new com.google.cloud.contentwarehouse.v1.ResponseMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +360,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.ResponseMetadata public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.ResponseMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.ResponseMetadata)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.ResponseMetadata) other); } else { super.mergeFrom(other); return this; @@ -368,7 +400,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.ResponseMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) + return this; if (!other.getRequestId().isEmpty()) { requestId_ = other.requestId_; bitField0_ |= 0x00000001; @@ -400,17 +433,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + requestId_ = 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) { @@ -420,23 +455,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object requestId_ = ""; /** + * + * *
      * A unique id associated with this call. This id is logged for tracking
      * purpose.
      * 
* * string request_id = 1; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -445,21 +483,22 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id associated with this call. This id is logged for tracking
      * purpose.
      * 
* * string request_id = 1; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -467,30 +506,37 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id associated with this call. This id is logged for tracking
      * purpose.
      * 
* * string request_id = 1; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * A unique id associated with this call. This id is logged for tracking
      * purpose.
      * 
* * string request_id = 1; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -500,27 +546,31 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * A unique id associated with this call. This id is logged for tracking
      * purpose.
      * 
* * string request_id = 1; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = 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); } @@ -530,12 +580,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.ResponseMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.ResponseMetadata) private static final com.google.cloud.contentwarehouse.v1.ResponseMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.ResponseMetadata(); } @@ -544,27 +594,27 @@ public static com.google.cloud.contentwarehouse.v1.ResponseMetadata getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ResponseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +629,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.ResponseMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java similarity index 50% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java index 7a9e0e127b90..e28acd818059 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ResponseMetadataOrBuilder.java @@ -1,31 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; -public interface ResponseMetadataOrBuilder extends +public interface ResponseMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.ResponseMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A unique id associated with this call. This id is logged for tracking
    * purpose.
    * 
* * string request_id = 1; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * A unique id associated with this call. This id is logged for tracking
    * purpose.
    * 
* * string request_id = 1; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java similarity index 74% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java index 89f88eae6db0..7cbdc0cda73e 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Rule.java @@ -1,24 +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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents the rule for a content warehouse trigger.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.Rule} */ -public final class Rule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Rule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.Rule) RuleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Rule.newBuilder() to construct. private Rule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Rule() { description_ = ""; ruleId_ = ""; @@ -29,34 +47,38 @@ private Rule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Rule(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Rule.class, com.google.cloud.contentwarehouse.v1.Rule.Builder.class); + com.google.cloud.contentwarehouse.v1.Rule.class, + com.google.cloud.contentwarehouse.v1.Rule.Builder.class); } /** + * + * *
    * The trigger types for actions.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.Rule.TriggerType} */ - public enum TriggerType - implements com.google.protobuf.ProtocolMessageEnum { + public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Trigger for unknown action.
      * 
@@ -65,6 +87,8 @@ public enum TriggerType */ UNKNOWN(0), /** + * + * *
      * Trigger for create document action.
      * 
@@ -73,6 +97,8 @@ public enum TriggerType */ ON_CREATE(1), /** + * + * *
      * Trigger for update document action.
      * 
@@ -81,6 +107,8 @@ public enum TriggerType */ ON_UPDATE(4), /** + * + * *
      * Trigger for create link action.
      * 
@@ -89,6 +117,8 @@ public enum TriggerType */ ON_CREATE_LINK(7), /** + * + * *
      * Trigger for delete link action.
      * 
@@ -100,6 +130,8 @@ public enum TriggerType ; /** + * + * *
      * Trigger for unknown action.
      * 
@@ -108,6 +140,8 @@ public enum TriggerType */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * Trigger for create document action.
      * 
@@ -116,6 +150,8 @@ public enum TriggerType */ public static final int ON_CREATE_VALUE = 1; /** + * + * *
      * Trigger for update document action.
      * 
@@ -124,6 +160,8 @@ public enum TriggerType */ public static final int ON_UPDATE_VALUE = 4; /** + * + * *
      * Trigger for create link action.
      * 
@@ -132,6 +170,8 @@ public enum TriggerType */ public static final int ON_CREATE_LINK_VALUE = 7; /** + * + * *
      * Trigger for delete link action.
      * 
@@ -140,7 +180,6 @@ public enum TriggerType */ public static final int ON_DELETE_LINK_VALUE = 8; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -165,51 +204,53 @@ public static TriggerType valueOf(int value) { */ public static TriggerType forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return ON_CREATE; - case 4: return ON_UPDATE; - case 7: return ON_CREATE_LINK; - case 8: return ON_DELETE_LINK; - default: return null; + case 0: + return UNKNOWN; + case 1: + return ON_CREATE; + case 4: + return ON_UPDATE; + case 7: + return ON_CREATE_LINK; + case 8: + return ON_DELETE_LINK; + 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< - TriggerType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TriggerType findValueByNumber(int number) { - return TriggerType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TriggerType findValueByNumber(int number) { + return TriggerType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.contentwarehouse.v1.Rule.getDescriptor().getEnumTypes().get(0); } private static final TriggerType[] VALUES = values(); - public static TriggerType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TriggerType 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; @@ -227,14 +268,18 @@ private TriggerType(int value) { } public static final int DESCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Short description of the rule and its context.
    * 
* * string description = 1; + * * @return The description. */ @java.lang.Override @@ -243,29 +288,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Short description of the rule and its context.
    * 
* * string description = 1; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -274,15 +319,19 @@ public java.lang.String getDescription() { } public static final int RULE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object ruleId_ = ""; /** + * + * *
    * ID of the rule. It has to be unique across all the examples.
    * This is managed internally.
    * 
* * string rule_id = 2; + * * @return The ruleId. */ @java.lang.Override @@ -291,30 +340,30 @@ public java.lang.String getRuleId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleId_ = s; return s; } } /** + * + * *
    * ID of the rule. It has to be unique across all the examples.
    * This is managed internally.
    * 
* * string rule_id = 2; + * * @return The bytes for ruleId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRuleIdBytes() { + public com.google.protobuf.ByteString getRuleIdBytes() { java.lang.Object ref = ruleId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ruleId_ = b; return b; } else { @@ -325,33 +374,47 @@ public java.lang.String getRuleId() { public static final int TRIGGER_TYPE_FIELD_NUMBER = 3; private int triggerType_ = 0; /** + * + * *
    * Identifies the trigger type for running the policy.
    * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; + * * @return The enum numeric value on the wire for triggerType. */ - @java.lang.Override public int getTriggerTypeValue() { + @java.lang.Override + public int getTriggerTypeValue() { return triggerType_; } /** + * + * *
    * Identifies the trigger type for running the policy.
    * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; + * * @return The triggerType. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.Rule.TriggerType getTriggerType() { - com.google.cloud.contentwarehouse.v1.Rule.TriggerType result = com.google.cloud.contentwarehouse.v1.Rule.TriggerType.forNumber(triggerType_); - return result == null ? com.google.cloud.contentwarehouse.v1.Rule.TriggerType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.Rule.TriggerType getTriggerType() { + com.google.cloud.contentwarehouse.v1.Rule.TriggerType result = + com.google.cloud.contentwarehouse.v1.Rule.TriggerType.forNumber(triggerType_); + return result == null + ? com.google.cloud.contentwarehouse.v1.Rule.TriggerType.UNRECOGNIZED + : result; } public static final int CONDITION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object condition_ = ""; /** + * + * *
    * Represents the conditional expression to be evaluated.
    * Expression should evaluate to a boolean result.
@@ -360,6 +423,7 @@ public java.lang.String getRuleId() {
    * 
* * string condition = 4; + * * @return The condition. */ @java.lang.Override @@ -368,14 +432,15 @@ 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; } } /** + * + * *
    * Represents the conditional expression to be evaluated.
    * Expression should evaluate to a boolean result.
@@ -384,16 +449,15 @@ public java.lang.String getCondition() {
    * 
* * string condition = 4; + * * @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 { @@ -402,9 +466,12 @@ public java.lang.String getCondition() { } public static final int ACTIONS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List actions_; /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -416,6 +483,8 @@ public java.util.List getActionsLis return actions_; } /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -423,11 +492,13 @@ public java.util.List getActionsLis * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ @java.lang.Override - public java.util.List + public java.util.List getActionsOrBuilderList() { return actions_; } /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -439,6 +510,8 @@ public int getActionsCount() { return actions_.size(); } /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -450,6 +523,8 @@ public com.google.cloud.contentwarehouse.v1.Action getActions(int index) { return actions_.get(index); } /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -457,12 +532,12 @@ public com.google.cloud.contentwarehouse.v1.Action getActions(int index) { * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder(int index) { return actions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -474,8 +549,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -507,15 +581,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ruleId_); } if (triggerType_ != com.google.cloud.contentwarehouse.v1.Rule.TriggerType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, triggerType_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, triggerType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, condition_); } for (int i = 0; i < actions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, actions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, actions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -525,22 +597,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.contentwarehouse.v1.Rule)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.Rule other = (com.google.cloud.contentwarehouse.v1.Rule) obj; + com.google.cloud.contentwarehouse.v1.Rule other = + (com.google.cloud.contentwarehouse.v1.Rule) obj; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getRuleId() - .equals(other.getRuleId())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getRuleId().equals(other.getRuleId())) return false; if (triggerType_ != other.triggerType_) return false; - if (!getCondition() - .equals(other.getCondition())) return false; - if (!getActionsList() - .equals(other.getActionsList())) return false; + if (!getCondition().equals(other.getCondition())) return false; + if (!getActionsList().equals(other.getActionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -569,132 +638,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.Rule parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.Rule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.Rule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.Rule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.Rule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.Rule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.Rule 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.contentwarehouse.v1.Rule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Rule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.Rule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.Rule 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.contentwarehouse.v1.Rule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.Rule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.Rule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the rule for a content warehouse trigger.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.Rule} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.Rule) com.google.cloud.contentwarehouse.v1.RuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.Rule.class, com.google.cloud.contentwarehouse.v1.Rule.Builder.class); + com.google.cloud.contentwarehouse.v1.Rule.class, + com.google.cloud.contentwarehouse.v1.Rule.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.Rule.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -714,9 +787,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; } @java.lang.Override @@ -735,9 +808,12 @@ public com.google.cloud.contentwarehouse.v1.Rule build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.Rule buildPartial() { - com.google.cloud.contentwarehouse.v1.Rule result = new com.google.cloud.contentwarehouse.v1.Rule(this); + com.google.cloud.contentwarehouse.v1.Rule result = + new com.google.cloud.contentwarehouse.v1.Rule(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -774,38 +850,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Rule 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.contentwarehouse.v1.Rule) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.Rule)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.Rule) other); } else { super.mergeFrom(other); return this; @@ -850,9 +927,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Rule other) { actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000010); - actionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getActionsFieldBuilder() : null; + actionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getActionsFieldBuilder() + : null; } else { actionsBuilder_.addAllMessages(other.actions_); } @@ -884,45 +962,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - ruleId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - triggerType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - condition_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - com.google.cloud.contentwarehouse.v1.Action m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.Action.parser(), - extensionRegistry); - if (actionsBuilder_ == null) { - ensureActionsIsMutable(); - actions_.add(m); - } else { - actionsBuilder_.addMessage(m); - } - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + ruleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + triggerType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + condition_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.contentwarehouse.v1.Action m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.Action.parser(), extensionRegistry); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(m); + } else { + actionsBuilder_.addMessage(m); + } + 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) { @@ -932,22 +1015,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object description_ = ""; /** + * + * *
      * Short description of the rule and its context.
      * 
* * string description = 1; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -956,20 +1042,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the rule and its context.
      * 
* * string description = 1; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -977,28 +1064,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the rule and its context.
      * 
* * string description = 1; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Short description of the rule and its context.
      * 
* * string description = 1; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1008,17 +1102,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Short description of the rule and its context.
      * 
* * string description = 1; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000001; @@ -1028,19 +1126,21 @@ public Builder setDescriptionBytes( private java.lang.Object ruleId_ = ""; /** + * + * *
      * ID of the rule. It has to be unique across all the examples.
      * This is managed internally.
      * 
* * string rule_id = 2; + * * @return The ruleId. */ public java.lang.String getRuleId() { java.lang.Object ref = ruleId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleId_ = s; return s; @@ -1049,21 +1149,22 @@ public java.lang.String getRuleId() { } } /** + * + * *
      * ID of the rule. It has to be unique across all the examples.
      * This is managed internally.
      * 
* * string rule_id = 2; + * * @return The bytes for ruleId. */ - public com.google.protobuf.ByteString - getRuleIdBytes() { + public com.google.protobuf.ByteString getRuleIdBytes() { java.lang.Object ref = ruleId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ruleId_ = b; return b; } else { @@ -1071,30 +1172,37 @@ public java.lang.String getRuleId() { } } /** + * + * *
      * ID of the rule. It has to be unique across all the examples.
      * This is managed internally.
      * 
* * string rule_id = 2; + * * @param value The ruleId to set. * @return This builder for chaining. */ - public Builder setRuleId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRuleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ruleId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * ID of the rule. It has to be unique across all the examples.
      * This is managed internally.
      * 
* * string rule_id = 2; + * * @return This builder for chaining. */ public Builder clearRuleId() { @@ -1104,18 +1212,22 @@ public Builder clearRuleId() { return this; } /** + * + * *
      * ID of the rule. It has to be unique across all the examples.
      * This is managed internally.
      * 
* * string rule_id = 2; + * * @param value The bytes for ruleId to set. * @return This builder for chaining. */ - public Builder setRuleIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRuleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ruleId_ = value; bitField0_ |= 0x00000002; @@ -1125,22 +1237,29 @@ public Builder setRuleIdBytes( private int triggerType_ = 0; /** + * + * *
      * Identifies the trigger type for running the policy.
      * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; + * * @return The enum numeric value on the wire for triggerType. */ - @java.lang.Override public int getTriggerTypeValue() { + @java.lang.Override + public int getTriggerTypeValue() { return triggerType_; } /** + * + * *
      * Identifies the trigger type for running the policy.
      * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; + * * @param value The enum numeric value on the wire for triggerType to set. * @return This builder for chaining. */ @@ -1151,24 +1270,33 @@ public Builder setTriggerTypeValue(int value) { return this; } /** + * + * *
      * Identifies the trigger type for running the policy.
      * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; + * * @return The triggerType. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.Rule.TriggerType getTriggerType() { - com.google.cloud.contentwarehouse.v1.Rule.TriggerType result = com.google.cloud.contentwarehouse.v1.Rule.TriggerType.forNumber(triggerType_); - return result == null ? com.google.cloud.contentwarehouse.v1.Rule.TriggerType.UNRECOGNIZED : result; + com.google.cloud.contentwarehouse.v1.Rule.TriggerType result = + com.google.cloud.contentwarehouse.v1.Rule.TriggerType.forNumber(triggerType_); + return result == null + ? com.google.cloud.contentwarehouse.v1.Rule.TriggerType.UNRECOGNIZED + : result; } /** + * + * *
      * Identifies the trigger type for running the policy.
      * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; + * * @param value The triggerType to set. * @return This builder for chaining. */ @@ -1182,11 +1310,14 @@ public Builder setTriggerType(com.google.cloud.contentwarehouse.v1.Rule.TriggerT return this; } /** + * + * *
      * Identifies the trigger type for running the policy.
      * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; + * * @return This builder for chaining. */ public Builder clearTriggerType() { @@ -1198,6 +1329,8 @@ public Builder clearTriggerType() { private java.lang.Object condition_ = ""; /** + * + * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1206,13 +1339,13 @@ public Builder clearTriggerType() {
      * 
* * string condition = 4; + * * @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; @@ -1221,6 +1354,8 @@ public java.lang.String getCondition() { } } /** + * + * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1229,15 +1364,14 @@ public java.lang.String getCondition() {
      * 
* * string condition = 4; + * * @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 { @@ -1245,6 +1379,8 @@ public java.lang.String getCondition() { } } /** + * + * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1253,18 +1389,22 @@ public java.lang.String getCondition() {
      * 
* * string condition = 4; + * * @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_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1273,6 +1413,7 @@ public Builder setCondition(
      * 
* * string condition = 4; + * * @return This builder for chaining. */ public Builder clearCondition() { @@ -1282,6 +1423,8 @@ public Builder clearCondition() { return this; } /** + * + * *
      * Represents the conditional expression to be evaluated.
      * Expression should evaluate to a boolean result.
@@ -1290,12 +1433,14 @@ public Builder clearCondition() {
      * 
* * string condition = 4; + * * @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_ |= 0x00000008; @@ -1304,18 +1449,24 @@ public Builder setConditionBytes( } private java.util.List actions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Action, com.google.cloud.contentwarehouse.v1.Action.Builder, com.google.cloud.contentwarehouse.v1.ActionOrBuilder> actionsBuilder_; + com.google.cloud.contentwarehouse.v1.Action, + com.google.cloud.contentwarehouse.v1.Action.Builder, + com.google.cloud.contentwarehouse.v1.ActionOrBuilder> + actionsBuilder_; /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1330,6 +1481,8 @@ public java.util.List getActionsLis } } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1344,6 +1497,8 @@ public int getActionsCount() { } } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1358,14 +1513,15 @@ public com.google.cloud.contentwarehouse.v1.Action getActions(int index) { } } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public Builder setActions( - int index, com.google.cloud.contentwarehouse.v1.Action value) { + public Builder setActions(int index, com.google.cloud.contentwarehouse.v1.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1379,6 +1535,8 @@ public Builder setActions( return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1397,6 +1555,8 @@ public Builder setActions( return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1417,14 +1577,15 @@ public Builder addActions(com.google.cloud.contentwarehouse.v1.Action value) { return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public Builder addActions( - int index, com.google.cloud.contentwarehouse.v1.Action value) { + public Builder addActions(int index, com.google.cloud.contentwarehouse.v1.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1438,14 +1599,15 @@ public Builder addActions( return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public Builder addActions( - com.google.cloud.contentwarehouse.v1.Action.Builder builderForValue) { + public Builder addActions(com.google.cloud.contentwarehouse.v1.Action.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(builderForValue.build()); @@ -1456,6 +1618,8 @@ public Builder addActions( return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1474,6 +1638,8 @@ public Builder addActions( return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1484,8 +1650,7 @@ public Builder addAllActions( java.lang.Iterable values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, actions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); @@ -1493,6 +1658,8 @@ public Builder addAllActions( return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1510,6 +1677,8 @@ public Builder clearActions() { return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1527,39 +1696,44 @@ public Builder removeActions(int index) { return this; } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public com.google.cloud.contentwarehouse.v1.Action.Builder getActionsBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.Action.Builder getActionsBuilder(int index) { return getActionsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder(int index) { if (actionsBuilder_ == null) { - return actions_.get(index); } else { + return actions_.get(index); + } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public java.util.List - getActionsOrBuilderList() { + public java.util.List + getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { @@ -1567,6 +1741,8 @@ public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder( } } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
@@ -1574,49 +1750,55 @@ public com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder( * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ public com.google.cloud.contentwarehouse.v1.Action.Builder addActionsBuilder() { - return getActionsFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.Action.getDefaultInstance()); + return getActionsFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.Action.getDefaultInstance()); } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public com.google.cloud.contentwarehouse.v1.Action.Builder addActionsBuilder( - int index) { - return getActionsFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.Action.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.Action.Builder addActionsBuilder(int index) { + return getActionsFieldBuilder() + .addBuilder(index, com.google.cloud.contentwarehouse.v1.Action.getDefaultInstance()); } /** + * + * *
      * List of actions that are executed when the rule is satisfied.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - public java.util.List - getActionsBuilderList() { + public java.util.List + getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Action, com.google.cloud.contentwarehouse.v1.Action.Builder, com.google.cloud.contentwarehouse.v1.ActionOrBuilder> + com.google.cloud.contentwarehouse.v1.Action, + com.google.cloud.contentwarehouse.v1.Action.Builder, + com.google.cloud.contentwarehouse.v1.ActionOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { - actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Action, com.google.cloud.contentwarehouse.v1.Action.Builder, com.google.cloud.contentwarehouse.v1.ActionOrBuilder>( - actions_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + actionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Action, + com.google.cloud.contentwarehouse.v1.Action.Builder, + com.google.cloud.contentwarehouse.v1.ActionOrBuilder>( + actions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); actions_ = null; } return actionsBuilder_; } + @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); } @@ -1626,12 +1808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.Rule) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.Rule) private static final com.google.cloud.contentwarehouse.v1.Rule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.Rule(); } @@ -1640,27 +1822,27 @@ public static com.google.cloud.contentwarehouse.v1.Rule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Rule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Rule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1675,6 +1857,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.Rule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java similarity index 73% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java index cd6a2842e085..5156d9e31745 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPair.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents a rule and outputs of associated actions.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleActionsPair} */ -public final class RuleActionsPair extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RuleActionsPair extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RuleActionsPair) RuleActionsPairOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RuleActionsPair.newBuilder() to construct. private RuleActionsPair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RuleActionsPair() { actionOutputs_ = 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 RuleActionsPair(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RuleActionsPair.class, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder.class); + com.google.cloud.contentwarehouse.v1.RuleActionsPair.class, + com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder.class); } public static final int RULE_FIELD_NUMBER = 1; private com.google.cloud.contentwarehouse.v1.Rule rule_; /** + * + * *
    * Represents the rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return Whether the rule field is set. */ @java.lang.Override @@ -58,11 +80,14 @@ public boolean hasRule() { return rule_ != null; } /** + * + * *
    * Represents the rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return The rule. */ @java.lang.Override @@ -70,6 +95,8 @@ public com.google.cloud.contentwarehouse.v1.Rule getRule() { return rule_ == null ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; } /** + * + * *
    * Represents the rule.
    * 
@@ -82,9 +109,12 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { } public static final int ACTION_OUTPUTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List actionOutputs_; /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -96,6 +126,8 @@ public java.util.List getActi return actionOutputs_; } /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -103,11 +135,13 @@ public java.util.List getActi * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ @java.lang.Override - public java.util.List + public java.util.List getActionOutputsOrBuilderList() { return actionOutputs_; } /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -119,6 +153,8 @@ public int getActionOutputsCount() { return actionOutputs_.size(); } /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -130,6 +166,8 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput getActionOutputs(int in return actionOutputs_.get(index); } /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -143,6 +181,7 @@ public com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutpu } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,8 +193,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (rule_ != null) { output.writeMessage(1, getRule()); } @@ -172,12 +210,10 @@ public int getSerializedSize() { size = 0; if (rule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRule()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRule()); } for (int i = 0; i < actionOutputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, actionOutputs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, actionOutputs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -187,20 +223,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.contentwarehouse.v1.RuleActionsPair)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RuleActionsPair other = (com.google.cloud.contentwarehouse.v1.RuleActionsPair) obj; + com.google.cloud.contentwarehouse.v1.RuleActionsPair other = + (com.google.cloud.contentwarehouse.v1.RuleActionsPair) obj; if (hasRule() != other.hasRule()) return false; if (hasRule()) { - if (!getRule() - .equals(other.getRule())) return false; + if (!getRule().equals(other.getRule())) return false; } - if (!getActionOutputsList() - .equals(other.getActionOutputsList())) return false; + if (!getActionOutputsList().equals(other.getActionOutputsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,131 +261,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.RuleActionsPair 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.contentwarehouse.v1.RuleActionsPair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.RuleActionsPair 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.contentwarehouse.v1.RuleActionsPair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.RuleActionsPair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RuleActionsPair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a rule and outputs of associated actions.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleActionsPair} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RuleActionsPair) com.google.cloud.contentwarehouse.v1.RuleActionsPairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RuleActionsPair.class, com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder.class); + com.google.cloud.contentwarehouse.v1.RuleActionsPair.class, + com.google.cloud.contentwarehouse.v1.RuleActionsPair.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RuleActionsPair.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; } @java.lang.Override @@ -392,14 +431,18 @@ public com.google.cloud.contentwarehouse.v1.RuleActionsPair build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleActionsPair buildPartial() { - com.google.cloud.contentwarehouse.v1.RuleActionsPair result = new com.google.cloud.contentwarehouse.v1.RuleActionsPair(this); + com.google.cloud.contentwarehouse.v1.RuleActionsPair result = + new com.google.cloud.contentwarehouse.v1.RuleActionsPair(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.RuleActionsPair result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.RuleActionsPair result) { if (actionOutputsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { actionOutputs_ = java.util.Collections.unmodifiableList(actionOutputs_); @@ -414,9 +457,7 @@ private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.Rul private void buildPartial0(com.google.cloud.contentwarehouse.v1.RuleActionsPair result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.rule_ = ruleBuilder_ == null - ? rule_ - : ruleBuilder_.build(); + result.rule_ = ruleBuilder_ == null ? rule_ : ruleBuilder_.build(); } } @@ -424,38 +465,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RuleActionsPair public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.RuleActionsPair) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleActionsPair)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleActionsPair) other); } else { super.mergeFrom(other); return this; @@ -463,7 +505,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleActionsPair other) { - if (other == com.google.cloud.contentwarehouse.v1.RuleActionsPair.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.RuleActionsPair.getDefaultInstance()) + return this; if (other.hasRule()) { mergeRule(other.getRule()); } @@ -485,9 +528,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleActionsPair ot actionOutputsBuilder_ = null; actionOutputs_ = other.actionOutputs_; bitField0_ = (bitField0_ & ~0x00000002); - actionOutputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getActionOutputsFieldBuilder() : null; + actionOutputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getActionOutputsFieldBuilder() + : null; } else { actionOutputsBuilder_.addAllMessages(other.actionOutputs_); } @@ -519,32 +563,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getRuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.contentwarehouse.v1.ActionOutput m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.ActionOutput.parser(), - extensionRegistry); - if (actionOutputsBuilder_ == null) { - ensureActionOutputsIsMutable(); - actionOutputs_.add(m); - } else { - actionOutputsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getRuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.contentwarehouse.v1.ActionOutput m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.ActionOutput.parser(), + extensionRegistry); + if (actionOutputsBuilder_ == null) { + ensureActionOutputsIsMutable(); + actionOutputs_.add(m); + } else { + actionOutputsBuilder_.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) { @@ -554,38 +599,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.contentwarehouse.v1.Rule rule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> ruleBuilder_; + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + ruleBuilder_; /** + * + * *
      * Represents the rule.
      * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return Whether the rule field is set. */ public boolean hasRule() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Represents the rule.
      * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return The rule. */ public com.google.cloud.contentwarehouse.v1.Rule getRule() { if (ruleBuilder_ == null) { - return rule_ == null ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; + return rule_ == null + ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() + : rule_; } else { return ruleBuilder_.getMessage(); } } /** + * + * *
      * Represents the rule.
      * 
@@ -606,14 +665,15 @@ public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** + * + * *
      * Represents the rule.
      * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; */ - public Builder setRule( - com.google.cloud.contentwarehouse.v1.Rule.Builder builderForValue) { + public Builder setRule(com.google.cloud.contentwarehouse.v1.Rule.Builder builderForValue) { if (ruleBuilder_ == null) { rule_ = builderForValue.build(); } else { @@ -624,6 +684,8 @@ public Builder setRule( return this; } /** + * + * *
      * Represents the rule.
      * 
@@ -632,9 +694,9 @@ public Builder setRule( */ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { if (ruleBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - rule_ != null && - rule_ != com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && rule_ != null + && rule_ != com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()) { getRuleBuilder().mergeFrom(value); } else { rule_ = value; @@ -647,6 +709,8 @@ public Builder mergeRule(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** + * + * *
      * Represents the rule.
      * 
@@ -664,6 +728,8 @@ public Builder clearRule() { return this; } /** + * + * *
      * Represents the rule.
      * 
@@ -676,6 +742,8 @@ public com.google.cloud.contentwarehouse.v1.Rule.Builder getRuleBuilder() { return getRuleFieldBuilder().getBuilder(); } /** + * + * *
      * Represents the rule.
      * 
@@ -686,11 +754,14 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { if (ruleBuilder_ != null) { return ruleBuilder_.getMessageOrBuilder(); } else { - return rule_ == null ? - com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() : rule_; + return rule_ == null + ? com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance() + : rule_; } } /** + * + * *
      * Represents the rule.
      * 
@@ -698,39 +769,51 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder() { * .google.cloud.contentwarehouse.v1.Rule rule = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder> getRuleFieldBuilder() { if (ruleBuilder_ == null) { - ruleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( - getRule(), - getParentForChildren(), - isClean()); + ruleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( + getRule(), getParentForChildren(), isClean()); rule_ = null; } return ruleBuilder_; } private java.util.List actionOutputs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureActionOutputsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - actionOutputs_ = new java.util.ArrayList(actionOutputs_); + actionOutputs_ = + new java.util.ArrayList( + actionOutputs_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ActionOutput, com.google.cloud.contentwarehouse.v1.ActionOutput.Builder, com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder> actionOutputsBuilder_; + com.google.cloud.contentwarehouse.v1.ActionOutput, + com.google.cloud.contentwarehouse.v1.ActionOutput.Builder, + com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder> + actionOutputsBuilder_; /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
* * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ - public java.util.List getActionOutputsList() { + public java.util.List + getActionOutputsList() { if (actionOutputsBuilder_ == null) { return java.util.Collections.unmodifiableList(actionOutputs_); } else { @@ -738,6 +821,8 @@ public java.util.List getActi } } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -752,6 +837,8 @@ public int getActionOutputsCount() { } } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -766,6 +853,8 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput getActionOutputs(int in } } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -787,6 +876,8 @@ public Builder setActionOutputs( return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -805,6 +896,8 @@ public Builder setActionOutputs( return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -825,6 +918,8 @@ public Builder addActionOutputs(com.google.cloud.contentwarehouse.v1.ActionOutpu return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -846,6 +941,8 @@ public Builder addActionOutputs( return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -864,6 +961,8 @@ public Builder addActionOutputs( return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -882,6 +981,8 @@ public Builder addActionOutputs( return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -892,8 +993,7 @@ public Builder addAllActionOutputs( java.lang.Iterable values) { if (actionOutputsBuilder_ == null) { ensureActionOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, actionOutputs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actionOutputs_); onChanged(); } else { actionOutputsBuilder_.addAllMessages(values); @@ -901,6 +1001,8 @@ public Builder addAllActionOutputs( return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -918,6 +1020,8 @@ public Builder clearActionOutputs() { return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -935,6 +1039,8 @@ public Builder removeActionOutputs(int index) { return this; } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -946,6 +1052,8 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder getActionOutput return getActionOutputsFieldBuilder().getBuilder(index); } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -955,19 +1063,22 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder getActionOutput public com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutputsOrBuilder( int index) { if (actionOutputsBuilder_ == null) { - return actionOutputs_.get(index); } else { + return actionOutputs_.get(index); + } else { return actionOutputsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
* * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ - public java.util.List - getActionOutputsOrBuilderList() { + public java.util.List + getActionOutputsOrBuilderList() { if (actionOutputsBuilder_ != null) { return actionOutputsBuilder_.getMessageOrBuilderList(); } else { @@ -975,6 +1086,8 @@ public com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutpu } } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -982,10 +1095,12 @@ public com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutpu * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder addActionOutputsBuilder() { - return getActionOutputsFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.ActionOutput.getDefaultInstance()); + return getActionOutputsFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.ActionOutput.getDefaultInstance()); } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
@@ -994,26 +1109,35 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder addActionOutput */ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder addActionOutputsBuilder( int index) { - return getActionOutputsFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.ActionOutput.getDefaultInstance()); + return getActionOutputsFieldBuilder() + .addBuilder( + index, com.google.cloud.contentwarehouse.v1.ActionOutput.getDefaultInstance()); } /** + * + * *
      * Outputs of executing the actions associated with the above rule.
      * 
* * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ - public java.util.List - getActionOutputsBuilderList() { + public java.util.List + getActionOutputsBuilderList() { return getActionOutputsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ActionOutput, com.google.cloud.contentwarehouse.v1.ActionOutput.Builder, com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder> + com.google.cloud.contentwarehouse.v1.ActionOutput, + com.google.cloud.contentwarehouse.v1.ActionOutput.Builder, + com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder> getActionOutputsFieldBuilder() { if (actionOutputsBuilder_ == null) { - actionOutputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ActionOutput, com.google.cloud.contentwarehouse.v1.ActionOutput.Builder, com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder>( + actionOutputsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ActionOutput, + com.google.cloud.contentwarehouse.v1.ActionOutput.Builder, + com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder>( actionOutputs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1022,9 +1146,9 @@ public com.google.cloud.contentwarehouse.v1.ActionOutput.Builder addActionOutput } return actionOutputsBuilder_; } + @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); } @@ -1034,12 +1158,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RuleActionsPair) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RuleActionsPair) private static final com.google.cloud.contentwarehouse.v1.RuleActionsPair DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RuleActionsPair(); } @@ -1048,27 +1172,27 @@ public static com.google.cloud.contentwarehouse.v1.RuleActionsPair getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuleActionsPair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RuleActionsPair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1083,6 +1207,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RuleActionsPair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java similarity index 73% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java index e1e598b15bf1..7ed32145d4ff 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleActionsPairOrBuilder.java @@ -1,31 +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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface RuleActionsPairOrBuilder extends +public interface RuleActionsPairOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RuleActionsPair) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Represents the rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return Whether the rule field is set. */ boolean hasRule(); /** + * + * *
    * Represents the rule.
    * 
* * .google.cloud.contentwarehouse.v1.Rule rule = 1; + * * @return The rule. */ com.google.cloud.contentwarehouse.v1.Rule getRule(); /** + * + * *
    * Represents the rule.
    * 
@@ -35,15 +59,18 @@ public interface RuleActionsPairOrBuilder extends com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRuleOrBuilder(); /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
* * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ - java.util.List - getActionOutputsList(); + java.util.List getActionOutputsList(); /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -52,6 +79,8 @@ public interface RuleActionsPairOrBuilder extends */ com.google.cloud.contentwarehouse.v1.ActionOutput getActionOutputs(int index); /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
@@ -60,21 +89,24 @@ public interface RuleActionsPairOrBuilder extends */ int getActionOutputsCount(); /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
* * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ - java.util.List + java.util.List getActionOutputsOrBuilderList(); /** + * + * *
    * Outputs of executing the actions associated with the above rule.
    * 
* * repeated .google.cloud.contentwarehouse.v1.ActionOutput action_outputs = 2; */ - com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutputsOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.ActionOutputOrBuilder getActionOutputsOrBuilder(int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java similarity index 68% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java index 913050e83802..8284b527fe61 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutput.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Records the output of Rule Engine including rule evaluation and actions
  * result.
@@ -11,48 +28,54 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleEngineOutput}
  */
-public final class RuleEngineOutput extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RuleEngineOutput extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RuleEngineOutput)
     RuleEngineOutputOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RuleEngineOutput.newBuilder() to construct.
   private RuleEngineOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RuleEngineOutput() {
     documentName_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RuleEngineOutput();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+        .internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+        .internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.class, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder.class);
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.class,
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder.class);
   }
 
   public static final int DOCUMENT_NAME_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object documentName_ = "";
   /**
+   *
+   *
    * 
    * Name of the document against which the rules and actions were evaluated.
    * 
* * string document_name = 3; + * * @return The documentName. */ @java.lang.Override @@ -61,29 +84,29 @@ public java.lang.String getDocumentName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentName_ = s; return s; } } /** + * + * *
    * Name of the document against which the rules and actions were evaluated.
    * 
* * string document_name = 3; + * * @return The bytes for documentName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDocumentNameBytes() { + public com.google.protobuf.ByteString getDocumentNameBytes() { java.lang.Object ref = documentName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentName_ = b; return b; } else { @@ -94,11 +117,14 @@ public java.lang.String getDocumentName() { public static final int RULE_EVALUATOR_OUTPUT_FIELD_NUMBER = 1; private com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput ruleEvaluatorOutput_; /** + * + * *
    * Output from Rule Evaluator containing matched, unmatched and invalid rules.
    * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; + * * @return Whether the ruleEvaluatorOutput field is set. */ @java.lang.Override @@ -106,18 +132,25 @@ public boolean hasRuleEvaluatorOutput() { return ruleEvaluatorOutput_ != null; } /** + * + * *
    * Output from Rule Evaluator containing matched, unmatched and invalid rules.
    * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; + * * @return The ruleEvaluatorOutput. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput getRuleEvaluatorOutput() { - return ruleEvaluatorOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() : ruleEvaluatorOutput_; + return ruleEvaluatorOutput_ == null + ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() + : ruleEvaluatorOutput_; } /** + * + * *
    * Output from Rule Evaluator containing matched, unmatched and invalid rules.
    * 
@@ -125,19 +158,25 @@ public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput getRuleEvaluator * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder getRuleEvaluatorOutputOrBuilder() { - return ruleEvaluatorOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() : ruleEvaluatorOutput_; + public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder + getRuleEvaluatorOutputOrBuilder() { + return ruleEvaluatorOutput_ == null + ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() + : ruleEvaluatorOutput_; } public static final int ACTION_EXECUTOR_OUTPUT_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.ActionExecutorOutput actionExecutorOutput_; /** + * + * *
    * Output from Action Executor containing rule and corresponding actions
    * execution result.
    * 
* * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * * @return Whether the actionExecutorOutput field is set. */ @java.lang.Override @@ -145,19 +184,26 @@ public boolean hasActionExecutorOutput() { return actionExecutorOutput_ != null; } /** + * + * *
    * Output from Action Executor containing rule and corresponding actions
    * execution result.
    * 
* * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * * @return The actionExecutorOutput. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput getActionExecutorOutput() { - return actionExecutorOutput_ == null ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() : actionExecutorOutput_; + return actionExecutorOutput_ == null + ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() + : actionExecutorOutput_; } /** + * + * *
    * Output from Action Executor containing rule and corresponding actions
    * execution result.
@@ -166,11 +212,15 @@ public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput getActionExecut
    * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder getActionExecutorOutputOrBuilder() {
-    return actionExecutorOutput_ == null ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() : actionExecutorOutput_;
+  public com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder
+      getActionExecutorOutputOrBuilder() {
+    return actionExecutorOutput_ == null
+        ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance()
+        : actionExecutorOutput_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -182,8 +232,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (ruleEvaluatorOutput_ != null) {
       output.writeMessage(1, getRuleEvaluatorOutput());
     }
@@ -203,12 +252,11 @@ public int getSerializedSize() {
 
     size = 0;
     if (ruleEvaluatorOutput_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getRuleEvaluatorOutput());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRuleEvaluatorOutput());
     }
     if (actionExecutorOutput_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getActionExecutorOutput());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(2, getActionExecutorOutput());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, documentName_);
@@ -221,24 +269,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.contentwarehouse.v1.RuleEngineOutput)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.RuleEngineOutput other = (com.google.cloud.contentwarehouse.v1.RuleEngineOutput) obj;
+    com.google.cloud.contentwarehouse.v1.RuleEngineOutput other =
+        (com.google.cloud.contentwarehouse.v1.RuleEngineOutput) obj;
 
-    if (!getDocumentName()
-        .equals(other.getDocumentName())) return false;
+    if (!getDocumentName().equals(other.getDocumentName())) return false;
     if (hasRuleEvaluatorOutput() != other.hasRuleEvaluatorOutput()) return false;
     if (hasRuleEvaluatorOutput()) {
-      if (!getRuleEvaluatorOutput()
-          .equals(other.getRuleEvaluatorOutput())) return false;
+      if (!getRuleEvaluatorOutput().equals(other.getRuleEvaluatorOutput())) return false;
     }
     if (hasActionExecutorOutput() != other.hasActionExecutorOutput()) return false;
     if (hasActionExecutorOutput()) {
-      if (!getActionExecutorOutput()
-          .equals(other.getActionExecutorOutput())) return false;
+      if (!getActionExecutorOutput().equals(other.getActionExecutorOutput())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -267,98 +313,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput 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.contentwarehouse.v1.RuleEngineOutput parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput 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.contentwarehouse.v1.RuleEngineOutput parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RuleEngineOutput prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.RuleEngineOutput prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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;
   }
   /**
+   *
+   *
    * 
    * Records the output of Rule Engine including rule evaluation and actions
    * result.
@@ -366,33 +418,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleEngineOutput}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RuleEngineOutput)
       com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+          .internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+          .internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.RuleEngineOutput.class, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder.class);
+              com.google.cloud.contentwarehouse.v1.RuleEngineOutput.class,
+              com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.RuleEngineOutput.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -412,9 +463,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.RuleEngineProto
+          .internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
     }
 
     @java.lang.Override
@@ -433,8 +484,11 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.RuleEngineOutput buildPartial() {
-      com.google.cloud.contentwarehouse.v1.RuleEngineOutput result = new com.google.cloud.contentwarehouse.v1.RuleEngineOutput(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.contentwarehouse.v1.RuleEngineOutput result =
+          new com.google.cloud.contentwarehouse.v1.RuleEngineOutput(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -445,14 +499,16 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RuleEngineOutput
         result.documentName_ = documentName_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.ruleEvaluatorOutput_ = ruleEvaluatorOutputBuilder_ == null
-            ? ruleEvaluatorOutput_
-            : ruleEvaluatorOutputBuilder_.build();
+        result.ruleEvaluatorOutput_ =
+            ruleEvaluatorOutputBuilder_ == null
+                ? ruleEvaluatorOutput_
+                : ruleEvaluatorOutputBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.actionExecutorOutput_ = actionExecutorOutputBuilder_ == null
-            ? actionExecutorOutput_
-            : actionExecutorOutputBuilder_.build();
+        result.actionExecutorOutput_ =
+            actionExecutorOutputBuilder_ == null
+                ? actionExecutorOutput_
+                : actionExecutorOutputBuilder_.build();
       }
     }
 
@@ -460,38 +516,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RuleEngineOutput
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.RuleEngineOutput) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleEngineOutput)other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleEngineOutput) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -499,7 +556,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleEngineOutput other) {
-      if (other == com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()) return this;
+      if (other == com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance())
+        return this;
       if (!other.getDocumentName().isEmpty()) {
         documentName_ = other.documentName_;
         bitField0_ |= 0x00000001;
@@ -537,31 +595,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getRuleEvaluatorOutputFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getActionExecutorOutputFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 18
-            case 26: {
-              documentName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(
+                    getRuleEvaluatorOutputFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(
+                    getActionExecutorOutputFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 18
+            case 26:
+              {
+                documentName_ = input.readStringRequireUtf8();
+                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) {
@@ -571,22 +631,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object documentName_ = "";
     /**
+     *
+     *
      * 
      * Name of the document against which the rules and actions were evaluated.
      * 
* * string document_name = 3; + * * @return The documentName. */ public java.lang.String getDocumentName() { java.lang.Object ref = documentName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentName_ = s; return s; @@ -595,20 +658,21 @@ public java.lang.String getDocumentName() { } } /** + * + * *
      * Name of the document against which the rules and actions were evaluated.
      * 
* * string document_name = 3; + * * @return The bytes for documentName. */ - public com.google.protobuf.ByteString - getDocumentNameBytes() { + public com.google.protobuf.ByteString getDocumentNameBytes() { java.lang.Object ref = documentName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentName_ = b; return b; } else { @@ -616,28 +680,35 @@ public java.lang.String getDocumentName() { } } /** + * + * *
      * Name of the document against which the rules and actions were evaluated.
      * 
* * string document_name = 3; + * * @param value The documentName to set. * @return This builder for chaining. */ - public Builder setDocumentName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } documentName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Name of the document against which the rules and actions were evaluated.
      * 
* * string document_name = 3; + * * @return This builder for chaining. */ public Builder clearDocumentName() { @@ -647,17 +718,21 @@ public Builder clearDocumentName() { return this; } /** + * + * *
      * Name of the document against which the rules and actions were evaluated.
      * 
* * string document_name = 3; + * * @param value The bytes for documentName to set. * @return This builder for chaining. */ - public Builder setDocumentNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); documentName_ = value; bitField0_ |= 0x00000001; @@ -667,41 +742,55 @@ public Builder setDocumentNameBytes( private com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput ruleEvaluatorOutput_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder> ruleEvaluatorOutputBuilder_; + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder, + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder> + ruleEvaluatorOutputBuilder_; /** + * + * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; + * * @return Whether the ruleEvaluatorOutput field is set. */ public boolean hasRuleEvaluatorOutput() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; + * * @return The ruleEvaluatorOutput. */ public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput getRuleEvaluatorOutput() { if (ruleEvaluatorOutputBuilder_ == null) { - return ruleEvaluatorOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() : ruleEvaluatorOutput_; + return ruleEvaluatorOutput_ == null + ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() + : ruleEvaluatorOutput_; } else { return ruleEvaluatorOutputBuilder_.getMessage(); } } /** + * + * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ - public Builder setRuleEvaluatorOutput(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput value) { + public Builder setRuleEvaluatorOutput( + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput value) { if (ruleEvaluatorOutputBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,6 +804,8 @@ public Builder setRuleEvaluatorOutput(com.google.cloud.contentwarehouse.v1.RuleE return this; } /** + * + * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
@@ -733,17 +824,21 @@ public Builder setRuleEvaluatorOutput( return this; } /** + * + * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ - public Builder mergeRuleEvaluatorOutput(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput value) { + public Builder mergeRuleEvaluatorOutput( + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput value) { if (ruleEvaluatorOutputBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - ruleEvaluatorOutput_ != null && - ruleEvaluatorOutput_ != com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && ruleEvaluatorOutput_ != null + && ruleEvaluatorOutput_ + != com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance()) { getRuleEvaluatorOutputBuilder().mergeFrom(value); } else { ruleEvaluatorOutput_ = value; @@ -756,6 +851,8 @@ public Builder mergeRuleEvaluatorOutput(com.google.cloud.contentwarehouse.v1.Rul return this; } /** + * + * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
@@ -773,33 +870,42 @@ public Builder clearRuleEvaluatorOutput() { return this; } /** + * + * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ - public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder getRuleEvaluatorOutputBuilder() { + public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder + getRuleEvaluatorOutputBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRuleEvaluatorOutputFieldBuilder().getBuilder(); } /** + * + * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ - public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder getRuleEvaluatorOutputOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder + getRuleEvaluatorOutputOrBuilder() { if (ruleEvaluatorOutputBuilder_ != null) { return ruleEvaluatorOutputBuilder_.getMessageOrBuilder(); } else { - return ruleEvaluatorOutput_ == null ? - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() : ruleEvaluatorOutput_; + return ruleEvaluatorOutput_ == null + ? com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance() + : ruleEvaluatorOutput_; } } /** + * + * *
      * Output from Rule Evaluator containing matched, unmatched and invalid rules.
      * 
@@ -807,14 +913,17 @@ public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder getRule * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder> + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder, + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder> getRuleEvaluatorOutputFieldBuilder() { if (ruleEvaluatorOutputBuilder_ == null) { - ruleEvaluatorOutputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder>( - getRuleEvaluatorOutput(), - getParentForChildren(), - isClean()); + ruleEvaluatorOutputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput, + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder, + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder>( + getRuleEvaluatorOutput(), getParentForChildren(), isClean()); ruleEvaluatorOutput_ = null; } return ruleEvaluatorOutputBuilder_; @@ -822,44 +931,61 @@ public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder getRule private com.google.cloud.contentwarehouse.v1.ActionExecutorOutput actionExecutorOutput_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput, com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder, com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder> actionExecutorOutputBuilder_; + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput, + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder, + com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder> + actionExecutorOutputBuilder_; /** + * + * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * + * * @return Whether the actionExecutorOutput field is set. */ public boolean hasActionExecutorOutput() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * + * * @return The actionExecutorOutput. */ public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput getActionExecutorOutput() { if (actionExecutorOutputBuilder_ == null) { - return actionExecutorOutput_ == null ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() : actionExecutorOutput_; + return actionExecutorOutput_ == null + ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() + : actionExecutorOutput_; } else { return actionExecutorOutputBuilder_.getMessage(); } } /** + * + * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * */ - public Builder setActionExecutorOutput(com.google.cloud.contentwarehouse.v1.ActionExecutorOutput value) { + public Builder setActionExecutorOutput( + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput value) { if (actionExecutorOutputBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -873,12 +999,15 @@ public Builder setActionExecutorOutput(com.google.cloud.contentwarehouse.v1.Acti return this; } /** + * + * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * */ public Builder setActionExecutorOutput( com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder builderForValue) { @@ -892,18 +1021,23 @@ public Builder setActionExecutorOutput( return this; } /** + * + * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * */ - public Builder mergeActionExecutorOutput(com.google.cloud.contentwarehouse.v1.ActionExecutorOutput value) { + public Builder mergeActionExecutorOutput( + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput value) { if (actionExecutorOutputBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - actionExecutorOutput_ != null && - actionExecutorOutput_ != com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && actionExecutorOutput_ != null + && actionExecutorOutput_ + != com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance()) { getActionExecutorOutputBuilder().mergeFrom(value); } else { actionExecutorOutput_ = value; @@ -916,12 +1050,15 @@ public Builder mergeActionExecutorOutput(com.google.cloud.contentwarehouse.v1.Ac return this; } /** + * + * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * */ public Builder clearActionExecutorOutput() { bitField0_ = (bitField0_ & ~0x00000004); @@ -934,58 +1071,73 @@ public Builder clearActionExecutorOutput() { return this; } /** + * + * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * */ - public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder getActionExecutorOutputBuilder() { + public com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder + getActionExecutorOutputBuilder() { bitField0_ |= 0x00000004; onChanged(); return getActionExecutorOutputFieldBuilder().getBuilder(); } /** + * + * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * */ - public com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder getActionExecutorOutputOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder + getActionExecutorOutputOrBuilder() { if (actionExecutorOutputBuilder_ != null) { return actionExecutorOutputBuilder_.getMessageOrBuilder(); } else { - return actionExecutorOutput_ == null ? - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() : actionExecutorOutput_; + return actionExecutorOutput_ == null + ? com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.getDefaultInstance() + : actionExecutorOutput_; } } /** + * + * *
      * Output from Action Executor containing rule and corresponding actions
      * execution result.
      * 
* - * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput, com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder, com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder> + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput, + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder, + com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder> getActionExecutorOutputFieldBuilder() { if (actionExecutorOutputBuilder_ == null) { - actionExecutorOutputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ActionExecutorOutput, com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder, com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder>( - getActionExecutorOutput(), - getParentForChildren(), - isClean()); + actionExecutorOutputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput, + com.google.cloud.contentwarehouse.v1.ActionExecutorOutput.Builder, + com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder>( + getActionExecutorOutput(), getParentForChildren(), isClean()); actionExecutorOutput_ = null; } return actionExecutorOutputBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -995,12 +1147,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RuleEngineOutput) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RuleEngineOutput) private static final com.google.cloud.contentwarehouse.v1.RuleEngineOutput DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RuleEngineOutput(); } @@ -1009,27 +1161,27 @@ public static com.google.cloud.contentwarehouse.v1.RuleEngineOutput getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuleEngineOutput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RuleEngineOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1044,6 +1196,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java similarity index 74% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java index dc4173093c64..449b63c91526 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineOutputOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface RuleEngineOutputOrBuilder extends +public interface RuleEngineOutputOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RuleEngineOutput) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the document against which the rules and actions were evaluated.
    * 
* * string document_name = 3; + * * @return The documentName. */ java.lang.String getDocumentName(); /** + * + * *
    * Name of the document against which the rules and actions were evaluated.
    * 
* * string document_name = 3; + * * @return The bytes for documentName. */ - com.google.protobuf.ByteString - getDocumentNameBytes(); + com.google.protobuf.ByteString getDocumentNameBytes(); /** + * + * *
    * Output from Rule Evaluator containing matched, unmatched and invalid rules.
    * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; + * * @return Whether the ruleEvaluatorOutput field is set. */ boolean hasRuleEvaluatorOutput(); /** + * + * *
    * Output from Rule Evaluator containing matched, unmatched and invalid rules.
    * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; + * * @return The ruleEvaluatorOutput. */ com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput getRuleEvaluatorOutput(); /** + * + * *
    * Output from Rule Evaluator containing matched, unmatched and invalid rules.
    * 
* * .google.cloud.contentwarehouse.v1.RuleEvaluatorOutput rule_evaluator_output = 1; */ - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder getRuleEvaluatorOutputOrBuilder(); + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder + getRuleEvaluatorOutputOrBuilder(); /** + * + * *
    * Output from Action Executor containing rule and corresponding actions
    * execution result.
    * 
* * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * * @return Whether the actionExecutorOutput field is set. */ boolean hasActionExecutorOutput(); /** + * + * *
    * Output from Action Executor containing rule and corresponding actions
    * execution result.
    * 
* * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2; + * * @return The actionExecutorOutput. */ com.google.cloud.contentwarehouse.v1.ActionExecutorOutput getActionExecutorOutput(); /** + * + * *
    * Output from Action Executor containing rule and corresponding actions
    * execution result.
@@ -82,5 +120,6 @@ public interface RuleEngineOutputOrBuilder extends
    *
    * .google.cloud.contentwarehouse.v1.ActionExecutorOutput action_executor_output = 2;
    */
-  com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder getActionExecutorOutputOrBuilder();
+  com.google.cloud.contentwarehouse.v1.ActionExecutorOutputOrBuilder
+      getActionExecutorOutputOrBuilder();
 }
diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java
new file mode 100644
index 000000000000..7839b4c04f29
--- /dev/null
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java
@@ -0,0 +1,375 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/contentwarehouse/v1/rule_engine.proto
+
+package com.google.cloud.contentwarehouse.v1;
+
+public final class RuleEngineProto {
+  private RuleEngineProto() {}
+
+  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_contentwarehouse_v1_RuleSet_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_Action_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_contentwarehouse_v1_ActionOutput_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/contentwarehouse/v1/rule_"
+          + "engine.proto\022 google.cloud.contentwareho"
+          + "use.v1\032\037google/api/field_behavior.proto\032"
+          + "\031google/api/resource.proto\032\032google/iam/v"
+          + "1/policy.proto\"\336\001\n\007RuleSet\022\014\n\004name\030\006 \001(\t"
+          + "\022\023\n\013description\030\001 \001(\t\022\016\n\006source\030\002 \001(\t\0225\n"
+          + "\005rules\030\003 \003(\0132&.google.cloud.contentwareh"
+          + "ouse.v1.Rule:i\352Af\n\'contentwarehouse.goog"
+          + "leapis.com/RuleSet\022;projects/{project}/l"
+          + "ocations/{location}/ruleSets/{rule_set}\""
+          + "\246\002\n\004Rule\022\023\n\013description\030\001 \001(\t\022\017\n\007rule_id"
+          + "\030\002 \001(\t\022H\n\014trigger_type\030\003 \001(\01622.google.cl"
+          + "oud.contentwarehouse.v1.Rule.TriggerType"
+          + "\022\021\n\tcondition\030\004 \001(\t\0229\n\007actions\030\005 \003(\0132(.g"
+          + "oogle.cloud.contentwarehouse.v1.Action\"`"
+          + "\n\013TriggerType\022\013\n\007UNKNOWN\020\000\022\r\n\tON_CREATE\020"
+          + "\001\022\r\n\tON_UPDATE\020\004\022\022\n\016ON_CREATE_LINK\020\007\022\022\n\016"
+          + "ON_DELETE_LINK\020\010\"\352\004\n\006Action\022\021\n\taction_id"
+          + "\030\001 \001(\t\022O\n\016access_control\030\002 \001(\01325.google."
+          + "cloud.contentwarehouse.v1.AccessControlA"
+          + "ctionH\000\022Q\n\017data_validation\030\003 \001(\01326.googl"
+          + "e.cloud.contentwarehouse.v1.DataValidati"
+          + "onActionH\000\022I\n\013data_update\030\004 \001(\01322.google"
+          + ".cloud.contentwarehouse.v1.DataUpdateAct"
+          + "ionH\000\022L\n\radd_to_folder\030\005 \001(\01323.google.cl"
+          + "oud.contentwarehouse.v1.AddToFolderActio"
+          + "nH\000\022M\n\022publish_to_pub_sub\030\006 \001(\0132/.google"
+          + ".cloud.contentwarehouse.v1.PublishAction"
+          + "H\000\022]\n\031remove_from_folder_action\030\t \001(\01328."
+          + "google.cloud.contentwarehouse.v1.RemoveF"
+          + "romFolderActionH\000\022X\n\026delete_document_act"
+          + "ion\030\n \001(\01326.google.cloud.contentwarehous"
+          + "e.v1.DeleteDocumentActionH\000B\010\n\006action\"\206\002"
+          + "\n\023AccessControlAction\022[\n\016operation_type\030"
+          + "\001 \001(\0162C.google.cloud.contentwarehouse.v1"
+          + ".AccessControlAction.OperationType\022%\n\006po"
+          + "licy\030\002 \001(\0132\025.google.iam.v1.Policy\"k\n\rOpe"
+          + "rationType\022\013\n\007UNKNOWN\020\000\022\026\n\022ADD_POLICY_BI"
+          + "NDING\020\001\022\031\n\025REMOVE_POLICY_BINDING\020\002\022\032\n\026RE"
+          + "PLACE_POLICY_BINDING\020\003\"\245\001\n\024DataValidatio"
+          + "nAction\022Z\n\nconditions\030\001 \003(\0132F.google.clo"
+          + "ud.contentwarehouse.v1.DataValidationAct"
+          + "ion.ConditionsEntry\0321\n\017ConditionsEntry\022\013"
+          + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\224\001\n\020DataU"
+          + "pdateAction\022P\n\007entries\030\001 \003(\0132?.google.cl"
+          + "oud.contentwarehouse.v1.DataUpdateAction"
+          + ".EntriesEntry\032.\n\014EntriesEntry\022\013\n\003key\030\001 \001"
+          + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\021AddToFolderActi"
+          + "on\022>\n\007folders\030\001 \003(\tB-\372A*\n(contentwarehou"
+          + "se.googleapis.com/Document\"j\n\026RemoveFrom"
+          + "FolderAction\022\021\n\tcondition\030\001 \001(\t\022=\n\006folde"
+          + "r\030\002 \001(\tB-\372A*\n(contentwarehouse.googleapi"
+          + "s.com/Document\"3\n\rPublishAction\022\020\n\010topic"
+          + "_id\030\001 \001(\t\022\020\n\010messages\030\002 \003(\t\"2\n\024DeleteDoc"
+          + "umentAction\022\032\n\022enable_hard_delete\030\001 \001(\010\""
+          + "\327\001\n\020RuleEngineOutput\022\025\n\rdocument_name\030\003 "
+          + "\001(\t\022T\n\025rule_evaluator_output\030\001 \001(\01325.goo"
+          + "gle.cloud.contentwarehouse.v1.RuleEvalua"
+          + "torOutput\022V\n\026action_executor_output\030\002 \001("
+          + "\01326.google.cloud.contentwarehouse.v1.Act"
+          + "ionExecutorOutput\"\333\001\n\023RuleEvaluatorOutpu"
+          + "t\022?\n\017triggered_rules\030\001 \003(\0132&.google.clou"
+          + "d.contentwarehouse.v1.Rule\022=\n\rmatched_ru"
+          + "les\030\002 \003(\0132&.google.cloud.contentwarehous"
+          + "e.v1.Rule\022D\n\rinvalid_rules\030\003 \003(\0132-.googl"
+          + "e.cloud.contentwarehouse.v1.InvalidRule\""
+          + "R\n\013InvalidRule\0224\n\004rule\030\001 \001(\0132&.google.cl"
+          + "oud.contentwarehouse.v1.Rule\022\r\n\005error\030\002 "
+          + "\001(\t\"e\n\024ActionExecutorOutput\022M\n\022rule_acti"
+          + "ons_pairs\030\001 \003(\01321.google.cloud.contentwa"
+          + "rehouse.v1.RuleActionsPair\"\217\001\n\017RuleActio"
+          + "nsPair\0224\n\004rule\030\001 \001(\0132&.google.cloud.cont"
+          + "entwarehouse.v1.Rule\022F\n\016action_outputs\030\002"
+          + " \003(\0132..google.cloud.contentwarehouse.v1."
+          + "ActionOutput\"\356\001\n\014ActionOutput\022\021\n\taction_"
+          + "id\030\001 \001(\t\022J\n\014action_state\030\002 \001(\01624.google."
+          + "cloud.contentwarehouse.v1.ActionOutput.S"
+          + "tate\022\026\n\016output_message\030\003 \001(\t\"g\n\005State\022\013\n"
+          + "\007UNKNOWN\020\000\022\024\n\020ACTION_SUCCEEDED\020\001\022\021\n\rACTI"
+          + "ON_FAILED\020\002\022\024\n\020ACTION_TIMED_OUT\020\003\022\022\n\016ACT"
+          + "ION_PENDING\020\004B\367\001\n$com.google.cloud.conte"
+          + "ntwarehouse.v1B\017RuleEngineProtoP\001ZPcloud"
+          + ".google.com/go/contentwarehouse/apiv1/co"
+          + "ntentwarehousepb;contentwarehousepb\252\002 Go"
+          + "ogle.Cloud.ContentWarehouse.V1\312\002 Google\\"
+          + "Cloud\\ContentWarehouse\\V1\352\002#Google::Clou"
+          + "d::ContentWarehouse::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.iam.v1.PolicyProto.getDescriptor(),
+            });
+    internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor,
+            new java.lang.String[] {
+              "Name", "Description", "Source", "Rules",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor,
+            new java.lang.String[] {
+              "Description", "RuleId", "TriggerType", "Condition", "Actions",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_Action_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_Action_descriptor,
+            new java.lang.String[] {
+              "ActionId",
+              "AccessControl",
+              "DataValidation",
+              "DataUpdate",
+              "AddToFolder",
+              "PublishToPubSub",
+              "RemoveFromFolderAction",
+              "DeleteDocumentAction",
+              "Action",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor,
+            new java.lang.String[] {
+              "OperationType", "Policy",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor,
+            new java.lang.String[] {
+              "Conditions",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor =
+        internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor,
+            new java.lang.String[] {
+              "Entries",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor =
+        internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor,
+            new java.lang.String[] {
+              "Folders",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor,
+            new java.lang.String[] {
+              "Condition", "Folder",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor,
+            new java.lang.String[] {
+              "TopicId", "Messages",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor =
+        getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor,
+            new java.lang.String[] {
+              "EnableHardDelete",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor =
+        getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor,
+            new java.lang.String[] {
+              "DocumentName", "RuleEvaluatorOutput", "ActionExecutorOutput",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor =
+        getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor,
+            new java.lang.String[] {
+              "TriggeredRules", "MatchedRules", "InvalidRules",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor =
+        getDescriptor().getMessageTypes().get(12);
+    internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor,
+            new java.lang.String[] {
+              "Rule", "Error",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor =
+        getDescriptor().getMessageTypes().get(13);
+    internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor,
+            new java.lang.String[] {
+              "RuleActionsPairs",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor =
+        getDescriptor().getMessageTypes().get(14);
+    internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor,
+            new java.lang.String[] {
+              "Rule", "ActionOutputs",
+            });
+    internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor =
+        getDescriptor().getMessageTypes().get(15);
+    internal_static_google_cloud_contentwarehouse_v1_ActionOutput_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor,
+            new java.lang.String[] {
+              "ActionId", "ActionState", "OutputMessage",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ResourceProto.resource);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.iam.v1.PolicyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java
similarity index 77%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java
index 5815914ce7fa..1db0cc245254 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutput.java
@@ -1,24 +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/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Represents the output of the Rule Evaluator.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleEvaluatorOutput} */ -public final class RuleEvaluatorOutput extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RuleEvaluatorOutput extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RuleEvaluatorOutput) RuleEvaluatorOutputOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RuleEvaluatorOutput.newBuilder() to construct. private RuleEvaluatorOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RuleEvaluatorOutput() { triggeredRules_ = java.util.Collections.emptyList(); matchedRules_ = java.util.Collections.emptyList(); @@ -27,28 +45,32 @@ private RuleEvaluatorOutput() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RuleEvaluatorOutput(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.class, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder.class); + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.class, + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder.class); } public static final int TRIGGERED_RULES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List triggeredRules_; /** + * + * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -60,6 +82,8 @@ public java.util.List getTriggeredRul return triggeredRules_; } /** + * + * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -67,11 +91,13 @@ public java.util.List getTriggeredRul * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ @java.lang.Override - public java.util.List + public java.util.List getTriggeredRulesOrBuilderList() { return triggeredRules_; } /** + * + * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -83,6 +109,8 @@ public int getTriggeredRulesCount() { return triggeredRules_.size(); } /** + * + * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -94,6 +122,8 @@ public com.google.cloud.contentwarehouse.v1.Rule getTriggeredRules(int index) { return triggeredRules_.get(index); } /** + * + * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -101,15 +131,17 @@ public com.google.cloud.contentwarehouse.v1.Rule getTriggeredRules(int index) { * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBuilder(int index) { return triggeredRules_.get(index); } public static final int MATCHED_RULES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List matchedRules_; /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -121,6 +153,8 @@ public java.util.List getMatchedRules return matchedRules_; } /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -128,11 +162,13 @@ public java.util.List getMatchedRules * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ @java.lang.Override - public java.util.List + public java.util.List getMatchedRulesOrBuilderList() { return matchedRules_; } /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -144,6 +180,8 @@ public int getMatchedRulesCount() { return matchedRules_.size(); } /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -155,6 +193,8 @@ public com.google.cloud.contentwarehouse.v1.Rule getMatchedRules(int index) { return matchedRules_.get(index); } /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -162,15 +202,17 @@ public com.google.cloud.contentwarehouse.v1.Rule getMatchedRules(int index) { * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder(int index) { return matchedRules_.get(index); } public static final int INVALID_RULES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List invalidRules_; /** + * + * *
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -183,6 +225,8 @@ public java.util.List getInval
     return invalidRules_;
   }
   /**
+   *
+   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -191,11 +235,13 @@ public java.util.List getInval
    * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getInvalidRulesOrBuilderList() {
     return invalidRules_;
   }
   /**
+   *
+   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -208,6 +254,8 @@ public int getInvalidRulesCount() {
     return invalidRules_.size();
   }
   /**
+   *
+   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -220,6 +268,8 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule getInvalidRules(int inde
     return invalidRules_.get(index);
   }
   /**
+   *
+   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -234,6 +284,7 @@ public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRules
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -245,8 +296,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < triggeredRules_.size(); i++) {
       output.writeMessage(1, triggeredRules_.get(i));
     }
@@ -266,16 +316,13 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < triggeredRules_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, triggeredRules_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, triggeredRules_.get(i));
     }
     for (int i = 0; i < matchedRules_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, matchedRules_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, matchedRules_.get(i));
     }
     for (int i = 0; i < invalidRules_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, invalidRules_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, invalidRules_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -285,19 +332,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.contentwarehouse.v1.RuleEvaluatorOutput)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput other = (com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput) obj;
+    com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput other =
+        (com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput) obj;
 
-    if (!getTriggeredRulesList()
-        .equals(other.getTriggeredRulesList())) return false;
-    if (!getMatchedRulesList()
-        .equals(other.getMatchedRulesList())) return false;
-    if (!getInvalidRulesList()
-        .equals(other.getInvalidRulesList())) return false;
+    if (!getTriggeredRulesList().equals(other.getTriggeredRulesList())) return false;
+    if (!getMatchedRulesList().equals(other.getMatchedRulesList())) return false;
+    if (!getInvalidRulesList().equals(other.getInvalidRulesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -327,131 +372,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput 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.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput 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.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Represents the output of the Rule Evaluator.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleEvaluatorOutput} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RuleEvaluatorOutput) com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.class, com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder.class); + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.class, + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +531,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; } @java.lang.Override @@ -502,14 +552,18 @@ public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput buildPartial() { - com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput result = new com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput(this); + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput result = + new com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput result) { if (triggeredRulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { triggeredRules_ = java.util.Collections.unmodifiableList(triggeredRules_); @@ -547,38 +601,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOut public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.RuleEvaluatorOutput) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput) other); } else { super.mergeFrom(other); return this; @@ -586,7 +641,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput other) { - if (other == com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput.getDefaultInstance()) + return this; if (triggeredRulesBuilder_ == null) { if (!other.triggeredRules_.isEmpty()) { if (triggeredRules_.isEmpty()) { @@ -605,9 +661,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutpu triggeredRulesBuilder_ = null; triggeredRules_ = other.triggeredRules_; bitField0_ = (bitField0_ & ~0x00000001); - triggeredRulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTriggeredRulesFieldBuilder() : null; + triggeredRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTriggeredRulesFieldBuilder() + : null; } else { triggeredRulesBuilder_.addAllMessages(other.triggeredRules_); } @@ -631,9 +688,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutpu matchedRulesBuilder_ = null; matchedRules_ = other.matchedRules_; bitField0_ = (bitField0_ & ~0x00000002); - matchedRulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMatchedRulesFieldBuilder() : null; + matchedRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMatchedRulesFieldBuilder() + : null; } else { matchedRulesBuilder_.addAllMessages(other.matchedRules_); } @@ -657,9 +715,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutpu invalidRulesBuilder_ = null; invalidRules_ = other.invalidRules_; bitField0_ = (bitField0_ & ~0x00000004); - invalidRulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInvalidRulesFieldBuilder() : null; + invalidRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInvalidRulesFieldBuilder() + : null; } else { invalidRulesBuilder_.addAllMessages(other.invalidRules_); } @@ -691,51 +750,53 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.Rule m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.Rule.parser(), - extensionRegistry); - if (triggeredRulesBuilder_ == null) { - ensureTriggeredRulesIsMutable(); - triggeredRules_.add(m); - } else { - triggeredRulesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.cloud.contentwarehouse.v1.Rule m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.Rule.parser(), - extensionRegistry); - if (matchedRulesBuilder_ == null) { - ensureMatchedRulesIsMutable(); - matchedRules_.add(m); - } else { - matchedRulesBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - com.google.cloud.contentwarehouse.v1.InvalidRule m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.InvalidRule.parser(), - extensionRegistry); - if (invalidRulesBuilder_ == null) { - ensureInvalidRulesIsMutable(); - invalidRules_.add(m); - } else { - invalidRulesBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.contentwarehouse.v1.Rule m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.Rule.parser(), extensionRegistry); + if (triggeredRulesBuilder_ == null) { + ensureTriggeredRulesIsMutable(); + triggeredRules_.add(m); + } else { + triggeredRulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.contentwarehouse.v1.Rule m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.Rule.parser(), extensionRegistry); + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(m); + } else { + matchedRulesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.contentwarehouse.v1.InvalidRule m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.InvalidRule.parser(), + extensionRegistry); + if (invalidRulesBuilder_ == null) { + ensureInvalidRulesIsMutable(); + invalidRules_.add(m); + } else { + invalidRulesBuilder_.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) { @@ -745,21 +806,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List triggeredRules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTriggeredRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - triggeredRules_ = new java.util.ArrayList(triggeredRules_); + triggeredRules_ = + new java.util.ArrayList(triggeredRules_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> triggeredRulesBuilder_; + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + triggeredRulesBuilder_; /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -774,6 +843,8 @@ public java.util.List getTriggeredRul } } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -788,6 +859,8 @@ public int getTriggeredRulesCount() { } } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -802,14 +875,15 @@ public com.google.cloud.contentwarehouse.v1.Rule getTriggeredRules(int index) { } } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - public Builder setTriggeredRules( - int index, com.google.cloud.contentwarehouse.v1.Rule value) { + public Builder setTriggeredRules(int index, com.google.cloud.contentwarehouse.v1.Rule value) { if (triggeredRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -823,6 +897,8 @@ public Builder setTriggeredRules( return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -841,6 +917,8 @@ public Builder setTriggeredRules( return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -861,14 +939,15 @@ public Builder addTriggeredRules(com.google.cloud.contentwarehouse.v1.Rule value return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - public Builder addTriggeredRules( - int index, com.google.cloud.contentwarehouse.v1.Rule value) { + public Builder addTriggeredRules(int index, com.google.cloud.contentwarehouse.v1.Rule value) { if (triggeredRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -882,6 +961,8 @@ public Builder addTriggeredRules( return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -900,6 +981,8 @@ public Builder addTriggeredRules( return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -918,6 +1001,8 @@ public Builder addTriggeredRules( return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -928,8 +1013,7 @@ public Builder addAllTriggeredRules( java.lang.Iterable values) { if (triggeredRulesBuilder_ == null) { ensureTriggeredRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, triggeredRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, triggeredRules_); onChanged(); } else { triggeredRulesBuilder_.addAllMessages(values); @@ -937,6 +1021,8 @@ public Builder addAllTriggeredRules( return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -954,6 +1040,8 @@ public Builder clearTriggeredRules() { return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -971,17 +1059,20 @@ public Builder removeTriggeredRules(int index) { return this; } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - public com.google.cloud.contentwarehouse.v1.Rule.Builder getTriggeredRulesBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.Rule.Builder getTriggeredRulesBuilder(int index) { return getTriggeredRulesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -991,19 +1082,22 @@ public com.google.cloud.contentwarehouse.v1.Rule.Builder getTriggeredRulesBuilde public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBuilder( int index) { if (triggeredRulesBuilder_ == null) { - return triggeredRules_.get(index); } else { + return triggeredRules_.get(index); + } else { return triggeredRulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - public java.util.List - getTriggeredRulesOrBuilderList() { + public java.util.List + getTriggeredRulesOrBuilderList() { if (triggeredRulesBuilder_ != null) { return triggeredRulesBuilder_.getMessageOrBuilderList(); } else { @@ -1011,6 +1105,8 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBui } } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
@@ -1018,38 +1114,47 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBui * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ public com.google.cloud.contentwarehouse.v1.Rule.Builder addTriggeredRulesBuilder() { - return getTriggeredRulesFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); + return getTriggeredRulesFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - public com.google.cloud.contentwarehouse.v1.Rule.Builder addTriggeredRulesBuilder( - int index) { - return getTriggeredRulesFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.Rule.Builder addTriggeredRulesBuilder(int index) { + return getTriggeredRulesFieldBuilder() + .addBuilder(index, com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); } /** + * + * *
      * List of rules fetched from database for the given request trigger type.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - public java.util.List - getTriggeredRulesBuilderList() { + public java.util.List + getTriggeredRulesBuilderList() { return getTriggeredRulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder> getTriggeredRulesFieldBuilder() { if (triggeredRulesBuilder_ == null) { - triggeredRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( + triggeredRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( triggeredRules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1060,18 +1165,25 @@ public com.google.cloud.contentwarehouse.v1.Rule.Builder addTriggeredRulesBuilde } private java.util.List matchedRules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMatchedRulesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - matchedRules_ = new java.util.ArrayList(matchedRules_); + matchedRules_ = + new java.util.ArrayList(matchedRules_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> matchedRulesBuilder_; + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + matchedRulesBuilder_; /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1086,6 +1198,8 @@ public java.util.List getMatchedRules } } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1100,6 +1214,8 @@ public int getMatchedRulesCount() { } } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1114,14 +1230,15 @@ public com.google.cloud.contentwarehouse.v1.Rule getMatchedRules(int index) { } } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public Builder setMatchedRules( - int index, com.google.cloud.contentwarehouse.v1.Rule value) { + public Builder setMatchedRules(int index, com.google.cloud.contentwarehouse.v1.Rule value) { if (matchedRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1135,6 +1252,8 @@ public Builder setMatchedRules( return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1153,6 +1272,8 @@ public Builder setMatchedRules( return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1173,14 +1294,15 @@ public Builder addMatchedRules(com.google.cloud.contentwarehouse.v1.Rule value) return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public Builder addMatchedRules( - int index, com.google.cloud.contentwarehouse.v1.Rule value) { + public Builder addMatchedRules(int index, com.google.cloud.contentwarehouse.v1.Rule value) { if (matchedRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1194,6 +1316,8 @@ public Builder addMatchedRules( return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1212,6 +1336,8 @@ public Builder addMatchedRules( return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1230,6 +1356,8 @@ public Builder addMatchedRules( return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1240,8 +1368,7 @@ public Builder addAllMatchedRules( java.lang.Iterable values) { if (matchedRulesBuilder_ == null) { ensureMatchedRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, matchedRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchedRules_); onChanged(); } else { matchedRulesBuilder_.addAllMessages(values); @@ -1249,6 +1376,8 @@ public Builder addAllMatchedRules( return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1266,6 +1395,8 @@ public Builder clearMatchedRules() { return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1283,39 +1414,44 @@ public Builder removeMatchedRules(int index) { return this; } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public com.google.cloud.contentwarehouse.v1.Rule.Builder getMatchedRulesBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.Rule.Builder getMatchedRulesBuilder(int index) { return getMatchedRulesFieldBuilder().getBuilder(index); } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder(int index) { if (matchedRulesBuilder_ == null) { - return matchedRules_.get(index); } else { + return matchedRules_.get(index); + } else { return matchedRulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public java.util.List - getMatchedRulesOrBuilderList() { + public java.util.List + getMatchedRulesOrBuilderList() { if (matchedRulesBuilder_ != null) { return matchedRulesBuilder_.getMessageOrBuilderList(); } else { @@ -1323,6 +1459,8 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuild } } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
@@ -1330,60 +1468,74 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuild * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ public com.google.cloud.contentwarehouse.v1.Rule.Builder addMatchedRulesBuilder() { - return getMatchedRulesFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); + return getMatchedRulesFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public com.google.cloud.contentwarehouse.v1.Rule.Builder addMatchedRulesBuilder( - int index) { - return getMatchedRulesFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.Rule.Builder addMatchedRulesBuilder(int index) { + return getMatchedRulesFieldBuilder() + .addBuilder(index, com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); } /** + * + * *
      * A subset of triggered rules that are evaluated true for a given request.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - public java.util.List - getMatchedRulesBuilderList() { + public java.util.List + getMatchedRulesBuilderList() { return getMatchedRulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder> getMatchedRulesFieldBuilder() { if (matchedRulesBuilder_ == null) { - matchedRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( - matchedRules_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + matchedRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( + matchedRules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); matchedRules_ = null; } return matchedRulesBuilder_; } private java.util.List invalidRules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInvalidRulesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - invalidRules_ = new java.util.ArrayList(invalidRules_); + invalidRules_ = + new java.util.ArrayList( + invalidRules_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.InvalidRule, com.google.cloud.contentwarehouse.v1.InvalidRule.Builder, com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder> invalidRulesBuilder_; + com.google.cloud.contentwarehouse.v1.InvalidRule, + com.google.cloud.contentwarehouse.v1.InvalidRule.Builder, + com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder> + invalidRulesBuilder_; /** + * + * *
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1399,6 +1551,8 @@ public java.util.List getInval
       }
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1414,6 +1568,8 @@ public int getInvalidRulesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1429,6 +1585,8 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule getInvalidRules(int inde
       }
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1451,6 +1609,8 @@ public Builder setInvalidRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1470,6 +1630,8 @@ public Builder setInvalidRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1491,6 +1653,8 @@ public Builder addInvalidRules(com.google.cloud.contentwarehouse.v1.InvalidRule
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1513,6 +1677,8 @@ public Builder addInvalidRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1532,6 +1698,8 @@ public Builder addInvalidRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1551,6 +1719,8 @@ public Builder addInvalidRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1562,8 +1732,7 @@ public Builder addAllInvalidRules(
         java.lang.Iterable values) {
       if (invalidRulesBuilder_ == null) {
         ensureInvalidRulesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, invalidRules_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invalidRules_);
         onChanged();
       } else {
         invalidRulesBuilder_.addAllMessages(values);
@@ -1571,6 +1740,8 @@ public Builder addAllInvalidRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1589,6 +1760,8 @@ public Builder clearInvalidRules() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1607,6 +1780,8 @@ public Builder removeInvalidRules(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1619,6 +1794,8 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule.Builder getInvalidRulesB
       return getInvalidRulesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1629,11 +1806,14 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule.Builder getInvalidRulesB
     public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRulesOrBuilder(
         int index) {
       if (invalidRulesBuilder_ == null) {
-        return invalidRules_.get(index);  } else {
+        return invalidRules_.get(index);
+      } else {
         return invalidRulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1641,8 +1821,8 @@ public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRules
      *
      * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
      */
-    public java.util.List 
-         getInvalidRulesOrBuilderList() {
+    public java.util.List
+        getInvalidRulesOrBuilderList() {
       if (invalidRulesBuilder_ != null) {
         return invalidRulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1650,6 +1830,8 @@ public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRules
       }
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1658,10 +1840,12 @@ public com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRules
      * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
      */
     public com.google.cloud.contentwarehouse.v1.InvalidRule.Builder addInvalidRulesBuilder() {
-      return getInvalidRulesFieldBuilder().addBuilder(
-          com.google.cloud.contentwarehouse.v1.InvalidRule.getDefaultInstance());
+      return getInvalidRulesFieldBuilder()
+          .addBuilder(com.google.cloud.contentwarehouse.v1.InvalidRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1671,10 +1855,12 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule.Builder addInvalidRulesB
      */
     public com.google.cloud.contentwarehouse.v1.InvalidRule.Builder addInvalidRulesBuilder(
         int index) {
-      return getInvalidRulesFieldBuilder().addBuilder(
-          index, com.google.cloud.contentwarehouse.v1.InvalidRule.getDefaultInstance());
+      return getInvalidRulesFieldBuilder()
+          .addBuilder(index, com.google.cloud.contentwarehouse.v1.InvalidRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A subset of triggered rules that failed the validation check(s) after
      * parsing.
@@ -1682,27 +1868,30 @@ public com.google.cloud.contentwarehouse.v1.InvalidRule.Builder addInvalidRulesB
      *
      * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
      */
-    public java.util.List 
-         getInvalidRulesBuilderList() {
+    public java.util.List
+        getInvalidRulesBuilderList() {
       return getInvalidRulesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.InvalidRule, com.google.cloud.contentwarehouse.v1.InvalidRule.Builder, com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.InvalidRule,
+            com.google.cloud.contentwarehouse.v1.InvalidRule.Builder,
+            com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder>
         getInvalidRulesFieldBuilder() {
       if (invalidRulesBuilder_ == null) {
-        invalidRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.InvalidRule, com.google.cloud.contentwarehouse.v1.InvalidRule.Builder, com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder>(
-                invalidRules_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        invalidRulesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.InvalidRule,
+                com.google.cloud.contentwarehouse.v1.InvalidRule.Builder,
+                com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder>(
+                invalidRules_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         invalidRules_ = null;
       }
       return invalidRulesBuilder_;
     }
+
     @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);
     }
 
@@ -1712,12 +1901,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RuleEvaluatorOutput)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RuleEvaluatorOutput)
   private static final com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput();
   }
@@ -1726,27 +1915,27 @@ public static com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public RuleEvaluatorOutput parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 RuleEvaluatorOutput parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1761,6 +1950,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.RuleEvaluatorOutput getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java
similarity index 79%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java
index ac31978b5c29..16c7d86cf67f 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEvaluatorOutputOrBuilder.java
@@ -1,22 +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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface RuleEvaluatorOutputOrBuilder extends
+public interface RuleEvaluatorOutputOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RuleEvaluatorOutput)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * List of rules fetched from database for the given request trigger type.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - java.util.List - getTriggeredRulesList(); + java.util.List getTriggeredRulesList(); /** + * + * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -25,6 +44,8 @@ public interface RuleEvaluatorOutputOrBuilder extends */ com.google.cloud.contentwarehouse.v1.Rule getTriggeredRules(int index); /** + * + * *
    * List of rules fetched from database for the given request trigger type.
    * 
@@ -33,34 +54,40 @@ public interface RuleEvaluatorOutputOrBuilder extends */ int getTriggeredRulesCount(); /** + * + * *
    * List of rules fetched from database for the given request trigger type.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - java.util.List + java.util.List getTriggeredRulesOrBuilderList(); /** + * + * *
    * List of rules fetched from database for the given request trigger type.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule triggered_rules = 1; */ - com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBuilder(int index); /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - java.util.List - getMatchedRulesList(); + java.util.List getMatchedRulesList(); /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -69,6 +96,8 @@ com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBuilder( */ com.google.cloud.contentwarehouse.v1.Rule getMatchedRules(int index); /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
@@ -77,25 +106,30 @@ com.google.cloud.contentwarehouse.v1.RuleOrBuilder getTriggeredRulesOrBuilder( */ int getMatchedRulesCount(); /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - java.util.List + java.util.List getMatchedRulesOrBuilderList(); /** + * + * *
    * A subset of triggered rules that are evaluated true for a given request.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule matched_rules = 2; */ - com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder(int index); /** + * + * *
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -103,9 +137,10 @@ com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder(
    *
    * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
    */
-  java.util.List 
-      getInvalidRulesList();
+  java.util.List getInvalidRulesList();
   /**
+   *
+   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -115,6 +150,8 @@ com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder(
    */
   com.google.cloud.contentwarehouse.v1.InvalidRule getInvalidRules(int index);
   /**
+   *
+   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -124,6 +161,8 @@ com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder(
    */
   int getInvalidRulesCount();
   /**
+   *
+   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -131,9 +170,11 @@ com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder(
    *
    * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
    */
-  java.util.List 
+  java.util.List
       getInvalidRulesOrBuilderList();
   /**
+   *
+   *
    * 
    * A subset of triggered rules that failed the validation check(s) after
    * parsing.
@@ -141,6 +182,5 @@ com.google.cloud.contentwarehouse.v1.RuleOrBuilder getMatchedRulesOrBuilder(
    *
    * repeated .google.cloud.contentwarehouse.v1.InvalidRule invalid_rules = 3;
    */
-  com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRulesOrBuilder(
-      int index);
+  com.google.cloud.contentwarehouse.v1.InvalidRuleOrBuilder getInvalidRulesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java
similarity index 76%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java
index 98fc71b01be0..3235c8702590 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleOrBuilder.java
@@ -1,74 +1,108 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/rule_engine.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface RuleOrBuilder extends
+public interface RuleOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.Rule)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Short description of the rule and its context.
    * 
* * string description = 1; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Short description of the rule and its context.
    * 
* * string description = 1; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * ID of the rule. It has to be unique across all the examples.
    * This is managed internally.
    * 
* * string rule_id = 2; + * * @return The ruleId. */ java.lang.String getRuleId(); /** + * + * *
    * ID of the rule. It has to be unique across all the examples.
    * This is managed internally.
    * 
* * string rule_id = 2; + * * @return The bytes for ruleId. */ - com.google.protobuf.ByteString - getRuleIdBytes(); + com.google.protobuf.ByteString getRuleIdBytes(); /** + * + * *
    * Identifies the trigger type for running the policy.
    * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; + * * @return The enum numeric value on the wire for triggerType. */ int getTriggerTypeValue(); /** + * + * *
    * Identifies the trigger type for running the policy.
    * 
* * .google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3; + * * @return The triggerType. */ com.google.cloud.contentwarehouse.v1.Rule.TriggerType getTriggerType(); /** + * + * *
    * Represents the conditional expression to be evaluated.
    * Expression should evaluate to a boolean result.
@@ -77,10 +111,13 @@ public interface RuleOrBuilder extends
    * 
* * string condition = 4; + * * @return The condition. */ java.lang.String getCondition(); /** + * + * *
    * Represents the conditional expression to be evaluated.
    * Expression should evaluate to a boolean result.
@@ -89,21 +126,24 @@ public interface RuleOrBuilder extends
    * 
* * string condition = 4; + * * @return The bytes for condition. */ - com.google.protobuf.ByteString - getConditionBytes(); + com.google.protobuf.ByteString getConditionBytes(); /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - java.util.List - getActionsList(); + java.util.List getActionsList(); /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -112,6 +152,8 @@ public interface RuleOrBuilder extends */ com.google.cloud.contentwarehouse.v1.Action getActions(int index); /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
@@ -120,21 +162,24 @@ public interface RuleOrBuilder extends */ int getActionsCount(); /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - java.util.List + java.util.List getActionsOrBuilderList(); /** + * + * *
    * List of actions that are executed when the rule is satisfied.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Action actions = 5; */ - com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.ActionOrBuilder getActionsOrBuilder(int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java similarity index 73% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java index c2e539565207..0930740a26f2 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSet.java @@ -1,24 +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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Represents a set of rules from a single customer.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleSet} */ -public final class RuleSet extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RuleSet extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RuleSet) RuleSetOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RuleSet.newBuilder() to construct. private RuleSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RuleSet() { name_ = ""; description_ = ""; @@ -28,28 +46,32 @@ private RuleSet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RuleSet(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RuleSet.class, com.google.cloud.contentwarehouse.v1.RuleSet.Builder.class); + com.google.cloud.contentwarehouse.v1.RuleSet.class, + com.google.cloud.contentwarehouse.v1.RuleSet.Builder.class); } public static final int NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the rule set. Managed internally.
    * Format:
@@ -59,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 6; + * * @return The name. */ @java.lang.Override @@ -67,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the rule set. Managed internally.
    * Format:
@@ -84,16 +108,15 @@ public java.lang.String getName() {
    * 
* * string name = 6; + * * @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 { @@ -102,14 +125,18 @@ public java.lang.String getName() { } public static final int DESCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Short description of the rule-set.
    * 
* * string description = 1; + * * @return The description. */ @java.lang.Override @@ -118,29 +145,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Short description of the rule-set.
    * 
* * string description = 1; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -149,14 +176,18 @@ public java.lang.String getDescription() { } public static final int SOURCE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object source_ = ""; /** + * + * *
    * Source of the rules i.e., customer name.
    * 
* * string source = 2; + * * @return The source. */ @java.lang.Override @@ -165,29 +196,29 @@ public java.lang.String getSource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } } /** + * + * *
    * Source of the rules i.e., customer name.
    * 
* * string source = 2; + * * @return The bytes for source. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceBytes() { + public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); source_ = b; return b; } else { @@ -196,9 +227,12 @@ public java.lang.String getSource() { } public static final int RULES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List rules_; /** + * + * *
    * List of rules given by the customer.
    * 
@@ -210,6 +244,8 @@ public java.util.List getRulesList() return rules_; } /** + * + * *
    * List of rules given by the customer.
    * 
@@ -217,11 +253,13 @@ public java.util.List getRulesList() * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ @java.lang.Override - public java.util.List + public java.util.List getRulesOrBuilderList() { return rules_; } /** + * + * *
    * List of rules given by the customer.
    * 
@@ -233,6 +271,8 @@ public int getRulesCount() { return rules_.size(); } /** + * + * *
    * List of rules given by the customer.
    * 
@@ -244,6 +284,8 @@ public com.google.cloud.contentwarehouse.v1.Rule getRules(int index) { return rules_.get(index); } /** + * + * *
    * List of rules given by the customer.
    * 
@@ -251,12 +293,12 @@ public com.google.cloud.contentwarehouse.v1.Rule getRules(int index) { * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder(int index) { return rules_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,8 +310,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -298,8 +339,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_); } for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, rules_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rules_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); @@ -312,21 +352,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.contentwarehouse.v1.RuleSet)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RuleSet other = (com.google.cloud.contentwarehouse.v1.RuleSet) obj; + com.google.cloud.contentwarehouse.v1.RuleSet other = + (com.google.cloud.contentwarehouse.v1.RuleSet) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getSource() - .equals(other.getSource())) return false; - if (!getRulesList() - .equals(other.getRulesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getSource().equals(other.getSource())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,132 +390,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RuleSet 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.contentwarehouse.v1.RuleSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RuleSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RuleSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.RuleSet 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.contentwarehouse.v1.RuleSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.RuleSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RuleSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a set of rules from a single customer.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RuleSet} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RuleSet) com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RuleSet.class, com.google.cloud.contentwarehouse.v1.RuleSet.Builder.class); + com.google.cloud.contentwarehouse.v1.RuleSet.class, + com.google.cloud.contentwarehouse.v1.RuleSet.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RuleSet.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +538,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleEngineProto.internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleEngineProto + .internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor; } @java.lang.Override @@ -518,9 +559,12 @@ public com.google.cloud.contentwarehouse.v1.RuleSet build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleSet buildPartial() { - com.google.cloud.contentwarehouse.v1.RuleSet result = new com.google.cloud.contentwarehouse.v1.RuleSet(this); + com.google.cloud.contentwarehouse.v1.RuleSet result = + new com.google.cloud.contentwarehouse.v1.RuleSet(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -554,38 +598,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RuleSet 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.contentwarehouse.v1.RuleSet) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleSet)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RuleSet) other); } else { super.mergeFrom(other); return this; @@ -627,9 +672,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RuleSet other) { rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000008); - rulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRulesFieldBuilder() + : null; } else { rulesBuilder_.addAllMessages(other.rules_); } @@ -661,40 +707,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - source_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - com.google.cloud.contentwarehouse.v1.Rule m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.Rule.parser(), - extensionRegistry); - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(m); - } else { - rulesBuilder_.addMessage(m); - } - break; - } // case 26 - case 50: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + com.google.cloud.contentwarehouse.v1.Rule m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.Rule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 26 + case 50: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -704,10 +754,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -717,13 +770,13 @@ public Builder mergeFrom(
      * 
* * string name = 6; + * * @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; @@ -732,6 +785,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -741,15 +796,14 @@ public java.lang.String getName() {
      * 
* * string name = 6; + * * @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 { @@ -757,6 +811,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -766,18 +822,22 @@ public java.lang.String getName() {
      * 
* * string name = 6; + * * @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; } /** + * + * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -787,6 +847,7 @@ public Builder setName(
      * 
* * string name = 6; + * * @return This builder for chaining. */ public Builder clearName() { @@ -796,6 +857,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the rule set. Managed internally.
      * Format:
@@ -805,12 +868,14 @@ public Builder clearName() {
      * 
* * string name = 6; + * * @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; @@ -820,18 +885,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Short description of the rule-set.
      * 
* * string description = 1; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -840,20 +907,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the rule-set.
      * 
* * string description = 1; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -861,28 +929,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the rule-set.
      * 
* * string description = 1; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Short description of the rule-set.
      * 
* * string description = 1; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -892,17 +967,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Short description of the rule-set.
      * 
* * string description = 1; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -912,18 +991,20 @@ public Builder setDescriptionBytes( private java.lang.Object source_ = ""; /** + * + * *
      * Source of the rules i.e., customer name.
      * 
* * string source = 2; + * * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; @@ -932,20 +1013,21 @@ public java.lang.String getSource() { } } /** + * + * *
      * Source of the rules i.e., customer name.
      * 
* * string source = 2; + * * @return The bytes for source. */ - public com.google.protobuf.ByteString - getSourceBytes() { + public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); source_ = b; return b; } else { @@ -953,28 +1035,35 @@ public java.lang.String getSource() { } } /** + * + * *
      * Source of the rules i.e., customer name.
      * 
* * string source = 2; + * * @param value The source to set. * @return This builder for chaining. */ - public Builder setSource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } source_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Source of the rules i.e., customer name.
      * 
* * string source = 2; + * * @return This builder for chaining. */ public Builder clearSource() { @@ -984,17 +1073,21 @@ public Builder clearSource() { return this; } /** + * + * *
      * Source of the rules i.e., customer name.
      * 
* * string source = 2; + * * @param value The bytes for source to set. * @return This builder for chaining. */ - public Builder setSourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); source_ = value; bitField0_ |= 0x00000004; @@ -1003,18 +1096,24 @@ public Builder setSourceBytes( } private java.util.List rules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> rulesBuilder_; + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + rulesBuilder_; /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1029,6 +1128,8 @@ public java.util.List getRulesList() } } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1043,6 +1144,8 @@ public int getRulesCount() { } } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1057,14 +1160,15 @@ public com.google.cloud.contentwarehouse.v1.Rule getRules(int index) { } } /** + * + * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public Builder setRules( - int index, com.google.cloud.contentwarehouse.v1.Rule value) { + public Builder setRules(int index, com.google.cloud.contentwarehouse.v1.Rule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1078,6 +1182,8 @@ public Builder setRules( return this; } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1096,6 +1202,8 @@ public Builder setRules( return this; } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1116,14 +1224,15 @@ public Builder addRules(com.google.cloud.contentwarehouse.v1.Rule value) { return this; } /** + * + * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public Builder addRules( - int index, com.google.cloud.contentwarehouse.v1.Rule value) { + public Builder addRules(int index, com.google.cloud.contentwarehouse.v1.Rule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1137,14 +1246,15 @@ public Builder addRules( return this; } /** + * + * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public Builder addRules( - com.google.cloud.contentwarehouse.v1.Rule.Builder builderForValue) { + public Builder addRules(com.google.cloud.contentwarehouse.v1.Rule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); @@ -1155,6 +1265,8 @@ public Builder addRules( return this; } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1173,6 +1285,8 @@ public Builder addRules( return this; } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1183,8 +1297,7 @@ public Builder addAllRules( java.lang.Iterable values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); @@ -1192,6 +1305,8 @@ public Builder addAllRules( return this; } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1209,6 +1324,8 @@ public Builder clearRules() { return this; } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1226,39 +1343,44 @@ public Builder removeRules(int index) { return this; } /** + * + * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public com.google.cloud.contentwarehouse.v1.Rule.Builder getRulesBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.Rule.Builder getRulesBuilder(int index) { return getRulesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder(int index) { if (rulesBuilder_ == null) { - return rules_.get(index); } else { + return rules_.get(index); + } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public java.util.List - getRulesOrBuilderList() { + public java.util.List + getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { @@ -1266,6 +1388,8 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder( } } /** + * + * *
      * List of rules given by the customer.
      * 
@@ -1273,49 +1397,54 @@ public com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder( * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ public com.google.cloud.contentwarehouse.v1.Rule.Builder addRulesBuilder() { - return getRulesFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); + return getRulesFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); } /** + * + * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public com.google.cloud.contentwarehouse.v1.Rule.Builder addRulesBuilder( - int index) { - return getRulesFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.Rule.Builder addRulesBuilder(int index) { + return getRulesFieldBuilder() + .addBuilder(index, com.google.cloud.contentwarehouse.v1.Rule.getDefaultInstance()); } /** + * + * *
      * List of rules given by the customer.
      * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - public java.util.List - getRulesBuilderList() { + public java.util.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder> + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { - rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Rule, com.google.cloud.contentwarehouse.v1.Rule.Builder, com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( - rules_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Rule, + com.google.cloud.contentwarehouse.v1.Rule.Builder, + com.google.cloud.contentwarehouse.v1.RuleOrBuilder>( + rules_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } + @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); } @@ -1325,12 +1454,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RuleSet) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RuleSet) private static final com.google.cloud.contentwarehouse.v1.RuleSet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RuleSet(); } @@ -1339,27 +1468,27 @@ public static com.google.cloud.contentwarehouse.v1.RuleSet getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuleSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RuleSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1374,6 +1503,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RuleSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java similarity index 71% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java index 0addc79d19b2..3bc55d2fd013 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/rule_engine.proto package com.google.cloud.contentwarehouse.v1; -public interface RuleSetOrBuilder extends +public interface RuleSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RuleSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the rule set. Managed internally.
    * Format:
@@ -17,10 +35,13 @@ public interface RuleSetOrBuilder extends
    * 
* * string name = 6; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the rule set. Managed internally.
    * Format:
@@ -30,61 +51,74 @@ public interface RuleSetOrBuilder extends
    * 
* * string name = 6; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Short description of the rule-set.
    * 
* * string description = 1; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Short description of the rule-set.
    * 
* * string description = 1; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Source of the rules i.e., customer name.
    * 
* * string source = 2; + * * @return The source. */ java.lang.String getSource(); /** + * + * *
    * Source of the rules i.e., customer name.
    * 
* * string source = 2; + * * @return The bytes for source. */ - com.google.protobuf.ByteString - getSourceBytes(); + com.google.protobuf.ByteString getSourceBytes(); /** + * + * *
    * List of rules given by the customer.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - java.util.List - getRulesList(); + java.util.List getRulesList(); /** + * + * *
    * List of rules given by the customer.
    * 
@@ -93,6 +127,8 @@ public interface RuleSetOrBuilder extends */ com.google.cloud.contentwarehouse.v1.Rule getRules(int index); /** + * + * *
    * List of rules given by the customer.
    * 
@@ -101,21 +137,24 @@ public interface RuleSetOrBuilder extends */ int getRulesCount(); /** + * + * *
    * List of rules given by the customer.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - java.util.List + java.util.List getRulesOrBuilderList(); /** + * + * *
    * List of rules given by the customer.
    * 
* * repeated .google.cloud.contentwarehouse.v1.Rule rules = 3; */ - com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.RuleOrBuilder getRulesOrBuilder(int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java new file mode 100644 index 000000000000..73ac514e7747 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/ruleset_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class RuleSetServiceProto { + private RuleSetServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/contentwarehouse/v1/rules" + + "et_service.proto\022 google.cloud.contentwa" + + "rehouse.v1\032\034google/api/annotations.proto" + + "\032\027google/api/client.proto\0322google/cloud/" + + "contentwarehouse/v1/rule_engine.proto\032>g" + + "oogle/cloud/contentwarehouse/v1/ruleset_" + + "service_request.proto\032\033google/protobuf/e" + + "mpty.proto2\364\007\n\016RuleSetService\022\304\001\n\rCreate" + + "RuleSet\0226.google.cloud.contentwarehouse." + + "v1.CreateRuleSetRequest\032).google.cloud.c" + + "ontentwarehouse.v1.RuleSet\"P\332A\017parent,ru" + + "le_set\202\323\344\223\0028\",/v1/{parent=projects/*/loc" + + "ations/*}/ruleSets:\010rule_set\022\251\001\n\nGetRule" + + "Set\0223.google.cloud.contentwarehouse.v1.G" + + "etRuleSetRequest\032).google.cloud.contentw" + + "arehouse.v1.RuleSet\";\332A\004name\202\323\344\223\002.\022,/v1/" + + "{name=projects/*/locations/*/ruleSets/*}" + + "\022\273\001\n\rUpdateRuleSet\0226.google.cloud.conten" + + "twarehouse.v1.UpdateRuleSetRequest\032).goo" + + "gle.cloud.contentwarehouse.v1.RuleSet\"G\332" + + "A\rname,rule_set\202\323\344\223\00212,/v1/{name=project" + + "s/*/locations/*/ruleSets/*}:\001*\022\234\001\n\rDelet" + + "eRuleSet\0226.google.cloud.contentwarehouse" + + ".v1.DeleteRuleSetRequest\032\026.google.protob" + + "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1/{name=proje" + + "cts/*/locations/*/ruleSets/*}\022\274\001\n\014ListRu" + + "leSets\0225.google.cloud.contentwarehouse.v" + + "1.ListRuleSetsRequest\0326.google.cloud.con" + + "tentwarehouse.v1.ListRuleSetsResponse\"=\332" + + "A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/l" + + "ocations/*}/ruleSets\032S\312A\037contentwarehous" + + "e.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\373\001\n$com.google" + + ".cloud.contentwarehouse.v1B\023RuleSetServi" + + "ceProtoP\001ZPcloud.google.com/go/contentwa" + + "rehouse/apiv1/contentwarehousepb;content" + + "warehousepb\252\002 Google.Cloud.ContentWareho" + + "use.V1\312\002 Google\\Cloud\\ContentWarehouse\\V" + + "1\352\002#Google::Cloud::ContentWarehouse::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.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java new file mode 100644 index 000000000000..5eacea0fbe92 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java @@ -0,0 +1,163 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class RuleSetServiceRequestProto { + private RuleSetServiceRequestProto() {} + + 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_contentwarehouse_v1_CreateRuleSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_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/contentwarehouse/v1/rules" + + "et_service_request.proto\022 google.cloud.c" + + "ontentwarehouse.v1\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\0322" + + "google/cloud/contentwarehouse/v1/rule_en" + + "gine.proto\"\234\001\n\024CreateRuleSetRequest\022A\n\006p" + + "arent\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehouse.g" + + "oogleapis.com/Location\022A\n\010rule_set\030\002 \001(\013" + + "2).google.cloud.contentwarehouse.v1.Rule" + + "SetB\004\342A\001\002\"S\n\021GetRuleSetRequest\022>\n\004name\030\001" + + " \001(\tB0\342A\001\002\372A)\n\'contentwarehouse.googleap" + + "is.com/RuleSet\"\231\001\n\024UpdateRuleSetRequest\022" + + ">\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'contentwarehouse" + + ".googleapis.com/RuleSet\022A\n\010rule_set\030\002 \001(" + + "\0132).google.cloud.contentwarehouse.v1.Rul" + + "eSetB\004\342A\001\002\"V\n\024DeleteRuleSetRequest\022>\n\004na" + + "me\030\001 \001(\tB0\342A\001\002\372A)\n\'contentwarehouse.goog" + + "leapis.com/RuleSet\"\177\n\023ListRuleSetsReques" + + "t\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareh" + + "ouse.googleapis.com/Location\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"m\n\024ListRuleS" + + "etsResponse\022<\n\trule_sets\030\001 \003(\0132).google." + + "cloud.contentwarehouse.v1.RuleSet\022\027\n\017nex" + + "t_page_token\030\002 \001(\tB\202\002\n$com.google.cloud." + + "contentwarehouse.v1B\032RuleSetServiceReque" + + "stProtoP\001ZPcloud.google.com/go/contentwa" + + "rehouse/apiv1/contentwarehousepb;content" + + "warehousepb\252\002 Google.Cloud.ContentWareho" + + "use.V1\312\002 Google\\Cloud\\ContentWarehouse\\V" + + "1\352\002#Google::Cloud::ContentWarehouse::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.contentwarehouse.v1.RuleEngineProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor, + new java.lang.String[] { + "Parent", "RuleSet", + }); + internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor, + new java.lang.String[] { + "Name", "RuleSet", + }); + internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor, + new java.lang.String[] { + "RuleSets", "NextPageToken", + }); + 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.contentwarehouse.v1.RuleEngineProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java similarity index 60% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java index d3cbe8c87432..513a98269f6a 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadata.java @@ -1,124 +1,160 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Metadata message of RunPipeline method.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata} */ -public final class RunPipelineMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RunPipelineMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata) RunPipelineMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RunPipelineMetadata.newBuilder() to construct. private RunPipelineMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RunPipelineMetadata() { individualDocumentStatuses_ = 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 RunPipelineMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.class, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.Builder.class); } - public interface GcsIngestPipelineMetadataOrBuilder extends + public interface GcsIngestPipelineMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The input Cloud Storage folder in this pipeline.
      * Format: `gs://<bucket-name>/<folder-name>`.
      * 
* * string input_path = 1; + * * @return The inputPath. */ java.lang.String getInputPath(); /** + * + * *
      * The input Cloud Storage folder in this pipeline.
      * Format: `gs://<bucket-name>/<folder-name>`.
      * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ - com.google.protobuf.ByteString - getInputPathBytes(); + com.google.protobuf.ByteString getInputPathBytes(); } /** + * + * *
    * The metadata message for GcsIngest pipeline.
    * 
* - * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata} + * Protobuf type {@code + * google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata} */ - public static final class GcsIngestPipelineMetadata extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GcsIngestPipelineMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) GcsIngestPipelineMetadataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsIngestPipelineMetadata.newBuilder() to construct. private GcsIngestPipelineMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsIngestPipelineMetadata() { inputPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsIngestPipelineMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .class, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .Builder.class); } public static final int INPUT_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object inputPath_ = ""; /** + * + * *
      * The input Cloud Storage folder in this pipeline.
      * Format: `gs://<bucket-name>/<folder-name>`.
      * 
* * string input_path = 1; + * * @return The inputPath. */ @java.lang.Override @@ -127,30 +163,30 @@ public java.lang.String getInputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; } } /** + * + * *
      * The input Cloud Storage folder in this pipeline.
      * Format: `gs://<bucket-name>/<folder-name>`.
      * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputPathBytes() { + public com.google.protobuf.ByteString getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputPath_ = b; return b; } else { @@ -159,6 +195,7 @@ public java.lang.String getInputPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputPath_); } @@ -195,15 +231,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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)) { + if (!(obj + instanceof + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata other = (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) obj; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata other = + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) obj; - if (!getInputPath() - .equals(other.getInputPath())) return false; + if (!getInputPath().equals(other.getInputPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -222,90 +260,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( - java.io.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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + parseFrom( + java.io.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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + 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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -315,39 +365,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The metadata message for GcsIngest pipeline.
      * 
* - * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata} + * Protobuf type {@code + * google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .GcsIngestPipelineMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .class, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .Builder.class); } - // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,19 +414,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata build() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata result = buildPartial(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + build() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -377,14 +438,21 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelin } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata result = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + buildPartial() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata result = + new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.inputPath_ = inputPath_; @@ -395,46 +463,57 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetad public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata)other); + if (other + instanceof + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) { + return mergeFrom( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + other) { + if (other + == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .getDefaultInstance()) return this; if (!other.getInputPath().isEmpty()) { inputPath_ = other.inputPath_; bitField0_ |= 0x00000001; @@ -466,17 +545,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - inputPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + inputPath_ = 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) { @@ -486,23 +567,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object inputPath_ = ""; /** + * + * *
        * The input Cloud Storage folder in this pipeline.
        * Format: `gs://<bucket-name>/<folder-name>`.
        * 
* * string input_path = 1; + * * @return The inputPath. */ public java.lang.String getInputPath() { java.lang.Object ref = inputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; @@ -511,21 +595,22 @@ public java.lang.String getInputPath() { } } /** + * + * *
        * The input Cloud Storage folder in this pipeline.
        * Format: `gs://<bucket-name>/<folder-name>`.
        * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ - public com.google.protobuf.ByteString - getInputPathBytes() { + public com.google.protobuf.ByteString getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputPath_ = b; return b; } else { @@ -533,30 +618,37 @@ public java.lang.String getInputPath() { } } /** + * + * *
        * The input Cloud Storage folder in this pipeline.
        * Format: `gs://<bucket-name>/<folder-name>`.
        * 
* * string input_path = 1; + * * @param value The inputPath to set. * @return This builder for chaining. */ - public Builder setInputPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } inputPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The input Cloud Storage folder in this pipeline.
        * Format: `gs://<bucket-name>/<folder-name>`.
        * 
* * string input_path = 1; + * * @return This builder for chaining. */ public Builder clearInputPath() { @@ -566,24 +658,29 @@ public Builder clearInputPath() { return this; } /** + * + * *
        * The input Cloud Storage folder in this pipeline.
        * Format: `gs://<bucket-name>/<folder-name>`.
        * 
* * string input_path = 1; + * * @param value The bytes for inputPath to set. * @return This builder for chaining. */ - public Builder setInputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); inputPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -596,41 +693,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) - private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .GcsIngestPipelineMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata(); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsIngestPipelineMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GcsIngestPipelineMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -642,173 +744,210 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ExportToCdwPipelineMetadataOrBuilder extends + public interface ExportToCdwPipelineMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; + * * @return A list containing the documents. */ - java.util.List - getDocumentsList(); + java.util.List getDocumentsList(); /** + * + * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; + * * @return The count of documents. */ int getDocumentsCount(); /** + * + * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; + * * @param index The index of the element to return. * @return The documents at the given index. */ java.lang.String getDocuments(int index); /** + * + * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; + * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - com.google.protobuf.ByteString - getDocumentsBytes(int index); + com.google.protobuf.ByteString getDocumentsBytes(int index); /** + * + * *
      * The output CDW dataset resource name.
      * 
* * string doc_ai_dataset = 2; + * * @return The docAiDataset. */ java.lang.String getDocAiDataset(); /** + * + * *
      * The output CDW dataset resource name.
      * 
* * string doc_ai_dataset = 2; + * * @return The bytes for docAiDataset. */ - com.google.protobuf.ByteString - getDocAiDatasetBytes(); + com.google.protobuf.ByteString getDocAiDatasetBytes(); /** + * + * *
      * The output Cloud Storage folder in this pipeline.
      * 
* * string output_path = 3; + * * @return The outputPath. */ java.lang.String getOutputPath(); /** + * + * *
      * The output Cloud Storage folder in this pipeline.
      * 
* * string output_path = 3; + * * @return The bytes for outputPath. */ - com.google.protobuf.ByteString - getOutputPathBytes(); + com.google.protobuf.ByteString getOutputPathBytes(); } /** + * + * *
    * The metadata message for Export-to-CDW pipeline.
    * 
* - * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata} + * Protobuf type {@code + * google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata} */ - public static final class ExportToCdwPipelineMetadata extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ExportToCdwPipelineMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) ExportToCdwPipelineMetadataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExportToCdwPipelineMetadata.newBuilder() to construct. private ExportToCdwPipelineMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExportToCdwPipelineMetadata() { - documents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); docAiDataset_ = ""; outputPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportToCdwPipelineMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .class, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .Builder.class); } public static final int DOCUMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; + * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList - getDocumentsList() { + public com.google.protobuf.ProtocolStringList getDocumentsList() { return documents_; } /** + * + * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; + * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** + * + * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; + * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -816,28 +955,34 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** + * + * *
      * The input list of all the resource names of the documents to be exported.
      * 
* * repeated string documents = 1; + * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString - getDocumentsBytes(int index) { + public com.google.protobuf.ByteString getDocumentsBytes(int index) { return documents_.getByteString(index); } public static final int DOC_AI_DATASET_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object docAiDataset_ = ""; /** + * + * *
      * The output CDW dataset resource name.
      * 
* * string doc_ai_dataset = 2; + * * @return The docAiDataset. */ @java.lang.Override @@ -846,29 +991,29 @@ public java.lang.String getDocAiDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docAiDataset_ = s; return s; } } /** + * + * *
      * The output CDW dataset resource name.
      * 
* * string doc_ai_dataset = 2; + * * @return The bytes for docAiDataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getDocAiDatasetBytes() { + public com.google.protobuf.ByteString getDocAiDatasetBytes() { java.lang.Object ref = docAiDataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); docAiDataset_ = b; return b; } else { @@ -877,14 +1022,18 @@ public java.lang.String getDocAiDataset() { } public static final int OUTPUT_PATH_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object outputPath_ = ""; /** + * + * *
      * The output Cloud Storage folder in this pipeline.
      * 
* * string output_path = 3; + * * @return The outputPath. */ @java.lang.Override @@ -893,29 +1042,29 @@ public java.lang.String getOutputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputPath_ = s; return s; } } /** + * + * *
      * The output Cloud Storage folder in this pipeline.
      * 
* * string output_path = 3; + * * @return The bytes for outputPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputPathBytes() { + public com.google.protobuf.ByteString getOutputPathBytes() { java.lang.Object ref = outputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputPath_ = b; return b; } else { @@ -924,6 +1073,7 @@ public java.lang.String getOutputPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -935,8 +1085,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < documents_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i)); } @@ -977,19 +1126,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.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)) { + if (!(obj + instanceof + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata other = (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) obj; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata other = + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) + obj; - if (!getDocumentsList() - .equals(other.getDocumentsList())) return false; - if (!getDocAiDataset() - .equals(other.getDocAiDataset())) return false; - if (!getOutputPath() - .equals(other.getOutputPath())) return false; + if (!getDocumentsList().equals(other.getDocumentsList())) return false; + if (!getDocAiDataset().equals(other.getDocAiDataset())) return false; + if (!getOutputPath().equals(other.getOutputPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1014,90 +1164,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + 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.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( - java.io.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.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + parseFrom( + java.io.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.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + 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.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1107,64 +1281,74 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The metadata message for Export-to-CDW pipeline.
      * 
* - * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata} + * Protobuf type {@code + * google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .class, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .Builder.class); } - // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - documents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); docAiDataset_ = ""; outputPath_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata build() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata result = buildPartial(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + build() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1172,14 +1356,22 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipel } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata result = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + buildPartial() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + result = + new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { documents_.makeImmutable(); @@ -1197,46 +1389,57 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetad public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata)other); + if (other + instanceof + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) { + return mergeFrom( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + other) { + if (other + == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .getDefaultInstance()) return this; if (!other.documents_.isEmpty()) { if (documents_.isEmpty()) { documents_ = other.documents_; @@ -1283,28 +1486,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDocumentsIsMutable(); - documents_.add(s); - break; - } // case 10 - case 18: { - docAiDataset_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - outputPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDocumentsIsMutable(); + documents_.add(s); + break; + } // case 10 + case 18: + { + docAiDataset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + outputPath_ = 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) { @@ -1314,10 +1521,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDocumentsIsMutable() { if (!documents_.isModifiable()) { documents_ = new com.google.protobuf.LazyStringArrayList(documents_); @@ -1325,35 +1534,43 @@ private void ensureDocumentsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; + * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList - getDocumentsList() { + public com.google.protobuf.ProtocolStringList getDocumentsList() { documents_.makeImmutable(); return documents_; } /** + * + * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; + * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** + * + * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; + * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -1361,31 +1578,37 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** + * + * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; + * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString - getDocumentsBytes(int index) { + public com.google.protobuf.ByteString getDocumentsBytes(int index) { return documents_.getByteString(index); } /** + * + * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; + * * @param index The index to set the value at. * @param value The documents to set. * @return This builder for chaining. */ - public Builder setDocuments( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocuments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentsIsMutable(); documents_.set(index, value); bitField0_ |= 0x00000001; @@ -1393,17 +1616,21 @@ public Builder setDocuments( return this; } /** + * + * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; + * * @param value The documents to add. * @return This builder for chaining. */ - public Builder addDocuments( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocuments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentsIsMutable(); documents_.add(value); bitField0_ |= 0x00000001; @@ -1411,50 +1638,58 @@ public Builder addDocuments( return this; } /** + * + * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; + * * @param values The documents to add. * @return This builder for chaining. */ - public Builder addAllDocuments( - java.lang.Iterable values) { + public Builder addAllDocuments(java.lang.Iterable values) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; + * * @return This builder for chaining. */ public Builder clearDocuments() { - documents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
        * The input list of all the resource names of the documents to be exported.
        * 
* * repeated string documents = 1; + * * @param value The bytes of the documents to add. * @return This builder for chaining. */ - public Builder addDocumentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDocumentsIsMutable(); documents_.add(value); @@ -1465,18 +1700,20 @@ public Builder addDocumentsBytes( private java.lang.Object docAiDataset_ = ""; /** + * + * *
        * The output CDW dataset resource name.
        * 
* * string doc_ai_dataset = 2; + * * @return The docAiDataset. */ public java.lang.String getDocAiDataset() { java.lang.Object ref = docAiDataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docAiDataset_ = s; return s; @@ -1485,20 +1722,21 @@ public java.lang.String getDocAiDataset() { } } /** + * + * *
        * The output CDW dataset resource name.
        * 
* * string doc_ai_dataset = 2; + * * @return The bytes for docAiDataset. */ - public com.google.protobuf.ByteString - getDocAiDatasetBytes() { + public com.google.protobuf.ByteString getDocAiDatasetBytes() { java.lang.Object ref = docAiDataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); docAiDataset_ = b; return b; } else { @@ -1506,28 +1744,35 @@ public java.lang.String getDocAiDataset() { } } /** + * + * *
        * The output CDW dataset resource name.
        * 
* * string doc_ai_dataset = 2; + * * @param value The docAiDataset to set. * @return This builder for chaining. */ - public Builder setDocAiDataset( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocAiDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } docAiDataset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The output CDW dataset resource name.
        * 
* * string doc_ai_dataset = 2; + * * @return This builder for chaining. */ public Builder clearDocAiDataset() { @@ -1537,17 +1782,21 @@ public Builder clearDocAiDataset() { return this; } /** + * + * *
        * The output CDW dataset resource name.
        * 
* * string doc_ai_dataset = 2; + * * @param value The bytes for docAiDataset to set. * @return This builder for chaining. */ - public Builder setDocAiDatasetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocAiDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); docAiDataset_ = value; bitField0_ |= 0x00000002; @@ -1557,18 +1806,20 @@ public Builder setDocAiDatasetBytes( private java.lang.Object outputPath_ = ""; /** + * + * *
        * The output Cloud Storage folder in this pipeline.
        * 
* * string output_path = 3; + * * @return The outputPath. */ public java.lang.String getOutputPath() { java.lang.Object ref = outputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputPath_ = s; return s; @@ -1577,20 +1828,21 @@ public java.lang.String getOutputPath() { } } /** + * + * *
        * The output Cloud Storage folder in this pipeline.
        * 
* * string output_path = 3; + * * @return The bytes for outputPath. */ - public com.google.protobuf.ByteString - getOutputPathBytes() { + public com.google.protobuf.ByteString getOutputPathBytes() { java.lang.Object ref = outputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputPath_ = b; return b; } else { @@ -1598,28 +1850,35 @@ public java.lang.String getOutputPath() { } } /** + * + * *
        * The output Cloud Storage folder in this pipeline.
        * 
* * string output_path = 3; + * * @param value The outputPath to set. * @return This builder for chaining. */ - public Builder setOutputPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } outputPath_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * The output Cloud Storage folder in this pipeline.
        * 
* * string output_path = 3; + * * @return This builder for chaining. */ public Builder clearOutputPath() { @@ -1629,23 +1888,28 @@ public Builder clearOutputPath() { return this; } /** + * + * *
        * The output Cloud Storage folder in this pipeline.
        * 
* * string output_path = 3; + * * @param value The bytes for outputPath to set. * @return This builder for chaining. */ - public Builder setOutputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); outputPath_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1658,41 +1922,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) - private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata(); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportToCdwPipelineMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ExportToCdwPipelineMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1704,80 +1975,99 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ProcessWithDocAiPipelineMetadataOrBuilder extends + public interface ProcessWithDocAiPipelineMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; + * * @return A list containing the documents. */ - java.util.List - getDocumentsList(); + java.util.List getDocumentsList(); /** + * + * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; + * * @return The count of documents. */ int getDocumentsCount(); /** + * + * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; + * * @param index The index of the element to return. * @return The documents at the given index. */ java.lang.String getDocuments(int index); /** + * + * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; + * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - com.google.protobuf.ByteString - getDocumentsBytes(int index); + com.google.protobuf.ByteString getDocumentsBytes(int index); /** + * + * *
      * The DocAI processor to process the documents with.
      * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; + * * @return Whether the processorInfo field is set. */ boolean hasProcessorInfo(); /** + * + * *
      * The DocAI processor to process the documents with.
      * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; + * * @return The processorInfo. */ com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo(); /** + * + * *
      * The DocAI processor to process the documents with.
      * 
@@ -1787,82 +2077,99 @@ public interface ProcessWithDocAiPipelineMetadataOrBuilder extends com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder(); } /** + * + * *
    * The metadata message for Process-with-DocAi pipeline.
    * 
* - * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata} + * Protobuf type {@code + * google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata} */ - public static final class ProcessWithDocAiPipelineMetadata extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ProcessWithDocAiPipelineMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) ProcessWithDocAiPipelineMetadataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProcessWithDocAiPipelineMetadata.newBuilder() to construct. - private ProcessWithDocAiPipelineMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ProcessWithDocAiPipelineMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProcessWithDocAiPipelineMetadata() { - documents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + documents_ = 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 ProcessWithDocAiPipelineMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.class, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.Builder.class); } public static final int DOCUMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; + * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList - getDocumentsList() { + public com.google.protobuf.ProtocolStringList getDocumentsList() { return documents_; } /** + * + * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; + * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** + * + * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; + * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -1870,28 +2177,33 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** + * + * *
      * The input list of all the resource names of the documents to be
      * processed.
      * 
* * repeated string documents = 1; + * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString - getDocumentsBytes(int index) { + public com.google.protobuf.ByteString getDocumentsBytes(int index) { return documents_.getByteString(index); } public static final int PROCESSOR_INFO_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.ProcessorInfo processorInfo_; /** + * + * *
      * The DocAI processor to process the documents with.
      * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; + * * @return Whether the processorInfo field is set. */ @java.lang.Override @@ -1899,18 +2211,25 @@ public boolean hasProcessorInfo() { return processorInfo_ != null; } /** + * + * *
      * The DocAI processor to process the documents with.
      * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; + * * @return The processorInfo. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() { - return processorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; + return processorInfo_ == null + ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() + : processorInfo_; } /** + * + * *
      * The DocAI processor to process the documents with.
      * 
@@ -1919,10 +2238,13 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder() { - return processorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; + return processorInfo_ == null + ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() + : processorInfo_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1934,8 +2256,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < documents_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i)); } @@ -1960,8 +2281,7 @@ public int getSerializedSize() { size += 1 * getDocumentsList().size(); } if (processorInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProcessorInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProcessorInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1971,19 +2291,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.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata)) { + if (!(obj + instanceof + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata other = (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) obj; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + other = + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata) + obj; - if (!getDocumentsList() - .equals(other.getDocumentsList())) return false; + if (!getDocumentsList().equals(other.getDocumentsList())) return false; if (hasProcessorInfo() != other.hasProcessorInfo()) return false; if (hasProcessorInfo()) { - if (!getProcessorInfo() - .equals(other.getProcessorInfo())) return false; + if (!getProcessorInfo().equals(other.getProcessorInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2009,90 +2334,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + 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.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( - java.io.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.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + parseFrom( + java.io.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.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + 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.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2102,45 +2451,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The metadata message for Process-with-DocAi pipeline.
      * 
* - * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata} + * Protobuf type {@code + * google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.class, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.Builder.class); } - // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - documents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); processorInfo_ = null; if (processorInfoBuilder_ != null) { processorInfoBuilder_.dispose(); @@ -2150,19 +2505,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata build() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata result = buildPartial(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + build() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2170,23 +2531,31 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAi } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata result = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + buildPartial() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + result = + new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { documents_.makeImmutable(); result.documents_ = documents_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.processorInfo_ = processorInfoBuilder_ == null - ? processorInfo_ - : processorInfoBuilder_.build(); + result.processorInfo_ = + processorInfoBuilder_ == null ? processorInfo_ : processorInfoBuilder_.build(); } } @@ -2194,46 +2563,59 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetad public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata)other); + if (other + instanceof + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata) { + return mergeFrom( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + other) { + if (other + == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.getDefaultInstance()) return this; if (!other.documents_.isEmpty()) { if (documents_.isEmpty()) { documents_ = other.documents_; @@ -2273,25 +2655,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDocumentsIsMutable(); - documents_.add(s); - break; - } // case 10 - case 18: { - input.readMessage( - getProcessorInfoFieldBuilder().getBuilder(), - extensionRegistry); - 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(); + ensureDocumentsIsMutable(); + documents_.add(s); + break; + } // case 10 + case 18: + { + input.readMessage(getProcessorInfoFieldBuilder().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) { @@ -2301,10 +2684,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDocumentsIsMutable() { if (!documents_.isModifiable()) { documents_ = new com.google.protobuf.LazyStringArrayList(documents_); @@ -2312,38 +2697,46 @@ private void ensureDocumentsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; + * * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList - getDocumentsList() { + public com.google.protobuf.ProtocolStringList getDocumentsList() { documents_.makeImmutable(); return documents_; } /** + * + * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; + * * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** + * + * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; + * * @param index The index of the element to return. * @return The documents at the given index. */ @@ -2351,33 +2744,39 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** + * + * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; + * * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString - getDocumentsBytes(int index) { + public com.google.protobuf.ByteString getDocumentsBytes(int index) { return documents_.getByteString(index); } /** + * + * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; + * * @param index The index to set the value at. * @param value The documents to set. * @return This builder for chaining. */ - public Builder setDocuments( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocuments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentsIsMutable(); documents_.set(index, value); bitField0_ |= 0x00000001; @@ -2385,18 +2784,22 @@ public Builder setDocuments( return this; } /** + * + * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; + * * @param value The documents to add. * @return This builder for chaining. */ - public Builder addDocuments( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocuments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDocumentsIsMutable(); documents_.add(value); bitField0_ |= 0x00000001; @@ -2404,53 +2807,61 @@ public Builder addDocuments( return this; } /** + * + * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; + * * @param values The documents to add. * @return This builder for chaining. */ - public Builder addAllDocuments( - java.lang.Iterable values) { + public Builder addAllDocuments(java.lang.Iterable values) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; + * * @return This builder for chaining. */ public Builder clearDocuments() { - documents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + documents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
        * The input list of all the resource names of the documents to be
        * processed.
        * 
* * repeated string documents = 1; + * * @param value The bytes of the documents to add. * @return This builder for chaining. */ - public Builder addDocumentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDocumentsIsMutable(); documents_.add(value); @@ -2461,34 +2872,47 @@ public Builder addDocumentsBytes( private com.google.cloud.contentwarehouse.v1.ProcessorInfo processorInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> processorInfoBuilder_; + com.google.cloud.contentwarehouse.v1.ProcessorInfo, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, + com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> + processorInfoBuilder_; /** + * + * *
        * The DocAI processor to process the documents with.
        * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; + * * @return Whether the processorInfo field is set. */ public boolean hasProcessorInfo() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * The DocAI processor to process the documents with.
        * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; + * * @return The processorInfo. */ public com.google.cloud.contentwarehouse.v1.ProcessorInfo getProcessorInfo() { if (processorInfoBuilder_ == null) { - return processorInfo_ == null ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; + return processorInfo_ == null + ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() + : processorInfo_; } else { return processorInfoBuilder_.getMessage(); } } /** + * + * *
        * The DocAI processor to process the documents with.
        * 
@@ -2509,6 +2933,8 @@ public Builder setProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorIn return this; } /** + * + * *
        * The DocAI processor to process the documents with.
        * 
@@ -2527,6 +2953,8 @@ public Builder setProcessorInfo( return this; } /** + * + * *
        * The DocAI processor to process the documents with.
        * 
@@ -2535,9 +2963,10 @@ public Builder setProcessorInfo( */ public Builder mergeProcessorInfo(com.google.cloud.contentwarehouse.v1.ProcessorInfo value) { if (processorInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - processorInfo_ != null && - processorInfo_ != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && processorInfo_ != null + && processorInfo_ + != com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance()) { getProcessorInfoBuilder().mergeFrom(value); } else { processorInfo_ = value; @@ -2550,6 +2979,8 @@ public Builder mergeProcessorInfo(com.google.cloud.contentwarehouse.v1.Processor return this; } /** + * + * *
        * The DocAI processor to process the documents with.
        * 
@@ -2567,6 +2998,8 @@ public Builder clearProcessorInfo() { return this; } /** + * + * *
        * The DocAI processor to process the documents with.
        * 
@@ -2579,21 +3012,27 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder getProcessorIn return getProcessorInfoFieldBuilder().getBuilder(); } /** + * + * *
        * The DocAI processor to process the documents with.
        * 
* * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; */ - public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorInfoOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder + getProcessorInfoOrBuilder() { if (processorInfoBuilder_ != null) { return processorInfoBuilder_.getMessageOrBuilder(); } else { - return processorInfo_ == null ? - com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() : processorInfo_; + return processorInfo_ == null + ? com.google.cloud.contentwarehouse.v1.ProcessorInfo.getDefaultInstance() + : processorInfo_; } } /** + * + * *
        * The DocAI processor to process the documents with.
        * 
@@ -2601,18 +3040,22 @@ public com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder getProcessorI * .google.cloud.contentwarehouse.v1.ProcessorInfo processor_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.ProcessorInfo, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, + com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder> getProcessorInfoFieldBuilder() { if (processorInfoBuilder_ == null) { - processorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessorInfo, com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( - getProcessorInfo(), - getParentForChildren(), - isClean()); + processorInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ProcessorInfo, + com.google.cloud.contentwarehouse.v1.ProcessorInfo.Builder, + com.google.cloud.contentwarehouse.v1.ProcessorInfoOrBuilder>( + getProcessorInfo(), getParentForChildren(), isClean()); processorInfo_ = null; } return processorInfoBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2625,41 +3068,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) - private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata(); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProcessWithDocAiPipelineMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ProcessWithDocAiPipelineMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2671,55 +3121,69 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface IndividualDocumentStatusOrBuilder extends + public interface IndividualDocumentStatusOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Document identifier of an existing document.
      * 
* * string document_id = 1; + * * @return The documentId. */ java.lang.String getDocumentId(); /** + * + * *
      * Document identifier of an existing document.
      * 
* * string document_id = 1; + * * @return The bytes for documentId. */ - com.google.protobuf.ByteString - getDocumentIdBytes(); + com.google.protobuf.ByteString getDocumentIdBytes(); /** + * + * *
      * The status processing the document.
      * 
* * .google.rpc.Status status = 2; + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
      * The status processing the document.
      * 
* * .google.rpc.Status status = 2; + * * @return The status. */ com.google.rpc.Status getStatus(); /** + * + * *
      * The status processing the document.
      * 
@@ -2729,54 +3193,65 @@ public interface IndividualDocumentStatusOrBuilder extends com.google.rpc.StatusOrBuilder getStatusOrBuilder(); } /** + * + * *
    * The status of processing a document.
    * 
* - * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus} + * Protobuf type {@code + * google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus} */ - public static final class IndividualDocumentStatus extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class IndividualDocumentStatus extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) IndividualDocumentStatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IndividualDocumentStatus.newBuilder() to construct. private IndividualDocumentStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IndividualDocumentStatus() { documentId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IndividualDocumentStatus(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + .class, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + .Builder.class); } public static final int DOCUMENT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object documentId_ = ""; /** + * + * *
      * Document identifier of an existing document.
      * 
* * string document_id = 1; + * * @return The documentId. */ @java.lang.Override @@ -2785,29 +3260,29 @@ 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; } } /** + * + * *
      * Document identifier of an existing document.
      * 
* * string document_id = 1; + * * @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 { @@ -2818,11 +3293,14 @@ public java.lang.String getDocumentId() { public static final int STATUS_FIELD_NUMBER = 2; private com.google.rpc.Status status_; /** + * + * *
      * The status processing the document.
      * 
* * .google.rpc.Status status = 2; + * * @return Whether the status field is set. */ @java.lang.Override @@ -2830,11 +3308,14 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
      * The status processing the document.
      * 
* * .google.rpc.Status status = 2; + * * @return The status. */ @java.lang.Override @@ -2842,6 +3323,8 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** + * + * *
      * The status processing the document.
      * 
@@ -2854,6 +3337,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2865,8 +3349,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentId_); } @@ -2886,8 +3369,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, documentId_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2897,19 +3379,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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)) { + if (!(obj + instanceof + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus other = (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) obj; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus other = + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) obj; - if (!getDocumentId() - .equals(other.getDocumentId())) return false; + if (!getDocumentId().equals(other.getDocumentId())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; + if (!getStatus().equals(other.getStatus())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2933,90 +3416,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + 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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( - java.io.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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + parseFrom( + java.io.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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus 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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + 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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3026,39 +3521,45 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The status of processing a document.
      * 
* - * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus} + * Protobuf type {@code + * google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + .class, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + .Builder.class); } - // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3073,19 +3574,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus build() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus result = buildPartial(); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + build() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3093,22 +3598,27 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocume } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus result = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + buildPartial() { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus result = + new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.documentId_ = documentId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.status_ = statusBuilder_ == null - ? status_ - : statusBuilder_.build(); + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); } } @@ -3116,46 +3626,56 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetad public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus)other); + if (other + instanceof + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) { + return mergeFrom( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus other) { - if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus other) { + if (other + == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + .getDefaultInstance()) return this; if (!other.getDocumentId().isEmpty()) { documentId_ = other.documentId_; bitField0_ |= 0x00000001; @@ -3190,24 +3710,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - documentId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + documentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStatusFieldBuilder().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) { @@ -3217,22 +3738,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object documentId_ = ""; /** + * + * *
        * Document identifier of an existing document.
        * 
* * string document_id = 1; + * * @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; @@ -3241,20 +3765,21 @@ public java.lang.String getDocumentId() { } } /** + * + * *
        * Document identifier of an existing document.
        * 
* * string document_id = 1; + * * @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 { @@ -3262,28 +3787,35 @@ public java.lang.String getDocumentId() { } } /** + * + * *
        * Document identifier of an existing document.
        * 
* * string document_id = 1; + * * @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_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Document identifier of an existing document.
        * 
* * string document_id = 1; + * * @return This builder for chaining. */ public Builder clearDocumentId() { @@ -3293,17 +3825,21 @@ public Builder clearDocumentId() { return this; } /** + * + * *
        * Document identifier of an existing document.
        * 
* * string document_id = 1; + * * @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_ |= 0x00000001; @@ -3313,24 +3849,31 @@ public Builder setDocumentIdBytes( private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; /** + * + * *
        * The status processing the document.
        * 
* * .google.rpc.Status status = 2; + * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * The status processing the document.
        * 
* * .google.rpc.Status status = 2; + * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -3341,6 +3884,8 @@ public com.google.rpc.Status getStatus() { } } /** + * + * *
        * The status processing the document.
        * 
@@ -3361,14 +3906,15 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** + * + * *
        * The status processing the document.
        * 
* * .google.rpc.Status status = 2; */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -3379,6 +3925,8 @@ public Builder setStatus( return this; } /** + * + * *
        * The status processing the document.
        * 
@@ -3387,9 +3935,9 @@ public Builder setStatus( */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - status_ != null && - status_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -3402,6 +3950,8 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** + * + * *
        * The status processing the document.
        * 
@@ -3419,6 +3969,8 @@ public Builder clearStatus() { return this; } /** + * + * *
        * The status processing the document.
        * 
@@ -3431,6 +3983,8 @@ public com.google.rpc.Status.Builder getStatusBuilder() { return getStatusFieldBuilder().getBuilder(); } /** + * + * *
        * The status processing the document.
        * 
@@ -3441,11 +3995,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** + * + * *
        * The status processing the document.
        * 
@@ -3453,18 +4008,19 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - 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> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3477,41 +4033,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus) - private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .IndividualDocumentStatus + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus(); + DEFAULT_INSTANCE = + new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus(); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IndividualDocumentStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 IndividualDocumentStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3523,23 +4084,27 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int pipelineMetadataCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object pipelineMetadata_; + public enum PipelineMetadataCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_INGEST_PIPELINE_METADATA(4), EXPORT_TO_CDW_PIPELINE_METADATA(6), PROCESS_WITH_DOC_AI_PIPELINE_METADATA(7), PIPELINEMETADATA_NOT_SET(0); private final int value; + private PipelineMetadataCase(int value) { this.value = value; } @@ -3555,32 +4120,39 @@ public static PipelineMetadataCase valueOf(int value) { public static PipelineMetadataCase forNumber(int value) { switch (value) { - case 4: return GCS_INGEST_PIPELINE_METADATA; - case 6: return EXPORT_TO_CDW_PIPELINE_METADATA; - case 7: return PROCESS_WITH_DOC_AI_PIPELINE_METADATA; - case 0: return PIPELINEMETADATA_NOT_SET; - default: return null; + case 4: + return GCS_INGEST_PIPELINE_METADATA; + case 6: + return EXPORT_TO_CDW_PIPELINE_METADATA; + case 7: + return PROCESS_WITH_DOC_AI_PIPELINE_METADATA; + case 0: + return PIPELINEMETADATA_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public PipelineMetadataCase - getPipelineMetadataCase() { - return PipelineMetadataCase.forNumber( - pipelineMetadataCase_); + public PipelineMetadataCase getPipelineMetadataCase() { + return PipelineMetadataCase.forNumber(pipelineMetadataCase_); } public static final int TOTAL_FILE_COUNT_FIELD_NUMBER = 1; private int totalFileCount_ = 0; /** + * + * *
    * Number of files that were processed by the pipeline.
    * 
* * int32 total_file_count = 1; + * * @return The totalFileCount. */ @java.lang.Override @@ -3591,11 +4163,14 @@ public int getTotalFileCount() { public static final int FAILED_FILE_COUNT_FIELD_NUMBER = 2; private int failedFileCount_ = 0; /** + * + * *
    * Number of files that have failed at some point in the pipeline.
    * 
* * int32 failed_file_count = 2; + * * @return The failedFileCount. */ @java.lang.Override @@ -3606,11 +4181,14 @@ public int getFailedFileCount() { public static final int USER_INFO_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.UserInfo userInfo_; /** + * + * *
    * User unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; + * * @return Whether the userInfo field is set. */ @java.lang.Override @@ -3618,18 +4196,25 @@ public boolean hasUserInfo() { return userInfo_ != null; } /** + * + * *
    * User unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; + * * @return The userInfo. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() { - return userInfo_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() + : userInfo_; } /** + * + * *
    * User unique identification and groups information.
    * 
@@ -3638,16 +4223,23 @@ public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuilder() { - return userInfo_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() + : userInfo_; } public static final int GCS_INGEST_PIPELINE_METADATA_FIELD_NUMBER = 4; /** + * + * *
    * The pipeline metadata for GcsIngest pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * * @return Whether the gcsIngestPipelineMetadata field is set. */ @java.lang.Override @@ -3655,42 +4247,62 @@ public boolean hasGcsIngestPipelineMetadata() { return pipelineMetadataCase_ == 4; } /** + * + * *
    * The pipeline metadata for GcsIngest pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * * @return The gcsIngestPipelineMetadata. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata getGcsIngestPipelineMetadata() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + getGcsIngestPipelineMetadata() { if (pipelineMetadataCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) + pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .getDefaultInstance(); } /** + * + * *
    * The pipeline metadata for GcsIngest pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder getGcsIngestPipelineMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder + getGcsIngestPipelineMetadataOrBuilder() { if (pipelineMetadataCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) + pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .getDefaultInstance(); } public static final int EXPORT_TO_CDW_PIPELINE_METADATA_FIELD_NUMBER = 6; /** + * + * *
    * The pipeline metadata for Export-to-CDW pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * * @return Whether the exportToCdwPipelineMetadata field is set. */ @java.lang.Override @@ -3698,42 +4310,63 @@ public boolean hasExportToCdwPipelineMetadata() { return pipelineMetadataCase_ == 6; } /** + * + * *
    * The pipeline metadata for Export-to-CDW pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * * @return The exportToCdwPipelineMetadata. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata getExportToCdwPipelineMetadata() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + getExportToCdwPipelineMetadata() { if (pipelineMetadataCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) + pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .getDefaultInstance(); } /** + * + * *
    * The pipeline metadata for Export-to-CDW pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder getExportToCdwPipelineMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadataOrBuilder + getExportToCdwPipelineMetadataOrBuilder() { if (pipelineMetadataCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) + pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .getDefaultInstance(); } public static final int PROCESS_WITH_DOC_AI_PIPELINE_METADATA_FIELD_NUMBER = 7; /** + * + * *
    * The pipeline metadata for Process-with-DocAi pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * * @return Whether the processWithDocAiPipelineMetadata field is set. */ @java.lang.Override @@ -3741,97 +4374,145 @@ public boolean hasProcessWithDocAiPipelineMetadata() { return pipelineMetadataCase_ == 7; } /** + * + * *
    * The pipeline metadata for Process-with-DocAi pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * * @return The processWithDocAiPipelineMetadata. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata getProcessWithDocAiPipelineMetadata() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + getProcessWithDocAiPipelineMetadata() { if (pipelineMetadataCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata) + pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + .getDefaultInstance(); } /** + * + * *
    * The pipeline metadata for Process-with-DocAi pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder getProcessWithDocAiPipelineMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadataOrBuilder + getProcessWithDocAiPipelineMetadataOrBuilder() { if (pipelineMetadataCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata) + pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + .getDefaultInstance(); } public static final int INDIVIDUAL_DOCUMENT_STATUSES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") - private java.util.List individualDocumentStatuses_; + private java.util.List< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus> + individualDocumentStatuses_; /** + * + * *
    * The list of response details of each document.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ @java.lang.Override - public java.util.List getIndividualDocumentStatusesList() { + public java.util.List< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus> + getIndividualDocumentStatusesList() { return individualDocumentStatuses_; } /** + * + * *
    * The list of response details of each document.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .IndividualDocumentStatusOrBuilder> getIndividualDocumentStatusesOrBuilderList() { return individualDocumentStatuses_; } /** + * + * *
    * The list of response details of each document.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ @java.lang.Override public int getIndividualDocumentStatusesCount() { return individualDocumentStatuses_.size(); } /** + * + * *
    * The list of response details of each document.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus getIndividualDocumentStatuses(int index) { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + getIndividualDocumentStatuses(int index) { return individualDocumentStatuses_.get(index); } /** + * + * *
    * The list of response details of each document.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder getIndividualDocumentStatusesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder + getIndividualDocumentStatusesOrBuilder(int index) { return individualDocumentStatuses_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3843,8 +4524,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (totalFileCount_ != 0) { output.writeInt32(1, totalFileCount_); } @@ -3855,16 +4535,26 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(3, getUserInfo()); } if (pipelineMetadataCase_ == 4) { - output.writeMessage(4, (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_); + output.writeMessage( + 4, + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) + pipelineMetadata_); } for (int i = 0; i < individualDocumentStatuses_.size(); i++) { output.writeMessage(5, individualDocumentStatuses_.get(i)); } if (pipelineMetadataCase_ == 6) { - output.writeMessage(6, (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_); + output.writeMessage( + 6, + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) + pipelineMetadata_); } if (pipelineMetadataCase_ == 7) { - output.writeMessage(7, (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_); + output.writeMessage( + 7, + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata) + pipelineMetadata_); } getUnknownFields().writeTo(output); } @@ -3876,32 +4566,40 @@ public int getSerializedSize() { size = 0; if (totalFileCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, totalFileCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, totalFileCount_); } if (failedFileCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, failedFileCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, failedFileCount_); } if (userInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUserInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUserInfo()); } if (pipelineMetadataCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) + pipelineMetadata_); } for (int i = 0; i < individualDocumentStatuses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, individualDocumentStatuses_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, individualDocumentStatuses_.get(i)); } if (pipelineMetadataCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) + pipelineMetadata_); } if (pipelineMetadataCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata) + pipelineMetadata_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3911,33 +4609,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.RunPipelineMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata other = (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata) obj; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata other = + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata) obj; - if (getTotalFileCount() - != other.getTotalFileCount()) return false; - if (getFailedFileCount() - != other.getFailedFileCount()) return false; + if (getTotalFileCount() != other.getTotalFileCount()) return false; + if (getFailedFileCount() != other.getFailedFileCount()) 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 (!getIndividualDocumentStatusesList() - .equals(other.getIndividualDocumentStatusesList())) return false; + if (!getIndividualDocumentStatusesList().equals(other.getIndividualDocumentStatusesList())) + return false; if (!getPipelineMetadataCase().equals(other.getPipelineMetadataCase())) return false; switch (pipelineMetadataCase_) { case 4: - if (!getGcsIngestPipelineMetadata() - .equals(other.getGcsIngestPipelineMetadata())) return false; + if (!getGcsIngestPipelineMetadata().equals(other.getGcsIngestPipelineMetadata())) + return false; break; case 6: - if (!getExportToCdwPipelineMetadata() - .equals(other.getExportToCdwPipelineMetadata())) return false; + if (!getExportToCdwPipelineMetadata().equals(other.getExportToCdwPipelineMetadata())) + return false; break; case 7: if (!getProcessWithDocAiPipelineMetadata() @@ -3991,131 +4687,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata 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.contentwarehouse.v1.RunPipelineMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 message of RunPipeline method.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineMetadata) com.google.cloud.contentwarehouse.v1.RunPipelineMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.class, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.class, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -4149,9 +4850,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; } @java.lang.Override @@ -4170,18 +4871,23 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata(this); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result = + new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result) { if (individualDocumentStatusesBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { - individualDocumentStatuses_ = java.util.Collections.unmodifiableList(individualDocumentStatuses_); + individualDocumentStatuses_ = + java.util.Collections.unmodifiableList(individualDocumentStatuses_); bitField0_ = (bitField0_ & ~0x00000040); } result.individualDocumentStatuses_ = individualDocumentStatuses_; @@ -4199,25 +4905,21 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineMetad result.failedFileCount_ = failedFileCount_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.userInfo_ = userInfoBuilder_ == null - ? userInfo_ - : userInfoBuilder_.build(); + result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); } } - private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result) { + private void buildPartialOneofs( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata result) { result.pipelineMetadataCase_ = pipelineMetadataCase_; result.pipelineMetadata_ = this.pipelineMetadata_; - if (pipelineMetadataCase_ == 4 && - gcsIngestPipelineMetadataBuilder_ != null) { + if (pipelineMetadataCase_ == 4 && gcsIngestPipelineMetadataBuilder_ != null) { result.pipelineMetadata_ = gcsIngestPipelineMetadataBuilder_.build(); } - if (pipelineMetadataCase_ == 6 && - exportToCdwPipelineMetadataBuilder_ != null) { + if (pipelineMetadataCase_ == 6 && exportToCdwPipelineMetadataBuilder_ != null) { result.pipelineMetadata_ = exportToCdwPipelineMetadataBuilder_.build(); } - if (pipelineMetadataCase_ == 7 && - processWithDocAiPipelineMetadataBuilder_ != null) { + if (pipelineMetadataCase_ == 7 && processWithDocAiPipelineMetadataBuilder_ != null) { result.pipelineMetadata_ = processWithDocAiPipelineMetadataBuilder_.build(); } } @@ -4226,38 +4928,39 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.RunPipeline public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.RunPipelineMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata) other); } else { super.mergeFrom(other); return this; @@ -4265,7 +4968,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.getDefaultInstance()) + return this; if (other.getTotalFileCount() != 0) { setTotalFileCount(other.getTotalFileCount()); } @@ -4293,30 +4997,35 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineMetadat individualDocumentStatusesBuilder_ = null; individualDocumentStatuses_ = other.individualDocumentStatuses_; bitField0_ = (bitField0_ & ~0x00000040); - individualDocumentStatusesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getIndividualDocumentStatusesFieldBuilder() : null; + individualDocumentStatusesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIndividualDocumentStatusesFieldBuilder() + : null; } else { individualDocumentStatusesBuilder_.addAllMessages(other.individualDocumentStatuses_); } } } switch (other.getPipelineMetadataCase()) { - case GCS_INGEST_PIPELINE_METADATA: { - mergeGcsIngestPipelineMetadata(other.getGcsIngestPipelineMetadata()); - break; - } - case EXPORT_TO_CDW_PIPELINE_METADATA: { - mergeExportToCdwPipelineMetadata(other.getExportToCdwPipelineMetadata()); - break; - } - case PROCESS_WITH_DOC_AI_PIPELINE_METADATA: { - mergeProcessWithDocAiPipelineMetadata(other.getProcessWithDocAiPipelineMetadata()); - break; - } - case PIPELINEMETADATA_NOT_SET: { - break; - } + case GCS_INGEST_PIPELINE_METADATA: + { + mergeGcsIngestPipelineMetadata(other.getGcsIngestPipelineMetadata()); + break; + } + case EXPORT_TO_CDW_PIPELINE_METADATA: + { + mergeExportToCdwPipelineMetadata(other.getExportToCdwPipelineMetadata()); + break; + } + case PROCESS_WITH_DOC_AI_PIPELINE_METADATA: + { + mergeProcessWithDocAiPipelineMetadata(other.getProcessWithDocAiPipelineMetadata()); + break; + } + case PIPELINEMETADATA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -4344,63 +5053,69 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - totalFileCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - failedFileCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getUserInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getGcsIngestPipelineMetadataFieldBuilder().getBuilder(), - extensionRegistry); - pipelineMetadataCase_ = 4; - break; - } // case 34 - case 42: { - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.parser(), - extensionRegistry); - if (individualDocumentStatusesBuilder_ == null) { - ensureIndividualDocumentStatusesIsMutable(); - individualDocumentStatuses_.add(m); - } else { - individualDocumentStatusesBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: { - input.readMessage( - getExportToCdwPipelineMetadataFieldBuilder().getBuilder(), - extensionRegistry); - pipelineMetadataCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getProcessWithDocAiPipelineMetadataFieldBuilder().getBuilder(), - extensionRegistry); - pipelineMetadataCase_ = 7; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + totalFileCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + failedFileCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getGcsIngestPipelineMetadataFieldBuilder().getBuilder(), extensionRegistry); + pipelineMetadataCase_ = 4; + break; + } // case 34 + case 42: + { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .IndividualDocumentStatus.parser(), + extensionRegistry); + if (individualDocumentStatusesBuilder_ == null) { + ensureIndividualDocumentStatusesIsMutable(); + individualDocumentStatuses_.add(m); + } else { + individualDocumentStatusesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage( + getExportToCdwPipelineMetadataFieldBuilder().getBuilder(), extensionRegistry); + pipelineMetadataCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getProcessWithDocAiPipelineMetadataFieldBuilder().getBuilder(), + extensionRegistry); + pipelineMetadataCase_ = 7; + 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) { @@ -4410,12 +5125,12 @@ public Builder mergeFrom( } // finally return this; } + private int pipelineMetadataCase_ = 0; private java.lang.Object pipelineMetadata_; - public PipelineMetadataCase - getPipelineMetadataCase() { - return PipelineMetadataCase.forNumber( - pipelineMetadataCase_); + + public PipelineMetadataCase getPipelineMetadataCase() { + return PipelineMetadataCase.forNumber(pipelineMetadataCase_); } public Builder clearPipelineMetadata() { @@ -4427,13 +5142,16 @@ public Builder clearPipelineMetadata() { private int bitField0_; - private int totalFileCount_ ; + private int totalFileCount_; /** + * + * *
      * Number of files that were processed by the pipeline.
      * 
* * int32 total_file_count = 1; + * * @return The totalFileCount. */ @java.lang.Override @@ -4441,11 +5159,14 @@ public int getTotalFileCount() { return totalFileCount_; } /** + * + * *
      * Number of files that were processed by the pipeline.
      * 
* * int32 total_file_count = 1; + * * @param value The totalFileCount to set. * @return This builder for chaining. */ @@ -4457,11 +5178,14 @@ public Builder setTotalFileCount(int value) { return this; } /** + * + * *
      * Number of files that were processed by the pipeline.
      * 
* * int32 total_file_count = 1; + * * @return This builder for chaining. */ public Builder clearTotalFileCount() { @@ -4471,13 +5195,16 @@ public Builder clearTotalFileCount() { return this; } - private int failedFileCount_ ; + private int failedFileCount_; /** + * + * *
      * Number of files that have failed at some point in the pipeline.
      * 
* * int32 failed_file_count = 2; + * * @return The failedFileCount. */ @java.lang.Override @@ -4485,11 +5212,14 @@ public int getFailedFileCount() { return failedFileCount_; } /** + * + * *
      * Number of files that have failed at some point in the pipeline.
      * 
* * int32 failed_file_count = 2; + * * @param value The failedFileCount to set. * @return This builder for chaining. */ @@ -4501,11 +5231,14 @@ public Builder setFailedFileCount(int value) { return this; } /** + * + * *
      * Number of files that have failed at some point in the pipeline.
      * 
* * int32 failed_file_count = 2; + * * @return This builder for chaining. */ public Builder clearFailedFileCount() { @@ -4517,34 +5250,47 @@ public Builder clearFailedFileCount() { private com.google.cloud.contentwarehouse.v1.UserInfo userInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> userInfoBuilder_; + com.google.cloud.contentwarehouse.v1.UserInfo, + com.google.cloud.contentwarehouse.v1.UserInfo.Builder, + com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> + userInfoBuilder_; /** + * + * *
      * User unique identification and groups information.
      * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; + * * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * User unique identification and groups information.
      * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; + * * @return The userInfo. */ public com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo() { if (userInfoBuilder_ == null) { - return userInfo_ == null ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() + : userInfo_; } else { return userInfoBuilder_.getMessage(); } } /** + * + * *
      * User unique identification and groups information.
      * 
@@ -4565,6 +5311,8 @@ public Builder setUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value) return this; } /** + * + * *
      * User unique identification and groups information.
      * 
@@ -4583,6 +5331,8 @@ public Builder setUserInfo( return this; } /** + * + * *
      * User unique identification and groups information.
      * 
@@ -4591,9 +5341,9 @@ public Builder setUserInfo( */ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value) { if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - userInfo_ != null && - userInfo_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && userInfo_ != null + && userInfo_ != com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance()) { getUserInfoBuilder().mergeFrom(value); } else { userInfo_ = value; @@ -4606,6 +5356,8 @@ public Builder mergeUserInfo(com.google.cloud.contentwarehouse.v1.UserInfo value return this; } /** + * + * *
      * User unique identification and groups information.
      * 
@@ -4623,6 +5375,8 @@ public Builder clearUserInfo() { return this; } /** + * + * *
      * User unique identification and groups information.
      * 
@@ -4635,6 +5389,8 @@ public com.google.cloud.contentwarehouse.v1.UserInfo.Builder getUserInfoBuilder( return getUserInfoFieldBuilder().getBuilder(); } /** + * + * *
      * User unique identification and groups information.
      * 
@@ -4645,11 +5401,14 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuild if (userInfoBuilder_ != null) { return userInfoBuilder_.getMessageOrBuilder(); } else { - return userInfo_ == null ? - com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.cloud.contentwarehouse.v1.UserInfo.getDefaultInstance() + : userInfo_; } } /** + * + * *
      * User unique identification and groups information.
      * 
@@ -4657,27 +5416,40 @@ public com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuild * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> + com.google.cloud.contentwarehouse.v1.UserInfo, + com.google.cloud.contentwarehouse.v1.UserInfo.Builder, + com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder> getUserInfoFieldBuilder() { if (userInfoBuilder_ == null) { - userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UserInfo, com.google.cloud.contentwarehouse.v1.UserInfo.Builder, com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>( - getUserInfo(), - getParentForChildren(), - isClean()); + userInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.UserInfo, + com.google.cloud.contentwarehouse.v1.UserInfo.Builder, + com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder>( + getUserInfo(), getParentForChildren(), isClean()); userInfo_ = null; } return userInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder> gcsIngestPipelineMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .Builder, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .GcsIngestPipelineMetadataOrBuilder> + gcsIngestPipelineMetadataBuilder_; /** + * + * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * * @return Whether the gcsIngestPipelineMetadata field is set. */ @java.lang.Override @@ -4685,35 +5457,50 @@ public boolean hasGcsIngestPipelineMetadata() { return pipelineMetadataCase_ == 4; } /** + * + * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * * @return The gcsIngestPipelineMetadata. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata getGcsIngestPipelineMetadata() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + getGcsIngestPipelineMetadata() { if (gcsIngestPipelineMetadataBuilder_ == null) { if (pipelineMetadataCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .GcsIngestPipelineMetadata) + pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .getDefaultInstance(); } else { if (pipelineMetadataCase_ == 4) { return gcsIngestPipelineMetadataBuilder_.getMessage(); } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .getDefaultInstance(); } } /** + * + * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * */ - public Builder setGcsIngestPipelineMetadata(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata value) { + public Builder setGcsIngestPipelineMetadata( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata value) { if (gcsIngestPipelineMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4727,14 +5514,19 @@ public Builder setGcsIngestPipelineMetadata(com.google.cloud.contentwarehouse.v1 return this; } /** + * + * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * */ public Builder setGcsIngestPipelineMetadata( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder builderForValue) { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder + builderForValue) { if (gcsIngestPipelineMetadataBuilder_ == null) { pipelineMetadata_ = builderForValue.build(); onChanged(); @@ -4745,18 +5537,31 @@ public Builder setGcsIngestPipelineMetadata( return this; } /** + * + * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * */ - public Builder mergeGcsIngestPipelineMetadata(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata value) { + public Builder mergeGcsIngestPipelineMetadata( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata value) { if (gcsIngestPipelineMetadataBuilder_ == null) { - if (pipelineMetadataCase_ == 4 && - pipelineMetadata_ != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance()) { - pipelineMetadata_ = com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.newBuilder((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_) - .mergeFrom(value).buildPartial(); + if (pipelineMetadataCase_ == 4 + && pipelineMetadata_ + != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .GcsIngestPipelineMetadata.getDefaultInstance()) { + pipelineMetadata_ = + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .newBuilder( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .GcsIngestPipelineMetadata) + pipelineMetadata_) + .mergeFrom(value) + .buildPartial(); } else { pipelineMetadata_ = value; } @@ -4772,11 +5577,15 @@ public Builder mergeGcsIngestPipelineMetadata(com.google.cloud.contentwarehouse. return this; } /** + * + * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * */ public Builder clearGcsIngestPipelineMetadata() { if (gcsIngestPipelineMetadataBuilder_ == null) { @@ -4795,50 +5604,81 @@ public Builder clearGcsIngestPipelineMetadata() { return this; } /** + * + * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder getGcsIngestPipelineMetadataBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .Builder + getGcsIngestPipelineMetadataBuilder() { return getGcsIngestPipelineMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder getGcsIngestPipelineMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .GcsIngestPipelineMetadataOrBuilder + getGcsIngestPipelineMetadataOrBuilder() { if ((pipelineMetadataCase_ == 4) && (gcsIngestPipelineMetadataBuilder_ != null)) { return gcsIngestPipelineMetadataBuilder_.getMessageOrBuilder(); } else { if (pipelineMetadataCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .GcsIngestPipelineMetadata) + pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .getDefaultInstance(); } } /** + * + * *
      * The pipeline metadata for GcsIngest pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder> + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .Builder, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .GcsIngestPipelineMetadataOrBuilder> getGcsIngestPipelineMetadataFieldBuilder() { if (gcsIngestPipelineMetadataBuilder_ == null) { if (!(pipelineMetadataCase_ == 4)) { - pipelineMetadata_ = com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.getDefaultInstance(); + pipelineMetadata_ = + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .getDefaultInstance(); } - gcsIngestPipelineMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder>( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) pipelineMetadata_, + gcsIngestPipelineMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + .Builder, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .GcsIngestPipelineMetadataOrBuilder>( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata) + pipelineMetadata_, getParentForChildren(), isClean()); pipelineMetadata_ = null; @@ -4849,13 +5689,23 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelin } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder> exportToCdwPipelineMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .Builder, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadataOrBuilder> + exportToCdwPipelineMetadataBuilder_; /** + * + * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * * @return Whether the exportToCdwPipelineMetadata field is set. */ @java.lang.Override @@ -4863,35 +5713,51 @@ public boolean hasExportToCdwPipelineMetadata() { return pipelineMetadataCase_ == 6; } /** + * + * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * * @return The exportToCdwPipelineMetadata. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata getExportToCdwPipelineMetadata() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + getExportToCdwPipelineMetadata() { if (exportToCdwPipelineMetadataBuilder_ == null) { if (pipelineMetadataCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata) + pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .getDefaultInstance(); } else { if (pipelineMetadataCase_ == 6) { return exportToCdwPipelineMetadataBuilder_.getMessage(); } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .getDefaultInstance(); } } /** + * + * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * */ - public Builder setExportToCdwPipelineMetadata(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata value) { + public Builder setExportToCdwPipelineMetadata( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + value) { if (exportToCdwPipelineMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4905,14 +5771,19 @@ public Builder setExportToCdwPipelineMetadata(com.google.cloud.contentwarehouse. return this; } /** + * + * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * */ public Builder setExportToCdwPipelineMetadata( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder builderForValue) { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder + builderForValue) { if (exportToCdwPipelineMetadataBuilder_ == null) { pipelineMetadata_ = builderForValue.build(); onChanged(); @@ -4923,18 +5794,32 @@ public Builder setExportToCdwPipelineMetadata( return this; } /** + * + * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * */ - public Builder mergeExportToCdwPipelineMetadata(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata value) { + public Builder mergeExportToCdwPipelineMetadata( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + value) { if (exportToCdwPipelineMetadataBuilder_ == null) { - if (pipelineMetadataCase_ == 6 && - pipelineMetadata_ != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance()) { - pipelineMetadata_ = com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.newBuilder((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_) - .mergeFrom(value).buildPartial(); + if (pipelineMetadataCase_ == 6 + && pipelineMetadata_ + != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata.getDefaultInstance()) { + pipelineMetadata_ = + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .newBuilder( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata) + pipelineMetadata_) + .mergeFrom(value) + .buildPartial(); } else { pipelineMetadata_ = value; } @@ -4950,11 +5835,15 @@ public Builder mergeExportToCdwPipelineMetadata(com.google.cloud.contentwarehous return this; } /** + * + * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * */ public Builder clearExportToCdwPipelineMetadata() { if (exportToCdwPipelineMetadataBuilder_ == null) { @@ -4973,50 +5862,83 @@ public Builder clearExportToCdwPipelineMetadata() { return this; } /** + * + * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder getExportToCdwPipelineMetadataBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .Builder + getExportToCdwPipelineMetadataBuilder() { return getExportToCdwPipelineMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder getExportToCdwPipelineMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadataOrBuilder + getExportToCdwPipelineMetadataOrBuilder() { if ((pipelineMetadataCase_ == 6) && (exportToCdwPipelineMetadataBuilder_ != null)) { return exportToCdwPipelineMetadataBuilder_.getMessageOrBuilder(); } else { if (pipelineMetadataCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata) + pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .getDefaultInstance(); } } /** + * + * *
      * The pipeline metadata for Export-to-CDW pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder> + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .Builder, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadataOrBuilder> getExportToCdwPipelineMetadataFieldBuilder() { if (exportToCdwPipelineMetadataBuilder_ == null) { if (!(pipelineMetadataCase_ == 6)) { - pipelineMetadata_ = com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.getDefaultInstance(); + pipelineMetadata_ = + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .getDefaultInstance(); } - exportToCdwPipelineMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder>( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata) pipelineMetadata_, + exportToCdwPipelineMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + .Builder, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadataOrBuilder>( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ExportToCdwPipelineMetadata) + pipelineMetadata_, getParentForChildren(), isClean()); pipelineMetadata_ = null; @@ -5027,13 +5949,24 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipel } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder> processWithDocAiPipelineMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadataOrBuilder> + processWithDocAiPipelineMetadataBuilder_; /** + * + * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * * @return Whether the processWithDocAiPipelineMetadata field is set. */ @java.lang.Override @@ -5041,35 +5974,51 @@ public boolean hasProcessWithDocAiPipelineMetadata() { return pipelineMetadataCase_ == 7; } /** + * + * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * * @return The processWithDocAiPipelineMetadata. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata getProcessWithDocAiPipelineMetadata() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + getProcessWithDocAiPipelineMetadata() { if (processWithDocAiPipelineMetadataBuilder_ == null) { if (pipelineMetadataCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata) + pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.getDefaultInstance(); } else { if (pipelineMetadataCase_ == 7) { return processWithDocAiPipelineMetadataBuilder_.getMessage(); } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.getDefaultInstance(); } } /** + * + * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * */ - public Builder setProcessWithDocAiPipelineMetadata(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata value) { + public Builder setProcessWithDocAiPipelineMetadata( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + value) { if (processWithDocAiPipelineMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5083,14 +6032,20 @@ public Builder setProcessWithDocAiPipelineMetadata(com.google.cloud.contentwareh return this; } /** + * + * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * */ public Builder setProcessWithDocAiPipelineMetadata( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder builderForValue) { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + .Builder + builderForValue) { if (processWithDocAiPipelineMetadataBuilder_ == null) { pipelineMetadata_ = builderForValue.build(); onChanged(); @@ -5101,18 +6056,32 @@ public Builder setProcessWithDocAiPipelineMetadata( return this; } /** + * + * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * */ - public Builder mergeProcessWithDocAiPipelineMetadata(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata value) { + public Builder mergeProcessWithDocAiPipelineMetadata( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + value) { if (processWithDocAiPipelineMetadataBuilder_ == null) { - if (pipelineMetadataCase_ == 7 && - pipelineMetadata_ != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance()) { - pipelineMetadata_ = com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.newBuilder((com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_) - .mergeFrom(value).buildPartial(); + if (pipelineMetadataCase_ == 7 + && pipelineMetadata_ + != com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.getDefaultInstance()) { + pipelineMetadata_ = + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.newBuilder( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata) + pipelineMetadata_) + .mergeFrom(value) + .buildPartial(); } else { pipelineMetadata_ = value; } @@ -5128,11 +6097,15 @@ public Builder mergeProcessWithDocAiPipelineMetadata(com.google.cloud.contentwar return this; } /** + * + * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * */ public Builder clearProcessWithDocAiPipelineMetadata() { if (processWithDocAiPipelineMetadataBuilder_ == null) { @@ -5151,50 +6124,84 @@ public Builder clearProcessWithDocAiPipelineMetadata() { return this; } /** + * + * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder getProcessWithDocAiPipelineMetadataBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + .Builder + getProcessWithDocAiPipelineMetadataBuilder() { return getProcessWithDocAiPipelineMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder getProcessWithDocAiPipelineMetadataOrBuilder() { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadataOrBuilder + getProcessWithDocAiPipelineMetadataOrBuilder() { if ((pipelineMetadataCase_ == 7) && (processWithDocAiPipelineMetadataBuilder_ != null)) { return processWithDocAiPipelineMetadataBuilder_.getMessageOrBuilder(); } else { if (pipelineMetadataCase_ == 7) { - return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_; + return (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata) + pipelineMetadata_; } - return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.getDefaultInstance(); } } /** + * + * *
      * The pipeline metadata for Process-with-DocAi pipeline.
      * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder> + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadataOrBuilder> getProcessWithDocAiPipelineMetadataFieldBuilder() { if (processWithDocAiPipelineMetadataBuilder_ == null) { if (!(pipelineMetadataCase_ == 7)) { - pipelineMetadata_ = com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.getDefaultInstance(); + pipelineMetadata_ = + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.getDefaultInstance(); } - processWithDocAiPipelineMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder>( - (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata) pipelineMetadata_, + processWithDocAiPipelineMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadataOrBuilder>( + (com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .ProcessWithDocAiPipelineMetadata) + pipelineMetadata_, getParentForChildren(), isClean()); pipelineMetadata_ = null; @@ -5204,26 +6211,42 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAi return processWithDocAiPipelineMetadataBuilder_; } - private java.util.List individualDocumentStatuses_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus> + individualDocumentStatuses_ = java.util.Collections.emptyList(); + private void ensureIndividualDocumentStatusesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { - individualDocumentStatuses_ = new java.util.ArrayList(individualDocumentStatuses_); + individualDocumentStatuses_ = + new java.util.ArrayList< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus>( + individualDocumentStatuses_); bitField0_ |= 0x00000040; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder> individualDocumentStatusesBuilder_; + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + .Builder, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .IndividualDocumentStatusOrBuilder> + individualDocumentStatusesBuilder_; /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - public java.util.List getIndividualDocumentStatusesList() { + public java.util.List< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus> + getIndividualDocumentStatusesList() { if (individualDocumentStatusesBuilder_ == null) { return java.util.Collections.unmodifiableList(individualDocumentStatuses_); } else { @@ -5231,11 +6254,15 @@ public java.util.List * The list of response details of each document. *
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ public int getIndividualDocumentStatusesCount() { if (individualDocumentStatusesBuilder_ == null) { @@ -5245,13 +6272,18 @@ public int getIndividualDocumentStatusesCount() { } } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus getIndividualDocumentStatuses(int index) { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + getIndividualDocumentStatuses(int index) { if (individualDocumentStatusesBuilder_ == null) { return individualDocumentStatuses_.get(index); } else { @@ -5259,14 +6291,19 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocume } } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ public Builder setIndividualDocumentStatuses( - int index, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) { + int index, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) { if (individualDocumentStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5280,14 +6317,20 @@ public Builder setIndividualDocumentStatuses( return this; } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ public Builder setIndividualDocumentStatuses( - int index, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder + builderForValue) { if (individualDocumentStatusesBuilder_ == null) { ensureIndividualDocumentStatusesIsMutable(); individualDocumentStatuses_.set(index, builderForValue.build()); @@ -5298,13 +6341,18 @@ public Builder setIndividualDocumentStatuses( return this; } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - public Builder addIndividualDocumentStatuses(com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) { + public Builder addIndividualDocumentStatuses( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) { if (individualDocumentStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5318,14 +6366,19 @@ public Builder addIndividualDocumentStatuses(com.google.cloud.contentwarehouse.v return this; } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ public Builder addIndividualDocumentStatuses( - int index, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) { + int index, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus value) { if (individualDocumentStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5339,14 +6392,19 @@ public Builder addIndividualDocumentStatuses( return this; } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ public Builder addIndividualDocumentStatuses( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder builderForValue) { + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder + builderForValue) { if (individualDocumentStatusesBuilder_ == null) { ensureIndividualDocumentStatusesIsMutable(); individualDocumentStatuses_.add(builderForValue.build()); @@ -5357,14 +6415,20 @@ public Builder addIndividualDocumentStatuses( return this; } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ public Builder addIndividualDocumentStatuses( - int index, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder + builderForValue) { if (individualDocumentStatusesBuilder_ == null) { ensureIndividualDocumentStatusesIsMutable(); individualDocumentStatuses_.add(index, builderForValue.build()); @@ -5375,18 +6439,25 @@ public Builder addIndividualDocumentStatuses( return this; } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ public Builder addAllIndividualDocumentStatuses( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .IndividualDocumentStatus> + values) { if (individualDocumentStatusesBuilder_ == null) { ensureIndividualDocumentStatusesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, individualDocumentStatuses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, individualDocumentStatuses_); onChanged(); } else { individualDocumentStatusesBuilder_.addAllMessages(values); @@ -5394,11 +6465,15 @@ public Builder addAllIndividualDocumentStatuses( return this; } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ public Builder clearIndividualDocumentStatuses() { if (individualDocumentStatusesBuilder_ == null) { @@ -5411,11 +6486,15 @@ public Builder clearIndividualDocumentStatuses() { return this; } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ public Builder removeIndividualDocumentStatuses(int index) { if (individualDocumentStatusesBuilder_ == null) { @@ -5428,39 +6507,56 @@ public Builder removeIndividualDocumentStatuses(int index) { return this; } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder getIndividualDocumentStatusesBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder + getIndividualDocumentStatusesBuilder(int index) { return getIndividualDocumentStatusesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder getIndividualDocumentStatusesOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .IndividualDocumentStatusOrBuilder + getIndividualDocumentStatusesOrBuilder(int index) { if (individualDocumentStatusesBuilder_ == null) { - return individualDocumentStatuses_.get(index); } else { + return individualDocumentStatuses_.get(index); + } else { return individualDocumentStatusesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - public java.util.List - getIndividualDocumentStatusesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .IndividualDocumentStatusOrBuilder> + getIndividualDocumentStatusesOrBuilderList() { if (individualDocumentStatusesBuilder_ != null) { return individualDocumentStatusesBuilder_.getMessageOrBuilderList(); } else { @@ -5468,45 +6564,75 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocume } } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder addIndividualDocumentStatusesBuilder() { - return getIndividualDocumentStatusesFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder + addIndividualDocumentStatusesBuilder() { + return getIndividualDocumentStatusesFieldBuilder() + .addBuilder( + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + .getDefaultInstance()); } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder addIndividualDocumentStatusesBuilder( - int index) { - return getIndividualDocumentStatusesFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder + addIndividualDocumentStatusesBuilder(int index) { + return getIndividualDocumentStatusesFieldBuilder() + .addBuilder( + index, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + .getDefaultInstance()); } /** + * + * *
      * The list of response details of each document.
      * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - public java.util.List - getIndividualDocumentStatusesBuilderList() { + public java.util.List< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + .Builder> + getIndividualDocumentStatusesBuilderList() { return getIndividualDocumentStatusesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder> + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + .Builder, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .IndividualDocumentStatusOrBuilder> getIndividualDocumentStatusesFieldBuilder() { if (individualDocumentStatusesBuilder_ == null) { - individualDocumentStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus.Builder, com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder>( + individualDocumentStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + .Builder, + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .IndividualDocumentStatusOrBuilder>( individualDocumentStatuses_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), @@ -5515,9 +6641,9 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocume } return individualDocumentStatusesBuilder_; } + @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); } @@ -5527,12 +6653,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineMetadata) private static final com.google.cloud.contentwarehouse.v1.RunPipelineMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineMetadata(); } @@ -5541,27 +6667,27 @@ public static com.google.cloud.contentwarehouse.v1.RunPipelineMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunPipelineMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RunPipelineMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5576,6 +6702,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RunPipelineMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java similarity index 51% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java index 9506006d1f71..9dfec5393bb6 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineMetadataOrBuilder.java @@ -1,51 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/pipelines.proto package com.google.cloud.contentwarehouse.v1; -public interface RunPipelineMetadataOrBuilder extends +public interface RunPipelineMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Number of files that were processed by the pipeline.
    * 
* * int32 total_file_count = 1; + * * @return The totalFileCount. */ int getTotalFileCount(); /** + * + * *
    * Number of files that have failed at some point in the pipeline.
    * 
* * int32 failed_file_count = 2; + * * @return The failedFileCount. */ int getFailedFileCount(); /** + * + * *
    * User unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; + * * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** + * + * *
    * User unique identification and groups information.
    * 
* * .google.cloud.contentwarehouse.v1.UserInfo user_info = 3; + * * @return The userInfo. */ com.google.cloud.contentwarehouse.v1.UserInfo getUserInfo(); /** + * + * *
    * User unique identification and groups information.
    * 
@@ -55,129 +85,202 @@ public interface RunPipelineMetadataOrBuilder extends com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder getUserInfoOrBuilder(); /** + * + * *
    * The pipeline metadata for GcsIngest pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * * @return Whether the gcsIngestPipelineMetadata field is set. */ boolean hasGcsIngestPipelineMetadata(); /** + * + * *
    * The pipeline metadata for GcsIngest pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * * @return The gcsIngestPipelineMetadata. */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata getGcsIngestPipelineMetadata(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata + getGcsIngestPipelineMetadata(); /** + * + * *
    * The pipeline metadata for GcsIngest pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadata gcs_ingest_pipeline_metadata = 4; + * */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder getGcsIngestPipelineMetadataOrBuilder(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.GcsIngestPipelineMetadataOrBuilder + getGcsIngestPipelineMetadataOrBuilder(); /** + * + * *
    * The pipeline metadata for Export-to-CDW pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * * @return Whether the exportToCdwPipelineMetadata field is set. */ boolean hasExportToCdwPipelineMetadata(); /** + * + * *
    * The pipeline metadata for Export-to-CDW pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * * @return The exportToCdwPipelineMetadata. */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata getExportToCdwPipelineMetadata(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata + getExportToCdwPipelineMetadata(); /** + * + * *
    * The pipeline metadata for Export-to-CDW pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadata export_to_cdw_pipeline_metadata = 6; + * */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder getExportToCdwPipelineMetadataOrBuilder(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ExportToCdwPipelineMetadataOrBuilder + getExportToCdwPipelineMetadataOrBuilder(); /** + * + * *
    * The pipeline metadata for Process-with-DocAi pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * * @return Whether the processWithDocAiPipelineMetadata field is set. */ boolean hasProcessWithDocAiPipelineMetadata(); /** + * + * *
    * The pipeline metadata for Process-with-DocAi pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * * @return The processWithDocAiPipelineMetadata. */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata getProcessWithDocAiPipelineMetadata(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata + getProcessWithDocAiPipelineMetadata(); /** + * + * *
    * The pipeline metadata for Process-with-DocAi pipeline.
    * 
* - * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * + * .google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadata process_with_doc_ai_pipeline_metadata = 7; + * */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder getProcessWithDocAiPipelineMetadataOrBuilder(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.ProcessWithDocAiPipelineMetadataOrBuilder + getProcessWithDocAiPipelineMetadataOrBuilder(); /** + * + * *
    * The list of response details of each document.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - java.util.List + java.util.List getIndividualDocumentStatusesList(); /** + * + * *
    * The list of response details of each document.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus getIndividualDocumentStatuses(int index); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus + getIndividualDocumentStatuses(int index); /** + * + * *
    * The list of response details of each document.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ int getIndividualDocumentStatusesCount(); /** + * + * *
    * The list of response details of each document.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata + .IndividualDocumentStatusOrBuilder> getIndividualDocumentStatusesOrBuilderList(); /** + * + * *
    * The list of response details of each document.
    * 
* - * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * + * repeated .google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatus individual_document_statuses = 5; + * */ - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder getIndividualDocumentStatusesOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.IndividualDocumentStatusOrBuilder + getIndividualDocumentStatusesOrBuilder(int index); - com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.PipelineMetadataCase getPipelineMetadataCase(); + com.google.cloud.contentwarehouse.v1.RunPipelineMetadata.PipelineMetadataCase + getPipelineMetadataCase(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java similarity index 65% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java index 171cb17e2ee4..a734e647111e 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequest.java @@ -1,53 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/pipeline_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentService.RunPipeline.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineRequest} */ -public final class RunPipelineRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RunPipelineRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineRequest) RunPipelineRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RunPipelineRequest.newBuilder() to construct. private RunPipelineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RunPipelineRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunPipelineRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelineServiceProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelineServiceProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelineServiceProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelineServiceProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class, com.google.cloud.contentwarehouse.v1.RunPipelineRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class, + com.google.cloud.contentwarehouse.v1.RunPipelineRequest.Builder.class); } private int pipelineCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object pipeline_; + public enum PipelineCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_INGEST_PIPELINE(2), GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE(3), @@ -55,6 +77,7 @@ public enum PipelineCase PROCESS_WITH_DOC_AI_PIPELINE(5), PIPELINE_NOT_SET(0); private final int value; + private PipelineCase(int value) { this.value = value; } @@ -70,35 +93,46 @@ public static PipelineCase valueOf(int value) { public static PipelineCase forNumber(int value) { switch (value) { - case 2: return GCS_INGEST_PIPELINE; - case 3: return GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE; - case 4: return EXPORT_CDW_PIPELINE; - case 5: return PROCESS_WITH_DOC_AI_PIPELINE; - case 0: return PIPELINE_NOT_SET; - default: return null; + case 2: + return GCS_INGEST_PIPELINE; + case 3: + return GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE; + case 4: + return EXPORT_CDW_PIPELINE; + case 5: + return PROCESS_WITH_DOC_AI_PIPELINE; + case 0: + return PIPELINE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public PipelineCase - getPipelineCase() { - return PipelineCase.forNumber( - pipelineCase_); + public PipelineCase getPipelineCase() { + return PipelineCase.forNumber(pipelineCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name which owns the resources of the pipeline.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * 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 @@ -107,30 +141,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name which owns the resources of the pipeline.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * 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 { @@ -140,11 +176,14 @@ public java.lang.String getName() { public static final int GCS_INGEST_PIPELINE_FIELD_NUMBER = 2; /** + * + * *
    * Cloud Storage ingestion pipeline.
    * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; + * * @return Whether the gcsIngestPipeline field is set. */ @java.lang.Override @@ -152,21 +191,26 @@ public boolean hasGcsIngestPipeline() { return pipelineCase_ == 2; } /** + * + * *
    * Cloud Storage ingestion pipeline.
    * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; + * * @return The gcsIngestPipeline. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getGcsIngestPipeline() { if (pipelineCase_ == 2) { - return (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_; } return com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance(); } /** + * + * *
    * Cloud Storage ingestion pipeline.
    * 
@@ -174,21 +218,27 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getGcsIngestPipeli * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder getGcsIngestPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder + getGcsIngestPipelineOrBuilder() { if (pipelineCase_ == 2) { - return (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_; } return com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance(); } public static final int GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE_FIELD_NUMBER = 3; /** + * + * *
    * Use DocAI processors to process documents in Cloud Storage and ingest
    * them to Document Warehouse.
    * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * * @return Whether the gcsIngestWithDocAiProcessorsPipeline field is set. */ @java.lang.Override @@ -196,44 +246,60 @@ public boolean hasGcsIngestWithDocAiProcessorsPipeline() { return pipelineCase_ == 3; } /** + * + * *
    * Use DocAI processors to process documents in Cloud Storage and ingest
    * them to Document Warehouse.
    * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * * @return The gcsIngestWithDocAiProcessorsPipeline. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline getGcsIngestWithDocAiProcessorsPipeline() { + public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + getGcsIngestWithDocAiProcessorsPipeline() { if (pipelineCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_; } - return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + .getDefaultInstance(); } /** + * + * *
    * Use DocAI processors to process documents in Cloud Storage and ingest
    * them to Document Warehouse.
    * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder getGcsIngestWithDocAiProcessorsPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder + getGcsIngestWithDocAiProcessorsPipelineOrBuilder() { if (pipelineCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_; } - return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + .getDefaultInstance(); } public static final int EXPORT_CDW_PIPELINE_FIELD_NUMBER = 4; /** + * + * *
    * Export docuemnts from Document Warehouse to CDW for training purpose.
    * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; + * * @return Whether the exportCdwPipeline field is set. */ @java.lang.Override @@ -241,21 +307,26 @@ public boolean hasExportCdwPipeline() { return pipelineCase_ == 4; } /** + * + * *
    * Export docuemnts from Document Warehouse to CDW for training purpose.
    * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; + * * @return The exportCdwPipeline. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getExportCdwPipeline() { if (pipelineCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_; } return com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance(); } /** + * + * *
    * Export docuemnts from Document Warehouse to CDW for training purpose.
    * 
@@ -263,21 +334,27 @@ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getExportCdwPipe * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder getExportCdwPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder + getExportCdwPipelineOrBuilder() { if (pipelineCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_; } return com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance(); } public static final int PROCESS_WITH_DOC_AI_PIPELINE_FIELD_NUMBER = 5; /** + * + * *
    * Use a DocAI processor to process documents in Document Warehouse, and
    * re-ingest the updated results into Document Warehouse.
    * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * * @return Whether the processWithDocAiPipeline field is set. */ @java.lang.Override @@ -285,33 +362,44 @@ public boolean hasProcessWithDocAiPipeline() { return pipelineCase_ == 5; } /** + * + * *
    * Use a DocAI processor to process documents in Document Warehouse, and
    * re-ingest the updated results into Document Warehouse.
    * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * * @return The processWithDocAiPipeline. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getProcessWithDocAiPipeline() { + public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline + getProcessWithDocAiPipeline() { if (pipelineCase_ == 5) { - return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_; } return com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance(); } /** + * + * *
    * Use a DocAI processor to process documents in Document Warehouse, and
    * re-ingest the updated results into Document Warehouse.
    * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder getProcessWithDocAiPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder + getProcessWithDocAiPipelineOrBuilder() { if (pipelineCase_ == 5) { - return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_; } return com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance(); } @@ -319,12 +407,15 @@ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder ge public static final int REQUEST_METADATA_FIELD_NUMBER = 6; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6; + * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -332,19 +423,26 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6; + * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -353,11 +451,15 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+        : requestMetadata_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -369,8 +471,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -378,13 +479,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       output.writeMessage(2, (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_);
     }
     if (pipelineCase_ == 3) {
-      output.writeMessage(3, (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_);
+      output.writeMessage(
+          3, (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_);
     }
     if (pipelineCase_ == 4) {
       output.writeMessage(4, (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_);
     }
     if (pipelineCase_ == 5) {
-      output.writeMessage(5, (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_);
+      output.writeMessage(
+          5, (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_);
     }
     if (requestMetadata_ != null) {
       output.writeMessage(6, getRequestMetadata());
@@ -402,24 +505,29 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (pipelineCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_);
     }
     if (pipelineCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3,
+              (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline)
+                  pipeline_);
     }
     if (pipelineCase_ == 4) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              4, (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_);
     }
     if (pipelineCase_ == 5) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              5, (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_);
     }
     if (requestMetadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getRequestMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRequestMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -429,37 +537,34 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.contentwarehouse.v1.RunPipelineRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.RunPipelineRequest other = (com.google.cloud.contentwarehouse.v1.RunPipelineRequest) obj;
+    com.google.cloud.contentwarehouse.v1.RunPipelineRequest other =
+        (com.google.cloud.contentwarehouse.v1.RunPipelineRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
     if (hasRequestMetadata()) {
-      if (!getRequestMetadata()
-          .equals(other.getRequestMetadata())) return false;
+      if (!getRequestMetadata().equals(other.getRequestMetadata())) return false;
     }
     if (!getPipelineCase().equals(other.getPipelineCase())) return false;
     switch (pipelineCase_) {
       case 2:
-        if (!getGcsIngestPipeline()
-            .equals(other.getGcsIngestPipeline())) return false;
+        if (!getGcsIngestPipeline().equals(other.getGcsIngestPipeline())) return false;
         break;
       case 3:
         if (!getGcsIngestWithDocAiProcessorsPipeline()
             .equals(other.getGcsIngestWithDocAiProcessorsPipeline())) return false;
         break;
       case 4:
-        if (!getExportCdwPipeline()
-            .equals(other.getExportCdwPipeline())) return false;
+        if (!getExportCdwPipeline().equals(other.getExportCdwPipeline())) return false;
         break;
       case 5:
-        if (!getProcessWithDocAiPipeline()
-            .equals(other.getProcessWithDocAiPipeline())) return false;
+        if (!getProcessWithDocAiPipeline().equals(other.getProcessWithDocAiPipeline()))
+          return false;
         break;
       case 0:
       default:
@@ -507,131 +612,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest 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.contentwarehouse.v1.RunPipelineRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest 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.contentwarehouse.v1.RunPipelineRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RunPipelineRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.RunPipelineRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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.RunPipeline.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineRequest) com.google.cloud.contentwarehouse.v1.RunPipelineRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelineServiceProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelineServiceProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelineServiceProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelineServiceProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class, com.google.cloud.contentwarehouse.v1.RunPipelineRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineRequest.class, + com.google.cloud.contentwarehouse.v1.RunPipelineRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -660,9 +770,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelineServiceProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelineServiceProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor; } @java.lang.Override @@ -681,8 +791,11 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RunPipelineRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineRequest result = new com.google.cloud.contentwarehouse.v1.RunPipelineRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.RunPipelineRequest result = + new com.google.cloud.contentwarehouse.v1.RunPipelineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -694,29 +807,25 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.RunPipelineReque result.name_ = name_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.requestMetadata_ = requestMetadataBuilder_ == null - ? requestMetadata_ - : requestMetadataBuilder_.build(); + result.requestMetadata_ = + requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); } } - private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.RunPipelineRequest result) { + private void buildPartialOneofs( + com.google.cloud.contentwarehouse.v1.RunPipelineRequest result) { result.pipelineCase_ = pipelineCase_; result.pipeline_ = this.pipeline_; - if (pipelineCase_ == 2 && - gcsIngestPipelineBuilder_ != null) { + if (pipelineCase_ == 2 && gcsIngestPipelineBuilder_ != null) { result.pipeline_ = gcsIngestPipelineBuilder_.build(); } - if (pipelineCase_ == 3 && - gcsIngestWithDocAiProcessorsPipelineBuilder_ != null) { + if (pipelineCase_ == 3 && gcsIngestWithDocAiProcessorsPipelineBuilder_ != null) { result.pipeline_ = gcsIngestWithDocAiProcessorsPipelineBuilder_.build(); } - if (pipelineCase_ == 4 && - exportCdwPipelineBuilder_ != null) { + if (pipelineCase_ == 4 && exportCdwPipelineBuilder_ != null) { result.pipeline_ = exportCdwPipelineBuilder_.build(); } - if (pipelineCase_ == 5 && - processWithDocAiPipelineBuilder_ != null) { + if (pipelineCase_ == 5 && processWithDocAiPipelineBuilder_ != null) { result.pipeline_ = processWithDocAiPipelineBuilder_.build(); } } @@ -725,38 +834,39 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.RunPipeline public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.RunPipelineRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineRequest) other); } else { super.mergeFrom(other); return this; @@ -764,7 +874,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.RunPipelineRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.RunPipelineRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -774,25 +885,31 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineRequest mergeRequestMetadata(other.getRequestMetadata()); } switch (other.getPipelineCase()) { - case GCS_INGEST_PIPELINE: { - mergeGcsIngestPipeline(other.getGcsIngestPipeline()); - break; - } - case GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE: { - mergeGcsIngestWithDocAiProcessorsPipeline(other.getGcsIngestWithDocAiProcessorsPipeline()); - break; - } - case EXPORT_CDW_PIPELINE: { - mergeExportCdwPipeline(other.getExportCdwPipeline()); - break; - } - case PROCESS_WITH_DOC_AI_PIPELINE: { - mergeProcessWithDocAiPipeline(other.getProcessWithDocAiPipeline()); - break; - } - case PIPELINE_NOT_SET: { - break; - } + case GCS_INGEST_PIPELINE: + { + mergeGcsIngestPipeline(other.getGcsIngestPipeline()); + break; + } + case GCS_INGEST_WITH_DOC_AI_PROCESSORS_PIPELINE: + { + mergeGcsIngestWithDocAiProcessorsPipeline( + other.getGcsIngestWithDocAiProcessorsPipeline()); + break; + } + case EXPORT_CDW_PIPELINE: + { + mergeExportCdwPipeline(other.getExportCdwPipeline()); + break; + } + case PROCESS_WITH_DOC_AI_PIPELINE: + { + mergeProcessWithDocAiPipeline(other.getProcessWithDocAiPipeline()); + break; + } + case PIPELINE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -820,52 +937,54 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGcsIngestPipelineFieldBuilder().getBuilder(), - extensionRegistry); - pipelineCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getGcsIngestWithDocAiProcessorsPipelineFieldBuilder().getBuilder(), - extensionRegistry); - pipelineCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getExportCdwPipelineFieldBuilder().getBuilder(), - extensionRegistry); - pipelineCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getProcessWithDocAiPipelineFieldBuilder().getBuilder(), - extensionRegistry); - pipelineCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getRequestMetadataFieldBuilder().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 18: + { + input.readMessage( + getGcsIngestPipelineFieldBuilder().getBuilder(), extensionRegistry); + pipelineCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getGcsIngestWithDocAiProcessorsPipelineFieldBuilder().getBuilder(), + extensionRegistry); + pipelineCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getExportCdwPipelineFieldBuilder().getBuilder(), extensionRegistry); + pipelineCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getProcessWithDocAiPipelineFieldBuilder().getBuilder(), extensionRegistry); + pipelineCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getRequestMetadataFieldBuilder().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) { @@ -875,12 +994,12 @@ public Builder mergeFrom( } // finally return this; } + private int pipelineCase_ = 0; private java.lang.Object pipeline_; - public PipelineCase - getPipelineCase() { - return PipelineCase.forNumber( - pipelineCase_); + + public PipelineCase getPipelineCase() { + return PipelineCase.forNumber(pipelineCase_); } public Builder clearPipeline() { @@ -894,19 +1013,23 @@ public Builder clearPipeline() { private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name which owns the resources of the pipeline.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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; @@ -915,21 +1038,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name which owns the resources of the pipeline.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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 { @@ -937,30 +1063,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name which owns the resources of the pipeline.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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 which owns the resources of the pipeline.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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() { @@ -970,18 +1107,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name which owns the resources of the pipeline.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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; @@ -990,13 +1133,19 @@ public Builder setNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline, com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder, com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder> gcsIngestPipelineBuilder_; + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline, + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder, + com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder> + gcsIngestPipelineBuilder_; /** + * + * *
      * Cloud Storage ingestion pipeline.
      * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; + * * @return Whether the gcsIngestPipeline field is set. */ @java.lang.Override @@ -1004,11 +1153,14 @@ public boolean hasGcsIngestPipeline() { return pipelineCase_ == 2; } /** + * + * *
      * Cloud Storage ingestion pipeline.
      * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; + * * @return The gcsIngestPipeline. */ @java.lang.Override @@ -1026,13 +1178,16 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getGcsIngestPipeli } } /** + * + * *
      * Cloud Storage ingestion pipeline.
      * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; */ - public Builder setGcsIngestPipeline(com.google.cloud.contentwarehouse.v1.GcsIngestPipeline value) { + public Builder setGcsIngestPipeline( + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline value) { if (gcsIngestPipelineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1046,6 +1201,8 @@ public Builder setGcsIngestPipeline(com.google.cloud.contentwarehouse.v1.GcsInge return this; } /** + * + * *
      * Cloud Storage ingestion pipeline.
      * 
@@ -1064,18 +1221,25 @@ public Builder setGcsIngestPipeline( return this; } /** + * + * *
      * Cloud Storage ingestion pipeline.
      * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; */ - public Builder mergeGcsIngestPipeline(com.google.cloud.contentwarehouse.v1.GcsIngestPipeline value) { + public Builder mergeGcsIngestPipeline( + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline value) { if (gcsIngestPipelineBuilder_ == null) { - if (pipelineCase_ == 2 && - pipeline_ != com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance()) { - pipeline_ = com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.newBuilder((com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_) - .mergeFrom(value).buildPartial(); + if (pipelineCase_ == 2 + && pipeline_ + != com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance()) { + pipeline_ = + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.newBuilder( + (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_) + .mergeFrom(value) + .buildPartial(); } else { pipeline_ = value; } @@ -1091,6 +1255,8 @@ public Builder mergeGcsIngestPipeline(com.google.cloud.contentwarehouse.v1.GcsIn return this; } /** + * + * *
      * Cloud Storage ingestion pipeline.
      * 
@@ -1114,16 +1280,21 @@ public Builder clearGcsIngestPipeline() { return this; } /** + * + * *
      * Cloud Storage ingestion pipeline.
      * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; */ - public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder getGcsIngestPipelineBuilder() { + public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder + getGcsIngestPipelineBuilder() { return getGcsIngestPipelineFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud Storage ingestion pipeline.
      * 
@@ -1131,7 +1302,8 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder getGcsInge * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder getGcsIngestPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder + getGcsIngestPipelineOrBuilder() { if ((pipelineCase_ == 2) && (gcsIngestPipelineBuilder_ != null)) { return gcsIngestPipelineBuilder_.getMessageOrBuilder(); } else { @@ -1142,6 +1314,8 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder getGcsIng } } /** + * + * *
      * Cloud Storage ingestion pipeline.
      * 
@@ -1149,14 +1323,19 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder getGcsIng * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline, com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder, com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder> + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline, + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder, + com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder> getGcsIngestPipelineFieldBuilder() { if (gcsIngestPipelineBuilder_ == null) { if (!(pipelineCase_ == 2)) { pipeline_ = com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.getDefaultInstance(); } - gcsIngestPipelineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.GcsIngestPipeline, com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder, com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder>( + gcsIngestPipelineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline, + com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder, + com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder>( (com.google.cloud.contentwarehouse.v1.GcsIngestPipeline) pipeline_, getParentForChildren(), isClean()); @@ -1168,14 +1347,22 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder getGcsIng } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder> gcsIngestWithDocAiProcessorsPipelineBuilder_; + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline, + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder, + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder> + gcsIngestWithDocAiProcessorsPipelineBuilder_; /** + * + * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * * @return Whether the gcsIngestWithDocAiProcessorsPipeline field is set. */ @java.lang.Override @@ -1183,37 +1370,51 @@ public boolean hasGcsIngestWithDocAiProcessorsPipeline() { return pipelineCase_ == 3; } /** + * + * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * * @return The gcsIngestWithDocAiProcessorsPipeline. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline getGcsIngestWithDocAiProcessorsPipeline() { + public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + getGcsIngestWithDocAiProcessorsPipeline() { if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) { if (pipelineCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) + pipeline_; } - return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + .getDefaultInstance(); } else { if (pipelineCase_ == 3) { return gcsIngestWithDocAiProcessorsPipelineBuilder_.getMessage(); } - return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + .getDefaultInstance(); } } /** + * + * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * */ - public Builder setGcsIngestWithDocAiProcessorsPipeline(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline value) { + public Builder setGcsIngestWithDocAiProcessorsPipeline( + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline value) { if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1227,15 +1428,20 @@ public Builder setGcsIngestWithDocAiProcessorsPipeline(com.google.cloud.contentw return this; } /** + * + * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * */ public Builder setGcsIngestWithDocAiProcessorsPipeline( - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder builderForValue) { + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder + builderForValue) { if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) { pipeline_ = builderForValue.build(); onChanged(); @@ -1246,19 +1452,30 @@ public Builder setGcsIngestWithDocAiProcessorsPipeline( return this; } /** + * + * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * */ - public Builder mergeGcsIngestWithDocAiProcessorsPipeline(com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline value) { + public Builder mergeGcsIngestWithDocAiProcessorsPipeline( + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline value) { if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) { - if (pipelineCase_ == 3 && - pipeline_ != com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance()) { - pipeline_ = com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.newBuilder((com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_) - .mergeFrom(value).buildPartial(); + if (pipelineCase_ == 3 + && pipeline_ + != com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + .getDefaultInstance()) { + pipeline_ = + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.newBuilder( + (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) + pipeline_) + .mergeFrom(value) + .buildPartial(); } else { pipeline_ = value; } @@ -1274,12 +1491,16 @@ public Builder mergeGcsIngestWithDocAiProcessorsPipeline(com.google.cloud.conten return this; } /** + * + * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * */ public Builder clearGcsIngestWithDocAiProcessorsPipeline() { if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) { @@ -1298,53 +1519,77 @@ public Builder clearGcsIngestWithDocAiProcessorsPipeline() { return this; } /** + * + * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * */ - public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder getGcsIngestWithDocAiProcessorsPipelineBuilder() { + public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder + getGcsIngestWithDocAiProcessorsPipelineBuilder() { return getGcsIngestWithDocAiProcessorsPipelineFieldBuilder().getBuilder(); } /** + * + * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder getGcsIngestWithDocAiProcessorsPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder + getGcsIngestWithDocAiProcessorsPipelineOrBuilder() { if ((pipelineCase_ == 3) && (gcsIngestWithDocAiProcessorsPipelineBuilder_ != null)) { return gcsIngestWithDocAiProcessorsPipelineBuilder_.getMessageOrBuilder(); } else { if (pipelineCase_ == 3) { - return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_; + return (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) + pipeline_; } - return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance(); + return com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + .getDefaultInstance(); } } /** + * + * *
      * Use DocAI processors to process documents in Cloud Storage and ingest
      * them to Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder> + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline, + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder, + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder> getGcsIngestWithDocAiProcessorsPipelineFieldBuilder() { if (gcsIngestWithDocAiProcessorsPipelineBuilder_ == null) { if (!(pipelineCase_ == 3)) { - pipeline_ = com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.getDefaultInstance(); + pipeline_ = + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + .getDefaultInstance(); } - gcsIngestWithDocAiProcessorsPipelineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder, com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder>( - (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) pipeline_, + gcsIngestWithDocAiProcessorsPipelineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline, + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline.Builder, + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder>( + (com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline) + pipeline_, getParentForChildren(), isClean()); pipeline_ = null; @@ -1355,13 +1600,19 @@ public com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline, com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder, com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder> exportCdwPipelineBuilder_; + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline, + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder, + com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder> + exportCdwPipelineBuilder_; /** + * + * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; + * * @return Whether the exportCdwPipeline field is set. */ @java.lang.Override @@ -1369,11 +1620,14 @@ public boolean hasExportCdwPipeline() { return pipelineCase_ == 4; } /** + * + * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; + * * @return The exportCdwPipeline. */ @java.lang.Override @@ -1391,13 +1645,16 @@ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getExportCdwPipe } } /** + * + * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; */ - public Builder setExportCdwPipeline(com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline value) { + public Builder setExportCdwPipeline( + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline value) { if (exportCdwPipelineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1411,6 +1668,8 @@ public Builder setExportCdwPipeline(com.google.cloud.contentwarehouse.v1.ExportT return this; } /** + * + * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
@@ -1429,18 +1688,25 @@ public Builder setExportCdwPipeline( return this; } /** + * + * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; */ - public Builder mergeExportCdwPipeline(com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline value) { + public Builder mergeExportCdwPipeline( + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline value) { if (exportCdwPipelineBuilder_ == null) { - if (pipelineCase_ == 4 && - pipeline_ != com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance()) { - pipeline_ = com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.newBuilder((com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_) - .mergeFrom(value).buildPartial(); + if (pipelineCase_ == 4 + && pipeline_ + != com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance()) { + pipeline_ = + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.newBuilder( + (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_) + .mergeFrom(value) + .buildPartial(); } else { pipeline_ = value; } @@ -1456,6 +1722,8 @@ public Builder mergeExportCdwPipeline(com.google.cloud.contentwarehouse.v1.Expor return this; } /** + * + * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
@@ -1479,16 +1747,21 @@ public Builder clearExportCdwPipeline() { return this; } /** + * + * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; */ - public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder getExportCdwPipelineBuilder() { + public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder + getExportCdwPipelineBuilder() { return getExportCdwPipelineFieldBuilder().getBuilder(); } /** + * + * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
@@ -1496,7 +1769,8 @@ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder getExpor * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder getExportCdwPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder + getExportCdwPipelineOrBuilder() { if ((pipelineCase_ == 4) && (exportCdwPipelineBuilder_ != null)) { return exportCdwPipelineBuilder_.getMessageOrBuilder(); } else { @@ -1507,6 +1781,8 @@ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder getExpo } } /** + * + * *
      * Export docuemnts from Document Warehouse to CDW for training purpose.
      * 
@@ -1514,14 +1790,19 @@ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder getExpo * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline, com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder, com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder> + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline, + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder, + com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder> getExportCdwPipelineFieldBuilder() { if (exportCdwPipelineBuilder_ == null) { if (!(pipelineCase_ == 4)) { pipeline_ = com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.getDefaultInstance(); } - exportCdwPipelineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline, com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder, com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder>( + exportCdwPipelineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline, + com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder, + com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder>( (com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline) pipeline_, getParentForChildren(), isClean()); @@ -1533,14 +1814,22 @@ public com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder getExpo } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder> processWithDocAiPipelineBuilder_; + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline, + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder, + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder> + processWithDocAiPipelineBuilder_; /** + * + * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * * @return Whether the processWithDocAiPipeline field is set. */ @java.lang.Override @@ -1548,16 +1837,22 @@ public boolean hasProcessWithDocAiPipeline() { return pipelineCase_ == 5; } /** + * + * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * * @return The processWithDocAiPipeline. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getProcessWithDocAiPipeline() { + public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline + getProcessWithDocAiPipeline() { if (processWithDocAiPipelineBuilder_ == null) { if (pipelineCase_ == 5) { return (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_; @@ -1571,14 +1866,19 @@ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getProcessW } } /** + * + * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * */ - public Builder setProcessWithDocAiPipeline(com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline value) { + public Builder setProcessWithDocAiPipeline( + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline value) { if (processWithDocAiPipelineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1592,12 +1892,16 @@ public Builder setProcessWithDocAiPipeline(com.google.cloud.contentwarehouse.v1. return this; } /** + * + * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * */ public Builder setProcessWithDocAiPipeline( com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder builderForValue) { @@ -1611,19 +1915,29 @@ public Builder setProcessWithDocAiPipeline( return this; } /** + * + * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * */ - public Builder mergeProcessWithDocAiPipeline(com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline value) { + public Builder mergeProcessWithDocAiPipeline( + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline value) { if (processWithDocAiPipelineBuilder_ == null) { - if (pipelineCase_ == 5 && - pipeline_ != com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance()) { - pipeline_ = com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.newBuilder((com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_) - .mergeFrom(value).buildPartial(); + if (pipelineCase_ == 5 + && pipeline_ + != com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline + .getDefaultInstance()) { + pipeline_ = + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.newBuilder( + (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_) + .mergeFrom(value) + .buildPartial(); } else { pipeline_ = value; } @@ -1639,12 +1953,16 @@ public Builder mergeProcessWithDocAiPipeline(com.google.cloud.contentwarehouse.v return this; } /** + * + * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * */ public Builder clearProcessWithDocAiPipeline() { if (processWithDocAiPipelineBuilder_ == null) { @@ -1663,26 +1981,36 @@ public Builder clearProcessWithDocAiPipeline() { return this; } /** + * + * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * */ - public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder getProcessWithDocAiPipelineBuilder() { + public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder + getProcessWithDocAiPipelineBuilder() { return getProcessWithDocAiPipelineFieldBuilder().getBuilder(); } /** + * + * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder getProcessWithDocAiPipelineOrBuilder() { + public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder + getProcessWithDocAiPipelineOrBuilder() { if ((pipelineCase_ == 5) && (processWithDocAiPipelineBuilder_ != null)) { return processWithDocAiPipelineBuilder_.getMessageOrBuilder(); } else { @@ -1693,22 +2021,32 @@ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder ge } } /** + * + * *
      * Use a DocAI processor to process documents in Document Warehouse, and
      * re-ingest the updated results into Document Warehouse.
      * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder> + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline, + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder, + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder> getProcessWithDocAiPipelineFieldBuilder() { if (processWithDocAiPipelineBuilder_ == null) { if (!(pipelineCase_ == 5)) { - pipeline_ = com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance(); + pipeline_ = + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.getDefaultInstance(); } - processWithDocAiPipelineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder, com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder>( + processWithDocAiPipelineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline, + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline.Builder, + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder>( (com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline) pipeline_, getParentForChildren(), isClean()); @@ -1721,36 +2059,49 @@ public com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder ge private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> + requestMetadataBuilder_; /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6; + * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6; + * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1772,6 +2123,8 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1791,6 +2144,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1798,11 +2153,13 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
      */
-    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(
+        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0) &&
-          requestMetadata_ != null &&
-          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0)
+            && requestMetadata_ != null
+            && requestMetadata_
+                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -1815,6 +2172,8 @@ public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.Request
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1833,6 +2192,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1840,12 +2201,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+        getRequestMetadataBuilder() {
       bitField0_ |= 0x00000020;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1853,15 +2217,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMe
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+        getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+        return requestMetadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+            : requestMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1870,21 +2238,24 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(),
-                getParentForChildren(),
-                isClean());
+        requestMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RequestMetadata,
+                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(), getParentForChildren(), isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
+
     @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);
     }
 
@@ -1894,12 +2265,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineRequest)
   private static final com.google.cloud.contentwarehouse.v1.RunPipelineRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineRequest();
   }
@@ -1908,27 +2279,27 @@ public static com.google.cloud.contentwarehouse.v1.RunPipelineRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public RunPipelineRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 RunPipelineRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1943,6 +2314,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.RunPipelineRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java
similarity index 70%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java
index 9209a071b649..44c58304a5ac 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineRequestOrBuilder.java
@@ -1,53 +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/contentwarehouse/v1/pipeline_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface RunPipelineRequestOrBuilder extends
+public interface RunPipelineRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The resource name which owns the resources of the pipeline.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * 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 which owns the resources of the pipeline.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * 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(); /** + * + * *
    * Cloud Storage ingestion pipeline.
    * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; + * * @return Whether the gcsIngestPipeline field is set. */ boolean hasGcsIngestPipeline(); /** + * + * *
    * Cloud Storage ingestion pipeline.
    * 
* * .google.cloud.contentwarehouse.v1.GcsIngestPipeline gcs_ingest_pipeline = 2; + * * @return The gcsIngestPipeline. */ com.google.cloud.contentwarehouse.v1.GcsIngestPipeline getGcsIngestPipeline(); /** + * + * *
    * Cloud Storage ingestion pipeline.
    * 
@@ -57,54 +90,78 @@ public interface RunPipelineRequestOrBuilder extends com.google.cloud.contentwarehouse.v1.GcsIngestPipelineOrBuilder getGcsIngestPipelineOrBuilder(); /** + * + * *
    * Use DocAI processors to process documents in Cloud Storage and ingest
    * them to Document Warehouse.
    * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * * @return Whether the gcsIngestWithDocAiProcessorsPipeline field is set. */ boolean hasGcsIngestWithDocAiProcessorsPipeline(); /** + * + * *
    * Use DocAI processors to process documents in Cloud Storage and ingest
    * them to Document Warehouse.
    * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * * @return The gcsIngestWithDocAiProcessorsPipeline. */ - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline getGcsIngestWithDocAiProcessorsPipeline(); + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline + getGcsIngestWithDocAiProcessorsPipeline(); /** + * + * *
    * Use DocAI processors to process documents in Cloud Storage and ingest
    * them to Document Warehouse.
    * 
* - * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * + * .google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline gcs_ingest_with_doc_ai_processors_pipeline = 3; + * */ - com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder getGcsIngestWithDocAiProcessorsPipelineOrBuilder(); + com.google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipelineOrBuilder + getGcsIngestWithDocAiProcessorsPipelineOrBuilder(); /** + * + * *
    * Export docuemnts from Document Warehouse to CDW for training purpose.
    * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; + * * @return Whether the exportCdwPipeline field is set. */ boolean hasExportCdwPipeline(); /** + * + * *
    * Export docuemnts from Document Warehouse to CDW for training purpose.
    * 
* * .google.cloud.contentwarehouse.v1.ExportToCdwPipeline export_cdw_pipeline = 4; + * * @return The exportCdwPipeline. */ com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline getExportCdwPipeline(); /** + * + * *
    * Export docuemnts from Document Warehouse to CDW for training purpose.
    * 
@@ -114,56 +171,79 @@ public interface RunPipelineRequestOrBuilder extends com.google.cloud.contentwarehouse.v1.ExportToCdwPipelineOrBuilder getExportCdwPipelineOrBuilder(); /** + * + * *
    * Use a DocAI processor to process documents in Document Warehouse, and
    * re-ingest the updated results into Document Warehouse.
    * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * * @return Whether the processWithDocAiPipeline field is set. */ boolean hasProcessWithDocAiPipeline(); /** + * + * *
    * Use a DocAI processor to process documents in Document Warehouse, and
    * re-ingest the updated results into Document Warehouse.
    * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * * @return The processWithDocAiPipeline. */ com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline getProcessWithDocAiPipeline(); /** + * + * *
    * Use a DocAI processor to process documents in Document Warehouse, and
    * re-ingest the updated results into Document Warehouse.
    * 
* - * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * + * .google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline process_with_doc_ai_pipeline = 5; + * */ - com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder getProcessWithDocAiPipelineOrBuilder(); + com.google.cloud.contentwarehouse.v1.ProcessWithDocAiPipelineOrBuilder + getProcessWithDocAiPipelineOrBuilder(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6; + * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 6; + * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java
similarity index 62%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java
index 6018bcae0646..ce2b8886eeb8 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponse.java
@@ -1,48 +1,67 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/pipelines.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Response message of RunPipeline method.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineResponse} */ -public final class RunPipelineResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RunPipelineResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.RunPipelineResponse) RunPipelineResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RunPipelineResponse.newBuilder() to construct. private RunPipelineResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RunPipelineResponse() { - } + + private RunPipelineResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunPipelineResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineResponse.class, com.google.cloud.contentwarehouse.v1.RunPipelineResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineResponse.class, + com.google.cloud.contentwarehouse.v1.RunPipelineResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -73,12 +91,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.RunPipelineResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.RunPipelineResponse other = (com.google.cloud.contentwarehouse.v1.RunPipelineResponse) obj; + com.google.cloud.contentwarehouse.v1.RunPipelineResponse other = + (com.google.cloud.contentwarehouse.v1.RunPipelineResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse 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.contentwarehouse.v1.RunPipelineResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse 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.contentwarehouse.v1.RunPipelineResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.RunPipelineResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.RunPipelineResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 of RunPipeline method.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.RunPipelineResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.RunPipelineResponse) com.google.cloud.contentwarehouse.v1.RunPipelineResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.RunPipelineResponse.class, com.google.cloud.contentwarehouse.v1.RunPipelineResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.RunPipelineResponse.class, + com.google.cloud.contentwarehouse.v1.RunPipelineResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.RunPipelineResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -229,9 +253,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.PipelinesProto.internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.PipelinesProto + .internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_descriptor; } @java.lang.Override @@ -250,7 +274,8 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.RunPipelineResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.RunPipelineResponse result = new com.google.cloud.contentwarehouse.v1.RunPipelineResponse(this); + com.google.cloud.contentwarehouse.v1.RunPipelineResponse result = + new com.google.cloud.contentwarehouse.v1.RunPipelineResponse(this); onBuilt(); return result; } @@ -259,38 +284,39 @@ public com.google.cloud.contentwarehouse.v1.RunPipelineResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.RunPipelineResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineResponse)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.RunPipelineResponse) other); } else { super.mergeFrom(other); return this; @@ -298,7 +324,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.RunPipelineResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.RunPipelineResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.RunPipelineResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -325,12 +352,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -340,9 +368,9 @@ public Builder mergeFrom( } // finally 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); } @@ -352,12 +380,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.RunPipelineResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.RunPipelineResponse) private static final com.google.cloud.contentwarehouse.v1.RunPipelineResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.RunPipelineResponse(); } @@ -366,27 +394,27 @@ public static com.google.cloud.contentwarehouse.v1.RunPipelineResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunPipelineResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RunPipelineResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -401,6 +429,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.RunPipelineResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java new file mode 100644 index 000000000000..ffb125a6a988 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java @@ -0,0 +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/contentwarehouse/v1/pipelines.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface RunPipelineResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java similarity index 81% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java index ea558303c7f2..e42e0b17e1ea 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequest.java @@ -1,24 +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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentService.SearchDocuments.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SearchDocumentsRequest} */ -public final class SearchDocumentsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SearchDocumentsRequest) SearchDocumentsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchDocumentsRequest.newBuilder() to construct. private SearchDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchDocumentsRequest() { parent_ = ""; pageToken_ = ""; @@ -29,34 +47,38 @@ private SearchDocumentsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchDocumentsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.class, com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.class, + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.Builder.class); } /** + * + * *
    * The total number of matching documents.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize} */ - public enum TotalResultSize - implements com.google.protobuf.ProtocolMessageEnum { + public enum TotalResultSize implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Total number calculation will be skipped.
      * 
@@ -65,6 +87,8 @@ public enum TotalResultSize */ TOTAL_RESULT_SIZE_UNSPECIFIED(0), /** + * + * *
      * Estimate total number. The total result size will be accurated up to
      * 10,000. This option will add cost and latency to your request.
@@ -74,6 +98,8 @@ public enum TotalResultSize
      */
     ESTIMATED_SIZE(1),
     /**
+     *
+     *
      * 
      * It may adversely impact performance. The limit is 1000,000.
      * 
@@ -85,6 +111,8 @@ public enum TotalResultSize ; /** + * + * *
      * Total number calculation will be skipped.
      * 
@@ -93,6 +121,8 @@ public enum TotalResultSize */ public static final int TOTAL_RESULT_SIZE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Estimate total number. The total result size will be accurated up to
      * 10,000. This option will add cost and latency to your request.
@@ -102,6 +132,8 @@ public enum TotalResultSize
      */
     public static final int ESTIMATED_SIZE_VALUE = 1;
     /**
+     *
+     *
      * 
      * It may adversely impact performance. The limit is 1000,000.
      * 
@@ -110,7 +142,6 @@ public enum TotalResultSize */ public static final int ACTUAL_SIZE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -135,40 +166,45 @@ public static TotalResultSize valueOf(int value) { */ public static TotalResultSize forNumber(int value) { switch (value) { - case 0: return TOTAL_RESULT_SIZE_UNSPECIFIED; - case 1: return ESTIMATED_SIZE; - case 2: return ACTUAL_SIZE; - default: return null; + case 0: + return TOTAL_RESULT_SIZE_UNSPECIFIED; + case 1: + return ESTIMATED_SIZE; + case 2: + return ACTUAL_SIZE; + 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< - TotalResultSize> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TotalResultSize findValueByNumber(int number) { - return TotalResultSize.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TotalResultSize findValueByNumber(int number) { + return TotalResultSize.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final TotalResultSize[] VALUES = values(); @@ -176,8 +212,7 @@ public TotalResultSize findValueByNumber(int number) { public static TotalResultSize 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; @@ -195,15 +230,21 @@ private TotalResultSize(int value) { } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent, which owns this collection of documents.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 @@ -212,30 +253,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent, which owns this collection of documents.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 { @@ -246,12 +289,15 @@ public java.lang.String getParent() { public static final int REQUEST_METADATA_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control and improve the search quality of the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -259,19 +305,26 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control and improve the search quality of the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control and improve the search quality of the service.
@@ -280,18 +333,24 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+        : requestMetadata_;
   }
 
   public static final int DOCUMENT_QUERY_FIELD_NUMBER = 4;
   private com.google.cloud.contentwarehouse.v1.DocumentQuery documentQuery_;
   /**
+   *
+   *
    * 
    * Query used to search against documents (keyword, filters, etc.).
    * 
* * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; + * * @return Whether the documentQuery field is set. */ @java.lang.Override @@ -299,18 +358,25 @@ public boolean hasDocumentQuery() { return documentQuery_ != null; } /** + * + * *
    * Query used to search against documents (keyword, filters, etc.).
    * 
* * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; + * * @return The documentQuery. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentQuery getDocumentQuery() { - return documentQuery_ == null ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() : documentQuery_; + return documentQuery_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() + : documentQuery_; } /** + * + * *
    * Query used to search against documents (keyword, filters, etc.).
    * 
@@ -319,12 +385,16 @@ public com.google.cloud.contentwarehouse.v1.DocumentQuery getDocumentQuery() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQueryOrBuilder() { - return documentQuery_ == null ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() : documentQuery_; + return documentQuery_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() + : documentQuery_; } public static final int OFFSET_FIELD_NUMBER = 5; private int offset_ = 0; /** + * + * *
    * An integer that specifies the current offset (that is, starting result
    * location, amongst the documents deemed by the API as relevant) in search
@@ -341,6 +411,7 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu
    * 
* * int32 offset = 5; + * * @return The offset. */ @java.lang.Override @@ -351,6 +422,8 @@ public int getOffset() { public static final int PAGE_SIZE_FIELD_NUMBER = 6; private int pageSize_ = 0; /** + * + * *
    * A limit on the number of documents returned in the search results.
    * Increasing this value above the default value of 10 can increase search
@@ -358,6 +431,7 @@ public int getOffset() {
    * 
* * int32 page_size = 6; + * * @return The pageSize. */ @java.lang.Override @@ -366,9 +440,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The token specifying the current offset within search results.
    * See
@@ -377,6 +454,7 @@ public int getPageSize() {
    * 
* * string page_token = 7; + * * @return The pageToken. */ @java.lang.Override @@ -385,14 +463,15 @@ 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; } } /** + * + * *
    * The token specifying the current offset within search results.
    * See
@@ -401,16 +480,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 7; + * * @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 { @@ -419,9 +497,12 @@ public java.lang.String getPageToken() { } public static final int ORDER_BY_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * The criteria determining how search results are sorted. For non-empty
    * query, default is `"relevance desc"`. For empty query, default is
@@ -441,6 +522,7 @@ public java.lang.String getPageToken() {
    * 
* * string order_by = 8; + * * @return The orderBy. */ @java.lang.Override @@ -449,14 +531,15 @@ 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 criteria determining how search results are sorted. For non-empty
    * query, default is `"relevance desc"`. For empty query, default is
@@ -476,16 +559,15 @@ 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 { @@ -494,9 +576,12 @@ public java.lang.String getOrderBy() { } public static final int HISTOGRAM_QUERIES_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private java.util.List histogramQueries_; /** + * + * *
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -533,10 +618,13 @@ public java.lang.String getOrderBy() {
    * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
    */
   @java.lang.Override
-  public java.util.List getHistogramQueriesList() {
+  public java.util.List
+      getHistogramQueriesList() {
     return histogramQueries_;
   }
   /**
+   *
+   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -573,11 +661,13 @@ public java.util.List getHi
    * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getHistogramQueriesOrBuilderList() {
     return histogramQueries_;
   }
   /**
+   *
+   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -618,6 +708,8 @@ public int getHistogramQueriesCount() {
     return histogramQueries_.size();
   }
   /**
+   *
+   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -658,6 +750,8 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery getHistogramQueries(i
     return histogramQueries_.get(index);
   }
   /**
+   *
+   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -702,6 +796,8 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogram
   public static final int REQUIRE_TOTAL_SIZE_FIELD_NUMBER = 10;
   private boolean requireTotalSize_ = false;
   /**
+   *
+   *
    * 
    * Controls if the search document request requires the return of a total size
    * of matched documents. See
@@ -715,6 +811,7 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogram
    * 
* * bool require_total_size = 10; + * * @return The requireTotalSize. */ @java.lang.Override @@ -725,36 +822,55 @@ public boolean getRequireTotalSize() { public static final int TOTAL_RESULT_SIZE_FIELD_NUMBER = 12; private int totalResultSize_ = 0; /** + * + * *
    * Controls if the search document request requires the return of a total size
    * of matched documents. See
    * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
    * 
* - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * * @return The enum numeric value on the wire for totalResultSize. */ - @java.lang.Override public int getTotalResultSizeValue() { + @java.lang.Override + public int getTotalResultSizeValue() { return totalResultSize_; } /** + * + * *
    * Controls if the search document request requires the return of a total size
    * of matched documents. See
    * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
    * 
* - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * * @return The totalResultSize. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize getTotalResultSize() { - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize result = com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.forNumber(totalResultSize_); - return result == null ? com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize + getTotalResultSize() { + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize result = + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.forNumber( + totalResultSize_); + return result == null + ? com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.UNRECOGNIZED + : result; } public static final int QA_SIZE_LIMIT_FIELD_NUMBER = 11; private int qaSizeLimit_ = 0; /** + * + * *
    * Experimental, do not use.
    * The limit on the number of documents returned for the question-answering
@@ -763,6 +879,7 @@ public boolean getRequireTotalSize() {
    * 
* * int32 qa_size_limit = 11; + * * @return The qaSizeLimit. */ @java.lang.Override @@ -771,6 +888,7 @@ public int getQaSizeLimit() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -782,8 +900,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -814,7 +931,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (qaSizeLimit_ != 0) { output.writeInt32(11, qaSizeLimit_); } - if (totalResultSize_ != com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.TOTAL_RESULT_SIZE_UNSPECIFIED.getNumber()) { + if (totalResultSize_ + != com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize + .TOTAL_RESULT_SIZE_UNSPECIFIED + .getNumber()) { output.writeEnum(12, totalResultSize_); } getUnknownFields().writeTo(output); @@ -830,20 +950,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (requestMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRequestMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata()); } if (documentQuery_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDocumentQuery()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentQuery()); } if (offset_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, offset_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, offset_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); @@ -852,20 +968,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, orderBy_); } for (int i = 0; i < histogramQueries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, histogramQueries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, histogramQueries_.get(i)); } if (requireTotalSize_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, requireTotalSize_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, requireTotalSize_); } if (qaSizeLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, qaSizeLimit_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, qaSizeLimit_); } - if (totalResultSize_ != com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.TOTAL_RESULT_SIZE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, totalResultSize_); + if (totalResultSize_ + != com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize + .TOTAL_RESULT_SIZE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, totalResultSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -875,40 +990,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest other = (com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest) obj; + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest other = + (com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasRequestMetadata() != other.hasRequestMetadata()) return false; if (hasRequestMetadata()) { - if (!getRequestMetadata() - .equals(other.getRequestMetadata())) return false; + if (!getRequestMetadata().equals(other.getRequestMetadata())) return false; } if (hasDocumentQuery() != other.hasDocumentQuery()) return false; if (hasDocumentQuery()) { - if (!getDocumentQuery() - .equals(other.getDocumentQuery())) return false; - } - if (getOffset() - != other.getOffset()) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (!getHistogramQueriesList() - .equals(other.getHistogramQueriesList())) return false; - if (getRequireTotalSize() - != other.getRequireTotalSize()) return false; + if (!getDocumentQuery().equals(other.getDocumentQuery())) return false; + } + if (getOffset() != other.getOffset()) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getHistogramQueriesList().equals(other.getHistogramQueriesList())) return false; + if (getRequireTotalSize() != other.getRequireTotalSize()) return false; if (totalResultSize_ != other.totalResultSize_) return false; - if (getQaSizeLimit() - != other.getQaSizeLimit()) return false; + if (getQaSizeLimit() != other.getQaSizeLimit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -943,8 +1049,7 @@ public int hashCode() { hash = (53 * hash) + getHistogramQueriesList().hashCode(); } hash = (37 * hash) + REQUIRE_TOTAL_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequireTotalSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequireTotalSize()); hash = (37 * hash) + TOTAL_RESULT_SIZE_FIELD_NUMBER; hash = (53 * hash) + totalResultSize_; hash = (37 * hash) + QA_SIZE_LIMIT_FIELD_NUMBER; @@ -955,131 +1060,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest 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.contentwarehouse.v1.SearchDocumentsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest 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.contentwarehouse.v1.SearchDocumentsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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.SearchDocuments.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SearchDocumentsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SearchDocumentsRequest) com.google.cloud.contentwarehouse.v1.SearchDocumentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.class, com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.class, + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1113,9 +1223,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; } @java.lang.Override @@ -1134,14 +1244,18 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest result = new com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest(this); + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest result = + new com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest result) { if (histogramQueriesBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); @@ -1159,14 +1273,12 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SearchDocumentsR result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMetadata_ = requestMetadataBuilder_ == null - ? requestMetadata_ - : requestMetadataBuilder_.build(); + result.requestMetadata_ = + requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.documentQuery_ = documentQueryBuilder_ == null - ? documentQuery_ - : documentQueryBuilder_.build(); + result.documentQuery_ = + documentQueryBuilder_ == null ? documentQuery_ : documentQueryBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.offset_ = offset_; @@ -1195,38 +1307,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SearchDocumentsR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.SearchDocumentsRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest) other); } else { super.mergeFrom(other); return this; @@ -1234,7 +1347,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1280,9 +1394,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsReq histogramQueriesBuilder_ = null; histogramQueries_ = other.histogramQueries_; bitField0_ = (bitField0_ & ~0x00000080); - histogramQueriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHistogramQueriesFieldBuilder() : null; + histogramQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueriesFieldBuilder() + : null; } else { histogramQueriesBuilder_.addAllMessages(other.histogramQueries_); } @@ -1323,79 +1438,87 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: { - input.readMessage( - getDocumentQueryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 40: { - offset_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 74: { - com.google.cloud.contentwarehouse.v1.HistogramQuery m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.HistogramQuery.parser(), - extensionRegistry); - if (histogramQueriesBuilder_ == null) { - ensureHistogramQueriesIsMutable(); - histogramQueries_.add(m); - } else { - histogramQueriesBuilder_.addMessage(m); - } - break; - } // case 74 - case 80: { - requireTotalSize_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 80 - case 88: { - qaSizeLimit_ = input.readInt32(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 96: { - totalResultSize_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 96 - 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 26: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + input.readMessage(getDocumentQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 40: + { + offset_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + com.google.cloud.contentwarehouse.v1.HistogramQuery m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.HistogramQuery.parser(), + extensionRegistry); + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(m); + } else { + histogramQueriesBuilder_.addMessage(m); + } + break; + } // case 74 + case 80: + { + requireTotalSize_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 88: + { + qaSizeLimit_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: + { + totalResultSize_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 96 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1405,23 +1528,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of documents.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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; @@ -1430,21 +1558,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of documents.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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 { @@ -1452,30 +1583,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of documents.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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, which owns this collection of documents.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * string 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() { @@ -1485,18 +1627,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent, which owns this collection of documents.
      * Format: projects/{project_number}/locations/{location}.
      * 
* - * 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; @@ -1506,36 +1654,49 @@ public Builder setParentBytes( private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> + requestMetadataBuilder_; /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1557,6 +1718,8 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1576,6 +1739,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1583,11 +1748,13 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(
+        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          requestMetadata_ != null &&
-          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && requestMetadata_ != null
+            && requestMetadata_
+                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -1600,6 +1767,8 @@ public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.Request
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1618,6 +1787,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1625,12 +1796,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+        getRequestMetadataBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1638,15 +1812,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMe
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+        getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+        return requestMetadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+            : requestMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control and improve the search quality of the service.
@@ -1655,14 +1833,17 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(),
-                getParentForChildren(),
-                isClean());
+        requestMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RequestMetadata,
+                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(), getParentForChildren(), isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
@@ -1670,34 +1851,47 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
 
     private com.google.cloud.contentwarehouse.v1.DocumentQuery documentQuery_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.DocumentQuery, com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder, com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder> documentQueryBuilder_;
+            com.google.cloud.contentwarehouse.v1.DocumentQuery,
+            com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder,
+            com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder>
+        documentQueryBuilder_;
     /**
+     *
+     *
      * 
      * Query used to search against documents (keyword, filters, etc.).
      * 
* * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; + * * @return Whether the documentQuery field is set. */ public boolean hasDocumentQuery() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
* * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; + * * @return The documentQuery. */ public com.google.cloud.contentwarehouse.v1.DocumentQuery getDocumentQuery() { if (documentQueryBuilder_ == null) { - return documentQuery_ == null ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() : documentQuery_; + return documentQuery_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() + : documentQuery_; } else { return documentQueryBuilder_.getMessage(); } } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1718,6 +1912,8 @@ public Builder setDocumentQuery(com.google.cloud.contentwarehouse.v1.DocumentQue return this; } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1736,6 +1932,8 @@ public Builder setDocumentQuery( return this; } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1744,9 +1942,10 @@ public Builder setDocumentQuery( */ public Builder mergeDocumentQuery(com.google.cloud.contentwarehouse.v1.DocumentQuery value) { if (documentQueryBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - documentQuery_ != null && - documentQuery_ != com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && documentQuery_ != null + && documentQuery_ + != com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance()) { getDocumentQueryBuilder().mergeFrom(value); } else { documentQuery_ = value; @@ -1759,6 +1958,8 @@ public Builder mergeDocumentQuery(com.google.cloud.contentwarehouse.v1.DocumentQ return this; } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1776,6 +1977,8 @@ public Builder clearDocumentQuery() { return this; } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1788,6 +1991,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder getDocumentQue return getDocumentQueryFieldBuilder().getBuilder(); } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1798,11 +2003,14 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu if (documentQueryBuilder_ != null) { return documentQueryBuilder_.getMessageOrBuilder(); } else { - return documentQuery_ == null ? - com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() : documentQuery_; + return documentQuery_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentQuery.getDefaultInstance() + : documentQuery_; } } /** + * + * *
      * Query used to search against documents (keyword, filters, etc.).
      * 
@@ -1810,21 +2018,26 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentQuery, com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder, com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentQuery, + com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder, + com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder> getDocumentQueryFieldBuilder() { if (documentQueryBuilder_ == null) { - documentQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentQuery, com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder, com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder>( - getDocumentQuery(), - getParentForChildren(), - isClean()); + documentQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentQuery, + com.google.cloud.contentwarehouse.v1.DocumentQuery.Builder, + com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder>( + getDocumentQuery(), getParentForChildren(), isClean()); documentQuery_ = null; } return documentQueryBuilder_; } - private int offset_ ; + private int offset_; /** + * + * *
      * An integer that specifies the current offset (that is, starting result
      * location, amongst the documents deemed by the API as relevant) in search
@@ -1841,6 +2054,7 @@ public com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQu
      * 
* * int32 offset = 5; + * * @return The offset. */ @java.lang.Override @@ -1848,6 +2062,8 @@ public int getOffset() { return offset_; } /** + * + * *
      * An integer that specifies the current offset (that is, starting result
      * location, amongst the documents deemed by the API as relevant) in search
@@ -1864,6 +2080,7 @@ public int getOffset() {
      * 
* * int32 offset = 5; + * * @param value The offset to set. * @return This builder for chaining. */ @@ -1875,6 +2092,8 @@ public Builder setOffset(int value) { return this; } /** + * + * *
      * An integer that specifies the current offset (that is, starting result
      * location, amongst the documents deemed by the API as relevant) in search
@@ -1891,6 +2110,7 @@ public Builder setOffset(int value) {
      * 
* * int32 offset = 5; + * * @return This builder for chaining. */ public Builder clearOffset() { @@ -1900,8 +2120,10 @@ public Builder clearOffset() { return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * A limit on the number of documents returned in the search results.
      * Increasing this value above the default value of 10 can increase search
@@ -1909,6 +2131,7 @@ public Builder clearOffset() {
      * 
* * int32 page_size = 6; + * * @return The pageSize. */ @java.lang.Override @@ -1916,6 +2139,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * A limit on the number of documents returned in the search results.
      * Increasing this value above the default value of 10 can increase search
@@ -1923,6 +2148,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 6; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1934,6 +2160,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * A limit on the number of documents returned in the search results.
      * Increasing this value above the default value of 10 can increase search
@@ -1941,6 +2169,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 6; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1952,6 +2181,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The token specifying the current offset within search results.
      * See
@@ -1960,13 +2191,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 7; + * * @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; @@ -1975,6 +2206,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The token specifying the current offset within search results.
      * See
@@ -1983,15 +2216,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; + * * @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 { @@ -1999,6 +2231,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The token specifying the current offset within search results.
      * See
@@ -2007,18 +2241,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; + * * @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; } /** + * + * *
      * The token specifying the current offset within search results.
      * See
@@ -2027,6 +2265,7 @@ public Builder setPageToken(
      * 
* * string page_token = 7; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -2036,6 +2275,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The token specifying the current offset within search results.
      * See
@@ -2044,12 +2285,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 7; + * * @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; @@ -2059,6 +2302,8 @@ public Builder setPageTokenBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -2078,13 +2323,13 @@ public Builder setPageTokenBytes(
      * 
* * 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; @@ -2093,6 +2338,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -2112,15 +2359,14 @@ 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 { @@ -2128,6 +2374,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -2147,18 +2395,22 @@ public java.lang.String getOrderBy() {
      * 
* * 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_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -2178,6 +2430,7 @@ public Builder setOrderBy(
      * 
* * string order_by = 8; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -2187,6 +2440,8 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * The criteria determining how search results are sorted. For non-empty
      * query, default is `"relevance desc"`. For empty query, default is
@@ -2206,12 +2461,14 @@ 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_ |= 0x00000040; @@ -2220,18 +2477,26 @@ public Builder setOrderByBytes( } private java.util.List histogramQueries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureHistogramQueriesIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - histogramQueries_ = new java.util.ArrayList(histogramQueries_); + histogramQueries_ = + new java.util.ArrayList( + histogramQueries_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.HistogramQuery, com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder> histogramQueriesBuilder_; + com.google.cloud.contentwarehouse.v1.HistogramQuery, + com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder, + com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder> + histogramQueriesBuilder_; /** + * + * *
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2267,7 +2532,8 @@ private void ensureHistogramQueriesIsMutable() {
      *
      * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
      */
-    public java.util.List getHistogramQueriesList() {
+    public java.util.List
+        getHistogramQueriesList() {
       if (histogramQueriesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(histogramQueries_);
       } else {
@@ -2275,6 +2541,8 @@ public java.util.List getHi
       }
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2318,6 +2586,8 @@ public int getHistogramQueriesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2361,6 +2631,8 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery getHistogramQueries(i
       }
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2411,6 +2683,8 @@ public Builder setHistogramQueries(
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2458,6 +2732,8 @@ public Builder setHistogramQueries(
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2507,6 +2783,8 @@ public Builder addHistogramQueries(com.google.cloud.contentwarehouse.v1.Histogra
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2557,6 +2835,8 @@ public Builder addHistogramQueries(
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2604,6 +2884,8 @@ public Builder addHistogramQueries(
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2651,6 +2933,8 @@ public Builder addHistogramQueries(
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2690,8 +2974,7 @@ public Builder addAllHistogramQueries(
         java.lang.Iterable values) {
       if (histogramQueriesBuilder_ == null) {
         ensureHistogramQueriesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, histogramQueries_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueries_);
         onChanged();
       } else {
         histogramQueriesBuilder_.addAllMessages(values);
@@ -2699,6 +2982,8 @@ public Builder addAllHistogramQueries(
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2745,6 +3030,8 @@ public Builder clearHistogramQueries() {
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2791,6 +3078,8 @@ public Builder removeHistogramQueries(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2831,6 +3120,8 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder getHistogramQ
       return getHistogramQueriesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2866,14 +3157,17 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder getHistogramQ
      *
      * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
      */
-    public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder(
-        int index) {
+    public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder
+        getHistogramQueriesOrBuilder(int index) {
       if (histogramQueriesBuilder_ == null) {
-        return histogramQueries_.get(index);  } else {
+        return histogramQueries_.get(index);
+      } else {
         return histogramQueriesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2909,8 +3203,8 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogram
      *
      * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
      */
-    public java.util.List 
-         getHistogramQueriesOrBuilderList() {
+    public java.util.List
+        getHistogramQueriesOrBuilderList() {
       if (histogramQueriesBuilder_ != null) {
         return histogramQueriesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2918,6 +3212,8 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogram
       }
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2953,11 +3249,14 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogram
      *
      * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
      */
-    public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQueriesBuilder() {
-      return getHistogramQueriesFieldBuilder().addBuilder(
-          com.google.cloud.contentwarehouse.v1.HistogramQuery.getDefaultInstance());
+    public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder
+        addHistogramQueriesBuilder() {
+      return getHistogramQueriesFieldBuilder()
+          .addBuilder(com.google.cloud.contentwarehouse.v1.HistogramQuery.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -2995,10 +3294,13 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQ
      */
     public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQueriesBuilder(
         int index) {
-      return getHistogramQueriesFieldBuilder().addBuilder(
-          index, com.google.cloud.contentwarehouse.v1.HistogramQuery.getDefaultInstance());
+      return getHistogramQueriesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.contentwarehouse.v1.HistogramQuery.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * An expression specifying a histogram request against matching
      * documents. Expression syntax is an aggregation function call with
@@ -3034,16 +3336,22 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQ
      *
      * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
      */
-    public java.util.List 
-         getHistogramQueriesBuilderList() {
+    public java.util.List
+        getHistogramQueriesBuilderList() {
       return getHistogramQueriesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.HistogramQuery, com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.HistogramQuery,
+            com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder,
+            com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder>
         getHistogramQueriesFieldBuilder() {
       if (histogramQueriesBuilder_ == null) {
-        histogramQueriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.HistogramQuery, com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder>(
+        histogramQueriesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.HistogramQuery,
+                com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder,
+                com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder>(
                 histogramQueries_,
                 ((bitField0_ & 0x00000080) != 0),
                 getParentForChildren(),
@@ -3053,8 +3361,10 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQ
       return histogramQueriesBuilder_;
     }
 
-    private boolean requireTotalSize_ ;
+    private boolean requireTotalSize_;
     /**
+     *
+     *
      * 
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
@@ -3068,6 +3378,7 @@ public com.google.cloud.contentwarehouse.v1.HistogramQuery.Builder addHistogramQ
      * 
* * bool require_total_size = 10; + * * @return The requireTotalSize. */ @java.lang.Override @@ -3075,6 +3386,8 @@ public boolean getRequireTotalSize() { return requireTotalSize_; } /** + * + * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
@@ -3088,6 +3401,7 @@ public boolean getRequireTotalSize() {
      * 
* * bool require_total_size = 10; + * * @param value The requireTotalSize to set. * @return This builder for chaining. */ @@ -3099,6 +3413,8 @@ public Builder setRequireTotalSize(boolean value) { return this; } /** + * + * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
@@ -3112,6 +3428,7 @@ public Builder setRequireTotalSize(boolean value) {
      * 
* * bool require_total_size = 10; + * * @return This builder for chaining. */ public Builder clearRequireTotalSize() { @@ -3123,26 +3440,37 @@ public Builder clearRequireTotalSize() { private int totalResultSize_ = 0; /** + * + * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
      * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
      * 
* - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * * @return The enum numeric value on the wire for totalResultSize. */ - @java.lang.Override public int getTotalResultSizeValue() { + @java.lang.Override + public int getTotalResultSizeValue() { return totalResultSize_; } /** + * + * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
      * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
      * 
* - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * * @param value The enum numeric value on the wire for totalResultSize to set. * @return This builder for chaining. */ @@ -3153,32 +3481,48 @@ public Builder setTotalResultSizeValue(int value) { return this; } /** + * + * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
      * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
      * 
* - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * * @return The totalResultSize. */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize getTotalResultSize() { - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize result = com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.forNumber(totalResultSize_); - return result == null ? com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.UNRECOGNIZED : result; + public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize + getTotalResultSize() { + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize result = + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.forNumber( + totalResultSize_); + return result == null + ? com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize.UNRECOGNIZED + : result; } /** + * + * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
      * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
      * 
* - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * * @param value The totalResultSize to set. * @return This builder for chaining. */ - public Builder setTotalResultSize(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize value) { + public Builder setTotalResultSize( + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize value) { if (value == null) { throw new NullPointerException(); } @@ -3188,13 +3532,18 @@ public Builder setTotalResultSize(com.google.cloud.contentwarehouse.v1.SearchDoc return this; } /** + * + * *
      * Controls if the search document request requires the return of a total size
      * of matched documents. See
      * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
      * 
* - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * * @return This builder for chaining. */ public Builder clearTotalResultSize() { @@ -3204,8 +3553,10 @@ public Builder clearTotalResultSize() { return this; } - private int qaSizeLimit_ ; + private int qaSizeLimit_; /** + * + * *
      * Experimental, do not use.
      * The limit on the number of documents returned for the question-answering
@@ -3214,6 +3565,7 @@ public Builder clearTotalResultSize() {
      * 
* * int32 qa_size_limit = 11; + * * @return The qaSizeLimit. */ @java.lang.Override @@ -3221,6 +3573,8 @@ public int getQaSizeLimit() { return qaSizeLimit_; } /** + * + * *
      * Experimental, do not use.
      * The limit on the number of documents returned for the question-answering
@@ -3229,6 +3583,7 @@ public int getQaSizeLimit() {
      * 
* * int32 qa_size_limit = 11; + * * @param value The qaSizeLimit to set. * @return This builder for chaining. */ @@ -3240,6 +3595,8 @@ public Builder setQaSizeLimit(int value) { return this; } /** + * + * *
      * Experimental, do not use.
      * The limit on the number of documents returned for the question-answering
@@ -3248,6 +3605,7 @@ public Builder setQaSizeLimit(int value) {
      * 
* * int32 qa_size_limit = 11; + * * @return This builder for chaining. */ public Builder clearQaSizeLimit() { @@ -3256,9 +3614,9 @@ public Builder clearQaSizeLimit() { 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); } @@ -3268,12 +3626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SearchDocumentsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SearchDocumentsRequest) private static final com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest(); } @@ -3282,27 +3640,27 @@ public static com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchDocumentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 SearchDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3317,6 +3675,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java similarity index 90% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java index 91a8576f479c..f4c63f3348a8 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsRequestOrBuilder.java @@ -1,55 +1,88 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface SearchDocumentsRequestOrBuilder extends +public interface SearchDocumentsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SearchDocumentsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of documents.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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, which owns this collection of documents.
    * Format: projects/{project_number}/locations/{location}.
    * 
* - * string 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 meta information collected about the end user, used to enforce access
    * control and improve the search quality of the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control and improve the search quality of the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control and improve the search quality of the service.
@@ -60,24 +93,32 @@ public interface SearchDocumentsRequestOrBuilder extends
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
+   *
+   *
    * 
    * Query used to search against documents (keyword, filters, etc.).
    * 
* * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; + * * @return Whether the documentQuery field is set. */ boolean hasDocumentQuery(); /** + * + * *
    * Query used to search against documents (keyword, filters, etc.).
    * 
* * .google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4; + * * @return The documentQuery. */ com.google.cloud.contentwarehouse.v1.DocumentQuery getDocumentQuery(); /** + * + * *
    * Query used to search against documents (keyword, filters, etc.).
    * 
@@ -87,6 +128,8 @@ public interface SearchDocumentsRequestOrBuilder extends com.google.cloud.contentwarehouse.v1.DocumentQueryOrBuilder getDocumentQueryOrBuilder(); /** + * + * *
    * An integer that specifies the current offset (that is, starting result
    * location, amongst the documents deemed by the API as relevant) in search
@@ -103,11 +146,14 @@ public interface SearchDocumentsRequestOrBuilder extends
    * 
* * int32 offset = 5; + * * @return The offset. */ int getOffset(); /** + * + * *
    * A limit on the number of documents returned in the search results.
    * Increasing this value above the default value of 10 can increase search
@@ -115,11 +161,14 @@ public interface SearchDocumentsRequestOrBuilder extends
    * 
* * int32 page_size = 6; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The token specifying the current offset within search results.
    * See
@@ -128,10 +177,13 @@ public interface SearchDocumentsRequestOrBuilder extends
    * 
* * string page_token = 7; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The token specifying the current offset within search results.
    * See
@@ -140,12 +192,14 @@ public interface SearchDocumentsRequestOrBuilder extends
    * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The criteria determining how search results are sorted. For non-empty
    * query, default is `"relevance desc"`. For empty query, default is
@@ -165,10 +219,13 @@ public interface SearchDocumentsRequestOrBuilder extends
    * 
* * string order_by = 8; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * The criteria determining how search results are sorted. For non-empty
    * query, default is `"relevance desc"`. For empty query, default is
@@ -188,12 +245,14 @@ public interface SearchDocumentsRequestOrBuilder extends
    * 
* * string order_by = 8; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -229,9 +288,10 @@ public interface SearchDocumentsRequestOrBuilder extends
    *
    * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
    */
-  java.util.List 
-      getHistogramQueriesList();
+  java.util.List getHistogramQueriesList();
   /**
+   *
+   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -269,6 +329,8 @@ public interface SearchDocumentsRequestOrBuilder extends
    */
   com.google.cloud.contentwarehouse.v1.HistogramQuery getHistogramQueries(int index);
   /**
+   *
+   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -306,6 +368,8 @@ public interface SearchDocumentsRequestOrBuilder extends
    */
   int getHistogramQueriesCount();
   /**
+   *
+   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -341,9 +405,11 @@ public interface SearchDocumentsRequestOrBuilder extends
    *
    * repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
    */
-  java.util.List 
+  java.util.List
       getHistogramQueriesOrBuilderList();
   /**
+   *
+   *
    * 
    * An expression specifying a histogram request against matching
    * documents. Expression syntax is an aggregation function call with
@@ -383,6 +449,8 @@ com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogramQueries
       int index);
 
   /**
+   *
+   *
    * 
    * Controls if the search document request requires the return of a total size
    * of matched documents. See
@@ -396,34 +464,47 @@ com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogramQueries
    * 
* * bool require_total_size = 10; + * * @return The requireTotalSize. */ boolean getRequireTotalSize(); /** + * + * *
    * Controls if the search document request requires the return of a total size
    * of matched documents. See
    * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
    * 
* - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * * @return The enum numeric value on the wire for totalResultSize. */ int getTotalResultSizeValue(); /** + * + * *
    * Controls if the search document request requires the return of a total size
    * of matched documents. See
    * [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
    * 
* - * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * .google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12; + * + * * @return The totalResultSize. */ com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize getTotalResultSize(); /** + * + * *
    * Experimental, do not use.
    * The limit on the number of documents returned for the question-answering
@@ -432,6 +513,7 @@ com.google.cloud.contentwarehouse.v1.HistogramQueryOrBuilder getHistogramQueries
    * 
* * int32 qa_size_limit = 11; + * * @return The qaSizeLimit. */ int getQaSizeLimit(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java index 0deaa3e25afa..80e6220ba50c 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponse.java @@ -1,24 +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/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Response message for DocumentService.SearchDocuments.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SearchDocumentsResponse} */ -public final class SearchDocumentsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchDocumentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SearchDocumentsResponse) SearchDocumentsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchDocumentsResponse.newBuilder() to construct. private SearchDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchDocumentsResponse() { matchingDocuments_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -28,29 +46,33 @@ private SearchDocumentsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchDocumentsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.class, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.class, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.Builder.class); } - public interface MatchingDocumentOrBuilder extends + public interface MatchingDocumentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Document that matches the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -58,10 +80,13 @@ public interface MatchingDocumentOrBuilder extends
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return Whether the document field is set. */ boolean hasDocument(); /** + * + * *
      * Document that matches the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -69,10 +94,13 @@ public interface MatchingDocumentOrBuilder extends
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return The document. */ com.google.cloud.contentwarehouse.v1.Document getDocument(); /** + * + * *
      * Document that matches the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -84,6 +112,8 @@ public interface MatchingDocumentOrBuilder extends
     com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder();
 
     /**
+     *
+     *
      * 
      * Contains snippets of text from the document full raw text that most
      * closely match a search query's keywords, if available. All HTML tags in
@@ -98,10 +128,13 @@ public interface MatchingDocumentOrBuilder extends
      * 
* * string search_text_snippet = 2; + * * @return The searchTextSnippet. */ java.lang.String getSearchTextSnippet(); /** + * + * *
      * Contains snippets of text from the document full raw text that most
      * closely match a search query's keywords, if available. All HTML tags in
@@ -116,32 +149,40 @@ public interface MatchingDocumentOrBuilder extends
      * 
* * string search_text_snippet = 2; + * * @return The bytes for searchTextSnippet. */ - com.google.protobuf.ByteString - getSearchTextSnippetBytes(); + com.google.protobuf.ByteString getSearchTextSnippetBytes(); /** + * + * *
      * Experimental.
      * Additional result info if the question-answering feature is enabled.
      * 
* * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3; + * * @return Whether the qaResult field is set. */ boolean hasQaResult(); /** + * + * *
      * Experimental.
      * Additional result info if the question-answering feature is enabled.
      * 
* * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3; + * * @return The qaResult. */ com.google.cloud.contentwarehouse.v1.QAResult getQaResult(); /** + * + * *
      * Experimental.
      * Additional result info if the question-answering feature is enabled.
@@ -152,6 +193,8 @@ public interface MatchingDocumentOrBuilder extends
     com.google.cloud.contentwarehouse.v1.QAResultOrBuilder getQaResultOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Document entry with metadata inside
    * [SearchDocumentsResponse][google.cloud.contentwarehouse.v1.SearchDocumentsResponse]
@@ -159,42 +202,47 @@ public interface MatchingDocumentOrBuilder extends
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument}
    */
-  public static final class MatchingDocument extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class MatchingDocument extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument)
       MatchingDocumentOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use MatchingDocument.newBuilder() to construct.
     private MatchingDocument(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private MatchingDocument() {
       searchTextSnippet_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new MatchingDocument();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
+          .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.DocumentServiceProto
+          .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.class, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder.class);
+              com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.class,
+              com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder
+                  .class);
     }
 
     public static final int DOCUMENT_FIELD_NUMBER = 1;
     private com.google.cloud.contentwarehouse.v1.Document document_;
     /**
+     *
+     *
      * 
      * Document that matches the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -202,6 +250,7 @@ protected java.lang.Object newInstance(
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return Whether the document field is set. */ @java.lang.Override @@ -209,6 +258,8 @@ public boolean hasDocument() { return document_ != null; } /** + * + * *
      * Document that matches the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -216,13 +267,18 @@ public boolean hasDocument() {
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return The document. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.Document getDocument() { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } /** + * + * *
      * Document that matches the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -233,13 +289,18 @@ public com.google.cloud.contentwarehouse.v1.Document getDocument() {
      */
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() {
-      return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_;
+      return document_ == null
+          ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()
+          : document_;
     }
 
     public static final int SEARCH_TEXT_SNIPPET_FIELD_NUMBER = 2;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object searchTextSnippet_ = "";
     /**
+     *
+     *
      * 
      * Contains snippets of text from the document full raw text that most
      * closely match a search query's keywords, if available. All HTML tags in
@@ -254,6 +315,7 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
      * 
* * string search_text_snippet = 2; + * * @return The searchTextSnippet. */ @java.lang.Override @@ -262,14 +324,15 @@ public java.lang.String getSearchTextSnippet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); searchTextSnippet_ = s; return s; } } /** + * + * *
      * Contains snippets of text from the document full raw text that most
      * closely match a search query's keywords, if available. All HTML tags in
@@ -284,16 +347,15 @@ public java.lang.String getSearchTextSnippet() {
      * 
* * string search_text_snippet = 2; + * * @return The bytes for searchTextSnippet. */ @java.lang.Override - public com.google.protobuf.ByteString - getSearchTextSnippetBytes() { + public com.google.protobuf.ByteString getSearchTextSnippetBytes() { java.lang.Object ref = searchTextSnippet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); searchTextSnippet_ = b; return b; } else { @@ -304,12 +366,15 @@ public java.lang.String getSearchTextSnippet() { public static final int QA_RESULT_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.QAResult qaResult_; /** + * + * *
      * Experimental.
      * Additional result info if the question-answering feature is enabled.
      * 
* * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3; + * * @return Whether the qaResult field is set. */ @java.lang.Override @@ -317,19 +382,26 @@ public boolean hasQaResult() { return qaResult_ != null; } /** + * + * *
      * Experimental.
      * Additional result info if the question-answering feature is enabled.
      * 
* * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3; + * * @return The qaResult. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.QAResult getQaResult() { - return qaResult_ == null ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance() : qaResult_; + return qaResult_ == null + ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance() + : qaResult_; } /** + * + * *
      * Experimental.
      * Additional result info if the question-answering feature is enabled.
@@ -339,10 +411,13 @@ public com.google.cloud.contentwarehouse.v1.QAResult getQaResult() {
      */
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.QAResultOrBuilder getQaResultOrBuilder() {
-      return qaResult_ == null ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance() : qaResult_;
+      return qaResult_ == null
+          ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance()
+          : qaResult_;
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -354,8 +429,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (document_ != null) {
         output.writeMessage(1, getDocument());
       }
@@ -375,15 +449,13 @@ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchTextSnippet_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, searchTextSnippet_);
       }
       if (qaResult_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, getQaResult());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQaResult());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -393,24 +465,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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument)) {
+      if (!(obj
+          instanceof
+          com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument)) {
         return super.equals(obj);
       }
-      com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument other = (com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) obj;
+      com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument other =
+          (com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) obj;
 
       if (hasDocument() != other.hasDocument()) return false;
       if (hasDocument()) {
-        if (!getDocument()
-            .equals(other.getDocument())) return false;
+        if (!getDocument().equals(other.getDocument())) return false;
       }
-      if (!getSearchTextSnippet()
-          .equals(other.getSearchTextSnippet())) return false;
+      if (!getSearchTextSnippet().equals(other.getSearchTextSnippet())) return false;
       if (hasQaResult() != other.hasQaResult()) return false;
       if (hasQaResult()) {
-        if (!getQaResult()
-            .equals(other.getQaResult())) return false;
+        if (!getQaResult().equals(other.getQaResult())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -438,90 +510,101 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        parseFrom(java.nio.ByteBuffer data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        parseFrom(com.google.protobuf.ByteString data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        parseFrom(
+            com.google.protobuf.ByteString data,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        parseFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
-        java.io.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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        parseFrom(
+            java.io.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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
 
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        parseDelimitedFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument 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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -531,40 +614,45 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Document entry with metadata inside
      * [SearchDocumentsResponse][google.cloud.contentwarehouse.v1.SearchDocumentsResponse]
      * 
* - * Protobuf type {@code google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument} + * Protobuf type {@code + * google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.class, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder.class); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.class, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument + .Builder.class); } - // Construct using com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -584,19 +672,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument getDefaultInstanceForType() { - return com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.getDefaultInstance(); + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument + getDefaultInstanceForType() { + return com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument build() { - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument result = buildPartial(); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -604,27 +695,28 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocu } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument buildPartial() { - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument result = new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument + buildPartial() { + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument result = + new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument 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.searchTextSnippet_ = searchTextSnippet_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.qaResult_ = qaResultBuilder_ == null - ? qaResult_ - : qaResultBuilder_.build(); + result.qaResult_ = qaResultBuilder_ == null ? qaResult_ : qaResultBuilder_.build(); } } @@ -632,46 +724,56 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SearchDocumentsR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument)other); + if (other + instanceof + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) { + return mergeFrom( + (com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument other) { - if (other == com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument other) { + if (other + == com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument + .getDefaultInstance()) return this; if (other.hasDocument()) { mergeDocument(other.getDocument()); } @@ -709,31 +811,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDocumentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - searchTextSnippet_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getQaResultFieldBuilder().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(getDocumentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + searchTextSnippet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getQaResultFieldBuilder().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) { @@ -743,12 +845,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.contentwarehouse.v1.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> documentBuilder_; + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + documentBuilder_; /** + * + * *
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -756,12 +864,15 @@ public Builder mergeFrom(
        * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -769,16 +880,21 @@ public boolean hasDocument() {
        * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return The document. */ public com.google.cloud.contentwarehouse.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } else { return documentBuilder_.getMessage(); } } /** + * + * *
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -801,6 +917,8 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value)
         return this;
       }
       /**
+       *
+       *
        * 
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -821,6 +939,8 @@ public Builder setDocument(
         return this;
       }
       /**
+       *
+       *
        * 
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -831,9 +951,9 @@ public Builder setDocument(
        */
       public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value) {
         if (documentBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            document_ != null &&
-            document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && document_ != null
+              && document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) {
             getDocumentBuilder().mergeFrom(value);
           } else {
             document_ = value;
@@ -846,6 +966,8 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value
         return this;
       }
       /**
+       *
+       *
        * 
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -865,6 +987,8 @@ public Builder clearDocument() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -879,6 +1003,8 @@ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder(
         return getDocumentFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -891,11 +1017,14 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
         if (documentBuilder_ != null) {
           return documentBuilder_.getMessageOrBuilder();
         } else {
-          return document_ == null ?
-              com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_;
+          return document_ == null
+              ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()
+              : document_;
         }
       }
       /**
+       *
+       *
        * 
        * Document that matches the specified
        * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
@@ -905,14 +1034,17 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
        * .google.cloud.contentwarehouse.v1.Document document = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> 
+              com.google.cloud.contentwarehouse.v1.Document,
+              com.google.cloud.contentwarehouse.v1.Document.Builder,
+              com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>
           getDocumentFieldBuilder() {
         if (documentBuilder_ == null) {
-          documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>(
-                  getDocument(),
-                  getParentForChildren(),
-                  isClean());
+          documentBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.contentwarehouse.v1.Document,
+                  com.google.cloud.contentwarehouse.v1.Document.Builder,
+                  com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>(
+                  getDocument(), getParentForChildren(), isClean());
           document_ = null;
         }
         return documentBuilder_;
@@ -920,6 +1052,8 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
 
       private java.lang.Object searchTextSnippet_ = "";
       /**
+       *
+       *
        * 
        * Contains snippets of text from the document full raw text that most
        * closely match a search query's keywords, if available. All HTML tags in
@@ -934,13 +1068,13 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
        * 
* * string search_text_snippet = 2; + * * @return The searchTextSnippet. */ public java.lang.String getSearchTextSnippet() { java.lang.Object ref = searchTextSnippet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); searchTextSnippet_ = s; return s; @@ -949,6 +1083,8 @@ public java.lang.String getSearchTextSnippet() { } } /** + * + * *
        * Contains snippets of text from the document full raw text that most
        * closely match a search query's keywords, if available. All HTML tags in
@@ -963,15 +1099,14 @@ public java.lang.String getSearchTextSnippet() {
        * 
* * string search_text_snippet = 2; + * * @return The bytes for searchTextSnippet. */ - public com.google.protobuf.ByteString - getSearchTextSnippetBytes() { + public com.google.protobuf.ByteString getSearchTextSnippetBytes() { java.lang.Object ref = searchTextSnippet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); searchTextSnippet_ = b; return b; } else { @@ -979,6 +1114,8 @@ public java.lang.String getSearchTextSnippet() { } } /** + * + * *
        * Contains snippets of text from the document full raw text that most
        * closely match a search query's keywords, if available. All HTML tags in
@@ -993,18 +1130,22 @@ public java.lang.String getSearchTextSnippet() {
        * 
* * string search_text_snippet = 2; + * * @param value The searchTextSnippet to set. * @return This builder for chaining. */ - public Builder setSearchTextSnippet( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSearchTextSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } searchTextSnippet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Contains snippets of text from the document full raw text that most
        * closely match a search query's keywords, if available. All HTML tags in
@@ -1019,6 +1160,7 @@ public Builder setSearchTextSnippet(
        * 
* * string search_text_snippet = 2; + * * @return This builder for chaining. */ public Builder clearSearchTextSnippet() { @@ -1028,6 +1170,8 @@ public Builder clearSearchTextSnippet() { return this; } /** + * + * *
        * Contains snippets of text from the document full raw text that most
        * closely match a search query's keywords, if available. All HTML tags in
@@ -1042,12 +1186,14 @@ public Builder clearSearchTextSnippet() {
        * 
* * string search_text_snippet = 2; + * * @param value The bytes for searchTextSnippet to set. * @return This builder for chaining. */ - public Builder setSearchTextSnippetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSearchTextSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); searchTextSnippet_ = value; bitField0_ |= 0x00000002; @@ -1057,36 +1203,49 @@ public Builder setSearchTextSnippetBytes( private com.google.cloud.contentwarehouse.v1.QAResult qaResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.QAResult, com.google.cloud.contentwarehouse.v1.QAResult.Builder, com.google.cloud.contentwarehouse.v1.QAResultOrBuilder> qaResultBuilder_; + com.google.cloud.contentwarehouse.v1.QAResult, + com.google.cloud.contentwarehouse.v1.QAResult.Builder, + com.google.cloud.contentwarehouse.v1.QAResultOrBuilder> + qaResultBuilder_; /** + * + * *
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
        * 
* * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3; + * * @return Whether the qaResult field is set. */ public boolean hasQaResult() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
        * 
* * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3; + * * @return The qaResult. */ public com.google.cloud.contentwarehouse.v1.QAResult getQaResult() { if (qaResultBuilder_ == null) { - return qaResult_ == null ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance() : qaResult_; + return qaResult_ == null + ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance() + : qaResult_; } else { return qaResultBuilder_.getMessage(); } } /** + * + * *
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1108,6 +1267,8 @@ public Builder setQaResult(com.google.cloud.contentwarehouse.v1.QAResult value)
         return this;
       }
       /**
+       *
+       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1127,6 +1288,8 @@ public Builder setQaResult(
         return this;
       }
       /**
+       *
+       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1136,9 +1299,9 @@ public Builder setQaResult(
        */
       public Builder mergeQaResult(com.google.cloud.contentwarehouse.v1.QAResult value) {
         if (qaResultBuilder_ == null) {
-          if (((bitField0_ & 0x00000004) != 0) &&
-            qaResult_ != null &&
-            qaResult_ != com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000004) != 0)
+              && qaResult_ != null
+              && qaResult_ != com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance()) {
             getQaResultBuilder().mergeFrom(value);
           } else {
             qaResult_ = value;
@@ -1151,6 +1314,8 @@ public Builder mergeQaResult(com.google.cloud.contentwarehouse.v1.QAResult value
         return this;
       }
       /**
+       *
+       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1169,6 +1334,8 @@ public Builder clearQaResult() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1182,6 +1349,8 @@ public com.google.cloud.contentwarehouse.v1.QAResult.Builder getQaResultBuilder(
         return getQaResultFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1193,11 +1362,14 @@ public com.google.cloud.contentwarehouse.v1.QAResultOrBuilder getQaResultOrBuild
         if (qaResultBuilder_ != null) {
           return qaResultBuilder_.getMessageOrBuilder();
         } else {
-          return qaResult_ == null ?
-              com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance() : qaResult_;
+          return qaResult_ == null
+              ? com.google.cloud.contentwarehouse.v1.QAResult.getDefaultInstance()
+              : qaResult_;
         }
       }
       /**
+       *
+       *
        * 
        * Experimental.
        * Additional result info if the question-answering feature is enabled.
@@ -1206,18 +1378,22 @@ public com.google.cloud.contentwarehouse.v1.QAResultOrBuilder getQaResultOrBuild
        * .google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.contentwarehouse.v1.QAResult, com.google.cloud.contentwarehouse.v1.QAResult.Builder, com.google.cloud.contentwarehouse.v1.QAResultOrBuilder> 
+              com.google.cloud.contentwarehouse.v1.QAResult,
+              com.google.cloud.contentwarehouse.v1.QAResult.Builder,
+              com.google.cloud.contentwarehouse.v1.QAResultOrBuilder>
           getQaResultFieldBuilder() {
         if (qaResultBuilder_ == null) {
-          qaResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.contentwarehouse.v1.QAResult, com.google.cloud.contentwarehouse.v1.QAResult.Builder, com.google.cloud.contentwarehouse.v1.QAResultOrBuilder>(
-                  getQaResult(),
-                  getParentForChildren(),
-                  isClean());
+          qaResultBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.contentwarehouse.v1.QAResult,
+                  com.google.cloud.contentwarehouse.v1.QAResult.Builder,
+                  com.google.cloud.contentwarehouse.v1.QAResultOrBuilder>(
+                  getQaResult(), getParentForChildren(), isClean());
           qaResult_ = null;
         }
         return qaResultBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1230,41 +1406,46 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument)
-    private static final com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument DEFAULT_INSTANCE;
+    private static final com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse
+            .MatchingDocument
+        DEFAULT_INSTANCE;
+
     static {
-      DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument();
+      DEFAULT_INSTANCE =
+          new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument();
     }
 
-    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument getDefaultInstance() {
+    public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public MatchingDocument parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          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 MatchingDocument parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1276,88 +1457,121 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument getDefaultInstanceForType() {
+    public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   public static final int MATCHING_DOCUMENTS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
-  private java.util.List matchingDocuments_;
+  private java.util.List<
+          com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument>
+      matchingDocuments_;
   /**
+   *
+   *
    * 
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ @java.lang.Override - public java.util.List getMatchingDocumentsList() { + public java.util.List< + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument> + getMatchingDocumentsList() { return matchingDocuments_; } /** + * + * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse + .MatchingDocumentOrBuilder> getMatchingDocumentsOrBuilderList() { return matchingDocuments_; } /** + * + * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ @java.lang.Override public int getMatchingDocumentsCount() { return matchingDocuments_.size(); } /** + * + * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument getMatchingDocuments(int index) { + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument + getMatchingDocuments(int index) { return matchingDocuments_.get(index); } /** + * + * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder getMatchingDocumentsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder + getMatchingDocumentsOrBuilder(int index) { return matchingDocuments_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The token that specifies the starting position of the next page of results.
    * This field is empty if there are no more results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -1366,30 +1580,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The token that specifies the starting position of the next page of results.
    * This field is empty if there are no more results.
    * 
* * 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 { @@ -1400,6 +1614,8 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_ = 0; /** + * + * *
    * The total number of matched documents which is available only if the client
    * set
@@ -1412,6 +1628,7 @@ public java.lang.String getNextPageToken() {
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -1422,12 +1639,15 @@ public int getTotalSize() { public static final int METADATA_FIELD_NUMBER = 4; private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_; /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -1435,19 +1655,26 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4; + * * @return The metadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -1457,85 +1684,116 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() {
    */
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder() {
-    return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
+    return metadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
+        : metadata_;
   }
 
   public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
-  private java.util.List histogramQueryResults_;
+  private java.util.List
+      histogramQueryResults_;
   /**
+   *
+   *
    * 
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ @java.lang.Override - public java.util.List getHistogramQueryResultsList() { + public java.util.List + getHistogramQueryResultsList() { return histogramQueryResults_; } /** + * + * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder> getHistogramQueryResultsOrBuilderList() { return histogramQueryResults_; } /** + * + * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ @java.lang.Override public int getHistogramQueryResultsCount() { return histogramQueryResults_.size(); } /** + * + * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQueryResults(int index) { + public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQueryResults( + int index) { return histogramQueryResults_.get(index); } /** + * + * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { return histogramQueryResults_.get(index); } public static final int QUESTION_ANSWER_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object questionAnswer_ = ""; /** + * + * *
    * Experimental.
    * Question answer from the query against the document.
    * 
* * string question_answer = 7; + * * @return The questionAnswer. */ @java.lang.Override @@ -1544,30 +1802,30 @@ public java.lang.String getQuestionAnswer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); questionAnswer_ = s; return s; } } /** + * + * *
    * Experimental.
    * Question answer from the query against the document.
    * 
* * string question_answer = 7; + * * @return The bytes for questionAnswer. */ @java.lang.Override - public com.google.protobuf.ByteString - getQuestionAnswerBytes() { + public com.google.protobuf.ByteString getQuestionAnswerBytes() { java.lang.Object ref = questionAnswer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); questionAnswer_ = b; return b; } else { @@ -1576,6 +1834,7 @@ public java.lang.String getQuestionAnswer() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1587,8 +1846,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < matchingDocuments_.size(); i++) { output.writeMessage(1, matchingDocuments_.get(i)); } @@ -1617,23 +1875,22 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < matchingDocuments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, matchingDocuments_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchingDocuments_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata()); } for (int i = 0; i < histogramQueryResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, histogramQueryResults_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, histogramQueryResults_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(questionAnswer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, questionAnswer_); @@ -1646,28 +1903,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.contentwarehouse.v1.SearchDocumentsResponse)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse other = (com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse) obj; + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse other = + (com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse) obj; - if (!getMatchingDocumentsList() - .equals(other.getMatchingDocumentsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getMatchingDocumentsList().equals(other.getMatchingDocumentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; + if (!getMetadata().equals(other.getMetadata())) return false; } - if (!getHistogramQueryResultsList() - .equals(other.getHistogramQueryResultsList())) return false; - if (!getQuestionAnswer() - .equals(other.getQuestionAnswer())) return false; + if (!getHistogramQueryResultsList().equals(other.getHistogramQueryResultsList())) return false; + if (!getQuestionAnswer().equals(other.getQuestionAnswer())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1703,131 +1955,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse 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.contentwarehouse.v1.SearchDocumentsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse 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.contentwarehouse.v1.SearchDocumentsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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.SearchDocuments.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SearchDocumentsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SearchDocumentsResponse) com.google.cloud.contentwarehouse.v1.SearchDocumentsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.class, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.class, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1858,13 +2115,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.getDefaultInstance(); } @@ -1879,14 +2137,18 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse result = new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse(this); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse result = + new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse result) { if (matchingDocumentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { matchingDocuments_ = java.util.Collections.unmodifiableList(matchingDocuments_); @@ -1907,7 +2169,8 @@ private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.Sea } } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -1916,9 +2179,7 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SearchDocumentsR result.totalSize_ = totalSize_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.metadata_ = metadataBuilder_ == null - ? metadata_ - : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.questionAnswer_ = questionAnswer_; @@ -1929,38 +2190,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SearchDocumentsR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.SearchDocumentsResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse) other); } else { super.mergeFrom(other); return this; @@ -1968,7 +2230,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.getDefaultInstance()) + return this; if (matchingDocumentsBuilder_ == null) { if (!other.matchingDocuments_.isEmpty()) { if (matchingDocuments_.isEmpty()) { @@ -1987,9 +2251,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsRes matchingDocumentsBuilder_ = null; matchingDocuments_ = other.matchingDocuments_; bitField0_ = (bitField0_ & ~0x00000001); - matchingDocumentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMatchingDocumentsFieldBuilder() : null; + matchingDocumentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMatchingDocumentsFieldBuilder() + : null; } else { matchingDocumentsBuilder_.addAllMessages(other.matchingDocuments_); } @@ -2024,9 +2289,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SearchDocumentsRes histogramQueryResultsBuilder_ = null; histogramQueryResults_ = other.histogramQueryResults_; bitField0_ = (bitField0_ & ~0x00000010); - histogramQueryResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHistogramQueryResultsFieldBuilder() : null; + histogramQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueryResultsFieldBuilder() + : null; } else { histogramQueryResultsBuilder_.addAllMessages(other.histogramQueryResults_); } @@ -2063,60 +2329,66 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.parser(), - extensionRegistry); - if (matchingDocumentsBuilder_ == null) { - ensureMatchingDocumentsIsMutable(); - matchingDocuments_.add(m); - } else { - matchingDocumentsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: { - com.google.cloud.contentwarehouse.v1.HistogramQueryResult m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.HistogramQueryResult.parser(), - extensionRegistry); - if (histogramQueryResultsBuilder_ == null) { - ensureHistogramQueryResultsIsMutable(); - histogramQueryResults_.add(m); - } else { - histogramQueryResultsBuilder_.addMessage(m); - } - break; - } // case 50 - case 58: { - questionAnswer_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse + .MatchingDocument.parser(), + extensionRegistry); + if (matchingDocumentsBuilder_ == null) { + ensureMatchingDocumentsIsMutable(); + matchingDocuments_.add(m); + } else { + matchingDocumentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + com.google.cloud.contentwarehouse.v1.HistogramQueryResult m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.HistogramQueryResult.parser(), + extensionRegistry); + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(m); + } else { + histogramQueryResultsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + questionAnswer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + 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) { @@ -2126,29 +2398,44 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List matchingDocuments_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument> + matchingDocuments_ = java.util.Collections.emptyList(); + private void ensureMatchingDocumentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - matchingDocuments_ = new java.util.ArrayList(matchingDocuments_); + matchingDocuments_ = + new java.util.ArrayList< + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument>( + matchingDocuments_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder> matchingDocumentsBuilder_; + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder> + matchingDocumentsBuilder_; /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - public java.util.List getMatchingDocumentsList() { + public java.util.List< + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument> + getMatchingDocumentsList() { if (matchingDocumentsBuilder_ == null) { return java.util.Collections.unmodifiableList(matchingDocuments_); } else { @@ -2156,12 +2443,16 @@ public java.util.List * The document entities that match the specified * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest]. *
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ public int getMatchingDocumentsCount() { if (matchingDocumentsBuilder_ == null) { @@ -2171,14 +2462,19 @@ public int getMatchingDocumentsCount() { } } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument getMatchingDocuments(int index) { + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument + getMatchingDocuments(int index) { if (matchingDocumentsBuilder_ == null) { return matchingDocuments_.get(index); } else { @@ -2186,15 +2482,20 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocu } } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ public Builder setMatchingDocuments( - int index, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument value) { + int index, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument value) { if (matchingDocumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2208,15 +2509,21 @@ public Builder setMatchingDocuments( return this; } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ public Builder setMatchingDocuments( - int index, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder + builderForValue) { if (matchingDocumentsBuilder_ == null) { ensureMatchingDocumentsIsMutable(); matchingDocuments_.set(index, builderForValue.build()); @@ -2227,14 +2534,19 @@ public Builder setMatchingDocuments( return this; } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - public Builder addMatchingDocuments(com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument value) { + public Builder addMatchingDocuments( + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument value) { if (matchingDocumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2248,15 +2560,20 @@ public Builder addMatchingDocuments(com.google.cloud.contentwarehouse.v1.SearchD return this; } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ public Builder addMatchingDocuments( - int index, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument value) { + int index, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument value) { if (matchingDocumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2270,15 +2587,20 @@ public Builder addMatchingDocuments( return this; } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ public Builder addMatchingDocuments( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder builderForValue) { + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder + builderForValue) { if (matchingDocumentsBuilder_ == null) { ensureMatchingDocumentsIsMutable(); matchingDocuments_.add(builderForValue.build()); @@ -2289,15 +2611,21 @@ public Builder addMatchingDocuments( return this; } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ public Builder addMatchingDocuments( - int index, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder + builderForValue) { if (matchingDocumentsBuilder_ == null) { ensureMatchingDocumentsIsMutable(); matchingDocuments_.add(index, builderForValue.build()); @@ -2308,19 +2636,25 @@ public Builder addMatchingDocuments( return this; } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ public Builder addAllMatchingDocuments( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument> + values) { if (matchingDocumentsBuilder_ == null) { ensureMatchingDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, matchingDocuments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchingDocuments_); onChanged(); } else { matchingDocumentsBuilder_.addAllMessages(values); @@ -2328,12 +2662,16 @@ public Builder addAllMatchingDocuments( return this; } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ public Builder clearMatchingDocuments() { if (matchingDocumentsBuilder_ == null) { @@ -2346,12 +2684,16 @@ public Builder clearMatchingDocuments() { return this; } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ public Builder removeMatchingDocuments(int index) { if (matchingDocumentsBuilder_ == null) { @@ -2364,42 +2706,58 @@ public Builder removeMatchingDocuments(int index) { return this; } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder getMatchingDocumentsBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder + getMatchingDocumentsBuilder(int index) { return getMatchingDocumentsFieldBuilder().getBuilder(index); } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder getMatchingDocumentsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder + getMatchingDocumentsOrBuilder(int index) { if (matchingDocumentsBuilder_ == null) { - return matchingDocuments_.get(index); } else { + return matchingDocuments_.get(index); + } else { return matchingDocumentsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - public java.util.List - getMatchingDocumentsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse + .MatchingDocumentOrBuilder> + getMatchingDocumentsOrBuilderList() { if (matchingDocumentsBuilder_ != null) { return matchingDocumentsBuilder_.getMessageOrBuilderList(); } else { @@ -2407,48 +2765,75 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocu } } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder addMatchingDocumentsBuilder() { - return getMatchingDocumentsFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder + addMatchingDocumentsBuilder() { + return getMatchingDocumentsFieldBuilder() + .addBuilder( + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument + .getDefaultInstance()); } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder addMatchingDocumentsBuilder( - int index) { - return getMatchingDocumentsFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder + addMatchingDocumentsBuilder(int index) { + return getMatchingDocumentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument + .getDefaultInstance()); } /** + * + * *
      * The document entities that match the specified
      * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - public java.util.List - getMatchingDocumentsBuilderList() { + public java.util.List< + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder> + getMatchingDocumentsBuilderList() { return getMatchingDocumentsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder> + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder> getMatchingDocumentsFieldBuilder() { if (matchingDocumentsBuilder_ == null) { - matchingDocumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder, com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder>( + matchingDocumentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument + .Builder, + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse + .MatchingDocumentOrBuilder>( matchingDocuments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2460,19 +2845,21 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocu private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The token that specifies the starting position of the next page of results.
      * This field is empty if there are no more results.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -2481,21 +2868,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token that specifies the starting position of the next page of results.
      * This field is empty if there are no more results.
      * 
* * 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 { @@ -2503,30 +2891,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The token that specifies the starting position of the next page of results.
      * This field is empty if there are no more results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The token that specifies the starting position of the next page of results.
      * This field is empty if there are no more results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -2536,18 +2931,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The token that specifies the starting position of the next page of results.
      * This field is empty if there are no more results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -2555,8 +2954,10 @@ public Builder setNextPageTokenBytes( return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of matched documents which is available only if the client
      * set
@@ -2569,6 +2970,7 @@ public Builder setNextPageTokenBytes(
      * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -2576,6 +2978,8 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of matched documents which is available only if the client
      * set
@@ -2588,6 +2992,7 @@ public int getTotalSize() {
      * 
* * int32 total_size = 3; + * * @param value The totalSize to set. * @return This builder for chaining. */ @@ -2599,6 +3004,8 @@ public Builder setTotalSize(int value) { return this; } /** + * + * *
      * The total number of matched documents which is available only if the client
      * set
@@ -2611,6 +3018,7 @@ public Builder setTotalSize(int value) {
      * 
* * int32 total_size = 3; + * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -2622,36 +3030,49 @@ public Builder clearTotalSize() { private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> metadataBuilder_; + com.google.cloud.contentwarehouse.v1.ResponseMetadata, + com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, + com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> + metadataBuilder_; /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4; + * * @return The metadata. */ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2673,6 +3094,8 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2692,6 +3115,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2701,9 +3126,10 @@ public Builder setMetadata(
      */
     public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          metadata_ != null &&
-          metadata_ != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && metadata_ != null
+            && metadata_
+                != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -2716,6 +3142,8 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2734,6 +3162,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2747,6 +3177,8 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadata
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2758,11 +3190,14 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
+        return metadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
+            : metadata_;
       }
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -2771,40 +3206,54 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
-                getMetadata(),
-                getParentForChildren(),
-                isClean());
+        metadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.ResponseMetadata,
+                com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
+                getMetadata(), getParentForChildren(), isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
 
-    private java.util.List histogramQueryResults_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        histogramQueryResults_ = java.util.Collections.emptyList();
+
     private void ensureHistogramQueryResultsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
-        histogramQueryResults_ = new java.util.ArrayList(histogramQueryResults_);
+        histogramQueryResults_ =
+            new java.util.ArrayList(
+                histogramQueryResults_);
         bitField0_ |= 0x00000010;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.HistogramQueryResult, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder> histogramQueryResultsBuilder_;
+            com.google.cloud.contentwarehouse.v1.HistogramQueryResult,
+            com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder,
+            com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder>
+        histogramQueryResultsBuilder_;
 
     /**
+     *
+     *
      * 
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ - public java.util.List getHistogramQueryResultsList() { + public java.util.List + getHistogramQueryResultsList() { if (histogramQueryResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(histogramQueryResults_); } else { @@ -2812,12 +3261,16 @@ public java.util.List } } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ public int getHistogramQueryResultsCount() { if (histogramQueryResultsBuilder_ == null) { @@ -2827,14 +3280,19 @@ public int getHistogramQueryResultsCount() { } } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQueryResults(int index) { + public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQueryResults( + int index) { if (histogramQueryResultsBuilder_ == null) { return histogramQueryResults_.get(index); } else { @@ -2842,12 +3300,16 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQue } } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ public Builder setHistogramQueryResults( int index, com.google.cloud.contentwarehouse.v1.HistogramQueryResult value) { @@ -2864,15 +3326,20 @@ public Builder setHistogramQueryResults( return this; } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ public Builder setHistogramQueryResults( - int index, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder builderForValue) { if (histogramQueryResultsBuilder_ == null) { ensureHistogramQueryResultsIsMutable(); histogramQueryResults_.set(index, builderForValue.build()); @@ -2883,14 +3350,19 @@ public Builder setHistogramQueryResults( return this; } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ - public Builder addHistogramQueryResults(com.google.cloud.contentwarehouse.v1.HistogramQueryResult value) { + public Builder addHistogramQueryResults( + com.google.cloud.contentwarehouse.v1.HistogramQueryResult value) { if (histogramQueryResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2904,12 +3376,16 @@ public Builder addHistogramQueryResults(com.google.cloud.contentwarehouse.v1.His return this; } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ public Builder addHistogramQueryResults( int index, com.google.cloud.contentwarehouse.v1.HistogramQueryResult value) { @@ -2926,12 +3402,16 @@ public Builder addHistogramQueryResults( return this; } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ public Builder addHistogramQueryResults( com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder builderForValue) { @@ -2945,15 +3425,20 @@ public Builder addHistogramQueryResults( return this; } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ public Builder addHistogramQueryResults( - int index, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder builderForValue) { if (histogramQueryResultsBuilder_ == null) { ensureHistogramQueryResultsIsMutable(); histogramQueryResults_.add(index, builderForValue.build()); @@ -2964,19 +3449,23 @@ public Builder addHistogramQueryResults( return this; } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ public Builder addAllHistogramQueryResults( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (histogramQueryResultsBuilder_ == null) { ensureHistogramQueryResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, histogramQueryResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueryResults_); onChanged(); } else { histogramQueryResultsBuilder_.addAllMessages(values); @@ -2984,12 +3473,16 @@ public Builder addAllHistogramQueryResults( return this; } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ public Builder clearHistogramQueryResults() { if (histogramQueryResultsBuilder_ == null) { @@ -3002,12 +3495,16 @@ public Builder clearHistogramQueryResults() { return this; } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ public Builder removeHistogramQueryResults(int index) { if (histogramQueryResultsBuilder_ == null) { @@ -3020,42 +3517,56 @@ public Builder removeHistogramQueryResults(int index) { return this; } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder getHistogramQueryResultsBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder + getHistogramQueryResultsBuilder(int index) { return getHistogramQueryResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { if (histogramQueryResultsBuilder_ == null) { - return histogramQueryResults_.get(index); } else { + return histogramQueryResults_.get(index); + } else { return histogramQueryResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ - public java.util.List - getHistogramQueryResultsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder> + getHistogramQueryResultsOrBuilderList() { if (histogramQueryResultsBuilder_ != null) { return histogramQueryResultsBuilder_.getMessageOrBuilderList(); } else { @@ -3063,48 +3574,70 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder getHis } } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder addHistogramQueryResultsBuilder() { - return getHistogramQueryResultsFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.HistogramQueryResult.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder() { + return getHistogramQueryResultsFieldBuilder() + .addBuilder( + com.google.cloud.contentwarehouse.v1.HistogramQueryResult.getDefaultInstance()); } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ - public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder addHistogramQueryResultsBuilder( - int index) { - return getHistogramQueryResultsFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.contentwarehouse.v1.HistogramQueryResult.getDefaultInstance()); } /** + * + * *
      * The histogram results that match with the specified
      * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
      * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ - public java.util.List - getHistogramQueryResultsBuilderList() { + public java.util.List + getHistogramQueryResultsBuilderList() { return getHistogramQueryResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.HistogramQueryResult, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder> + com.google.cloud.contentwarehouse.v1.HistogramQueryResult, + com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder, + com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder> getHistogramQueryResultsFieldBuilder() { if (histogramQueryResultsBuilder_ == null) { - histogramQueryResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.HistogramQueryResult, com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder, com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder>( + histogramQueryResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.HistogramQueryResult, + com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder, + com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder>( histogramQueryResults_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -3116,19 +3649,21 @@ public com.google.cloud.contentwarehouse.v1.HistogramQueryResult.Builder addHist private java.lang.Object questionAnswer_ = ""; /** + * + * *
      * Experimental.
      * Question answer from the query against the document.
      * 
* * string question_answer = 7; + * * @return The questionAnswer. */ public java.lang.String getQuestionAnswer() { java.lang.Object ref = questionAnswer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); questionAnswer_ = s; return s; @@ -3137,21 +3672,22 @@ public java.lang.String getQuestionAnswer() { } } /** + * + * *
      * Experimental.
      * Question answer from the query against the document.
      * 
* * string question_answer = 7; + * * @return The bytes for questionAnswer. */ - public com.google.protobuf.ByteString - getQuestionAnswerBytes() { + public com.google.protobuf.ByteString getQuestionAnswerBytes() { java.lang.Object ref = questionAnswer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); questionAnswer_ = b; return b; } else { @@ -3159,30 +3695,37 @@ public java.lang.String getQuestionAnswer() { } } /** + * + * *
      * Experimental.
      * Question answer from the query against the document.
      * 
* * string question_answer = 7; + * * @param value The questionAnswer to set. * @return This builder for chaining. */ - public Builder setQuestionAnswer( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQuestionAnswer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } questionAnswer_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Experimental.
      * Question answer from the query against the document.
      * 
* * string question_answer = 7; + * * @return This builder for chaining. */ public Builder clearQuestionAnswer() { @@ -3192,27 +3735,31 @@ public Builder clearQuestionAnswer() { return this; } /** + * + * *
      * Experimental.
      * Question answer from the query against the document.
      * 
* * string question_answer = 7; + * * @param value The bytes for questionAnswer to set. * @return This builder for chaining. */ - public Builder setQuestionAnswerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQuestionAnswerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); questionAnswer_ = 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); } @@ -3222,12 +3769,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SearchDocumentsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SearchDocumentsResponse) - private static final com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse(); } @@ -3236,27 +3784,27 @@ public static com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchDocumentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 SearchDocumentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3271,6 +3819,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java index d940c7227a35..6656e0f85b7f 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SearchDocumentsResponseOrBuilder.java @@ -1,84 +1,131 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; -public interface SearchDocumentsResponseOrBuilder extends +public interface SearchDocumentsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SearchDocumentsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - java.util.List + java.util.List getMatchingDocumentsList(); /** + * + * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument getMatchingDocuments(int index); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument + getMatchingDocuments(int index); /** + * + * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ int getMatchingDocumentsCount(); /** + * + * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse + .MatchingDocumentOrBuilder> getMatchingDocumentsOrBuilderList(); /** + * + * *
    * The document entities that match the specified
    * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * + * repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1; + * */ - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder getMatchingDocumentsOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrBuilder + getMatchingDocumentsOrBuilder(int index); /** + * + * *
    * The token that specifies the starting position of the next page of results.
    * This field is empty if there are no more results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The token that specifies the starting position of the next page of results.
    * This field is empty if there are no more results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of matched documents which is available only if the client
    * set
@@ -91,31 +138,40 @@ com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrB
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ int getTotalSize(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4; + * * @return The metadata. */ com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -126,73 +182,98 @@ com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocumentOrB
   com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder();
 
   /**
+   *
+   *
    * 
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ - java.util.List + java.util.List getHistogramQueryResultsList(); /** + * + * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ com.google.cloud.contentwarehouse.v1.HistogramQueryResult getHistogramQueryResults(int index); /** + * + * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ int getHistogramQueryResultsCount(); /** + * + * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ - java.util.List + java.util.List getHistogramQueryResultsOrBuilderList(); /** + * + * *
    * The histogram results that match with the specified
    * [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
    * 
* - * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * + * repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6; + * */ - com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index); /** + * + * *
    * Experimental.
    * Question answer from the query against the document.
    * 
* * string question_answer = 7; + * * @return The questionAnswer. */ java.lang.String getQuestionAnswer(); /** + * + * *
    * Experimental.
    * Question answer from the query against the document.
    * 
* * string question_answer = 7; + * * @return The bytes for questionAnswer. */ - com.google.protobuf.ByteString - getQuestionAnswerBytes(); + com.google.protobuf.ByteString getQuestionAnswerBytes(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java similarity index 78% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java index 4923bc30b1c5..addbd757b972 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentService.SetAcl.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SetAclRequest} */ -public final class SetAclRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetAclRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SetAclRequest) SetAclRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetAclRequest.newBuilder() to construct. private SetAclRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetAclRequest() { resource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetAclRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SetAclRequest.class, com.google.cloud.contentwarehouse.v1.SetAclRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.SetAclRequest.class, + com.google.cloud.contentwarehouse.v1.SetAclRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object resource_ = ""; /** + * + * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -57,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resource. */ @java.lang.Override @@ -65,14 +88,15 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -83,16 +107,15 @@ public java.lang.String getResource() {
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -103,6 +126,8 @@ public java.lang.String getResource() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v1.Policy policy_; /** + * + * *
    * Required. REQUIRED: The complete policy to be applied to the `resource`.
    * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -126,6 +151,7 @@ public java.lang.String getResource() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -133,6 +159,8 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Required. REQUIRED: The complete policy to be applied to the `resource`.
    * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -156,6 +184,7 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ @java.lang.Override @@ -163,6 +192,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * Required. REQUIRED: The complete policy to be applied to the `resource`.
    * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -195,12 +226,15 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
   public static final int REQUEST_METADATA_FIELD_NUMBER = 3;
   private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_;
   /**
+   *
+   *
    * 
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -208,19 +242,26 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -229,19 +270,25 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+        : requestMetadata_;
   }
 
   public static final int PROJECT_OWNER_FIELD_NUMBER = 4;
   private boolean projectOwner_ = false;
   /**
+   *
+   *
    * 
    * For Set Project ACL only. Authorization check for end user will be ignored
    * when project_owner=true.
    * 
* * bool project_owner = 4; + * * @return The projectOwner. */ @java.lang.Override @@ -250,6 +297,7 @@ public boolean getProjectOwner() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } @@ -288,16 +335,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } if (requestMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRequestMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata()); } if (projectOwner_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, projectOwner_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, projectOwner_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -307,27 +351,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.contentwarehouse.v1.SetAclRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.SetAclRequest other = (com.google.cloud.contentwarehouse.v1.SetAclRequest) obj; + com.google.cloud.contentwarehouse.v1.SetAclRequest other = + (com.google.cloud.contentwarehouse.v1.SetAclRequest) obj; - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy() - .equals(other.getPolicy())) return false; + if (!getPolicy().equals(other.getPolicy())) return false; } if (hasRequestMetadata() != other.hasRequestMetadata()) return false; if (hasRequestMetadata()) { - if (!getRequestMetadata() - .equals(other.getRequestMetadata())) return false; + if (!getRequestMetadata().equals(other.getRequestMetadata())) return false; } - if (getProjectOwner() - != other.getProjectOwner()) return false; + if (getProjectOwner() != other.getProjectOwner()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,139 +391,142 @@ public int hashCode() { hash = (53 * hash) + getRequestMetadata().hashCode(); } hash = (37 * hash) + PROJECT_OWNER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getProjectOwner()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProjectOwner()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.contentwarehouse.v1.SetAclRequest 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.contentwarehouse.v1.SetAclRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.SetAclRequest 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.contentwarehouse.v1.SetAclRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.SetAclRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SetAclRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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.SetAcl.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SetAclRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SetAclRequest) com.google.cloud.contentwarehouse.v1.SetAclRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SetAclRequest.class, com.google.cloud.contentwarehouse.v1.SetAclRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.SetAclRequest.class, + com.google.cloud.contentwarehouse.v1.SetAclRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.SetAclRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -503,9 +547,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; } @java.lang.Override @@ -524,8 +568,11 @@ public com.google.cloud.contentwarehouse.v1.SetAclRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.SetAclRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.SetAclRequest result = new com.google.cloud.contentwarehouse.v1.SetAclRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.SetAclRequest result = + new com.google.cloud.contentwarehouse.v1.SetAclRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -536,14 +583,11 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SetAclRequest re result.resource_ = resource_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.policy_ = policyBuilder_ == null - ? policy_ - : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.requestMetadata_ = requestMetadataBuilder_ == null - ? requestMetadata_ - : requestMetadataBuilder_.build(); + result.requestMetadata_ = + requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.projectOwner_ = projectOwner_; @@ -554,38 +598,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SetAclRequest 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.contentwarehouse.v1.SetAclRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.SetAclRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.SetAclRequest) other); } else { super.mergeFrom(other); return this; @@ -593,7 +638,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SetAclRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.SetAclRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.SetAclRequest.getDefaultInstance()) + return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; bitField0_ |= 0x00000001; @@ -634,36 +680,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - projectOwner_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + projectOwner_ = 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) { @@ -673,10 +720,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object resource_ = ""; /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -687,13 +737,13 @@ public Builder mergeFrom(
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -702,6 +752,8 @@ public java.lang.String getResource() { } } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -712,15 +764,14 @@ public java.lang.String getResource() {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -728,6 +779,8 @@ public java.lang.String getResource() { } } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -738,18 +791,22 @@ public java.lang.String getResource() {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resource_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -760,6 +817,7 @@ public Builder setResource(
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearResource() { @@ -769,6 +827,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. REQUIRED: The resource for which the policy is being requested.
      * Format for document:
@@ -779,12 +839,14 @@ public Builder clearResource() {
      * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resource_ = value; bitField0_ |= 0x00000001; @@ -794,8 +856,13 @@ public Builder setResourceBytes( private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + policyBuilder_; /** + * + * *
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -819,12 +886,15 @@ public Builder setResourceBytes(
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -848,6 +918,7 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -858,6 +929,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -896,6 +969,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -920,8 +995,7 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
      *
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setPolicy(
-        com.google.iam.v1.Policy.Builder builderForValue) {
+    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
       } else {
@@ -932,6 +1006,8 @@ public Builder setPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -958,9 +1034,9 @@ public Builder setPolicy(
      */
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          policy_ != null &&
-          policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && policy_ != null
+            && policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
           getPolicyBuilder().mergeFrom(value);
         } else {
           policy_ = value;
@@ -973,6 +1049,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -1008,6 +1086,8 @@ public Builder clearPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -1038,6 +1118,8 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -1066,11 +1148,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ?
-            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. REQUIRED: The complete policy to be applied to the `resource`.
      * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -1096,14 +1179,16 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
+            com.google.iam.v1.Policy,
+            com.google.iam.v1.Policy.Builder,
+            com.google.iam.v1.PolicyOrBuilder>
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
-                getPolicy(),
-                getParentForChildren(),
-                isClean());
+        policyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.iam.v1.Policy,
+                com.google.iam.v1.Policy.Builder,
+                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
         policy_ = null;
       }
       return policyBuilder_;
@@ -1111,36 +1196,49 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
 
     private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_;
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
+        requestMetadataBuilder_;
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1162,6 +1260,8 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1181,6 +1281,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1188,11 +1290,13 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(
+        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          requestMetadata_ != null &&
-          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && requestMetadata_ != null
+            && requestMetadata_
+                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -1205,6 +1309,8 @@ public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.Request
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1223,6 +1329,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1230,12 +1338,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+        getRequestMetadataBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1243,15 +1354,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMe
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+        getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+        return requestMetadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+            : requestMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1260,27 +1375,33 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(),
-                getParentForChildren(),
-                isClean());
+        requestMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RequestMetadata,
+                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(), getParentForChildren(), isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
     }
 
-    private boolean projectOwner_ ;
+    private boolean projectOwner_;
     /**
+     *
+     *
      * 
      * For Set Project ACL only. Authorization check for end user will be ignored
      * when project_owner=true.
      * 
* * bool project_owner = 4; + * * @return The projectOwner. */ @java.lang.Override @@ -1288,12 +1409,15 @@ public boolean getProjectOwner() { return projectOwner_; } /** + * + * *
      * For Set Project ACL only. Authorization check for end user will be ignored
      * when project_owner=true.
      * 
* * bool project_owner = 4; + * * @param value The projectOwner to set. * @return This builder for chaining. */ @@ -1305,12 +1429,15 @@ public Builder setProjectOwner(boolean value) { return this; } /** + * + * *
      * For Set Project ACL only. Authorization check for end user will be ignored
      * when project_owner=true.
      * 
* * bool project_owner = 4; + * * @return This builder for chaining. */ public Builder clearProjectOwner() { @@ -1319,9 +1446,9 @@ public Builder clearProjectOwner() { 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); } @@ -1331,12 +1458,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SetAclRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SetAclRequest) private static final com.google.cloud.contentwarehouse.v1.SetAclRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SetAclRequest(); } @@ -1345,27 +1472,27 @@ public static com.google.cloud.contentwarehouse.v1.SetAclRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetAclRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 SetAclRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1380,6 +1507,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.SetAclRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java similarity index 88% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java index e82d983fea89..02393bbe3270 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclRequestOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface SetAclRequestOrBuilder extends +public interface SetAclRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SetAclRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -18,10 +36,13 @@ public interface SetAclRequestOrBuilder extends
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
    * Required. REQUIRED: The resource for which the policy is being requested.
    * Format for document:
@@ -32,12 +53,14 @@ public interface SetAclRequestOrBuilder extends
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
    * Required. REQUIRED: The complete policy to be applied to the `resource`.
    * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -61,10 +84,13 @@ public interface SetAclRequestOrBuilder extends
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * Required. REQUIRED: The complete policy to be applied to the `resource`.
    * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -88,10 +114,13 @@ public interface SetAclRequestOrBuilder extends
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** + * + * *
    * Required. REQUIRED: The complete policy to be applied to the `resource`.
    * The size of the policy is limited to a few 10s of KB. This refers to an
@@ -119,26 +148,34 @@ public interface SetAclRequestOrBuilder extends
   com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -149,12 +186,15 @@ public interface SetAclRequestOrBuilder extends
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
+   *
+   *
    * 
    * For Set Project ACL only. Authorization check for end user will be ignored
    * when project_owner=true.
    * 
* * bool project_owner = 4; + * * @return The projectOwner. */ boolean getProjectOwner(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java similarity index 70% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java index beb4f7658662..ae5bfc8abe1f 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponse.java @@ -1,55 +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/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Response message for DocumentService.SetAcl.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SetAclResponse} */ -public final class SetAclResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetAclResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SetAclResponse) SetAclResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetAclResponse.newBuilder() to construct. private SetAclResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SetAclResponse() { - } + + private SetAclResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetAclResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SetAclResponse.class, com.google.cloud.contentwarehouse.v1.SetAclResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.SetAclResponse.class, + com.google.cloud.contentwarehouse.v1.SetAclResponse.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.iam.v1.Policy policy_; /** + * + * *
    * The policy will be attached to a resource (e.g. projecct, document).
    * 
* * .google.iam.v1.Policy policy = 1; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -57,11 +78,14 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * The policy will be attached to a resource (e.g. projecct, document).
    * 
* * .google.iam.v1.Policy policy = 1; + * * @return The policy. */ @java.lang.Override @@ -69,6 +93,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * The policy will be attached to a resource (e.g. projecct, document).
    * 
@@ -83,12 +109,15 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { public static final int METADATA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_; /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -96,19 +125,26 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; + * * @return The metadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -118,10 +154,13 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() {
    */
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder() {
-    return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
+    return metadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
+        : metadata_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -133,8 +172,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (policy_ != null) {
       output.writeMessage(1, getPolicy());
     }
@@ -151,12 +189,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getPolicy());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy());
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -166,22 +202,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.contentwarehouse.v1.SetAclResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.SetAclResponse other = (com.google.cloud.contentwarehouse.v1.SetAclResponse) obj;
+    com.google.cloud.contentwarehouse.v1.SetAclResponse other =
+        (com.google.cloud.contentwarehouse.v1.SetAclResponse) obj;
 
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy()
-          .equals(other.getPolicy())) return false;
+      if (!getPolicy().equals(other.getPolicy())) return false;
     }
     if (hasMetadata() != other.hasMetadata()) return false;
     if (hasMetadata()) {
-      if (!getMetadata()
-          .equals(other.getMetadata())) return false;
+      if (!getMetadata().equals(other.getMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -208,131 +243,135 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse 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.contentwarehouse.v1.SetAclResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse 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.contentwarehouse.v1.SetAclResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.SetAclResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SetAclResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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.SetAcl.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.SetAclResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SetAclResponse) com.google.cloud.contentwarehouse.v1.SetAclResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.SetAclResponse.class, com.google.cloud.contentwarehouse.v1.SetAclResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.SetAclResponse.class, + com.google.cloud.contentwarehouse.v1.SetAclResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.SetAclResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; } @java.lang.Override @@ -372,8 +411,11 @@ public com.google.cloud.contentwarehouse.v1.SetAclResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.SetAclResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.SetAclResponse result = new com.google.cloud.contentwarehouse.v1.SetAclResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.SetAclResponse result = + new com.google.cloud.contentwarehouse.v1.SetAclResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,14 +423,10 @@ public com.google.cloud.contentwarehouse.v1.SetAclResponse buildPartial() { private void buildPartial0(com.google.cloud.contentwarehouse.v1.SetAclResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.policy_ = policyBuilder_ == null - ? policy_ - : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.metadata_ = metadataBuilder_ == null - ? metadata_ - : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); } } @@ -396,38 +434,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SetAclResponse 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.contentwarehouse.v1.SetAclResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.SetAclResponse)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.SetAclResponse) other); } else { super.mergeFrom(other); return this; @@ -435,7 +474,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SetAclResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.SetAclResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.SetAclResponse.getDefaultInstance()) + return this; if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } @@ -468,26 +508,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getMetadataFieldBuilder().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(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getMetadataFieldBuilder().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) { @@ -497,28 +536,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + policyBuilder_; /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
* * .google.iam.v1.Policy policy = 1; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
* * .google.iam.v1.Policy policy = 1; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -529,6 +578,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -549,14 +600,15 @@ public Builder setPolicy(com.google.iam.v1.Policy value) { return this; } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
* * .google.iam.v1.Policy policy = 1; */ - public Builder setPolicy( - com.google.iam.v1.Policy.Builder builderForValue) { + public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); } else { @@ -567,6 +619,8 @@ public Builder setPolicy( return this; } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -575,9 +629,9 @@ public Builder setPolicy( */ public Builder mergePolicy(com.google.iam.v1.Policy value) { if (policyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - policy_ != null && - policy_ != com.google.iam.v1.Policy.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && policy_ != null + && policy_ != com.google.iam.v1.Policy.getDefaultInstance()) { getPolicyBuilder().mergeFrom(value); } else { policy_ = value; @@ -590,6 +644,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { return this; } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -607,6 +663,8 @@ public Builder clearPolicy() { return this; } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -619,6 +677,8 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() { return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -629,11 +689,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? - com.google.iam.v1.Policy.getDefaultInstance() : policy_; + return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } } /** + * + * *
      * The policy will be attached to a resource (e.g. projecct, document).
      * 
@@ -641,14 +702,16 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { * .google.iam.v1.Policy policy = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>( - getPolicy(), - getParentForChildren(), - isClean()); + policyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean()); policy_ = null; } return policyBuilder_; @@ -656,36 +719,49 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> metadataBuilder_; + com.google.cloud.contentwarehouse.v1.ResponseMetadata, + com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, + com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> + metadataBuilder_; /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; + * * @return The metadata. */ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -707,6 +783,8 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -726,6 +804,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -735,9 +815,10 @@ public Builder setMetadata(
      */
     public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          metadata_ != null &&
-          metadata_ != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && metadata_ != null
+            && metadata_
+                != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -750,6 +831,8 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -768,6 +851,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -781,6 +866,8 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadata
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -792,11 +879,14 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
+        return metadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
+            : metadata_;
       }
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -805,21 +895,24 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
-                getMetadata(),
-                getParentForChildren(),
-                isClean());
+        metadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.ResponseMetadata,
+                com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
+                getMetadata(), getParentForChildren(), isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -829,12 +922,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SetAclResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SetAclResponse)
   private static final com.google.cloud.contentwarehouse.v1.SetAclResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SetAclResponse();
   }
@@ -843,27 +936,27 @@ public static com.google.cloud.contentwarehouse.v1.SetAclResponse getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SetAclResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 SetAclResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -878,6 +971,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.SetAclResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java
similarity index 72%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java
index 2a8d5b8bf250..cdda54f1db4f 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SetAclResponseOrBuilder.java
@@ -1,31 +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/contentwarehouse/v1/document_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface SetAclResponseOrBuilder extends
+public interface SetAclResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SetAclResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The policy will be attached to a resource (e.g. projecct, document).
    * 
* * .google.iam.v1.Policy policy = 1; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * The policy will be attached to a resource (e.g. projecct, document).
    * 
* * .google.iam.v1.Policy policy = 1; + * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** + * + * *
    * The policy will be attached to a resource (e.g. projecct, document).
    * 
@@ -35,26 +59,34 @@ public interface SetAclResponseOrBuilder extends com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 2; + * * @return The metadata. */ com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java
similarity index 73%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java
index 3d2c3edc6efc..77694f2c6cc2 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSet.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/synonymset.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Represents a list of synonyms for a given context.
  * For example a context "sales" could contain:
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.SynonymSet}
  */
-public final class SynonymSet extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SynonymSet extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SynonymSet)
     SynonymSetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SynonymSet.newBuilder() to construct.
   private SynonymSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SynonymSet() {
     name_ = "";
     context_ = "";
@@ -32,70 +50,84 @@ private SynonymSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SynonymSet();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.SynonymSetProto
+        .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.SynonymSetProto
+        .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.SynonymSet.class, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder.class);
+            com.google.cloud.contentwarehouse.v1.SynonymSet.class,
+            com.google.cloud.contentwarehouse.v1.SynonymSet.Builder.class);
   }
 
-  public interface SynonymOrBuilder extends
+  public interface SynonymOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SynonymSet.Synonym)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; + * * @return A list containing the words. */ - java.util.List - getWordsList(); + java.util.List getWordsList(); /** + * + * *
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; + * * @return The count of words. */ int getWordsCount(); /** + * + * *
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; + * * @param index The index of the element to return. * @return The words at the given index. */ java.lang.String getWords(int index); /** + * + * *
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; + * * @param index The index of the value to return. * @return The bytes of the words at the given index. */ - com.google.protobuf.ByteString - getWordsBytes(int index); + com.google.protobuf.ByteString getWordsBytes(int index); } /** + * + * *
    * Represents a list of words given by the customer
    * All these words are synonyms of each other.
@@ -103,73 +135,83 @@ public interface SynonymOrBuilder extends
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.SynonymSet.Synonym}
    */
-  public static final class Synonym extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Synonym extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.SynonymSet.Synonym)
       SynonymOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Synonym.newBuilder() to construct.
     private Synonym(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Synonym() {
-      words_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      words_ = 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 Synonym();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetProto
+          .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.SynonymSetProto
+          .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.class, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder.class);
+              com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.class,
+              com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder.class);
     }
 
     public static final int WORDS_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private com.google.protobuf.LazyStringArrayList words_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
     /**
+     *
+     *
      * 
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; + * * @return A list containing the words. */ - public com.google.protobuf.ProtocolStringList - getWordsList() { + public com.google.protobuf.ProtocolStringList getWordsList() { return words_; } /** + * + * *
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; + * * @return The count of words. */ public int getWordsCount() { return words_.size(); } /** + * + * *
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; + * * @param index The index of the element to return. * @return The words at the given index. */ @@ -177,20 +219,23 @@ public java.lang.String getWords(int index) { return words_.get(index); } /** + * + * *
      * For example: sale, invoice, bill, order
      * 
* * repeated string words = 1; + * * @param index The index of the value to return. * @return The bytes of the words at the given index. */ - public com.google.protobuf.ByteString - getWordsBytes(int index) { + public com.google.protobuf.ByteString getWordsBytes(int index) { return words_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +247,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < words_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, words_.getRaw(i)); } @@ -232,15 +276,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.contentwarehouse.v1.SynonymSet.Synonym)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym other = (com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym) obj; + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym other = + (com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym) obj; - if (!getWordsList() - .equals(other.getWordsList())) return false; + if (!getWordsList().equals(other.getWordsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -262,89 +306,94 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym 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.contentwarehouse.v1.SynonymSet.Synonym parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym 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.contentwarehouse.v1.SynonymSet.Synonym parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -354,6 +403,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Represents a list of words given by the customer
      * All these words are synonyms of each other.
@@ -361,46 +412,45 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.contentwarehouse.v1.SynonymSet.Synonym}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SynonymSet.Synonym)
         com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.contentwarehouse.v1.SynonymSetProto
+            .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_fieldAccessorTable
+        return com.google.cloud.contentwarehouse.v1.SynonymSetProto
+            .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.class, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder.class);
+                com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.class,
+                com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder.class);
       }
 
       // Construct using com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
         bitField0_ = 0;
-        words_ =
-            com.google.protobuf.LazyStringArrayList.emptyList();
+        words_ = com.google.protobuf.LazyStringArrayList.emptyList();
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.contentwarehouse.v1.SynonymSetProto
+            .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor;
       }
 
       @java.lang.Override
@@ -419,8 +469,11 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym build() {
 
       @java.lang.Override
       public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym buildPartial() {
-        com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym result = new com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym result =
+            new com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -437,38 +490,41 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SynonymSet.Synon
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.SynonymSet.Synonym) {
-          return mergeFrom((com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym)other);
+          return mergeFrom((com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -476,7 +532,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym other) {
-        if (other == com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.getDefaultInstance()) return this;
+        if (other == com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.getDefaultInstance())
+          return this;
         if (!other.words_.isEmpty()) {
           if (words_.isEmpty()) {
             words_ = other.words_;
@@ -513,18 +570,20 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureWordsIsMutable();
-                words_.add(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();
+                  ensureWordsIsMutable();
+                  words_.add(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) {
@@ -534,10 +593,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private com.google.protobuf.LazyStringArrayList words_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
+
       private void ensureWordsIsMutable() {
         if (!words_.isModifiable()) {
           words_ = new com.google.protobuf.LazyStringArrayList(words_);
@@ -545,35 +606,43 @@ private void ensureWordsIsMutable() {
         bitField0_ |= 0x00000001;
       }
       /**
+       *
+       *
        * 
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; + * * @return A list containing the words. */ - public com.google.protobuf.ProtocolStringList - getWordsList() { + public com.google.protobuf.ProtocolStringList getWordsList() { words_.makeImmutable(); return words_; } /** + * + * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; + * * @return The count of words. */ public int getWordsCount() { return words_.size(); } /** + * + * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; + * * @param index The index of the element to return. * @return The words at the given index. */ @@ -581,31 +650,37 @@ public java.lang.String getWords(int index) { return words_.get(index); } /** + * + * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; + * * @param index The index of the value to return. * @return The bytes of the words at the given index. */ - public com.google.protobuf.ByteString - getWordsBytes(int index) { + public com.google.protobuf.ByteString getWordsBytes(int index) { return words_.getByteString(index); } /** + * + * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; + * * @param index The index to set the value at. * @param value The words to set. * @return This builder for chaining. */ - public Builder setWords( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWords(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureWordsIsMutable(); words_.set(index, value); bitField0_ |= 0x00000001; @@ -613,17 +688,21 @@ public Builder setWords( return this; } /** + * + * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; + * * @param value The words to add. * @return This builder for chaining. */ - public Builder addWords( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addWords(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureWordsIsMutable(); words_.add(value); bitField0_ |= 0x00000001; @@ -631,50 +710,58 @@ public Builder addWords( return this; } /** + * + * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; + * * @param values The words to add. * @return This builder for chaining. */ - public Builder addAllWords( - java.lang.Iterable values) { + public Builder addAllWords(java.lang.Iterable values) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; + * * @return This builder for chaining. */ public Builder clearWords() { - words_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + words_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
        * For example: sale, invoice, bill, order
        * 
* * repeated string words = 1; + * * @param value The bytes of the words to add. * @return This builder for chaining. */ - public Builder addWordsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addWordsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureWordsIsMutable(); words_.add(value); @@ -682,6 +769,7 @@ public Builder addWordsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -694,12 +782,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SynonymSet.Synonym) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SynonymSet.Synonym) private static final com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym(); } @@ -708,27 +796,28 @@ public static com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Synonym parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Synonym parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -743,13 +832,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the SynonymSet
    * This is mandatory for google.api.resource.
@@ -758,6 +849,7 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getDefaultInstanc
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -766,14 +858,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the SynonymSet
    * This is mandatory for google.api.resource.
@@ -782,16 +875,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -800,9 +892,12 @@ public java.lang.String getName() { } public static final int CONTEXT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object context_ = ""; /** + * + * *
    * This is a freeform field. Example contexts can be "sales," "engineering,"
    * "real estate," "accounting," etc.
@@ -810,6 +905,7 @@ public java.lang.String getName() {
    * 
* * string context = 2; + * * @return The context. */ @java.lang.Override @@ -818,14 +914,15 @@ public java.lang.String getContext() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; } } /** + * + * *
    * This is a freeform field. Example contexts can be "sales," "engineering,"
    * "real estate," "accounting," etc.
@@ -833,16 +930,15 @@ public java.lang.String getContext() {
    * 
* * string context = 2; + * * @return The bytes for context. */ @java.lang.Override - public com.google.protobuf.ByteString - getContextBytes() { + public com.google.protobuf.ByteString getContextBytes() { java.lang.Object ref = context_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); context_ = b; return b; } else { @@ -851,9 +947,12 @@ public java.lang.String getContext() { } public static final int SYNONYMS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List synonyms_; /** + * + * *
    * List of Synonyms for the context.
    * 
@@ -865,6 +964,8 @@ public java.util.List g return synonyms_; } /** + * + * *
    * List of Synonyms for the context.
    * 
@@ -872,11 +973,13 @@ public java.util.List g * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ @java.lang.Override - public java.util.List + public java.util.List getSynonymsOrBuilderList() { return synonyms_; } /** + * + * *
    * List of Synonyms for the context.
    * 
@@ -888,6 +991,8 @@ public int getSynonymsCount() { return synonyms_.size(); } /** + * + * *
    * List of Synonyms for the context.
    * 
@@ -899,6 +1004,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getSynonyms(int i return synonyms_.get(index); } /** + * + * *
    * List of Synonyms for the context.
    * 
@@ -912,6 +1019,7 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynon } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -923,8 +1031,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -950,8 +1057,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, context_); } for (int i = 0; i < synonyms_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, synonyms_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, synonyms_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -961,19 +1067,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.contentwarehouse.v1.SynonymSet)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.SynonymSet other = (com.google.cloud.contentwarehouse.v1.SynonymSet) obj; + com.google.cloud.contentwarehouse.v1.SynonymSet other = + (com.google.cloud.contentwarehouse.v1.SynonymSet) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getContext() - .equals(other.getContext())) return false; - if (!getSynonymsList() - .equals(other.getSynonymsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getContext().equals(other.getContext())) return false; + if (!getSynonymsList().equals(other.getSynonymsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -998,99 +1102,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet 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.contentwarehouse.v1.SynonymSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.SynonymSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.SynonymSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.SynonymSet 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.contentwarehouse.v1.SynonymSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.SynonymSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.SynonymSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a list of synonyms for a given context.
    * For example a context "sales" could contain:
@@ -1102,33 +1211,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.SynonymSet}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.SynonymSet)
       com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetProto
+          .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.SynonymSetProto
+          .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.SynonymSet.class, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder.class);
+              com.google.cloud.contentwarehouse.v1.SynonymSet.class,
+              com.google.cloud.contentwarehouse.v1.SynonymSet.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.SynonymSet.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1146,9 +1254,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetProto.internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetProto
+          .internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor;
     }
 
     @java.lang.Override
@@ -1167,14 +1275,18 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.SynonymSet buildPartial() {
-      com.google.cloud.contentwarehouse.v1.SynonymSet result = new com.google.cloud.contentwarehouse.v1.SynonymSet(this);
+      com.google.cloud.contentwarehouse.v1.SynonymSet result =
+          new com.google.cloud.contentwarehouse.v1.SynonymSet(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.SynonymSet result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.contentwarehouse.v1.SynonymSet result) {
       if (synonymsBuilder_ == null) {
         if (((bitField0_ & 0x00000004) != 0)) {
           synonyms_ = java.util.Collections.unmodifiableList(synonyms_);
@@ -1200,38 +1312,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.SynonymSet 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.contentwarehouse.v1.SynonymSet) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.SynonymSet)other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.SynonymSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1239,7 +1352,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SynonymSet other) {
-      if (other == com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()) return this;
+      if (other == com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1268,9 +1382,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.SynonymSet other)
             synonymsBuilder_ = null;
             synonyms_ = other.synonyms_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            synonymsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSynonymsFieldBuilder() : null;
+            synonymsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSynonymsFieldBuilder()
+                    : null;
           } else {
             synonymsBuilder_.addAllMessages(other.synonyms_);
           }
@@ -1302,35 +1417,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              context_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym m =
-                  input.readMessage(
-                      com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.parser(),
-                      extensionRegistry);
-              if (synonymsBuilder_ == null) {
-                ensureSynonymsIsMutable();
-                synonyms_.add(m);
-              } else {
-                synonymsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            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:
+              {
+                context_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym m =
+                    input.readMessage(
+                        com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.parser(),
+                        extensionRegistry);
+                if (synonymsBuilder_ == null) {
+                  ensureSynonymsIsMutable();
+                  synonyms_.add(m);
+                } else {
+                  synonymsBuilder_.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) {
@@ -1340,10 +1459,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1352,13 +1474,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1367,6 +1489,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1375,15 +1499,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1391,6 +1514,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1399,18 +1524,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1419,6 +1548,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1428,6 +1558,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the SynonymSet
      * This is mandatory for google.api.resource.
@@ -1436,12 +1568,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1451,6 +1585,8 @@ public Builder setNameBytes( private java.lang.Object context_ = ""; /** + * + * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1458,13 +1594,13 @@ public Builder setNameBytes(
      * 
* * string context = 2; + * * @return The context. */ public java.lang.String getContext() { java.lang.Object ref = context_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; @@ -1473,6 +1609,8 @@ public java.lang.String getContext() { } } /** + * + * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1480,15 +1618,14 @@ public java.lang.String getContext() {
      * 
* * string context = 2; + * * @return The bytes for context. */ - public com.google.protobuf.ByteString - getContextBytes() { + public com.google.protobuf.ByteString getContextBytes() { java.lang.Object ref = context_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); context_ = b; return b; } else { @@ -1496,6 +1633,8 @@ public java.lang.String getContext() { } } /** + * + * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1503,18 +1642,22 @@ public java.lang.String getContext() {
      * 
* * string context = 2; + * * @param value The context to set. * @return This builder for chaining. */ - public Builder setContext( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } context_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1522,6 +1665,7 @@ public Builder setContext(
      * 
* * string context = 2; + * * @return This builder for chaining. */ public Builder clearContext() { @@ -1531,6 +1675,8 @@ public Builder clearContext() { return this; } /** + * + * *
      * This is a freeform field. Example contexts can be "sales," "engineering,"
      * "real estate," "accounting," etc.
@@ -1538,12 +1684,14 @@ public Builder clearContext() {
      * 
* * string context = 2; + * * @param value The bytes for context to set. * @return This builder for chaining. */ - public Builder setContextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); context_ = value; bitField0_ |= 0x00000002; @@ -1552,25 +1700,34 @@ public Builder setContextBytes( } private java.util.List synonyms_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSynonymsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - synonyms_ = new java.util.ArrayList(synonyms_); + synonyms_ = + new java.util.ArrayList( + synonyms_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder, com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder> synonymsBuilder_; + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym, + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder, + com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder> + synonymsBuilder_; /** + * + * *
      * List of Synonyms for the context.
      * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ - public java.util.List getSynonymsList() { + public java.util.List + getSynonymsList() { if (synonymsBuilder_ == null) { return java.util.Collections.unmodifiableList(synonyms_); } else { @@ -1578,6 +1735,8 @@ public java.util.List g } } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1592,6 +1751,8 @@ public int getSynonymsCount() { } } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1606,6 +1767,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getSynonyms(int i } } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1627,6 +1790,8 @@ public Builder setSynonyms( return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1634,7 +1799,8 @@ public Builder setSynonyms( * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ public Builder setSynonyms( - int index, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder builderForValue) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.set(index, builderForValue.build()); @@ -1645,6 +1811,8 @@ public Builder setSynonyms( return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1665,6 +1833,8 @@ public Builder addSynonyms(com.google.cloud.contentwarehouse.v1.SynonymSet.Synon return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1686,6 +1856,8 @@ public Builder addSynonyms( return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1704,6 +1876,8 @@ public Builder addSynonyms( return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1711,7 +1885,8 @@ public Builder addSynonyms( * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ public Builder addSynonyms( - int index, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder builderForValue) { + int index, + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder builderForValue) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.add(index, builderForValue.build()); @@ -1722,6 +1897,8 @@ public Builder addSynonyms( return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1729,11 +1906,11 @@ public Builder addSynonyms( * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ public Builder addAllSynonyms( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, synonyms_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, synonyms_); onChanged(); } else { synonymsBuilder_.addAllMessages(values); @@ -1741,6 +1918,8 @@ public Builder addAllSynonyms( return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1758,6 +1937,8 @@ public Builder clearSynonyms() { return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1775,6 +1956,8 @@ public Builder removeSynonyms(int index) { return this; } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1786,6 +1969,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder getSynony return getSynonymsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1795,19 +1980,23 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder getSynony public com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynonymsOrBuilder( int index) { if (synonymsBuilder_ == null) { - return synonyms_.get(index); } else { + return synonyms_.get(index); + } else { return synonymsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of Synonyms for the context.
      * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ - public java.util.List - getSynonymsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder> + getSynonymsOrBuilderList() { if (synonymsBuilder_ != null) { return synonymsBuilder_.getMessageOrBuilderList(); } else { @@ -1815,6 +2004,8 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynon } } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1822,10 +2013,12 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynon * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder addSynonymsBuilder() { - return getSynonymsFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.getDefaultInstance()); + return getSynonymsFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.getDefaultInstance()); } /** + * + * *
      * List of Synonyms for the context.
      * 
@@ -1834,37 +2027,43 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder addSynony */ public com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder addSynonymsBuilder( int index) { - return getSynonymsFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.getDefaultInstance()); + return getSynonymsFieldBuilder() + .addBuilder( + index, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.getDefaultInstance()); } /** + * + * *
      * List of Synonyms for the context.
      * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ - public java.util.List - getSynonymsBuilderList() { + public java.util.List + getSynonymsBuilderList() { return getSynonymsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder, com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder> + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym, + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder, + com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder> getSynonymsFieldBuilder() { if (synonymsBuilder_ == null) { - synonymsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym, com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder, com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder>( - synonyms_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + synonymsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym, + com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym.Builder, + com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder>( + synonyms_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); synonyms_ = null; } return synonymsBuilder_; } + @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); } @@ -1874,12 +2073,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.SynonymSet) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.SynonymSet) private static final com.google.cloud.contentwarehouse.v1.SynonymSet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.SynonymSet(); } @@ -1888,27 +2087,27 @@ public static com.google.cloud.contentwarehouse.v1.SynonymSet getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynonymSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 SynonymSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1923,6 +2122,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.SynonymSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java similarity index 74% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java index 0a85f954ece9..f7aff5c35eea 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/synonymset.proto package com.google.cloud.contentwarehouse.v1; -public interface SynonymSetOrBuilder extends +public interface SynonymSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.SynonymSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the SynonymSet
    * This is mandatory for google.api.resource.
@@ -16,10 +34,13 @@ public interface SynonymSetOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the SynonymSet
    * This is mandatory for google.api.resource.
@@ -28,12 +49,14 @@ public interface SynonymSetOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * This is a freeform field. Example contexts can be "sales," "engineering,"
    * "real estate," "accounting," etc.
@@ -41,10 +64,13 @@ public interface SynonymSetOrBuilder extends
    * 
* * string context = 2; + * * @return The context. */ java.lang.String getContext(); /** + * + * *
    * This is a freeform field. Example contexts can be "sales," "engineering,"
    * "real estate," "accounting," etc.
@@ -52,21 +78,24 @@ public interface SynonymSetOrBuilder extends
    * 
* * string context = 2; + * * @return The bytes for context. */ - com.google.protobuf.ByteString - getContextBytes(); + com.google.protobuf.ByteString getContextBytes(); /** + * + * *
    * List of Synonyms for the context.
    * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ - java.util.List - getSynonymsList(); + java.util.List getSynonymsList(); /** + * + * *
    * List of Synonyms for the context.
    * 
@@ -75,6 +104,8 @@ public interface SynonymSetOrBuilder extends */ com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym getSynonyms(int index); /** + * + * *
    * List of Synonyms for the context.
    * 
@@ -83,21 +114,24 @@ public interface SynonymSetOrBuilder extends */ int getSynonymsCount(); /** + * + * *
    * List of Synonyms for the context.
    * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ - java.util.List + java.util.List getSynonymsOrBuilderList(); /** + * + * *
    * List of Synonyms for the context.
    * 
* * repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3; */ - com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynonymsOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder getSynonymsOrBuilder(int index); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java new file mode 100644 index 000000000000..ace10d124972 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class SynonymSetProto { + private SynonymSetProto() {} + + 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_contentwarehouse_v1_SynonymSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_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/contentwarehouse/v1/synon" + + "ymset.proto\022 google.cloud.contentwarehou" + + "se.v1\032\031google/api/resource.proto\"\375\001\n\nSyn" + + "onymSet\022\014\n\004name\030\001 \001(\t\022\017\n\007context\030\002 \001(\t\022F" + + "\n\010synonyms\030\003 \003(\01324.google.cloud.contentw" + + "arehouse.v1.SynonymSet.Synonym\032\030\n\007Synony" + + "m\022\r\n\005words\030\001 \003(\t:n\352Ak\n*contentwarehouse." + + "googleapis.com/SynonymSet\022=projects/{pro" + + "ject}/locations/{location}/synonymSets/{" + + "context}B\367\001\n$com.google.cloud.contentwar" + + "ehouse.v1B\017SynonymSetProtoP\001ZPcloud.goog" + + "le.com/go/contentwarehouse/apiv1/content" + + "warehousepb;contentwarehousepb\252\002 Google." + + "Cloud.ContentWarehouse.V1\312\002 Google\\Cloud" + + "\\ContentWarehouse\\V1\352\002#Google::Cloud::Co" + + "ntentWarehouse::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor, + new java.lang.String[] { + "Name", "Context", "Synonyms", + }); + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor = + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor, + new java.lang.String[] { + "Words", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java new file mode 100644 index 000000000000..3e0a06a55aee --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java @@ -0,0 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class SynonymSetServiceProto { + private SynonymSetServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/contentwarehouse/v1/synon" + + "ymset_service.proto\022 google.cloud.conten" + + "twarehouse.v1\032\034google/api/annotations.pr" + + "oto\032\027google/api/client.proto\0321google/clo" + + "ud/contentwarehouse/v1/synonymset.proto\032" + + "Agoogle/cloud/contentwarehouse/v1/synony" + + "mset_service_request.proto\032\033google/proto" + + "buf/empty.proto2\303\010\n\021SynonymSetService\022\326\001" + + "\n\020CreateSynonymSet\0229.google.cloud.conten" + + "twarehouse.v1.CreateSynonymSetRequest\032,." + + "google.cloud.contentwarehouse.v1.Synonym" + + "Set\"Y\332A\022parent,synonym_set\202\323\344\223\002>\"//v1/{p" + + "arent=projects/*/locations/*}/synonymSet" + + "s:\013synonym_set\022\265\001\n\rGetSynonymSet\0226.googl" + + "e.cloud.contentwarehouse.v1.GetSynonymSe" + + "tRequest\032,.google.cloud.contentwarehouse" + + ".v1.SynonymSet\">\332A\004name\202\323\344\223\0021\022//v1/{name" + + "=projects/*/locations/*/synonymSets/*}\022\324" + + "\001\n\020UpdateSynonymSet\0229.google.cloud.conte" + + "ntwarehouse.v1.UpdateSynonymSetRequest\032," + + ".google.cloud.contentwarehouse.v1.Synony" + + "mSet\"W\332A\020name,synonym_set\202\323\344\223\002>2//v1/{na" + + "me=projects/*/locations/*/synonymSets/*}" + + ":\013synonym_set\022\245\001\n\020DeleteSynonymSet\0229.goo" + + "gle.cloud.contentwarehouse.v1.DeleteSyno" + + "nymSetRequest\032\026.google.protobuf.Empty\">\332" + + "A\004name\202\323\344\223\0021*//v1/{name=projects/*/locat" + + "ions/*/synonymSets/*}\022\310\001\n\017ListSynonymSet" + + "s\0228.google.cloud.contentwarehouse.v1.Lis" + + "tSynonymSetsRequest\0329.google.cloud.conte" + + "ntwarehouse.v1.ListSynonymSetsResponse\"@" + + "\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/" + + "locations/*}/synonymSets\032S\312A\037contentware" + + "house.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\376\001\n$com.go" + + "ogle.cloud.contentwarehouse.v1B\026SynonymS" + + "etServiceProtoP\001ZPcloud.google.com/go/co" + + "ntentwarehouse/apiv1/contentwarehousepb;" + + "contentwarehousepb\252\002 Google.Cloud.Conten" + + "tWarehouse.V1\312\002 Google\\Cloud\\ContentWare" + + "house\\V1\352\002#Google::Cloud::ContentWarehou" + + "se::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.cloud.contentwarehouse.v1.SynonymSetProto.getDescriptor(), + com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.SynonymSetProto.getDescriptor(); + com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java new file mode 100644 index 000000000000..aecb14995a00 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java @@ -0,0 +1,164 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public final class SynonymSetServiceRequestProto { + private SynonymSetServiceRequestProto() {} + + 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_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_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/contentwarehouse/v1/synon" + + "ymset_service_request.proto\022 google.clou" + + "d.contentwarehouse.v1\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\0321google/cloud/contentwarehouse/v1/syno" + + "nymset.proto\"\245\001\n\027CreateSynonymSetRequest" + + "\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareho" + + "use.googleapis.com/Location\022G\n\013synonym_s" + + "et\030\002 \001(\0132,.google.cloud.contentwarehouse" + + ".v1.SynonymSetB\004\342A\001\002\"Y\n\024GetSynonymSetReq" + + "uest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*contentware" + + "house.googleapis.com/SynonymSet\"\202\001\n\026List" + + "SynonymSetsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002" + + "\372A*\n(contentwarehouse.googleapis.com/Loc" + + "ation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\"v\n\027ListSynonymSetsResponse\022B\n\014synon" + + "ym_sets\030\001 \003(\0132,.google.cloud.contentware" + + "house.v1.SynonymSet\022\027\n\017next_page_token\030\002" + + " \001(\t\"\245\001\n\027UpdateSynonymSetRequest\022A\n\004name" + + "\030\001 \001(\tB3\342A\001\002\372A,\n*contentwarehouse.google" + + "apis.com/SynonymSet\022G\n\013synonym_set\030\002 \001(\013" + + "2,.google.cloud.contentwarehouse.v1.Syno" + + "nymSetB\004\342A\001\002\"\\\n\027DeleteSynonymSetRequest\022" + + "A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*contentwarehouse" + + ".googleapis.com/SynonymSetB\205\002\n$com.googl" + + "e.cloud.contentwarehouse.v1B\035SynonymSetS" + + "erviceRequestProtoP\001ZPcloud.google.com/g" + + "o/contentwarehouse/apiv1/contentwarehous" + + "epb;contentwarehousepb\252\002 Google.Cloud.Co" + + "ntentWarehouse.V1\312\002 Google\\Cloud\\Content" + + "Warehouse\\V1\352\002#Google::Cloud::ContentWar" + + "ehouse::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.contentwarehouse.v1.SynonymSetProto.getDescriptor(), + }); + internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor, + new java.lang.String[] { + "Parent", "SynonymSet", + }); + internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor, + new java.lang.String[] { + "SynonymSets", "NextPageToken", + }); + internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor, + new java.lang.String[] { + "Name", "SynonymSet", + }); + internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + 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.contentwarehouse.v1.SynonymSetProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java similarity index 66% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java index ed53dae75554..ceae76c8b018 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArray.java @@ -1,82 +1,109 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * String/text values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TextArray} */ -public final class TextArray extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextArray extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.TextArray) TextArrayOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextArray.newBuilder() to construct. private TextArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextArray() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + values_ = 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 TextArray(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TextArray.class, com.google.cloud.contentwarehouse.v1.TextArray.Builder.class); + com.google.cloud.contentwarehouse.v1.TextArray.class, + com.google.cloud.contentwarehouse.v1.TextArray.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * List of text values.
    * 
* * repeated string values = 1; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** + * + * *
    * List of text values.
    * 
* * repeated string values = 1; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
    * List of text values.
    * 
* * repeated string values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -84,20 +111,23 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** + * + * *
    * List of text values.
    * 
* * repeated string values = 1; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +139,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } @@ -139,15 +168,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.contentwarehouse.v1.TextArray)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.TextArray other = (com.google.cloud.contentwarehouse.v1.TextArray) obj; + com.google.cloud.contentwarehouse.v1.TextArray other = + (com.google.cloud.contentwarehouse.v1.TextArray) obj; - if (!getValuesList() - .equals(other.getValuesList())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -168,145 +197,148 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TextArray 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.contentwarehouse.v1.TextArray parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TextArray parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TextArray parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.TextArray 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.contentwarehouse.v1.TextArray parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.TextArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.TextArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * String/text values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TextArray} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.TextArray) com.google.cloud.contentwarehouse.v1.TextArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TextArray.class, com.google.cloud.contentwarehouse.v1.TextArray.Builder.class); + com.google.cloud.contentwarehouse.v1.TextArray.class, + com.google.cloud.contentwarehouse.v1.TextArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.TextArray.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor; } @java.lang.Override @@ -325,8 +357,11 @@ public com.google.cloud.contentwarehouse.v1.TextArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TextArray buildPartial() { - com.google.cloud.contentwarehouse.v1.TextArray result = new com.google.cloud.contentwarehouse.v1.TextArray(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.TextArray result = + new com.google.cloud.contentwarehouse.v1.TextArray(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -343,38 +378,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.TextArray 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.contentwarehouse.v1.TextArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.TextArray)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.TextArray) other); } else { super.mergeFrom(other); return this; @@ -419,18 +455,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(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(); + ensureValuesIsMutable(); + values_.add(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) { @@ -440,10 +478,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValuesIsMutable() { if (!values_.isModifiable()) { values_ = new com.google.protobuf.LazyStringArrayList(values_); @@ -451,35 +491,43 @@ private void ensureValuesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * List of text values.
      * 
* * repeated string values = 1; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { values_.makeImmutable(); return values_; } /** + * + * *
      * List of text values.
      * 
* * repeated string values = 1; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
      * List of text values.
      * 
* * repeated string values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -487,31 +535,37 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** + * + * *
      * List of text values.
      * 
* * repeated string values = 1; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** + * + * *
      * List of text values.
      * 
* * repeated string 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, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureValuesIsMutable(); values_.set(index, value); bitField0_ |= 0x00000001; @@ -519,17 +573,21 @@ public Builder setValues( return this; } /** + * + * *
      * List of text values.
      * 
* * repeated string values = 1; + * * @param value The values to add. * @return This builder for chaining. */ - public Builder addValues( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureValuesIsMutable(); values_.add(value); bitField0_ |= 0x00000001; @@ -537,50 +595,58 @@ public Builder addValues( return this; } /** + * + * *
      * List of text values.
      * 
* * repeated string 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * List of text values.
      * 
* * repeated string values = 1; + * * @return This builder for chaining. */ public Builder clearValues() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * List of text values.
      * 
* * repeated string values = 1; + * * @param value The bytes of the values to add. * @return This builder for chaining. */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); @@ -588,9 +654,9 @@ public Builder addValuesBytes( 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,12 +666,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.TextArray) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.TextArray) private static final com.google.cloud.contentwarehouse.v1.TextArray DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.TextArray(); } @@ -614,27 +680,27 @@ public static com.google.cloud.contentwarehouse.v1.TextArray getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 TextArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,6 +715,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.TextArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java similarity index 57% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java index dc86975de9b1..d7d8820a2b8d 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextArrayOrBuilder.java @@ -1,50 +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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface TextArrayOrBuilder extends +public interface TextArrayOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TextArray) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of text values.
    * 
* * repeated string values = 1; + * * @return A list containing the values. */ - java.util.List - getValuesList(); + java.util.List getValuesList(); /** + * + * *
    * List of text values.
    * 
* * repeated string values = 1; + * * @return The count of values. */ int getValuesCount(); /** + * + * *
    * List of text values.
    * 
* * repeated string values = 1; + * * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** + * + * *
    * List of text values.
    * 
* * repeated string values = 1; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - com.google.protobuf.ByteString - getValuesBytes(int index); + com.google.protobuf.ByteString getValuesBytes(int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java similarity index 64% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java index ac9a91a45040..8282d3eb19d7 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptions.java @@ -1,48 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Configurations for a text property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TextTypeOptions} */ -public final class TextTypeOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextTypeOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.TextTypeOptions) TextTypeOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextTypeOptions.newBuilder() to construct. private TextTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextTypeOptions() { - } + + private TextTypeOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TextTypeOptions.class, com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.TextTypeOptions.class, + com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -73,12 +91,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.TextTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.TextTypeOptions other = (com.google.cloud.contentwarehouse.v1.TextTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.TextTypeOptions other = + (com.google.cloud.contentwarehouse.v1.TextTypeOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.TextTypeOptions 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.contentwarehouse.v1.TextTypeOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.TextTypeOptions 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.contentwarehouse.v1.TextTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.TextTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.TextTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Configurations for a text property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TextTypeOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.TextTypeOptions) com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TextTypeOptions.class, com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.TextTypeOptions.class, + com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.TextTypeOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -229,9 +252,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; } @java.lang.Override @@ -250,7 +273,8 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TextTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.TextTypeOptions result = new com.google.cloud.contentwarehouse.v1.TextTypeOptions(this); + com.google.cloud.contentwarehouse.v1.TextTypeOptions result = + new com.google.cloud.contentwarehouse.v1.TextTypeOptions(this); onBuilt(); return result; } @@ -259,38 +283,39 @@ public com.google.cloud.contentwarehouse.v1.TextTypeOptions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.TextTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.TextTypeOptions)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.TextTypeOptions) other); } else { super.mergeFrom(other); return this; @@ -298,7 +323,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.TextTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -325,12 +351,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -340,9 +367,9 @@ public Builder mergeFrom( } // finally 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); } @@ -352,12 +379,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.TextTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.TextTypeOptions) private static final com.google.cloud.contentwarehouse.v1.TextTypeOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.TextTypeOptions(); } @@ -366,27 +393,27 @@ public static com.google.cloud.contentwarehouse.v1.TextTypeOptions getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 TextTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -401,6 +428,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.TextTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..2261e7ff0df0 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java @@ -0,0 +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/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface TextTypeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TextTypeOptions) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java similarity index 67% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java index 7762af14cad5..106a3b14fc63 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilter.java @@ -1,58 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Filter on create timestamp or update timestamp of documents.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimeFilter} */ -public final class TimeFilter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TimeFilter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.TimeFilter) TimeFilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TimeFilter.newBuilder() to construct. private TimeFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TimeFilter() { timeField_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimeFilter(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimeFilter.class, com.google.cloud.contentwarehouse.v1.TimeFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.TimeFilter.class, + com.google.cloud.contentwarehouse.v1.TimeFilter.Builder.class); } /** + * + * *
    * Time field used in TimeFilter.
    * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.TimeFilter.TimeField} */ - public enum TimeField - implements com.google.protobuf.ProtocolMessageEnum { + public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value.
      * 
@@ -61,6 +83,8 @@ public enum TimeField */ TIME_FIELD_UNSPECIFIED(0), /** + * + * *
      * Earliest document create time.
      * 
@@ -69,6 +93,8 @@ public enum TimeField */ CREATE_TIME(1), /** + * + * *
      * Latest document update time.
      * 
@@ -77,6 +103,8 @@ public enum TimeField */ UPDATE_TIME(2), /** + * + * *
      * Time when document becomes mutable again.
      * 
@@ -88,6 +116,8 @@ public enum TimeField ; /** + * + * *
      * Default value.
      * 
@@ -96,6 +126,8 @@ public enum TimeField */ public static final int TIME_FIELD_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Earliest document create time.
      * 
@@ -104,6 +136,8 @@ public enum TimeField */ public static final int CREATE_TIME_VALUE = 1; /** + * + * *
      * Latest document update time.
      * 
@@ -112,6 +146,8 @@ public enum TimeField */ public static final int UPDATE_TIME_VALUE = 2; /** + * + * *
      * Time when document becomes mutable again.
      * 
@@ -120,7 +156,6 @@ public enum TimeField */ public static final int DISPOSITION_TIME_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -145,50 +180,51 @@ public static TimeField valueOf(int value) { */ public static TimeField forNumber(int value) { switch (value) { - case 0: return TIME_FIELD_UNSPECIFIED; - case 1: return CREATE_TIME; - case 2: return UPDATE_TIME; - case 3: return DISPOSITION_TIME; - default: return null; + case 0: + return TIME_FIELD_UNSPECIFIED; + case 1: + return CREATE_TIME; + case 2: + return UPDATE_TIME; + case 3: + return DISPOSITION_TIME; + 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< - TimeField> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TimeField findValueByNumber(int number) { - return TimeField.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TimeField findValueByNumber(int number) { + return TimeField.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.contentwarehouse.v1.TimeFilter.getDescriptor().getEnumTypes().get(0); } private static final TimeField[] VALUES = values(); - public static TimeField valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TimeField 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; @@ -209,6 +245,7 @@ private TimeField(int value) { private com.google.type.Interval timeRange_; /** * .google.type.Interval time_range = 1; + * * @return Whether the timeRange field is set. */ @java.lang.Override @@ -217,15 +254,14 @@ public boolean hasTimeRange() { } /** * .google.type.Interval time_range = 1; + * * @return The timeRange. */ @java.lang.Override public com.google.type.Interval getTimeRange() { return timeRange_ == null ? com.google.type.Interval.getDefaultInstance() : timeRange_; } - /** - * .google.type.Interval time_range = 1; - */ + /** .google.type.Interval time_range = 1; */ @java.lang.Override public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { return timeRange_ == null ? com.google.type.Interval.getDefaultInstance() : timeRange_; @@ -234,6 +270,8 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { public static final int TIME_FIELD_FIELD_NUMBER = 2; private int timeField_ = 0; /** + * + * *
    * Specifies which time field to filter documents on.
    *
@@ -241,12 +279,16 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() {
    * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @return The enum numeric value on the wire for timeField. */ - @java.lang.Override public int getTimeFieldValue() { + @java.lang.Override + public int getTimeFieldValue() { return timeField_; } /** + * + * *
    * Specifies which time field to filter documents on.
    *
@@ -254,14 +296,20 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() {
    * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @return The timeField. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField() { - com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField result = com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.forNumber(timeField_); - return result == null ? com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField() { + com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField result = + com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.forNumber(timeField_); + return result == null + ? com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,12 +321,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 (timeRange_ != null) { output.writeMessage(1, getTimeRange()); } - if (timeField_ != com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED.getNumber()) { + if (timeField_ + != com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED + .getNumber()) { output.writeEnum(2, timeField_); } getUnknownFields().writeTo(output); @@ -291,12 +340,12 @@ public int getSerializedSize() { size = 0; if (timeRange_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTimeRange()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeRange()); } - if (timeField_ != com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, timeField_); + if (timeField_ + != com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, timeField_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -306,17 +355,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.contentwarehouse.v1.TimeFilter)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.TimeFilter other = (com.google.cloud.contentwarehouse.v1.TimeFilter) obj; + com.google.cloud.contentwarehouse.v1.TimeFilter other = + (com.google.cloud.contentwarehouse.v1.TimeFilter) obj; if (hasTimeRange() != other.hasTimeRange()) return false; if (hasTimeRange()) { - if (!getTimeRange() - .equals(other.getTimeRange())) return false; + if (!getTimeRange().equals(other.getTimeRange())) return false; } if (timeField_ != other.timeField_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -341,132 +390,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TimeFilter 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.contentwarehouse.v1.TimeFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimeFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TimeFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.TimeFilter 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.contentwarehouse.v1.TimeFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.TimeFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.TimeFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Filter on create timestamp or update timestamp of documents.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimeFilter} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.TimeFilter) com.google.cloud.contentwarehouse.v1.TimeFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimeFilter.class, com.google.cloud.contentwarehouse.v1.TimeFilter.Builder.class); + com.google.cloud.contentwarehouse.v1.TimeFilter.class, + com.google.cloud.contentwarehouse.v1.TimeFilter.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.TimeFilter.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +534,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; } @java.lang.Override @@ -502,8 +555,11 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimeFilter buildPartial() { - com.google.cloud.contentwarehouse.v1.TimeFilter result = new com.google.cloud.contentwarehouse.v1.TimeFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.TimeFilter result = + new com.google.cloud.contentwarehouse.v1.TimeFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -511,9 +567,7 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter buildPartial() { private void buildPartial0(com.google.cloud.contentwarehouse.v1.TimeFilter result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.timeRange_ = timeRangeBuilder_ == null - ? timeRange_ - : timeRangeBuilder_.build(); + result.timeRange_ = timeRangeBuilder_ == null ? timeRange_ : timeRangeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.timeField_ = timeField_; @@ -524,38 +578,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.TimeFilter 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.contentwarehouse.v1.TimeFilter) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.TimeFilter)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.TimeFilter) other); } else { super.mergeFrom(other); return this; @@ -563,7 +618,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.TimeFilter other) { - if (other == com.google.cloud.contentwarehouse.v1.TimeFilter.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.TimeFilter.getDefaultInstance()) + return this; if (other.hasTimeRange()) { mergeTimeRange(other.getTimeRange()); } @@ -596,24 +652,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTimeRangeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - timeField_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getTimeRangeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + timeField_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,13 +680,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.type.Interval timeRange_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> timeRangeBuilder_; + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + timeRangeBuilder_; /** * .google.type.Interval time_range = 1; + * * @return Whether the timeRange field is set. */ public boolean hasTimeRange() { @@ -637,6 +699,7 @@ public boolean hasTimeRange() { } /** * .google.type.Interval time_range = 1; + * * @return The timeRange. */ public com.google.type.Interval getTimeRange() { @@ -646,9 +709,7 @@ public com.google.type.Interval getTimeRange() { return timeRangeBuilder_.getMessage(); } } - /** - * .google.type.Interval time_range = 1; - */ + /** .google.type.Interval time_range = 1; */ public Builder setTimeRange(com.google.type.Interval value) { if (timeRangeBuilder_ == null) { if (value == null) { @@ -662,11 +723,8 @@ public Builder setTimeRange(com.google.type.Interval value) { onChanged(); return this; } - /** - * .google.type.Interval time_range = 1; - */ - public Builder setTimeRange( - com.google.type.Interval.Builder builderForValue) { + /** .google.type.Interval time_range = 1; */ + public Builder setTimeRange(com.google.type.Interval.Builder builderForValue) { if (timeRangeBuilder_ == null) { timeRange_ = builderForValue.build(); } else { @@ -676,14 +734,12 @@ public Builder setTimeRange( onChanged(); return this; } - /** - * .google.type.Interval time_range = 1; - */ + /** .google.type.Interval time_range = 1; */ public Builder mergeTimeRange(com.google.type.Interval value) { if (timeRangeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - timeRange_ != null && - timeRange_ != com.google.type.Interval.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && timeRange_ != null + && timeRange_ != com.google.type.Interval.getDefaultInstance()) { getTimeRangeBuilder().mergeFrom(value); } else { timeRange_ = value; @@ -695,9 +751,7 @@ public Builder mergeTimeRange(com.google.type.Interval value) { onChanged(); return this; } - /** - * .google.type.Interval time_range = 1; - */ + /** .google.type.Interval time_range = 1; */ public Builder clearTimeRange() { bitField0_ = (bitField0_ & ~0x00000001); timeRange_ = null; @@ -708,37 +762,33 @@ public Builder clearTimeRange() { onChanged(); return this; } - /** - * .google.type.Interval time_range = 1; - */ + /** .google.type.Interval time_range = 1; */ public com.google.type.Interval.Builder getTimeRangeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimeRangeFieldBuilder().getBuilder(); } - /** - * .google.type.Interval time_range = 1; - */ + /** .google.type.Interval time_range = 1; */ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { if (timeRangeBuilder_ != null) { return timeRangeBuilder_.getMessageOrBuilder(); } else { - return timeRange_ == null ? - com.google.type.Interval.getDefaultInstance() : timeRange_; + return timeRange_ == null ? com.google.type.Interval.getDefaultInstance() : timeRange_; } } - /** - * .google.type.Interval time_range = 1; - */ + /** .google.type.Interval time_range = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> getTimeRangeFieldBuilder() { if (timeRangeBuilder_ == null) { - timeRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder>( - getTimeRange(), - getParentForChildren(), - isClean()); + timeRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + getTimeRange(), getParentForChildren(), isClean()); timeRange_ = null; } return timeRangeBuilder_; @@ -746,6 +796,8 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { private int timeField_ = 0; /** + * + * *
      * Specifies which time field to filter documents on.
      *
@@ -753,12 +805,16 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() {
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @return The enum numeric value on the wire for timeField. */ - @java.lang.Override public int getTimeFieldValue() { + @java.lang.Override + public int getTimeFieldValue() { return timeField_; } /** + * + * *
      * Specifies which time field to filter documents on.
      *
@@ -766,6 +822,7 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() {
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @param value The enum numeric value on the wire for timeField to set. * @return This builder for chaining. */ @@ -776,6 +833,8 @@ public Builder setTimeFieldValue(int value) { return this; } /** + * + * *
      * Specifies which time field to filter documents on.
      *
@@ -783,14 +842,20 @@ public Builder setTimeFieldValue(int value) {
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @return The timeField. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField() { - com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField result = com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.forNumber(timeField_); - return result == null ? com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.UNRECOGNIZED : result; + com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField result = + com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.forNumber(timeField_); + return result == null + ? com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField.UNRECOGNIZED + : result; } /** + * + * *
      * Specifies which time field to filter documents on.
      *
@@ -798,6 +863,7 @@ public com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField()
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @param value The timeField to set. * @return This builder for chaining. */ @@ -811,6 +877,8 @@ public Builder setTimeField(com.google.cloud.contentwarehouse.v1.TimeFilter.Time return this; } /** + * + * *
      * Specifies which time field to filter documents on.
      *
@@ -818,6 +886,7 @@ public Builder setTimeField(com.google.cloud.contentwarehouse.v1.TimeFilter.Time
      * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @return This builder for chaining. */ public Builder clearTimeField() { @@ -826,9 +895,9 @@ public Builder clearTimeField() { 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); } @@ -838,12 +907,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.TimeFilter) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.TimeFilter) private static final com.google.cloud.contentwarehouse.v1.TimeFilter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.TimeFilter(); } @@ -852,27 +921,27 @@ public static com.google.cloud.contentwarehouse.v1.TimeFilter getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 TimeFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -887,6 +956,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.TimeFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java similarity index 63% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java index 6f94eca8c37f..76aa6a88245a 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimeFilterOrBuilder.java @@ -1,28 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -public interface TimeFilterOrBuilder extends +public interface TimeFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TimeFilter) com.google.protobuf.MessageOrBuilder { /** * .google.type.Interval time_range = 1; + * * @return Whether the timeRange field is set. */ boolean hasTimeRange(); /** * .google.type.Interval time_range = 1; + * * @return The timeRange. */ com.google.type.Interval getTimeRange(); - /** - * .google.type.Interval time_range = 1; - */ + /** .google.type.Interval time_range = 1; */ com.google.type.IntervalOrBuilder getTimeRangeOrBuilder(); /** + * + * *
    * Specifies which time field to filter documents on.
    *
@@ -30,10 +48,13 @@ public interface TimeFilterOrBuilder extends
    * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @return The enum numeric value on the wire for timeField. */ int getTimeFieldValue(); /** + * + * *
    * Specifies which time field to filter documents on.
    *
@@ -41,6 +62,7 @@ public interface TimeFilterOrBuilder extends
    * 
* * .google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2; + * * @return The timeField. */ com.google.cloud.contentwarehouse.v1.TimeFilter.TimeField getTimeField(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java similarity index 70% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java index 3743d8ce46df..b1954331f691 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArray.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Timestamp values.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimestampArray} */ -public final class TimestampArray extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TimestampArray extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.TimestampArray) TimestampArrayOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TimestampArray.newBuilder() to construct. private TimestampArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TimestampArray() { values_ = 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 TimestampArray(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimestampArray.class, com.google.cloud.contentwarehouse.v1.TimestampArray.Builder.class); + com.google.cloud.contentwarehouse.v1.TimestampArray.class, + com.google.cloud.contentwarehouse.v1.TimestampArray.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List values_; /** + * + * *
    * List of timestamp values.
    * 
@@ -58,6 +80,8 @@ public java.util.List getVa return values_; } /** + * + * *
    * List of timestamp values.
    * 
@@ -65,11 +89,13 @@ public java.util.List getVa * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ @java.lang.Override - public java.util.List + public java.util.List getValuesOrBuilderList() { return values_; } /** + * + * *
    * List of timestamp values.
    * 
@@ -81,6 +107,8 @@ public int getValuesCount() { return values_.size(); } /** + * + * *
    * List of timestamp values.
    * 
@@ -92,6 +120,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue getValues(int index) return values_.get(index); } /** + * + * *
    * List of timestamp values.
    * 
@@ -105,6 +135,7 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,8 +147,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { output.writeMessage(1, values_.get(i)); } @@ -131,8 +161,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -142,15 +171,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.contentwarehouse.v1.TimestampArray)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.TimestampArray other = (com.google.cloud.contentwarehouse.v1.TimestampArray) obj; + com.google.cloud.contentwarehouse.v1.TimestampArray other = + (com.google.cloud.contentwarehouse.v1.TimestampArray) obj; - if (!getValuesList() - .equals(other.getValuesList())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,131 +201,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.TimestampArray 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.contentwarehouse.v1.TimestampArray parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampArray parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TimestampArray parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.TimestampArray 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.contentwarehouse.v1.TimestampArray parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.TimestampArray parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.TimestampArray prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Timestamp values.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimestampArray} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.TimestampArray) com.google.cloud.contentwarehouse.v1.TimestampArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimestampArray.class, com.google.cloud.contentwarehouse.v1.TimestampArray.Builder.class); + com.google.cloud.contentwarehouse.v1.TimestampArray.class, + com.google.cloud.contentwarehouse.v1.TimestampArray.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.TimestampArray.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor; } @java.lang.Override @@ -333,14 +366,18 @@ public com.google.cloud.contentwarehouse.v1.TimestampArray build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampArray buildPartial() { - com.google.cloud.contentwarehouse.v1.TimestampArray result = new com.google.cloud.contentwarehouse.v1.TimestampArray(this); + com.google.cloud.contentwarehouse.v1.TimestampArray result = + new com.google.cloud.contentwarehouse.v1.TimestampArray(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.contentwarehouse.v1.TimestampArray result) { + private void buildPartialRepeatedFields( + com.google.cloud.contentwarehouse.v1.TimestampArray result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -360,38 +397,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.TimestampArray 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.contentwarehouse.v1.TimestampArray) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.TimestampArray)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.TimestampArray) other); } else { super.mergeFrom(other); return this; @@ -399,7 +437,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.TimestampArray other) { - if (other == com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.TimestampArray.getDefaultInstance()) + return this; if (valuesBuilder_ == null) { if (!other.values_.isEmpty()) { if (values_.isEmpty()) { @@ -418,9 +457,10 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.TimestampArray oth valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValuesFieldBuilder() : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValuesFieldBuilder() + : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -452,25 +492,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.contentwarehouse.v1.TimestampValue m = - input.readMessage( - com.google.cloud.contentwarehouse.v1.TimestampValue.parser(), - extensionRegistry); - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(m); - } else { - valuesBuilder_.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.contentwarehouse.v1.TimestampValue m = + input.readMessage( + com.google.cloud.contentwarehouse.v1.TimestampValue.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.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) { @@ -480,21 +522,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List values_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new java.util.ArrayList(values_); + values_ = + new java.util.ArrayList(values_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampValue, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> valuesBuilder_; + com.google.cloud.contentwarehouse.v1.TimestampValue, + com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, + com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> + valuesBuilder_; /** + * + * *
      * List of timestamp values.
      * 
@@ -509,6 +559,8 @@ public java.util.List getVa } } /** + * + * *
      * List of timestamp values.
      * 
@@ -523,6 +575,8 @@ public int getValuesCount() { } } /** + * + * *
      * List of timestamp values.
      * 
@@ -537,14 +591,15 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue getValues(int index) } } /** + * + * *
      * List of timestamp values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - public Builder setValues( - int index, com.google.cloud.contentwarehouse.v1.TimestampValue value) { + public Builder setValues(int index, com.google.cloud.contentwarehouse.v1.TimestampValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -558,6 +613,8 @@ public Builder setValues( return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -576,6 +633,8 @@ public Builder setValues( return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -596,14 +655,15 @@ public Builder addValues(com.google.cloud.contentwarehouse.v1.TimestampValue val return this; } /** + * + * *
      * List of timestamp values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - public Builder addValues( - int index, com.google.cloud.contentwarehouse.v1.TimestampValue value) { + public Builder addValues(int index, com.google.cloud.contentwarehouse.v1.TimestampValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -617,6 +677,8 @@ public Builder addValues( return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -635,6 +697,8 @@ public Builder addValues( return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -653,6 +717,8 @@ public Builder addValues( return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -663,8 +729,7 @@ public Builder addAllValues( 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); @@ -672,6 +737,8 @@ public Builder addAllValues( return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -689,6 +756,8 @@ public Builder clearValues() { return this; } /** + * + * *
      * List of timestamp values.
      * 
@@ -706,17 +775,20 @@ public Builder removeValues(int index) { return this; } /** + * + * *
      * List of timestamp values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getValuesBuilder( - int index) { + public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getValuesBuilder(int index) { return getValuesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of timestamp values.
      * 
@@ -726,19 +798,22 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getValuesBuil public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrBuilder( int index) { if (valuesBuilder_ == null) { - return values_.get(index); } else { + return values_.get(index); + } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of timestamp values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - public java.util.List - getValuesOrBuilderList() { + public java.util.List + getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { @@ -746,6 +821,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrB } } /** + * + * *
      * List of timestamp values.
      * 
@@ -753,49 +830,56 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrB * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder addValuesBuilder() { - return getValuesFieldBuilder().addBuilder( - com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()); + return getValuesFieldBuilder() + .addBuilder(com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()); } /** + * + * *
      * List of timestamp values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder addValuesBuilder( - int index) { - return getValuesFieldBuilder().addBuilder( - index, com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()); + public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder addValuesBuilder(int index) { + return getValuesFieldBuilder() + .addBuilder( + index, com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()); } /** + * + * *
      * List of timestamp values.
      * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - public java.util.List - getValuesBuilderList() { + public java.util.List + getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampValue, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> + com.google.cloud.contentwarehouse.v1.TimestampValue, + com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, + com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampValue, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder>( - values_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + valuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.TimestampValue, + com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, + com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder>( + values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; } + @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); } @@ -805,12 +889,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.TimestampArray) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.TimestampArray) private static final com.google.cloud.contentwarehouse.v1.TimestampArray DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.TimestampArray(); } @@ -819,27 +903,27 @@ public static com.google.cloud.contentwarehouse.v1.TimestampArray getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 TimestampArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,6 +938,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.TimestampArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java similarity index 64% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java index e27a7851a110..5b0f1ab33ae3 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampArrayOrBuilder.java @@ -1,22 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface TimestampArrayOrBuilder extends +public interface TimestampArrayOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TimestampArray) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of timestamp values.
    * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - java.util.List - getValuesList(); + java.util.List getValuesList(); /** + * + * *
    * List of timestamp values.
    * 
@@ -25,6 +44,8 @@ public interface TimestampArrayOrBuilder extends */ com.google.cloud.contentwarehouse.v1.TimestampValue getValues(int index); /** + * + * *
    * List of timestamp values.
    * 
@@ -33,21 +54,24 @@ public interface TimestampArrayOrBuilder extends */ int getValuesCount(); /** + * + * *
    * List of timestamp values.
    * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - java.util.List + java.util.List getValuesOrBuilderList(); /** + * + * *
    * List of timestamp values.
    * 
* * repeated .google.cloud.contentwarehouse.v1.TimestampValue values = 1; */ - com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrBuilder( - int index); + com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getValuesOrBuilder(int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java similarity index 63% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java index 89df89bfe87a..9d6794cacc59 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptions.java @@ -1,48 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_schema.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Configurations for a timestamp property.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimestampTypeOptions} */ -public final class TimestampTypeOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TimestampTypeOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.TimestampTypeOptions) TimestampTypeOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TimestampTypeOptions.newBuilder() to construct. private TimestampTypeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TimestampTypeOptions() { - } + + private TimestampTypeOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimestampTypeOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.class, com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.class, + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -73,12 +91,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.TimestampTypeOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions other = (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) obj; + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions other = + (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions 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.contentwarehouse.v1.TimestampTypeOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions 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.contentwarehouse.v1.TimestampTypeOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.TimestampTypeOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Configurations for a timestamp property.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimestampTypeOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.TimestampTypeOptions) com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.class, com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.class, + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -229,9 +253,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto.internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; } @java.lang.Override @@ -250,7 +274,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.TimestampTypeOptions result = new com.google.cloud.contentwarehouse.v1.TimestampTypeOptions(this); + com.google.cloud.contentwarehouse.v1.TimestampTypeOptions result = + new com.google.cloud.contentwarehouse.v1.TimestampTypeOptions(this); onBuilt(); return result; } @@ -259,38 +284,39 @@ public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.TimestampTypeOptions)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) other); } else { super.mergeFrom(other); return this; @@ -298,7 +324,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.TimestampTypeOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -325,12 +352,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -340,9 +368,9 @@ public Builder mergeFrom( } // finally 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); } @@ -352,12 +380,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.TimestampTypeOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.TimestampTypeOptions) private static final com.google.cloud.contentwarehouse.v1.TimestampTypeOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.TimestampTypeOptions(); } @@ -366,27 +394,27 @@ public static com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampTypeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 TimestampTypeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -401,6 +429,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java new file mode 100644 index 000000000000..aec1e5055999 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java @@ -0,0 +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/contentwarehouse/v1/document_schema.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface TimestampTypeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TimestampTypeOptions) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java index a7628809a26f..a313a98cdacb 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValue.java @@ -1,57 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Timestamp value type.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimestampValue} */ -public final class TimestampValue extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TimestampValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.TimestampValue) TimestampValueOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TimestampValue.newBuilder() to construct. private TimestampValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TimestampValue() { - } + + private TimestampValue() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimestampValue(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimestampValue.class, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder.class); + com.google.cloud.contentwarehouse.v1.TimestampValue.class, + com.google.cloud.contentwarehouse.v1.TimestampValue.Builder.class); } private int valueCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object value_; + public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TIMESTAMP_VALUE(1), TEXT_VALUE(2), VALUE_NOT_SET(0); private final int value; + private ValueCase(int value) { this.value = value; } @@ -67,30 +89,36 @@ public static ValueCase valueOf(int value) { public static ValueCase forNumber(int value) { switch (value) { - case 1: return TIMESTAMP_VALUE; - case 2: return TEXT_VALUE; - case 0: return VALUE_NOT_SET; - default: return null; + case 1: + return TIMESTAMP_VALUE; + case 2: + return TEXT_VALUE; + case 0: + return VALUE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); } public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 1; /** + * + * *
    * Timestamp value
    * 
* * .google.protobuf.Timestamp timestamp_value = 1; + * * @return Whether the timestampValue field is set. */ @java.lang.Override @@ -98,21 +126,26 @@ public boolean hasTimestampValue() { return valueCase_ == 1; } /** + * + * *
    * Timestamp value
    * 
* * .google.protobuf.Timestamp timestamp_value = 1; + * * @return The timestampValue. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestampValue() { if (valueCase_ == 1) { - return (com.google.protobuf.Timestamp) value_; + return (com.google.protobuf.Timestamp) value_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * Timestamp value
    * 
@@ -122,13 +155,15 @@ public com.google.protobuf.Timestamp getTimestampValue() { @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { if (valueCase_ == 1) { - return (com.google.protobuf.Timestamp) value_; + return (com.google.protobuf.Timestamp) value_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } public static final int TEXT_VALUE_FIELD_NUMBER = 2; /** + * + * *
    * The string must represent a valid instant in UTC and is parsed using
    * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -136,12 +171,15 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
    * 
* * string text_value = 2; + * * @return Whether the textValue field is set. */ public boolean hasTextValue() { return valueCase_ == 2; } /** + * + * *
    * The string must represent a valid instant in UTC and is parsed using
    * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -149,6 +187,7 @@ public boolean hasTextValue() {
    * 
* * string text_value = 2; + * * @return The textValue. */ public java.lang.String getTextValue() { @@ -159,8 +198,7 @@ public java.lang.String getTextValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (valueCase_ == 2) { value_ = s; @@ -169,6 +207,8 @@ public java.lang.String getTextValue() { } } /** + * + * *
    * The string must represent a valid instant in UTC and is parsed using
    * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -176,18 +216,17 @@ public java.lang.String getTextValue() {
    * 
* * string text_value = 2; + * * @return The bytes for textValue. */ - public com.google.protobuf.ByteString - getTextValueBytes() { + public com.google.protobuf.ByteString getTextValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (valueCase_ == 2) { value_ = b; } @@ -198,6 +237,7 @@ public java.lang.String getTextValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +249,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valueCase_ == 1) { output.writeMessage(1, (com.google.protobuf.Timestamp) value_); } @@ -227,8 +266,9 @@ public int getSerializedSize() { size = 0; if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.protobuf.Timestamp) value_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.protobuf.Timestamp) value_); } if (valueCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); @@ -241,22 +281,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.contentwarehouse.v1.TimestampValue)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.TimestampValue other = (com.google.cloud.contentwarehouse.v1.TimestampValue) obj; + com.google.cloud.contentwarehouse.v1.TimestampValue other = + (com.google.cloud.contentwarehouse.v1.TimestampValue) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: - if (!getTimestampValue() - .equals(other.getTimestampValue())) return false; + if (!getTimestampValue().equals(other.getTimestampValue())) return false; break; case 2: - if (!getTextValue() - .equals(other.getTextValue())) return false; + if (!getTextValue().equals(other.getTextValue())) return false; break; case 0: default: @@ -290,131 +329,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.TimestampValue 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.contentwarehouse.v1.TimestampValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.TimestampValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.TimestampValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.TimestampValue 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.contentwarehouse.v1.TimestampValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.TimestampValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.TimestampValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Timestamp value type.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.TimestampValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.TimestampValue) com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.TimestampValue.class, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder.class); + com.google.cloud.contentwarehouse.v1.TimestampValue.class, + com.google.cloud.contentwarehouse.v1.TimestampValue.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.TimestampValue.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +471,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentProto + .internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor; } @java.lang.Override @@ -449,8 +492,11 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampValue buildPartial() { - com.google.cloud.contentwarehouse.v1.TimestampValue result = new com.google.cloud.contentwarehouse.v1.TimestampValue(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.TimestampValue result = + new com.google.cloud.contentwarehouse.v1.TimestampValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -463,8 +509,7 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.TimestampValue r private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.TimestampValue result) { result.valueCase_ = valueCase_; result.value_ = this.value_; - if (valueCase_ == 1 && - timestampValueBuilder_ != null) { + if (valueCase_ == 1 && timestampValueBuilder_ != null) { result.value_ = timestampValueBuilder_.build(); } } @@ -473,38 +518,39 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.TimestampVa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.TimestampValue) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.TimestampValue)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.TimestampValue) other); } else { super.mergeFrom(other); return this; @@ -512,21 +558,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.TimestampValue other) { - if (other == com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()) + return this; switch (other.getValueCase()) { - case TIMESTAMP_VALUE: { - mergeTimestampValue(other.getTimestampValue()); - break; - } - case TEXT_VALUE: { - valueCase_ = 2; - value_ = other.value_; - onChanged(); - break; - } - case VALUE_NOT_SET: { - break; - } + case TIMESTAMP_VALUE: + { + mergeTimestampValue(other.getTimestampValue()); + break; + } + case TEXT_VALUE: + { + valueCase_ = 2; + value_ = other.value_; + onChanged(); + break; + } + case VALUE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -554,25 +604,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTimestampValueFieldBuilder().getBuilder(), - extensionRegistry); - valueCase_ = 1; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 2; - value_ = s; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getTimestampValueFieldBuilder().getBuilder(), extensionRegistry); + valueCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 2; + value_ = 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) { @@ -582,12 +633,12 @@ public Builder mergeFrom( } // finally return this; } + private int valueCase_ = 0; private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); } public Builder clearValue() { @@ -600,13 +651,19 @@ public Builder clearValue() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampValueBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + timestampValueBuilder_; /** + * + * *
      * Timestamp value
      * 
* * .google.protobuf.Timestamp timestamp_value = 1; + * * @return Whether the timestampValue field is set. */ @java.lang.Override @@ -614,11 +671,14 @@ public boolean hasTimestampValue() { return valueCase_ == 1; } /** + * + * *
      * Timestamp value
      * 
* * .google.protobuf.Timestamp timestamp_value = 1; + * * @return The timestampValue. */ @java.lang.Override @@ -636,6 +696,8 @@ public com.google.protobuf.Timestamp getTimestampValue() { } } /** + * + * *
      * Timestamp value
      * 
@@ -656,14 +718,15 @@ public Builder setTimestampValue(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp value
      * 
* * .google.protobuf.Timestamp timestamp_value = 1; */ - public Builder setTimestampValue( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); @@ -674,6 +737,8 @@ public Builder setTimestampValue( return this; } /** + * + * *
      * Timestamp value
      * 
@@ -682,10 +747,11 @@ public Builder setTimestampValue( */ public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) { if (timestampValueBuilder_ == null) { - if (valueCase_ == 1 && - value_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - value_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) value_) - .mergeFrom(value).buildPartial(); + if (valueCase_ == 1 && value_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + value_ = + com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) value_) + .mergeFrom(value) + .buildPartial(); } else { value_ = value; } @@ -701,6 +767,8 @@ public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp value
      * 
@@ -724,6 +792,8 @@ public Builder clearTimestampValue() { return this; } /** + * + * *
      * Timestamp value
      * 
@@ -734,6 +804,8 @@ public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder() { return getTimestampValueFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp value
      * 
@@ -752,6 +824,8 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { } } /** + * + * *
      * Timestamp value
      * 
@@ -759,17 +833,20 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { * .google.protobuf.Timestamp timestamp_value = 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> getTimestampValueFieldBuilder() { if (timestampValueBuilder_ == null) { if (!(valueCase_ == 1)) { value_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - timestampValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) value_, - getParentForChildren(), - isClean()); + timestampValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 1; @@ -778,6 +855,8 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { } /** + * + * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -785,6 +864,7 @@ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
      * 
* * string text_value = 2; + * * @return Whether the textValue field is set. */ @java.lang.Override @@ -792,6 +872,8 @@ public boolean hasTextValue() { return valueCase_ == 2; } /** + * + * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -799,6 +881,7 @@ public boolean hasTextValue() {
      * 
* * string text_value = 2; + * * @return The textValue. */ @java.lang.Override @@ -808,8 +891,7 @@ public java.lang.String getTextValue() { ref = value_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (valueCase_ == 2) { value_ = s; @@ -820,6 +902,8 @@ public java.lang.String getTextValue() { } } /** + * + * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -827,19 +911,18 @@ public java.lang.String getTextValue() {
      * 
* * string text_value = 2; + * * @return The bytes for textValue. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextValueBytes() { + public com.google.protobuf.ByteString getTextValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (valueCase_ == 2) { value_ = b; } @@ -849,6 +932,8 @@ public java.lang.String getTextValue() { } } /** + * + * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -856,18 +941,22 @@ public java.lang.String getTextValue() {
      * 
* * string text_value = 2; + * * @param value The textValue to set. * @return This builder for chaining. */ - public Builder setTextValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTextValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } valueCase_ = 2; value_ = value; onChanged(); return this; } /** + * + * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -875,6 +964,7 @@ public Builder setTextValue(
      * 
* * string text_value = 2; + * * @return This builder for chaining. */ public Builder clearTextValue() { @@ -886,6 +976,8 @@ public Builder clearTextValue() { return this; } /** + * + * *
      * The string must represent a valid instant in UTC and is parsed using
      * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -893,21 +985,23 @@ public Builder clearTextValue() {
      * 
* * string text_value = 2; + * * @param value The bytes for textValue to set. * @return This builder for chaining. */ - public Builder setTextValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTextValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); valueCase_ = 2; value_ = 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); } @@ -917,12 +1011,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.TimestampValue) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.TimestampValue) private static final com.google.cloud.contentwarehouse.v1.TimestampValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.TimestampValue(); } @@ -931,27 +1025,27 @@ public static com.google.cloud.contentwarehouse.v1.TimestampValue getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 TimestampValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -966,6 +1060,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.TimestampValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java similarity index 70% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java index f4103dd0444d..6816393c8197 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampValueOrBuilder.java @@ -1,31 +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/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface TimestampValueOrBuilder extends +public interface TimestampValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TimestampValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Timestamp value
    * 
* * .google.protobuf.Timestamp timestamp_value = 1; + * * @return Whether the timestampValue field is set. */ boolean hasTimestampValue(); /** + * + * *
    * Timestamp value
    * 
* * .google.protobuf.Timestamp timestamp_value = 1; + * * @return The timestampValue. */ com.google.protobuf.Timestamp getTimestampValue(); /** + * + * *
    * Timestamp value
    * 
@@ -35,6 +59,8 @@ public interface TimestampValueOrBuilder extends com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder(); /** + * + * *
    * The string must represent a valid instant in UTC and is parsed using
    * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -42,10 +68,13 @@ public interface TimestampValueOrBuilder extends
    * 
* * string text_value = 2; + * * @return Whether the textValue field is set. */ boolean hasTextValue(); /** + * + * *
    * The string must represent a valid instant in UTC and is parsed using
    * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -53,10 +82,13 @@ public interface TimestampValueOrBuilder extends
    * 
* * string text_value = 2; + * * @return The textValue. */ java.lang.String getTextValue(); /** + * + * *
    * The string must represent a valid instant in UTC and is parsed using
    * java.time.format.DateTimeFormatter.ISO_INSTANT.
@@ -64,10 +96,10 @@ public interface TimestampValueOrBuilder extends
    * 
* * string text_value = 2; + * * @return The bytes for textValue. */ - com.google.protobuf.ByteString - getTextValueBytes(); + com.google.protobuf.ByteString getTextValueBytes(); com.google.cloud.contentwarehouse.v1.TimestampValue.ValueCase getValueCase(); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java similarity index 63% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java index 419d53b3747d..fd139a81fc2c 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadata.java @@ -1,48 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/async_document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Metadata object for UpdateDocument request (currently empty).
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateDocumentMetadata} */ -public final class UpdateDocumentMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) UpdateDocumentMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateDocumentMetadata.newBuilder() to construct. private UpdateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateDocumentMetadata() { - } + + private UpdateDocumentMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDocumentMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.class, + com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -73,12 +91,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata other = (com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) obj; + com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata other = + (com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata 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.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata 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.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 object for UpdateDocument request (currently empty).
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateDocumentMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.class, + com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -229,9 +253,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.AsyncDocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; } @java.lang.Override @@ -250,7 +274,8 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata buildPartial() { - com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata result = new com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata(this); + com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata result = + new com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata(this); onBuilt(); return result; } @@ -259,38 +284,39 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) other); } else { super.mergeFrom(other); return this; @@ -298,7 +324,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata other) { - if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -325,12 +352,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -340,9 +368,9 @@ public Builder mergeFrom( } // finally 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); } @@ -352,12 +380,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) private static final com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata(); } @@ -366,27 +394,27 @@ public static com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 UpdateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -401,6 +429,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.UpdateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java new file mode 100644 index 000000000000..13f383fba208 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java @@ -0,0 +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/contentwarehouse/v1/async_document_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface UpdateDocumentMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java similarity index 67% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java index 68c35b24dda0..7b8a69d9ae44 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for DocumentService.UpdateDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.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() { name_ = ""; } @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.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.class, + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the document to update.
    * Format:
@@ -55,7 +77,10 @@ protected java.lang.Object newInstance(
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 @@ -64,14 +89,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the document to update.
    * Format:
@@ -80,17 +106,18 @@ public java.lang.String getName() {
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 { @@ -101,11 +128,16 @@ public java.lang.String getName() { public static final int DOCUMENT_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.Document document_; /** + * + * *
    * Required. The document to update.
    * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the document field is set. */ @java.lang.Override @@ -113,38 +145,54 @@ public boolean hasDocument() { return document_ != null; } /** + * + * *
    * Required. The document to update.
    * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The document. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.Document getDocument() { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } /** + * + * *
    * Required. The document to update.
    * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } public static final int REQUEST_METADATA_FIELD_NUMBER = 3; private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ @java.lang.Override @@ -152,19 +200,26 @@ public boolean hasRequestMetadata() { return requestMetadata_ != null; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -173,13 +228,18 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata()
    * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
-    return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+  public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+      getRequestMetadataOrBuilder() {
+    return requestMetadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+        : requestMetadata_;
   }
 
   public static final int CLOUD_AI_DOCUMENT_OPTION_FIELD_NUMBER = 5;
   private com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloudAiDocumentOption_;
   /**
+   *
+   *
    * 
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -187,7 +247,9 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * + * * @return Whether the cloudAiDocumentOption field is set. */ @java.lang.Override @@ -195,6 +257,8 @@ public boolean hasCloudAiDocumentOption() { return cloudAiDocumentOption_ != null; } /** + * + * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -202,14 +266,20 @@ public boolean hasCloudAiDocumentOption() {
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * + * * @return The cloudAiDocumentOption. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocumentOption() { - return cloudAiDocumentOption_ == null ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; + return cloudAiDocumentOption_ == null + ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() + : cloudAiDocumentOption_; } /** + * + * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -217,21 +287,28 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocu
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder() { - return cloudAiDocumentOption_ == null ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder + getCloudAiDocumentOptionOrBuilder() { + return cloudAiDocumentOption_ == null + ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() + : cloudAiDocumentOption_; } public static final int UPDATE_OPTIONS_FIELD_NUMBER = 6; private com.google.cloud.contentwarehouse.v1.UpdateOptions updateOptions_; /** + * + * *
    * Options for the update operation.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; + * * @return Whether the updateOptions field is set. */ @java.lang.Override @@ -239,18 +316,25 @@ public boolean hasUpdateOptions() { return updateOptions_ != null; } /** + * + * *
    * Options for the update operation.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; + * * @return The updateOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateOptions getUpdateOptions() { - return updateOptions_ == null ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() : updateOptions_; + return updateOptions_ == null + ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() + : updateOptions_; } /** + * + * *
    * Options for the update operation.
    * 
@@ -259,10 +343,13 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptions getUpdateOptions() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder getUpdateOptionsOrBuilder() { - return updateOptions_ == null ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() : updateOptions_; + return updateOptions_ == null + ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() + : updateOptions_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +361,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -304,20 +390,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (document_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDocument()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocument()); } if (requestMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRequestMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata()); } if (cloudAiDocumentOption_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCloudAiDocumentOption()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCloudAiDocumentOption()); } if (updateOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateOptions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -327,34 +410,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.contentwarehouse.v1.UpdateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest other = (com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest) obj; + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest other = + (com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) 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 (hasRequestMetadata() != other.hasRequestMetadata()) return false; if (hasRequestMetadata()) { - if (!getRequestMetadata() - .equals(other.getRequestMetadata())) return false; + if (!getRequestMetadata().equals(other.getRequestMetadata())) return false; } if (hasCloudAiDocumentOption() != other.hasCloudAiDocumentOption()) return false; if (hasCloudAiDocumentOption()) { - if (!getCloudAiDocumentOption() - .equals(other.getCloudAiDocumentOption())) return false; + if (!getCloudAiDocumentOption().equals(other.getCloudAiDocumentOption())) return false; } if (hasUpdateOptions() != other.hasUpdateOptions()) return false; if (hasUpdateOptions()) { - if (!getUpdateOptions() - .equals(other.getUpdateOptions())) return false; + if (!getUpdateOptions().equals(other.getUpdateOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -391,131 +470,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.UpdateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.UpdateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.UpdateDocumentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.UpdateDocumentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.UpdateDocumentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.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.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.v1.UpdateDocumentRequest) com.google.cloud.contentwarehouse.v1.UpdateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.class, + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -545,9 +629,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; } @java.lang.Override @@ -566,8 +650,11 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest result = new com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest result = + new com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -578,24 +665,21 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateDocumentRe result.name_ = name_; } 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.requestMetadata_ = requestMetadataBuilder_ == null - ? requestMetadata_ - : requestMetadataBuilder_.build(); + result.requestMetadata_ = + requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.cloudAiDocumentOption_ = cloudAiDocumentOptionBuilder_ == null - ? cloudAiDocumentOption_ - : cloudAiDocumentOptionBuilder_.build(); + result.cloudAiDocumentOption_ = + cloudAiDocumentOptionBuilder_ == null + ? cloudAiDocumentOption_ + : cloudAiDocumentOptionBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.updateOptions_ = updateOptionsBuilder_ == null - ? updateOptions_ - : updateOptionsBuilder_.build(); + result.updateOptions_ = + updateOptionsBuilder_ == null ? updateOptions_ : updateOptionsBuilder_.build(); } } @@ -603,38 +687,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateDocumentRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.UpdateDocumentRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest) other); } else { super.mergeFrom(other); return this; @@ -642,7 +727,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -686,45 +772,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDocumentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getRequestMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: { - input.readMessage( - getCloudAiDocumentOptionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: { - input.readMessage( - getUpdateOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - 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 18: + { + input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getRequestMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + input.readMessage( + getCloudAiDocumentOptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage(getUpdateOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -734,10 +819,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the document to update.
      * Format:
@@ -746,14 +834,16 @@ public Builder mergeFrom(
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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; @@ -762,6 +852,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to update.
      * Format:
@@ -770,16 +862,17 @@ public java.lang.String getName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 { @@ -787,6 +880,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document to update.
      * Format:
@@ -795,19 +890,25 @@ public java.lang.String getName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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 name of the document to update.
      * Format:
@@ -816,7 +917,10 @@ public Builder setName(
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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() { @@ -826,6 +930,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the document to update.
      * Format:
@@ -834,13 +940,17 @@ public Builder clearName() {
      * projects/{project_number}/locations/{location}/documents/referenceId/{reference_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; @@ -850,39 +960,58 @@ public Builder setNameBytes( private com.google.cloud.contentwarehouse.v1.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> documentBuilder_; + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + documentBuilder_; /** + * + * *
      * Required. The document to update.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.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 to update.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The document. */ public com.google.cloud.contentwarehouse.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } else { return documentBuilder_.getMessage(); } } /** + * + * *
      * Required. The document to update.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) { if (documentBuilder_ == null) { @@ -898,11 +1027,15 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) return this; } /** + * + * *
      * Required. The document to update.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocument( com.google.cloud.contentwarehouse.v1.Document.Builder builderForValue) { @@ -916,17 +1049,21 @@ public Builder setDocument( return this; } /** + * + * *
      * Required. The document to update.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - document_ != null && - document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && document_ != null + && document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; @@ -939,11 +1076,15 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value return this; } /** + * + * *
      * Required. The document to update.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDocument() { bitField0_ = (bitField0_ & ~0x00000002); @@ -956,11 +1097,15 @@ public Builder clearDocument() { return this; } /** + * + * *
      * Required. The document to update.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder() { bitField0_ |= 0x00000002; @@ -968,36 +1113,48 @@ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder( return getDocumentFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The document to update.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() { if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null ? - com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } } /** + * + * *
      * Required. The document to update.
      * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( - getDocument(), - getParentForChildren(), - isClean()); + documentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( + getDocument(), getParentForChildren(), isClean()); document_ = null; } return documentBuilder_; @@ -1005,36 +1162,49 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild private com.google.cloud.contentwarehouse.v1.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> requestMetadataBuilder_; + com.google.cloud.contentwarehouse.v1.RequestMetadata, + com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, + com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> + requestMetadataBuilder_; /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ public boolean hasRequestMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
      * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ public com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata() { if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_; + return requestMetadata_ == null + ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() + : requestMetadata_; } else { return requestMetadataBuilder_.getMessage(); } } /** + * + * *
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1056,6 +1226,8 @@ public Builder setRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMe
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1075,6 +1247,8 @@ public Builder setRequestMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1082,11 +1256,13 @@ public Builder setRequestMetadata(
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
+    public Builder mergeRequestMetadata(
+        com.google.cloud.contentwarehouse.v1.RequestMetadata value) {
       if (requestMetadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          requestMetadata_ != null &&
-          requestMetadata_ != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && requestMetadata_ != null
+            && requestMetadata_
+                != com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()) {
           getRequestMetadataBuilder().mergeFrom(value);
         } else {
           requestMetadata_ = value;
@@ -1099,6 +1275,8 @@ public Builder mergeRequestMetadata(com.google.cloud.contentwarehouse.v1.Request
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1117,6 +1295,8 @@ public Builder clearRequestMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1124,12 +1304,15 @@ public Builder clearRequestMetadata() {
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMetadataBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder
+        getRequestMetadataBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getRequestMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1137,15 +1320,19 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder getRequestMe
      *
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
-    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder
+        getRequestMetadataOrBuilder() {
       if (requestMetadataBuilder_ != null) {
         return requestMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return requestMetadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance() : requestMetadata_;
+        return requestMetadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.RequestMetadata.getDefaultInstance()
+            : requestMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * The meta information collected about the end user, used to enforce access
      * control for the service.
@@ -1154,14 +1341,17 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RequestMetadata,
+            com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>
         getRequestMetadataFieldBuilder() {
       if (requestMetadataBuilder_ == null) {
-        requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RequestMetadata, com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder, com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
-                getRequestMetadata(),
-                getParentForChildren(),
-                isClean());
+        requestMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RequestMetadata,
+                com.google.cloud.contentwarehouse.v1.RequestMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder>(
+                getRequestMetadata(), getParentForChildren(), isClean());
         requestMetadata_ = null;
       }
       return requestMetadataBuilder_;
@@ -1169,8 +1359,13 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
 
     private com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloudAiDocumentOption_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder> cloudAiDocumentOptionBuilder_;
+            com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption,
+            com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder,
+            com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder>
+        cloudAiDocumentOptionBuilder_;
     /**
+     *
+     *
      * 
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1178,13 +1373,17 @@ public com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestM
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * + * * @return Whether the cloudAiDocumentOption field is set. */ public boolean hasCloudAiDocumentOption() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1192,17 +1391,23 @@ public boolean hasCloudAiDocumentOption() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * + * * @return The cloudAiDocumentOption. */ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocumentOption() { if (cloudAiDocumentOptionBuilder_ == null) { - return cloudAiDocumentOption_ == null ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; + return cloudAiDocumentOption_ == null + ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() + : cloudAiDocumentOption_; } else { return cloudAiDocumentOptionBuilder_.getMessage(); } } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1210,9 +1415,11 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocu
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ - public Builder setCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { + public Builder setCloudAiDocumentOption( + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { if (cloudAiDocumentOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1226,6 +1433,8 @@ public Builder setCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.Clo return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1233,7 +1442,8 @@ public Builder setCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.Clo
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ public Builder setCloudAiDocumentOption( com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder builderForValue) { @@ -1247,6 +1457,8 @@ public Builder setCloudAiDocumentOption( return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1254,13 +1466,17 @@ public Builder setCloudAiDocumentOption(
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ - public Builder mergeCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { + public Builder mergeCloudAiDocumentOption( + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption value) { if (cloudAiDocumentOptionBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - cloudAiDocumentOption_ != null && - cloudAiDocumentOption_ != com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && cloudAiDocumentOption_ != null + && cloudAiDocumentOption_ + != com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption + .getDefaultInstance()) { getCloudAiDocumentOptionBuilder().mergeFrom(value); } else { cloudAiDocumentOption_ = value; @@ -1273,6 +1489,8 @@ public Builder mergeCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.C return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1280,7 +1498,8 @@ public Builder mergeCloudAiDocumentOption(com.google.cloud.contentwarehouse.v1.C
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ public Builder clearCloudAiDocumentOption() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1293,6 +1512,8 @@ public Builder clearCloudAiDocumentOption() { return this; } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1300,14 +1521,18 @@ public Builder clearCloudAiDocumentOption() {
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ - public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder getCloudAiDocumentOptionBuilder() { + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder + getCloudAiDocumentOptionBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCloudAiDocumentOptionFieldBuilder().getBuilder(); } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1315,17 +1540,22 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder getClo
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ - public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder() { + public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder + getCloudAiDocumentOptionOrBuilder() { if (cloudAiDocumentOptionBuilder_ != null) { return cloudAiDocumentOptionBuilder_.getMessageOrBuilder(); } else { - return cloudAiDocumentOption_ == null ? - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() : cloudAiDocumentOption_; + return cloudAiDocumentOption_ == null + ? com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.getDefaultInstance() + : cloudAiDocumentOption_; } } /** + * + * *
      * Request Option for processing Cloud AI Document in Document Warehouse.
      * This field offers limited support for mapping entities from Cloud AI
@@ -1333,17 +1563,21 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCl
      * using this field and other available options.
      * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder> + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder> getCloudAiDocumentOptionFieldBuilder() { if (cloudAiDocumentOptionBuilder_ == null) { - cloudAiDocumentOptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder>( - getCloudAiDocumentOption(), - getParentForChildren(), - isClean()); + cloudAiDocumentOptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption, + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption.Builder, + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder>( + getCloudAiDocumentOption(), getParentForChildren(), isClean()); cloudAiDocumentOption_ = null; } return cloudAiDocumentOptionBuilder_; @@ -1351,34 +1585,47 @@ public com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCl private com.google.cloud.contentwarehouse.v1.UpdateOptions updateOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UpdateOptions, com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder, com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder> updateOptionsBuilder_; + com.google.cloud.contentwarehouse.v1.UpdateOptions, + com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder, + com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder> + updateOptionsBuilder_; /** + * + * *
      * Options for the update operation.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; + * * @return Whether the updateOptions field is set. */ public boolean hasUpdateOptions() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Options for the update operation.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; + * * @return The updateOptions. */ public com.google.cloud.contentwarehouse.v1.UpdateOptions getUpdateOptions() { if (updateOptionsBuilder_ == null) { - return updateOptions_ == null ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() : updateOptions_; + return updateOptions_ == null + ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() + : updateOptions_; } else { return updateOptionsBuilder_.getMessage(); } } /** + * + * *
      * Options for the update operation.
      * 
@@ -1399,6 +1646,8 @@ public Builder setUpdateOptions(com.google.cloud.contentwarehouse.v1.UpdateOptio return this; } /** + * + * *
      * Options for the update operation.
      * 
@@ -1417,6 +1666,8 @@ public Builder setUpdateOptions( return this; } /** + * + * *
      * Options for the update operation.
      * 
@@ -1425,9 +1676,10 @@ public Builder setUpdateOptions( */ public Builder mergeUpdateOptions(com.google.cloud.contentwarehouse.v1.UpdateOptions value) { if (updateOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - updateOptions_ != null && - updateOptions_ != com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && updateOptions_ != null + && updateOptions_ + != com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance()) { getUpdateOptionsBuilder().mergeFrom(value); } else { updateOptions_ = value; @@ -1440,6 +1692,8 @@ public Builder mergeUpdateOptions(com.google.cloud.contentwarehouse.v1.UpdateOpt return this; } /** + * + * *
      * Options for the update operation.
      * 
@@ -1457,6 +1711,8 @@ public Builder clearUpdateOptions() { return this; } /** + * + * *
      * Options for the update operation.
      * 
@@ -1469,6 +1725,8 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder getUpdateOptio return getUpdateOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Options for the update operation.
      * 
@@ -1479,11 +1737,14 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder getUpdateOpti if (updateOptionsBuilder_ != null) { return updateOptionsBuilder_.getMessageOrBuilder(); } else { - return updateOptions_ == null ? - com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() : updateOptions_; + return updateOptions_ == null + ? com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance() + : updateOptions_; } } /** + * + * *
      * Options for the update operation.
      * 
@@ -1491,21 +1752,24 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder getUpdateOpti * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UpdateOptions, com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder, com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.UpdateOptions, + com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder, + com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder> getUpdateOptionsFieldBuilder() { if (updateOptionsBuilder_ == null) { - updateOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.UpdateOptions, com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder, com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder>( - getUpdateOptions(), - getParentForChildren(), - isClean()); + updateOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.UpdateOptions, + com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder, + com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder>( + getUpdateOptions(), getParentForChildren(), isClean()); updateOptions_ = null; } return updateOptionsBuilder_; } + @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); } @@ -1515,12 +1779,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateDocumentRequest) private static final com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest(); } @@ -1529,27 +1793,27 @@ public static com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest getDefa 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; @@ -1564,6 +1828,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java index 0824b161cfba..05badda9ef51 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentRequestOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/document_service_request.proto package com.google.cloud.contentwarehouse.v1; -public interface UpdateDocumentRequestOrBuilder extends +public interface UpdateDocumentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the document to update.
    * Format:
@@ -16,11 +34,16 @@ public interface UpdateDocumentRequestOrBuilder extends
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the document to update.
    * Format:
@@ -29,60 +52,84 @@ public interface UpdateDocumentRequestOrBuilder extends
    * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The document to update.
    * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the document field is set. */ boolean hasDocument(); /** + * + * *
    * Required. The document to update.
    * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The document. */ com.google.cloud.contentwarehouse.v1.Document getDocument(); /** + * + * *
    * Required. The document to update.
    * 
* - * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return Whether the requestMetadata field is set. */ boolean hasRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
    * 
* * .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3; + * * @return The requestMetadata. */ com.google.cloud.contentwarehouse.v1.RequestMetadata getRequestMetadata(); /** + * + * *
    * The meta information collected about the end user, used to enforce access
    * control for the service.
@@ -93,6 +140,8 @@ public interface UpdateDocumentRequestOrBuilder extends
   com.google.cloud.contentwarehouse.v1.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
 
   /**
+   *
+   *
    * 
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -100,11 +149,15 @@ public interface UpdateDocumentRequestOrBuilder extends
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * + * * @return Whether the cloudAiDocumentOption field is set. */ boolean hasCloudAiDocumentOption(); /** + * + * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -112,11 +165,15 @@ public interface UpdateDocumentRequestOrBuilder extends
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * + * * @return The cloudAiDocumentOption. */ com.google.cloud.contentwarehouse.v1.CloudAIDocumentOption getCloudAiDocumentOption(); /** + * + * *
    * Request Option for processing Cloud AI Document in Document Warehouse.
    * This field offers limited support for mapping entities from Cloud AI
@@ -124,29 +181,39 @@ public interface UpdateDocumentRequestOrBuilder extends
    * using this field and other available options.
    * 
* - * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5; + * */ - com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder(); + com.google.cloud.contentwarehouse.v1.CloudAIDocumentOptionOrBuilder + getCloudAiDocumentOptionOrBuilder(); /** + * + * *
    * Options for the update operation.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; + * * @return Whether the updateOptions field is set. */ boolean hasUpdateOptions(); /** + * + * *
    * Options for the update operation.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6; + * * @return The updateOptions. */ com.google.cloud.contentwarehouse.v1.UpdateOptions getUpdateOptions(); /** + * + * *
    * Options for the update operation.
    * 
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java similarity index 70% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java index 8e129b1d9a1c..86f3a044f459 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponse.java @@ -1,55 +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/contentwarehouse/v1/document_service.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Response message for DocumentService.UpdateDocument.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateDocumentResponse} */ -public final class UpdateDocumentResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.UpdateDocumentResponse) UpdateDocumentResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateDocumentResponse.newBuilder() to construct. private UpdateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateDocumentResponse() { - } + + private UpdateDocumentResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDocumentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.class, + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.Builder.class); } public static final int DOCUMENT_FIELD_NUMBER = 1; private com.google.cloud.contentwarehouse.v1.Document document_; /** + * + * *
    * Updated document after executing update request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return Whether the document field is set. */ @java.lang.Override @@ -57,18 +78,25 @@ public boolean hasDocument() { return document_ != null; } /** + * + * *
    * Updated document after executing update request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return The document. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.Document getDocument() { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } /** + * + * *
    * Updated document after executing update request.
    * 
@@ -77,12 +105,16 @@ public com.google.cloud.contentwarehouse.v1.Document getDocument() { */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder() { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } public static final int RULE_ENGINE_OUTPUT_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RuleEngineOutput ruleEngineOutput_; /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -91,6 +123,7 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; + * * @return Whether the ruleEngineOutput field is set. */ @java.lang.Override @@ -98,6 +131,8 @@ public boolean hasRuleEngineOutput() { return ruleEngineOutput_ != null; } /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -106,13 +141,18 @@ public boolean hasRuleEngineOutput() {
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; + * * @return The ruleEngineOutput. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput() { - return ruleEngineOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_; + return ruleEngineOutput_ == null + ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() + : ruleEngineOutput_; } /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -123,19 +163,25 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput
    * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
    */
   @java.lang.Override
-  public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder() {
-    return ruleEngineOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_;
+  public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder
+      getRuleEngineOutputOrBuilder() {
+    return ruleEngineOutput_ == null
+        ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()
+        : ruleEngineOutput_;
   }
 
   public static final int METADATA_FIELD_NUMBER = 3;
   private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_;
   /**
+   *
+   *
    * 
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -143,19 +189,26 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; + * * @return The metadata. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
@@ -165,10 +218,13 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() {
    */
   @java.lang.Override
   public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadataOrBuilder() {
-    return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
+    return metadata_ == null
+        ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
+        : metadata_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -180,8 +236,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (document_ != null) {
       output.writeMessage(1, getDocument());
     }
@@ -201,16 +256,13 @@ 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 (ruleEngineOutput_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getRuleEngineOutput());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuleEngineOutput());
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -220,27 +272,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.contentwarehouse.v1.UpdateDocumentResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse other = (com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse) obj;
+    com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse other =
+        (com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse) obj;
 
     if (hasDocument() != other.hasDocument()) return false;
     if (hasDocument()) {
-      if (!getDocument()
-          .equals(other.getDocument())) return false;
+      if (!getDocument().equals(other.getDocument())) return false;
     }
     if (hasRuleEngineOutput() != other.hasRuleEngineOutput()) return false;
     if (hasRuleEngineOutput()) {
-      if (!getRuleEngineOutput()
-          .equals(other.getRuleEngineOutput())) return false;
+      if (!getRuleEngineOutput().equals(other.getRuleEngineOutput())) return false;
     }
     if (hasMetadata() != other.hasMetadata()) return false;
     if (hasMetadata()) {
-      if (!getMetadata()
-          .equals(other.getMetadata())) return false;
+      if (!getMetadata().equals(other.getMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -271,131 +321,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse 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.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse 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.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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.UpdateDocument.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateDocumentResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.UpdateDocumentResponse) com.google.cloud.contentwarehouse.v1.UpdateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.class, + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentServiceProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; } @java.lang.Override @@ -440,8 +495,11 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse buildPartial() { - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse result = new com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse result = + new com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -449,19 +507,14 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse buildPartial( private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse 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.ruleEngineOutput_ = ruleEngineOutputBuilder_ == null - ? ruleEngineOutput_ - : ruleEngineOutputBuilder_.build(); + result.ruleEngineOutput_ = + ruleEngineOutputBuilder_ == null ? ruleEngineOutput_ : ruleEngineOutputBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.metadata_ = metadataBuilder_ == null - ? metadata_ - : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); } } @@ -469,38 +522,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateDocumentRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.UpdateDocumentResponse) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse) other); } else { super.mergeFrom(other); return this; @@ -508,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse other) { - if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.getDefaultInstance()) + return this; if (other.hasDocument()) { mergeDocument(other.getDocument()); } @@ -544,33 +599,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDocumentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRuleEngineOutputFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getMetadataFieldBuilder().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(getDocumentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getRuleEngineOutputFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getMetadataFieldBuilder().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) { @@ -580,38 +634,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.contentwarehouse.v1.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> documentBuilder_; + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + documentBuilder_; /** + * + * *
      * Updated document after executing update request.
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Updated document after executing update request.
      * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return The document. */ public com.google.cloud.contentwarehouse.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } else { return documentBuilder_.getMessage(); } } /** + * + * *
      * Updated document after executing update request.
      * 
@@ -632,6 +700,8 @@ public Builder setDocument(com.google.cloud.contentwarehouse.v1.Document value) return this; } /** + * + * *
      * Updated document after executing update request.
      * 
@@ -650,6 +720,8 @@ public Builder setDocument( return this; } /** + * + * *
      * Updated document after executing update request.
      * 
@@ -658,9 +730,9 @@ public Builder setDocument( */ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - document_ != null && - document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && document_ != null + && document_ != com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; @@ -673,6 +745,8 @@ public Builder mergeDocument(com.google.cloud.contentwarehouse.v1.Document value return this; } /** + * + * *
      * Updated document after executing update request.
      * 
@@ -690,6 +764,8 @@ public Builder clearDocument() { return this; } /** + * + * *
      * Updated document after executing update request.
      * 
@@ -702,6 +778,8 @@ public com.google.cloud.contentwarehouse.v1.Document.Builder getDocumentBuilder( return getDocumentFieldBuilder().getBuilder(); } /** + * + * *
      * Updated document after executing update request.
      * 
@@ -712,11 +790,14 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null ? - com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance() + : document_; } } /** + * + * *
      * Updated document after executing update request.
      * 
@@ -724,14 +805,17 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild * .google.cloud.contentwarehouse.v1.Document document = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.Document, com.google.cloud.contentwarehouse.v1.Document.Builder, com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( - getDocument(), - getParentForChildren(), - isClean()); + documentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.Document, + com.google.cloud.contentwarehouse.v1.Document.Builder, + com.google.cloud.contentwarehouse.v1.DocumentOrBuilder>( + getDocument(), getParentForChildren(), isClean()); document_ = null; } return documentBuilder_; @@ -739,8 +823,13 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild private com.google.cloud.contentwarehouse.v1.RuleEngineOutput ruleEngineOutput_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleEngineOutput, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder> ruleEngineOutputBuilder_; + com.google.cloud.contentwarehouse.v1.RuleEngineOutput, + com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, + com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder> + ruleEngineOutputBuilder_; /** + * + * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -749,12 +838,15 @@ public com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuild
      * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; + * * @return Whether the ruleEngineOutput field is set. */ public boolean hasRuleEngineOutput() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -763,16 +855,21 @@ public boolean hasRuleEngineOutput() {
      * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; + * * @return The ruleEngineOutput. */ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput() { if (ruleEngineOutputBuilder_ == null) { - return ruleEngineOutput_ == null ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_; + return ruleEngineOutput_ == null + ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() + : ruleEngineOutput_; } else { return ruleEngineOutputBuilder_.getMessage(); } } /** + * + * *
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -782,7 +879,8 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public Builder setRuleEngineOutput(com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
+    public Builder setRuleEngineOutput(
+        com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
       if (ruleEngineOutputBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -796,6 +894,8 @@ public Builder setRuleEngineOutput(com.google.cloud.contentwarehouse.v1.RuleEngi
       return this;
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -817,6 +917,8 @@ public Builder setRuleEngineOutput(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -826,11 +928,13 @@ public Builder setRuleEngineOutput(
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public Builder mergeRuleEngineOutput(com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
+    public Builder mergeRuleEngineOutput(
+        com.google.cloud.contentwarehouse.v1.RuleEngineOutput value) {
       if (ruleEngineOutputBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          ruleEngineOutput_ != null &&
-          ruleEngineOutput_ != com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && ruleEngineOutput_ != null
+            && ruleEngineOutput_
+                != com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()) {
           getRuleEngineOutputBuilder().mergeFrom(value);
         } else {
           ruleEngineOutput_ = value;
@@ -843,6 +947,8 @@ public Builder mergeRuleEngineOutput(com.google.cloud.contentwarehouse.v1.RuleEn
       return this;
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -863,6 +969,8 @@ public Builder clearRuleEngineOutput() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -872,12 +980,15 @@ public Builder clearRuleEngineOutput() {
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder getRuleEngineOutputBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder
+        getRuleEngineOutputBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRuleEngineOutputFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -887,15 +998,19 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder getRuleEngi
      *
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
-    public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder() {
+    public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder
+        getRuleEngineOutputOrBuilder() {
       if (ruleEngineOutputBuilder_ != null) {
         return ruleEngineOutputBuilder_.getMessageOrBuilder();
       } else {
-        return ruleEngineOutput_ == null ?
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance() : ruleEngineOutput_;
+        return ruleEngineOutput_ == null
+            ? com.google.cloud.contentwarehouse.v1.RuleEngineOutput.getDefaultInstance()
+            : ruleEngineOutput_;
       }
     }
     /**
+     *
+     *
      * 
      * Output from Rule Engine recording the rule evaluator and action executor's
      * output.
@@ -906,14 +1021,17 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEng
      * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.RuleEngineOutput, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput,
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder,
+            com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder>
         getRuleEngineOutputFieldBuilder() {
       if (ruleEngineOutputBuilder_ == null) {
-        ruleEngineOutputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.RuleEngineOutput, com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder, com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder>(
-                getRuleEngineOutput(),
-                getParentForChildren(),
-                isClean());
+        ruleEngineOutputBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.RuleEngineOutput,
+                com.google.cloud.contentwarehouse.v1.RuleEngineOutput.Builder,
+                com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder>(
+                getRuleEngineOutput(), getParentForChildren(), isClean());
         ruleEngineOutput_ = null;
       }
       return ruleEngineOutputBuilder_;
@@ -921,36 +1039,49 @@ public com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEng
 
     private com.google.cloud.contentwarehouse.v1.ResponseMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> metadataBuilder_;
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
      * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; + * * @return The metadata. */ public com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -972,6 +1103,8 @@ public Builder setMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -991,6 +1124,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1000,9 +1135,10 @@ public Builder setMetadata(
      */
     public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetadata value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          metadata_ != null &&
-          metadata_ != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && metadata_ != null
+            && metadata_
+                != com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -1015,6 +1151,8 @@ public Builder mergeMetadata(com.google.cloud.contentwarehouse.v1.ResponseMetada
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1033,6 +1171,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1046,6 +1186,8 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder getMetadata
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1057,11 +1199,14 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null ?
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance() : metadata_;
+        return metadata_ == null
+            ? com.google.cloud.contentwarehouse.v1.ResponseMetadata.getDefaultInstance()
+            : metadata_;
       }
     }
     /**
+     *
+     *
      * 
      * Additional information for the API invocation, such as the request tracking
      * id.
@@ -1070,21 +1215,24 @@ public com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder getMetadat
      * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder> 
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
+            com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.contentwarehouse.v1.ResponseMetadata, com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder, com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
-                getMetadata(),
-                getParentForChildren(),
-                isClean());
+        metadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.contentwarehouse.v1.ResponseMetadata,
+                com.google.cloud.contentwarehouse.v1.ResponseMetadata.Builder,
+                com.google.cloud.contentwarehouse.v1.ResponseMetadataOrBuilder>(
+                getMetadata(), getParentForChildren(), isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
+
     @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);
     }
 
@@ -1094,12 +1242,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateDocumentResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateDocumentResponse)
   private static final com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse();
   }
@@ -1108,27 +1256,27 @@ public static com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateDocumentResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 UpdateDocumentResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1143,6 +1291,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java
similarity index 80%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java
index 857f68cfb8ad..3c98d716ca5a 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentResponseOrBuilder.java
@@ -1,31 +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/contentwarehouse/v1/document_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
-public interface UpdateDocumentResponseOrBuilder extends
+public interface UpdateDocumentResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateDocumentResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Updated document after executing update request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return Whether the document field is set. */ boolean hasDocument(); /** + * + * *
    * Updated document after executing update request.
    * 
* * .google.cloud.contentwarehouse.v1.Document document = 1; + * * @return The document. */ com.google.cloud.contentwarehouse.v1.Document getDocument(); /** + * + * *
    * Updated document after executing update request.
    * 
@@ -35,6 +59,8 @@ public interface UpdateDocumentResponseOrBuilder extends com.google.cloud.contentwarehouse.v1.DocumentOrBuilder getDocumentOrBuilder(); /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -43,10 +69,13 @@ public interface UpdateDocumentResponseOrBuilder extends
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; + * * @return Whether the ruleEngineOutput field is set. */ boolean hasRuleEngineOutput(); /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -55,10 +84,13 @@ public interface UpdateDocumentResponseOrBuilder extends
    * 
* * .google.cloud.contentwarehouse.v1.RuleEngineOutput rule_engine_output = 2; + * * @return The ruleEngineOutput. */ com.google.cloud.contentwarehouse.v1.RuleEngineOutput getRuleEngineOutput(); /** + * + * *
    * Output from Rule Engine recording the rule evaluator and action executor's
    * output.
@@ -71,26 +103,34 @@ public interface UpdateDocumentResponseOrBuilder extends
   com.google.cloud.contentwarehouse.v1.RuleEngineOutputOrBuilder getRuleEngineOutputOrBuilder();
 
   /**
+   *
+   *
    * 
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
    * 
* * .google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 3; + * * @return The metadata. */ com.google.cloud.contentwarehouse.v1.ResponseMetadata getMetadata(); /** + * + * *
    * Additional information for the API invocation, such as the request tracking
    * id.
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java
similarity index 60%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java
index b9dda0df9e73..671a1e39d6c6 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequest.java
@@ -1,59 +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/contentwarehouse/v1/document_schema_service.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * Request message for DocumentSchemaService.UpdateDocumentSchema.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest} */ -public final class UpdateDocumentSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateDocumentSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) UpdateDocumentSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateDocumentSchemaRequest.newBuilder() to construct. private UpdateDocumentSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateDocumentSchemaRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDocumentSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.class, + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the document schema to update.
    * Format:
    * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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 @@ -62,31 +87,33 @@ 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 name of the document schema to update.
    * Format:
    * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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 { @@ -97,11 +124,16 @@ public java.lang.String getName() { public static final int DOCUMENT_SCHEMA_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.DocumentSchema documentSchema_; /** + * + * *
    * Required. The document schema to update with.
    * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentSchema field is set. */ @java.lang.Override @@ -109,30 +141,44 @@ public boolean hasDocumentSchema() { return documentSchema_ != null; } /** + * + * *
    * Required. The document schema to update with.
    * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentSchema. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema() { - return documentSchema_ == null ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; + return documentSchema_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() + : documentSchema_; } /** + * + * *
    * Required. The document schema to update with.
    * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder() { - return documentSchema_ == null ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; + return documentSchema_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() + : documentSchema_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,8 +190,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -165,8 +210,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (documentSchema_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDocumentSchema()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentSchema()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,19 +220,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.contentwarehouse.v1.UpdateDocumentSchemaRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest other = (com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) obj; + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest other = + (com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasDocumentSchema() != other.hasDocumentSchema()) return false; if (hasDocumentSchema()) { - if (!getDocumentSchema() - .equals(other.getDocumentSchema())) return false; + if (!getDocumentSchema().equals(other.getDocumentSchema())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -213,131 +256,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest 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.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest 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.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 DocumentSchemaService.UpdateDocumentSchema.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.class, com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.class, + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,13 +400,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest + getDefaultInstanceForType() { return com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.getDefaultInstance(); } @@ -373,21 +422,24 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest build() @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest result = new com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest result = + new com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest result) { + private void buildPartial0( + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.documentSchema_ = documentSchemaBuilder_ == null - ? documentSchema_ - : documentSchemaBuilder_.build(); + result.documentSchema_ = + documentSchemaBuilder_ == null ? documentSchema_ : documentSchemaBuilder_.build(); } } @@ -395,46 +447,50 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateDocumentSc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.UpdateDocumentSchemaRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest other) { + if (other + == com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -469,24 +525,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDocumentSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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(getDocumentSchemaFieldBuilder().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) { @@ -496,24 +553,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the document schema to update.
      * Format:
      * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,22 +584,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document schema to update.
      * Format:
      * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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 { @@ -545,32 +610,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the document schema to update.
      * Format:
      * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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 name of the document schema to update.
      * Format:
      * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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() { @@ -580,19 +656,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the document schema to update.
      * Format:
      * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_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; @@ -602,39 +684,58 @@ public Builder setNameBytes( private com.google.cloud.contentwarehouse.v1.DocumentSchema documentSchema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> documentSchemaBuilder_; + com.google.cloud.contentwarehouse.v1.DocumentSchema, + com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> + documentSchemaBuilder_; /** + * + * *
      * Required. The document schema to update with.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentSchema field is set. */ public boolean hasDocumentSchema() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The document schema to update with.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentSchema. */ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema() { if (documentSchemaBuilder_ == null) { - return documentSchema_ == null ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; + return documentSchema_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() + : documentSchema_; } else { return documentSchemaBuilder_.getMessage(); } } /** + * + * *
      * Required. The document schema to update with.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocumentSchema(com.google.cloud.contentwarehouse.v1.DocumentSchema value) { if (documentSchemaBuilder_ == null) { @@ -650,11 +751,15 @@ public Builder setDocumentSchema(com.google.cloud.contentwarehouse.v1.DocumentSc return this; } /** + * + * *
      * Required. The document schema to update with.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocumentSchema( com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder builderForValue) { @@ -668,17 +773,22 @@ public Builder setDocumentSchema( return this; } /** + * + * *
      * Required. The document schema to update with.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDocumentSchema(com.google.cloud.contentwarehouse.v1.DocumentSchema value) { if (documentSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - documentSchema_ != null && - documentSchema_ != com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && documentSchema_ != null + && documentSchema_ + != com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance()) { getDocumentSchemaBuilder().mergeFrom(value); } else { documentSchema_ = value; @@ -691,11 +801,15 @@ public Builder mergeDocumentSchema(com.google.cloud.contentwarehouse.v1.Document return this; } /** + * + * *
      * Required. The document schema to update with.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDocumentSchema() { bitField0_ = (bitField0_ & ~0x00000002); @@ -708,11 +822,15 @@ public Builder clearDocumentSchema() { return this; } /** + * + * *
      * Required. The document schema to update with.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSchemaBuilder() { bitField0_ |= 0x00000002; @@ -720,43 +838,56 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder getDocumentSc return getDocumentSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The document schema to update with.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder() { + public com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder + getDocumentSchemaOrBuilder() { if (documentSchemaBuilder_ != null) { return documentSchemaBuilder_.getMessageOrBuilder(); } else { - return documentSchema_ == null ? - com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() : documentSchema_; + return documentSchema_ == null + ? com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance() + : documentSchema_; } } /** + * + * *
      * Required. The document schema to update with.
      * 
* - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> + com.google.cloud.contentwarehouse.v1.DocumentSchema, + com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder> getDocumentSchemaFieldBuilder() { if (documentSchemaBuilder_ == null) { - documentSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.DocumentSchema, com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder>( - getDocumentSchema(), - getParentForChildren(), - isClean()); + documentSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.DocumentSchema, + com.google.cloud.contentwarehouse.v1.DocumentSchema.Builder, + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder>( + getDocumentSchema(), getParentForChildren(), isClean()); documentSchema_ = null; } return documentSchemaBuilder_; } + @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); } @@ -766,41 +897,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) - private static final com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest(); } - public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest getDefaultInstance() { + public static com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDocumentSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 UpdateDocumentSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -812,9 +945,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest getDefaultInstanceForType() { + public com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..c0945a71cd34 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/document_schema_service.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface UpdateDocumentSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the document schema to update.
+   * Format:
+   * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the document schema to update.
+   * Format:
+   * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The document schema to update with.
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the documentSchema field is set. + */ + boolean hasDocumentSchema(); + /** + * + * + *
+   * Required. The document schema to update with.
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The documentSchema. + */ + com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema(); + /** + * + * + *
+   * Required. The document schema to update with.
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder(); +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java similarity index 69% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java index c86548bf28bf..3952619007f0 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptions.java @@ -1,77 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Options for Update operations.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateOptions} */ -public final class UpdateOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.UpdateOptions) UpdateOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateOptions.newBuilder() to construct. private UpdateOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateOptions() { updateType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateOptions.class, com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateOptions.class, + com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder.class); } public static final int UPDATE_TYPE_FIELD_NUMBER = 1; private int updateType_ = 0; /** + * + * *
    * Type for update.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; + * * @return The enum numeric value on the wire for updateType. */ - @java.lang.Override public int getUpdateTypeValue() { + @java.lang.Override + public int getUpdateTypeValue() { return updateType_; } /** + * + * *
    * Type for update.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; + * * @return The updateType. */ - @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateType getUpdateType() { - com.google.cloud.contentwarehouse.v1.UpdateType result = com.google.cloud.contentwarehouse.v1.UpdateType.forNumber(updateType_); + @java.lang.Override + public com.google.cloud.contentwarehouse.v1.UpdateType getUpdateType() { + com.google.cloud.contentwarehouse.v1.UpdateType result = + com.google.cloud.contentwarehouse.v1.UpdateType.forNumber(updateType_); return result == null ? com.google.cloud.contentwarehouse.v1.UpdateType.UNRECOGNIZED : result; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -80,6 +110,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -87,6 +118,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -95,6 +128,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -102,6 +136,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -119,11 +155,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int MERGE_FIELDS_OPTIONS_FIELD_NUMBER = 3;
   private com.google.cloud.contentwarehouse.v1.MergeFieldsOptions mergeFieldsOptions_;
   /**
+   *
+   *
    * 
    * Options for merging.
    * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; + * * @return Whether the mergeFieldsOptions field is set. */ @java.lang.Override @@ -131,18 +170,25 @@ public boolean hasMergeFieldsOptions() { return mergeFieldsOptions_ != null; } /** + * + * *
    * Options for merging.
    * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; + * * @return The mergeFieldsOptions. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions getMergeFieldsOptions() { - return mergeFieldsOptions_ == null ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() : mergeFieldsOptions_; + return mergeFieldsOptions_ == null + ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() + : mergeFieldsOptions_; } /** + * + * *
    * Options for merging.
    * 
@@ -150,11 +196,15 @@ public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions getMergeFieldsOpt * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder getMergeFieldsOptionsOrBuilder() { - return mergeFieldsOptions_ == null ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() : mergeFieldsOptions_; + public com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder + getMergeFieldsOptionsOrBuilder() { + return mergeFieldsOptions_ == null + ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() + : mergeFieldsOptions_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,9 +216,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (updateType_ != com.google.cloud.contentwarehouse.v1.UpdateType.UPDATE_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (updateType_ + != com.google.cloud.contentwarehouse.v1.UpdateType.UPDATE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, updateType_); } if (updateMask_ != null) { @@ -186,17 +236,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (updateType_ != com.google.cloud.contentwarehouse.v1.UpdateType.UPDATE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, updateType_); + if (updateType_ + != com.google.cloud.contentwarehouse.v1.UpdateType.UPDATE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, updateType_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (mergeFieldsOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMergeFieldsOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMergeFieldsOptions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -206,23 +254,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.contentwarehouse.v1.UpdateOptions)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UpdateOptions other = (com.google.cloud.contentwarehouse.v1.UpdateOptions) obj; + com.google.cloud.contentwarehouse.v1.UpdateOptions other = + (com.google.cloud.contentwarehouse.v1.UpdateOptions) obj; if (updateType_ != other.updateType_) 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 (hasMergeFieldsOptions() != other.hasMergeFieldsOptions()) return false; if (hasMergeFieldsOptions()) { - if (!getMergeFieldsOptions() - .equals(other.getMergeFieldsOptions())) return false; + if (!getMergeFieldsOptions().equals(other.getMergeFieldsOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -251,131 +298,135 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.UpdateOptions 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.contentwarehouse.v1.UpdateOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.UpdateOptions 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.contentwarehouse.v1.UpdateOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.UpdateOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.UpdateOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Options for Update operations.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.UpdateOptions) com.google.cloud.contentwarehouse.v1.UpdateOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateOptions.class, com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateOptions.class, + com.google.cloud.contentwarehouse.v1.UpdateOptions.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.UpdateOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -395,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; } @java.lang.Override @@ -416,8 +467,11 @@ public com.google.cloud.contentwarehouse.v1.UpdateOptions build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateOptions buildPartial() { - com.google.cloud.contentwarehouse.v1.UpdateOptions result = new com.google.cloud.contentwarehouse.v1.UpdateOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.UpdateOptions result = + new com.google.cloud.contentwarehouse.v1.UpdateOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -428,14 +482,13 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateOptions re result.updateType_ = updateType_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.mergeFieldsOptions_ = mergeFieldsOptionsBuilder_ == null - ? mergeFieldsOptions_ - : mergeFieldsOptionsBuilder_.build(); + result.mergeFieldsOptions_ = + mergeFieldsOptionsBuilder_ == null + ? mergeFieldsOptions_ + : mergeFieldsOptionsBuilder_.build(); } } @@ -443,38 +496,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateOptions 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.contentwarehouse.v1.UpdateOptions) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateOptions)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateOptions) other); } else { super.mergeFrom(other); return this; @@ -482,7 +536,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateOptions other) { - if (other == com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.UpdateOptions.getDefaultInstance()) + return this; if (other.updateType_ != 0) { setUpdateTypeValue(other.getUpdateTypeValue()); } @@ -518,31 +573,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - updateType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getMergeFieldsOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + updateType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getMergeFieldsOptionsFieldBuilder().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) { @@ -552,26 +608,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int updateType_ = 0; /** + * + * *
      * Type for update.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; + * * @return The enum numeric value on the wire for updateType. */ - @java.lang.Override public int getUpdateTypeValue() { + @java.lang.Override + public int getUpdateTypeValue() { return updateType_; } /** + * + * *
      * Type for update.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; + * * @param value The enum numeric value on the wire for updateType to set. * @return This builder for chaining. */ @@ -582,24 +646,31 @@ public Builder setUpdateTypeValue(int value) { return this; } /** + * + * *
      * Type for update.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; + * * @return The updateType. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateType getUpdateType() { - com.google.cloud.contentwarehouse.v1.UpdateType result = com.google.cloud.contentwarehouse.v1.UpdateType.forNumber(updateType_); + com.google.cloud.contentwarehouse.v1.UpdateType result = + com.google.cloud.contentwarehouse.v1.UpdateType.forNumber(updateType_); return result == null ? com.google.cloud.contentwarehouse.v1.UpdateType.UNRECOGNIZED : result; } /** + * + * *
      * Type for update.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; + * * @param value The updateType to set. * @return This builder for chaining. */ @@ -613,11 +684,14 @@ public Builder setUpdateType(com.google.cloud.contentwarehouse.v1.UpdateType val return this; } /** + * + * *
      * Type for update.
      * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; + * * @return This builder for chaining. */ public Builder clearUpdateType() { @@ -629,8 +703,13 @@ public Builder clearUpdateType() { 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_; /** + * + * *
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -639,12 +718,15 @@ public Builder clearUpdateType() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -653,16 +735,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -686,6 +773,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -695,8 +784,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -707,6 +795,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -718,9 +808,9 @@ public Builder setUpdateMask(
      */
     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;
@@ -733,6 +823,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -753,6 +845,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -768,6 +862,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -781,11 +877,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * Field mask for merging Document fields.
      * For the `FieldMask` definition,
@@ -796,14 +895,17 @@ 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_;
@@ -811,41 +913,55 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.cloud.contentwarehouse.v1.MergeFieldsOptions mergeFieldsOptions_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.contentwarehouse.v1.MergeFieldsOptions, com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder, com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder> mergeFieldsOptionsBuilder_;
+            com.google.cloud.contentwarehouse.v1.MergeFieldsOptions,
+            com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder,
+            com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder>
+        mergeFieldsOptionsBuilder_;
     /**
+     *
+     *
      * 
      * Options for merging.
      * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; + * * @return Whether the mergeFieldsOptions field is set. */ public boolean hasMergeFieldsOptions() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Options for merging.
      * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; + * * @return The mergeFieldsOptions. */ public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions getMergeFieldsOptions() { if (mergeFieldsOptionsBuilder_ == null) { - return mergeFieldsOptions_ == null ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() : mergeFieldsOptions_; + return mergeFieldsOptions_ == null + ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() + : mergeFieldsOptions_; } else { return mergeFieldsOptionsBuilder_.getMessage(); } } /** + * + * *
      * Options for merging.
      * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; */ - public Builder setMergeFieldsOptions(com.google.cloud.contentwarehouse.v1.MergeFieldsOptions value) { + public Builder setMergeFieldsOptions( + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions value) { if (mergeFieldsOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -859,6 +975,8 @@ public Builder setMergeFieldsOptions(com.google.cloud.contentwarehouse.v1.MergeF return this; } /** + * + * *
      * Options for merging.
      * 
@@ -877,17 +995,21 @@ public Builder setMergeFieldsOptions( return this; } /** + * + * *
      * Options for merging.
      * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; */ - public Builder mergeMergeFieldsOptions(com.google.cloud.contentwarehouse.v1.MergeFieldsOptions value) { + public Builder mergeMergeFieldsOptions( + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions value) { if (mergeFieldsOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - mergeFieldsOptions_ != null && - mergeFieldsOptions_ != com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && mergeFieldsOptions_ != null + && mergeFieldsOptions_ + != com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance()) { getMergeFieldsOptionsBuilder().mergeFrom(value); } else { mergeFieldsOptions_ = value; @@ -900,6 +1022,8 @@ public Builder mergeMergeFieldsOptions(com.google.cloud.contentwarehouse.v1.Merg return this; } /** + * + * *
      * Options for merging.
      * 
@@ -917,33 +1041,42 @@ public Builder clearMergeFieldsOptions() { return this; } /** + * + * *
      * Options for merging.
      * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; */ - public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder getMergeFieldsOptionsBuilder() { + public com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder + getMergeFieldsOptionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMergeFieldsOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Options for merging.
      * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; */ - public com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder getMergeFieldsOptionsOrBuilder() { + public com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder + getMergeFieldsOptionsOrBuilder() { if (mergeFieldsOptionsBuilder_ != null) { return mergeFieldsOptionsBuilder_.getMessageOrBuilder(); } else { - return mergeFieldsOptions_ == null ? - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() : mergeFieldsOptions_; + return mergeFieldsOptions_ == null + ? com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.getDefaultInstance() + : mergeFieldsOptions_; } } /** + * + * *
      * Options for merging.
      * 
@@ -951,21 +1084,24 @@ public com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder getMerge * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions, com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder, com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder> + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions, + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder, + com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder> getMergeFieldsOptionsFieldBuilder() { if (mergeFieldsOptionsBuilder_ == null) { - mergeFieldsOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.MergeFieldsOptions, com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder, com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder>( - getMergeFieldsOptions(), - getParentForChildren(), - isClean()); + mergeFieldsOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions, + com.google.cloud.contentwarehouse.v1.MergeFieldsOptions.Builder, + com.google.cloud.contentwarehouse.v1.MergeFieldsOptionsOrBuilder>( + getMergeFieldsOptions(), getParentForChildren(), isClean()); mergeFieldsOptions_ = null; } return mergeFieldsOptionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -975,12 +1111,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateOptions) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateOptions) private static final com.google.cloud.contentwarehouse.v1.UpdateOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateOptions(); } @@ -989,27 +1125,27 @@ public static com.google.cloud.contentwarehouse.v1.UpdateOptions getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 UpdateOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1024,6 +1160,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.UpdateOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java similarity index 77% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java index 01c04bb3e2ff..7d99c052d6d6 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateOptionsOrBuilder.java @@ -1,32 +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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; -public interface UpdateOptionsOrBuilder extends +public interface UpdateOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Type for update.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; + * * @return The enum numeric value on the wire for updateType. */ int getUpdateTypeValue(); /** + * + * *
    * Type for update.
    * 
* * .google.cloud.contentwarehouse.v1.UpdateType update_type = 1; + * * @return The updateType. */ com.google.cloud.contentwarehouse.v1.UpdateType getUpdateType(); /** + * + * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -35,10 +59,13 @@ public interface UpdateOptionsOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -47,10 +74,13 @@ public interface UpdateOptionsOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Field mask for merging Document fields.
    * For the `FieldMask` definition,
@@ -63,24 +93,32 @@ public interface UpdateOptionsOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * Options for merging.
    * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; + * * @return Whether the mergeFieldsOptions field is set. */ boolean hasMergeFieldsOptions(); /** + * + * *
    * Options for merging.
    * 
* * .google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3; + * * @return The mergeFieldsOptions. */ com.google.cloud.contentwarehouse.v1.MergeFieldsOptions getMergeFieldsOptions(); /** + * + * *
    * Options for merging.
    * 
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java similarity index 61% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java index 06b0bc911fcb..b5b5b179f9d1 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequest.java @@ -1,59 +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/contentwarehouse/v1/ruleset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for RuleSetService.UpdateRuleSet.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateRuleSetRequest} */ -public final class UpdateRuleSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateRuleSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) UpdateRuleSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateRuleSetRequest.newBuilder() to construct. private UpdateRuleSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateRuleSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateRuleSetRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.class, + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the rule set to update.
    * Format:
    * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 @@ -62,31 +87,33 @@ 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 name of the rule set to update.
    * Format:
    * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 { @@ -97,11 +124,16 @@ public java.lang.String getName() { public static final int RULE_SET_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.RuleSet ruleSet_; /** + * + * *
    * Required. The rule set to update.
    * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the ruleSet field is set. */ @java.lang.Override @@ -109,30 +141,44 @@ public boolean hasRuleSet() { return ruleSet_ != null; } /** + * + * *
    * Required. The rule set to update.
    * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The ruleSet. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet() { - return ruleSet_ == null ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; + return ruleSet_ == null + ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() + : ruleSet_; } /** + * + * *
    * Required. The rule set to update.
    * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder() { - return ruleSet_ == null ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; + return ruleSet_ == null + ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() + : ruleSet_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,8 +190,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -165,8 +210,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (ruleSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRuleSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuleSet()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,19 +220,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.contentwarehouse.v1.UpdateRuleSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest other = (com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) obj; + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest other = + (com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasRuleSet() != other.hasRuleSet()) return false; if (hasRuleSet()) { - if (!getRuleSet() - .equals(other.getRuleSet())) return false; + if (!getRuleSet().equals(other.getRuleSet())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -213,131 +256,136 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest 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.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest 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.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 RuleSetService.UpdateRuleSet.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateRuleSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.class, com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.Builder.class); + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.class, + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +400,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto + .internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; } @java.lang.Override @@ -373,8 +421,11 @@ public com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest buildPartial() { - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest result = new com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest result = + new com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -385,9 +436,7 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateRuleSetReq result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.ruleSet_ = ruleSetBuilder_ == null - ? ruleSet_ - : ruleSetBuilder_.build(); + result.ruleSet_ = ruleSetBuilder_ == null ? ruleSet_ : ruleSetBuilder_.build(); } } @@ -395,38 +444,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateRuleSetReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.UpdateRuleSetRequest) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) other); } else { super.mergeFrom(other); return this; @@ -434,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest other) { - if (other == com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -469,24 +520,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRuleSetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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(getRuleSetFieldBuilder().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) { @@ -496,24 +548,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the rule set to update.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,22 +579,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the rule set to update.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 { @@ -545,32 +605,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the rule set to update.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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 name of the rule set to update.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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() { @@ -580,19 +651,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the rule set to update.
      * Format:
      * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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; @@ -602,39 +679,58 @@ public Builder setNameBytes( private com.google.cloud.contentwarehouse.v1.RuleSet ruleSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> ruleSetBuilder_; + com.google.cloud.contentwarehouse.v1.RuleSet, + com.google.cloud.contentwarehouse.v1.RuleSet.Builder, + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> + ruleSetBuilder_; /** + * + * *
      * Required. The rule set to update.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the ruleSet field is set. */ public boolean hasRuleSet() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The rule set to update.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The ruleSet. */ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet() { if (ruleSetBuilder_ == null) { - return ruleSet_ == null ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; + return ruleSet_ == null + ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() + : ruleSet_; } else { return ruleSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The rule set to update.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) { if (ruleSetBuilder_ == null) { @@ -650,11 +746,15 @@ public Builder setRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) { return this; } /** + * + * *
      * Required. The rule set to update.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRuleSet( com.google.cloud.contentwarehouse.v1.RuleSet.Builder builderForValue) { @@ -668,17 +768,21 @@ public Builder setRuleSet( return this; } /** + * + * *
      * Required. The rule set to update.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) { if (ruleSetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - ruleSet_ != null && - ruleSet_ != com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && ruleSet_ != null + && ruleSet_ != com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance()) { getRuleSetBuilder().mergeFrom(value); } else { ruleSet_ = value; @@ -691,11 +795,15 @@ public Builder mergeRuleSet(com.google.cloud.contentwarehouse.v1.RuleSet value) return this; } /** + * + * *
      * Required. The rule set to update.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRuleSet() { bitField0_ = (bitField0_ & ~0x00000002); @@ -708,11 +816,15 @@ public Builder clearRuleSet() { return this; } /** + * + * *
      * Required. The rule set to update.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.RuleSet.Builder getRuleSetBuilder() { bitField0_ |= 0x00000002; @@ -720,43 +832,55 @@ public com.google.cloud.contentwarehouse.v1.RuleSet.Builder getRuleSetBuilder() return getRuleSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The rule set to update.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder() { if (ruleSetBuilder_ != null) { return ruleSetBuilder_.getMessageOrBuilder(); } else { - return ruleSet_ == null ? - com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() : ruleSet_; + return ruleSet_ == null + ? com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance() + : ruleSet_; } } /** + * + * *
      * Required. The rule set to update.
      * 
* - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> + com.google.cloud.contentwarehouse.v1.RuleSet, + com.google.cloud.contentwarehouse.v1.RuleSet.Builder, + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder> getRuleSetFieldBuilder() { if (ruleSetBuilder_ == null) { - ruleSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.RuleSet, com.google.cloud.contentwarehouse.v1.RuleSet.Builder, com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>( - getRuleSet(), - getParentForChildren(), - isClean()); + ruleSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.RuleSet, + com.google.cloud.contentwarehouse.v1.RuleSet.Builder, + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder>( + getRuleSet(), getParentForChildren(), isClean()); ruleSet_ = null; } return ruleSetBuilder_; } + @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); } @@ -766,12 +890,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) private static final com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest(); } @@ -780,27 +904,27 @@ public static com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRuleSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 UpdateRuleSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -815,6 +939,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java new file mode 100644 index 000000000000..7c7a9003ed14 --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface UpdateRuleSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the rule set to update.
+   * Format:
+   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the rule set to update.
+   * Format:
+   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The rule set to update.
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the ruleSet field is set. + */ + boolean hasRuleSet(); + /** + * + * + *
+   * Required. The rule set to update.
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ruleSet. + */ + com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet(); + /** + * + * + *
+   * Required. The rule set to update.
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder(); +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java similarity index 61% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java index c133f63dd748..7264fe9e84e8 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Request message for SynonymSetService.UpdateSynonymSet.
  * Removes the SynonymSet for the specified context and replaces
@@ -12,50 +29,58 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest}
  */
-public final class UpdateSynonymSetRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateSynonymSetRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest)
     UpdateSynonymSetRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateSynonymSetRequest.newBuilder() to construct.
   private UpdateSynonymSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateSynonymSetRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateSynonymSetRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+        .internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+        .internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.Builder.class);
+            com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.class,
+            com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the synonymSet to update
    * Format:
    * projects/{project_number}/locations/{location}/synonymSets/{context}.
    * 
* - * 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 @@ -64,31 +89,33 @@ 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 name of the synonymSet to update
    * Format:
    * projects/{project_number}/locations/{location}/synonymSets/{context}.
    * 
* - * 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 { @@ -99,11 +126,16 @@ public java.lang.String getName() { public static final int SYNONYM_SET_FIELD_NUMBER = 2; private com.google.cloud.contentwarehouse.v1.SynonymSet synonymSet_; /** + * + * *
    * Required. The synonymSet to be updated for the customer
    * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the synonymSet field is set. */ @java.lang.Override @@ -111,30 +143,44 @@ public boolean hasSynonymSet() { return synonymSet_ != null; } /** + * + * *
    * Required. The synonymSet to be updated for the customer
    * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The synonymSet. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet() { - return synonymSet_ == null ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; + return synonymSet_ == null + ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() + : synonymSet_; } /** + * + * *
    * Required. The synonymSet to be updated for the customer
    * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder() { - return synonymSet_ == null ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; + return synonymSet_ == null + ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() + : synonymSet_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +192,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -167,8 +212,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (synonymSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSynonymSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSynonymSet()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,19 +222,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.contentwarehouse.v1.UpdateSynonymSetRequest)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest other = (com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) obj; + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest other = + (com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasSynonymSet() != other.hasSynonymSet()) return false; if (hasSynonymSet()) { - if (!getSynonymSet() - .equals(other.getSynonymSet())) return false; + if (!getSynonymSet().equals(other.getSynonymSet())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -215,98 +258,104 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest 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.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest 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.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 SynonymSetService.UpdateSynonymSet.
    * Removes the SynonymSet for the specified context and replaces
@@ -315,33 +364,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest)
       com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+          .internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+          .internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.class, com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.Builder.class);
+              com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.class,
+              com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -356,13 +404,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto
+          .internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest getDefaultInstanceForType() {
+    public com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.getDefaultInstance();
     }
 
@@ -377,21 +426,23 @@ public com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest buildPartial() {
-      com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest result = new com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest result =
+          new com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest result) {
+    private void buildPartial0(
+        com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.synonymSet_ = synonymSetBuilder_ == null
-            ? synonymSet_
-            : synonymSetBuilder_.build();
+        result.synonymSet_ = synonymSetBuilder_ == null ? synonymSet_ : synonymSetBuilder_.build();
       }
     }
 
@@ -399,38 +450,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.UpdateSynonymSet
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.UpdateSynonymSetRequest) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest)other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -438,7 +490,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest other) {
-      if (other == com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -473,24 +527,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSynonymSetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            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(getSynonymSetFieldBuilder().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) {
@@ -500,24 +555,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the synonymSet to update
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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; @@ -526,22 +586,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the synonymSet to update
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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 { @@ -549,32 +612,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the synonymSet to update
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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 name of the synonymSet to update
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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() { @@ -584,19 +658,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the synonymSet to update
      * Format:
      * projects/{project_number}/locations/{location}/synonymSets/{context}.
      * 
* - * 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; @@ -606,39 +686,58 @@ public Builder setNameBytes( private com.google.cloud.contentwarehouse.v1.SynonymSet synonymSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> synonymSetBuilder_; + com.google.cloud.contentwarehouse.v1.SynonymSet, + com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> + synonymSetBuilder_; /** + * + * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the synonymSet field is set. */ public boolean hasSynonymSet() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The synonymSet. */ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet() { if (synonymSetBuilder_ == null) { - return synonymSet_ == null ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; + return synonymSet_ == null + ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() + : synonymSet_; } else { return synonymSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet value) { if (synonymSetBuilder_ == null) { @@ -654,11 +753,15 @@ public Builder setSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet val return this; } /** + * + * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSynonymSet( com.google.cloud.contentwarehouse.v1.SynonymSet.Builder builderForValue) { @@ -672,17 +775,22 @@ public Builder setSynonymSet( return this; } /** + * + * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet value) { if (synonymSetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - synonymSet_ != null && - synonymSet_ != com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && synonymSet_ != null + && synonymSet_ + != com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance()) { getSynonymSetBuilder().mergeFrom(value); } else { synonymSet_ = value; @@ -695,11 +803,15 @@ public Builder mergeSynonymSet(com.google.cloud.contentwarehouse.v1.SynonymSet v return this; } /** + * + * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSynonymSet() { bitField0_ = (bitField0_ & ~0x00000002); @@ -712,11 +824,15 @@ public Builder clearSynonymSet() { return this; } /** + * + * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetBuilder() { bitField0_ |= 0x00000002; @@ -724,43 +840,55 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet.Builder getSynonymSetBuil return getSynonymSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder() { if (synonymSetBuilder_ != null) { return synonymSetBuilder_.getMessageOrBuilder(); } else { - return synonymSet_ == null ? - com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() : synonymSet_; + return synonymSet_ == null + ? com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance() + : synonymSet_; } } /** + * + * *
      * Required. The synonymSet to be updated for the customer
      * 
* - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> + com.google.cloud.contentwarehouse.v1.SynonymSet, + com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder> getSynonymSetFieldBuilder() { if (synonymSetBuilder_ == null) { - synonymSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.SynonymSet, com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder>( - getSynonymSet(), - getParentForChildren(), - isClean()); + synonymSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.SynonymSet, + com.google.cloud.contentwarehouse.v1.SynonymSet.Builder, + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder>( + getSynonymSet(), getParentForChildren(), isClean()); synonymSet_ = null; } return synonymSetBuilder_; } + @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); } @@ -770,12 +898,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) - private static final com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest(); } @@ -784,27 +913,27 @@ public static com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSynonymSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 UpdateSynonymSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -819,6 +948,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java new file mode 100644 index 000000000000..bd74bee603ae --- /dev/null +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto + +package com.google.cloud.contentwarehouse.v1; + +public interface UpdateSynonymSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the synonymSet to update
+   * Format:
+   * projects/{project_number}/locations/{location}/synonymSets/{context}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the synonymSet to update
+   * Format:
+   * projects/{project_number}/locations/{location}/synonymSets/{context}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The synonymSet to be updated for the customer
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the synonymSet field is set. + */ + boolean hasSynonymSet(); + /** + * + * + *
+   * Required. The synonymSet to be updated for the customer
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The synonymSet. + */ + com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet(); + /** + * + * + *
+   * Required. The synonymSet to be updated for the customer
+   * 
+ * + * + * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder(); +} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java similarity index 73% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java index 319f7872d725..480d49725829 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateType.java @@ -1,18 +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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Update type of the requests.
  * 
* * Protobuf enum {@code google.cloud.contentwarehouse.v1.UpdateType} */ -public enum UpdateType - implements com.google.protobuf.ProtocolMessageEnum { +public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Defaults to full replace behavior, ie. FULL_REPLACE.
    * 
@@ -21,6 +39,8 @@ public enum UpdateType */ UPDATE_TYPE_UNSPECIFIED(0), /** + * + * *
    * Fully replace all the fields (including previously linked raw document).
    * Any field masks will be ignored.
@@ -30,6 +50,8 @@ public enum UpdateType
    */
   UPDATE_TYPE_REPLACE(1),
   /**
+   *
+   *
    * 
    * Merge the fields into the existing entities.
    * 
@@ -38,6 +60,8 @@ public enum UpdateType */ UPDATE_TYPE_MERGE(2), /** + * + * *
    * Inserts the properties by names.
    * 
@@ -46,6 +70,8 @@ public enum UpdateType */ UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES(3), /** + * + * *
    * Replace the properties by names.
    * 
@@ -54,6 +80,8 @@ public enum UpdateType */ UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES(4), /** + * + * *
    * Delete the properties by names.
    * 
@@ -62,6 +90,8 @@ public enum UpdateType */ UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES(5), /** + * + * *
    * For each of the property, replaces the property if the it exists, otherwise
    * inserts a new property. And for the rest of the fields, merge them based on
@@ -75,6 +105,8 @@ public enum UpdateType
   ;
 
   /**
+   *
+   *
    * 
    * Defaults to full replace behavior, ie. FULL_REPLACE.
    * 
@@ -83,6 +115,8 @@ public enum UpdateType */ public static final int UPDATE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Fully replace all the fields (including previously linked raw document).
    * Any field masks will be ignored.
@@ -92,6 +126,8 @@ public enum UpdateType
    */
   public static final int UPDATE_TYPE_REPLACE_VALUE = 1;
   /**
+   *
+   *
    * 
    * Merge the fields into the existing entities.
    * 
@@ -100,6 +136,8 @@ public enum UpdateType */ public static final int UPDATE_TYPE_MERGE_VALUE = 2; /** + * + * *
    * Inserts the properties by names.
    * 
@@ -108,6 +146,8 @@ public enum UpdateType */ public static final int UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES_VALUE = 3; /** + * + * *
    * Replace the properties by names.
    * 
@@ -116,6 +156,8 @@ public enum UpdateType */ public static final int UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES_VALUE = 4; /** + * + * *
    * Delete the properties by names.
    * 
@@ -124,6 +166,8 @@ public enum UpdateType */ public static final int UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES_VALUE = 5; /** + * + * *
    * For each of the property, replaces the property if the it exists, otherwise
    * inserts a new property. And for the rest of the fields, merge them based on
@@ -134,7 +178,6 @@ public enum UpdateType
    */
   public static final int UPDATE_TYPE_MERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY_NAMES_VALUE = 6;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -159,53 +202,57 @@ public static UpdateType valueOf(int value) {
    */
   public static UpdateType forNumber(int value) {
     switch (value) {
-      case 0: return UPDATE_TYPE_UNSPECIFIED;
-      case 1: return UPDATE_TYPE_REPLACE;
-      case 2: return UPDATE_TYPE_MERGE;
-      case 3: return UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES;
-      case 4: return UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES;
-      case 5: return UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES;
-      case 6: return UPDATE_TYPE_MERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY_NAMES;
-      default: return null;
+      case 0:
+        return UPDATE_TYPE_UNSPECIFIED;
+      case 1:
+        return UPDATE_TYPE_REPLACE;
+      case 2:
+        return UPDATE_TYPE_MERGE;
+      case 3:
+        return UPDATE_TYPE_INSERT_PROPERTIES_BY_NAMES;
+      case 4:
+        return UPDATE_TYPE_REPLACE_PROPERTIES_BY_NAMES;
+      case 5:
+        return UPDATE_TYPE_DELETE_PROPERTIES_BY_NAMES;
+      case 6:
+        return UPDATE_TYPE_MERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY_NAMES;
+      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<
-      UpdateType> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public UpdateType findValueByNumber(int number) {
-            return UpdateType.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public UpdateType findValueByNumber(int number) {
+          return UpdateType.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final UpdateType[] VALUES = values();
 
-  public static UpdateType valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static UpdateType 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;
@@ -221,4 +268,3 @@ private UpdateType(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.UpdateType)
 }
-
diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java
similarity index 71%
rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java
rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java
index de39b52b3872..f83537accb6f 100644
--- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java
+++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfo.java
@@ -1,54 +1,75 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/contentwarehouse/v1/common.proto
 
 package com.google.cloud.contentwarehouse.v1;
 
 /**
+ *
+ *
  * 
  * The user information.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.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() { id_ = ""; - groupIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + groupIds_ = 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 UserInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UserInfo.class, com.google.cloud.contentwarehouse.v1.UserInfo.Builder.class); + com.google.cloud.contentwarehouse.v1.UserInfo.class, + com.google.cloud.contentwarehouse.v1.UserInfo.Builder.class); } public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** + * + * *
    * A unique user identification string, as determined by the client.
    * The maximum number of allowed characters is 255.
@@ -58,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string id = 1; + * * @return The id. */ @java.lang.Override @@ -66,14 +88,15 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
    * A unique user identification string, as determined by the client.
    * The maximum number of allowed characters is 255.
@@ -83,16 +106,15 @@ public java.lang.String getId() {
    * 
* * 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 { @@ -101,41 +123,50 @@ public java.lang.String getId() { } public static final int GROUP_IDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList groupIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; + * * @return A list containing the groupIds. */ - public com.google.protobuf.ProtocolStringList - getGroupIdsList() { + public com.google.protobuf.ProtocolStringList getGroupIdsList() { return groupIds_; } /** + * + * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; + * * @return The count of groupIds. */ public int getGroupIdsCount() { return groupIds_.size(); } /** + * + * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; + * * @param index The index of the element to return. * @return The groupIds at the given index. */ @@ -143,21 +174,24 @@ public java.lang.String getGroupIds(int index) { return groupIds_.get(index); } /** + * + * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the groupIds at the given index. */ - public com.google.protobuf.ByteString - getGroupIdsBytes(int index) { + public com.google.protobuf.ByteString getGroupIdsBytes(int index) { return groupIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -205,17 +238,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.contentwarehouse.v1.UserInfo)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.UserInfo other = (com.google.cloud.contentwarehouse.v1.UserInfo) obj; + com.google.cloud.contentwarehouse.v1.UserInfo other = + (com.google.cloud.contentwarehouse.v1.UserInfo) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getGroupIdsList() - .equals(other.getGroupIdsList())) return false; + if (!getId().equals(other.getId())) return false; + if (!getGroupIdsList().equals(other.getGroupIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,146 +270,149 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.UserInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.UserInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.UserInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.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.contentwarehouse.v1.UserInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.v1.UserInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.UserInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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.contentwarehouse.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; } /** + * + * *
    * The user information.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.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.contentwarehouse.v1.UserInfo) com.google.cloud.contentwarehouse.v1.UserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.UserInfo.class, com.google.cloud.contentwarehouse.v1.UserInfo.Builder.class); + com.google.cloud.contentwarehouse.v1.UserInfo.class, + com.google.cloud.contentwarehouse.v1.UserInfo.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.UserInfo.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; - groupIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + groupIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.CommonProto.internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.CommonProto + .internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; } @java.lang.Override @@ -396,8 +431,11 @@ public com.google.cloud.contentwarehouse.v1.UserInfo build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.UserInfo buildPartial() { - com.google.cloud.contentwarehouse.v1.UserInfo result = new com.google.cloud.contentwarehouse.v1.UserInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.UserInfo result = + new com.google.cloud.contentwarehouse.v1.UserInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -417,38 +455,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.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.contentwarehouse.v1.UserInfo) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.UserInfo)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.UserInfo) other); } else { super.mergeFrom(other); return this; @@ -498,23 +537,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureGroupIdsIsMutable(); - groupIds_.add(s); - 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGroupIdsIsMutable(); + groupIds_.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) { @@ -524,10 +566,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object id_ = ""; /** + * + * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -537,13 +582,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -552,6 +597,8 @@ public java.lang.String getId() { } } /** + * + * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -561,15 +608,14 @@ public java.lang.String getId() {
      * 
* * 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 { @@ -577,6 +623,8 @@ public java.lang.String getId() { } } /** + * + * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -586,18 +634,22 @@ public java.lang.String getId() {
      * 
* * 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; } /** + * + * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -607,6 +659,7 @@ public Builder setId(
      * 
* * string id = 1; + * * @return This builder for chaining. */ public Builder clearId() { @@ -616,6 +669,8 @@ public Builder clearId() { return this; } /** + * + * *
      * A unique user identification string, as determined by the client.
      * The maximum number of allowed characters is 255.
@@ -625,12 +680,14 @@ public Builder clearId() {
      * 
* * 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; @@ -640,6 +697,7 @@ public Builder setIdBytes( private com.google.protobuf.LazyStringArrayList groupIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureGroupIdsIsMutable() { if (!groupIds_.isModifiable()) { groupIds_ = new com.google.protobuf.LazyStringArrayList(groupIds_); @@ -647,38 +705,46 @@ private void ensureGroupIdsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; + * * @return A list containing the groupIds. */ - public com.google.protobuf.ProtocolStringList - getGroupIdsList() { + public com.google.protobuf.ProtocolStringList getGroupIdsList() { groupIds_.makeImmutable(); return groupIds_; } /** + * + * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; + * * @return The count of groupIds. */ public int getGroupIdsCount() { return groupIds_.size(); } /** + * + * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; + * * @param index The index of the element to return. * @return The groupIds at the given index. */ @@ -686,33 +752,39 @@ public java.lang.String getGroupIds(int index) { return groupIds_.get(index); } /** + * + * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the groupIds at the given index. */ - public com.google.protobuf.ByteString - getGroupIdsBytes(int index) { + public com.google.protobuf.ByteString getGroupIdsBytes(int index) { return groupIds_.getByteString(index); } /** + * + * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; + * * @param index The index to set the value at. * @param value The groupIds to set. * @return This builder for chaining. */ - public Builder setGroupIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGroupIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureGroupIdsIsMutable(); groupIds_.set(index, value); bitField0_ |= 0x00000002; @@ -720,18 +792,22 @@ public Builder setGroupIds( return this; } /** + * + * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; + * * @param value The groupIds to add. * @return This builder for chaining. */ - public Builder addGroupIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addGroupIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureGroupIdsIsMutable(); groupIds_.add(value); bitField0_ |= 0x00000002; @@ -739,53 +815,61 @@ public Builder addGroupIds( return this; } /** + * + * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; + * * @param values The groupIds to add. * @return This builder for chaining. */ - public Builder addAllGroupIds( - java.lang.Iterable values) { + public Builder addAllGroupIds(java.lang.Iterable values) { ensureGroupIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groupIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupIds_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; + * * @return This builder for chaining. */ public Builder clearGroupIds() { - groupIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + groupIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * The unique group identifications which the user is belong to.
      * The format is "group:yyyy@example.com";
      * 
* * repeated string group_ids = 2; + * * @param value The bytes of the groupIds to add. * @return This builder for chaining. */ - public Builder addGroupIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addGroupIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureGroupIdsIsMutable(); groupIds_.add(value); @@ -793,9 +877,9 @@ public Builder addGroupIdsBytes( 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); } @@ -805,12 +889,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.UserInfo) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.UserInfo) private static final com.google.cloud.contentwarehouse.v1.UserInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.UserInfo(); } @@ -819,27 +903,27 @@ public static com.google.cloud.contentwarehouse.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; @@ -854,6 +938,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.UserInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java similarity index 72% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java index 38183f7e46fc..ad3ec7426e4a 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UserInfoOrBuilder.java @@ -1,13 +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/contentwarehouse/v1/common.proto package com.google.cloud.contentwarehouse.v1; -public interface UserInfoOrBuilder extends +public interface UserInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UserInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A unique user identification string, as determined by the client.
    * The maximum number of allowed characters is 255.
@@ -17,10 +35,13 @@ public interface UserInfoOrBuilder extends
    * 
* * string id = 1; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * A unique user identification string, as determined by the client.
    * The maximum number of allowed characters is 255.
@@ -30,53 +51,63 @@ public interface UserInfoOrBuilder extends
    * 
* * string id = 1; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; + * * @return A list containing the groupIds. */ - java.util.List - getGroupIdsList(); + java.util.List getGroupIdsList(); /** + * + * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; + * * @return The count of groupIds. */ int getGroupIdsCount(); /** + * + * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; + * * @param index The index of the element to return. * @return The groupIds at the given index. */ java.lang.String getGroupIds(int index); /** + * + * *
    * The unique group identifications which the user is belong to.
    * The format is "group:yyyy@example.com";
    * 
* * repeated string group_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the groupIds at the given index. */ - com.google.protobuf.ByteString - getGroupIdsBytes(int index); + com.google.protobuf.ByteString getGroupIdsBytes(int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java similarity index 71% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java index b988cbe6d2e2..8b93029fba42 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/Value.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * `Value` represents a dynamically typed value which can be either be
  * a float, a integer, a string, or a datetime value. A producer of value is
@@ -13,43 +30,47 @@
  *
  * Protobuf type {@code google.cloud.contentwarehouse.v1.Value}
  */
-public final class Value extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Value extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.Value)
     ValueOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Value.newBuilder() to construct.
   private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Value() {
-  }
+
+  private Value() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Value();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Value_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.contentwarehouse.v1.DocumentProto
+        .internal_static_google_cloud_contentwarehouse_v1_Value_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable
+    return com.google.cloud.contentwarehouse.v1.DocumentProto
+        .internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.contentwarehouse.v1.Value.class, com.google.cloud.contentwarehouse.v1.Value.Builder.class);
+            com.google.cloud.contentwarehouse.v1.Value.class,
+            com.google.cloud.contentwarehouse.v1.Value.Builder.class);
   }
 
   private int kindCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object kind_;
+
   public enum KindCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     FLOAT_VALUE(1),
     INT_VALUE(2),
@@ -60,6 +81,7 @@ public enum KindCase
     BOOLEAN_VALUE(7),
     KIND_NOT_SET(0);
     private final int value;
+
     private KindCase(int value) {
       this.value = value;
     }
@@ -75,35 +97,46 @@ public static KindCase valueOf(int value) {
 
     public static KindCase forNumber(int value) {
       switch (value) {
-        case 1: return FLOAT_VALUE;
-        case 2: return INT_VALUE;
-        case 3: return STRING_VALUE;
-        case 4: return ENUM_VALUE;
-        case 5: return DATETIME_VALUE;
-        case 6: return TIMESTAMP_VALUE;
-        case 7: return BOOLEAN_VALUE;
-        case 0: return KIND_NOT_SET;
-        default: return null;
+        case 1:
+          return FLOAT_VALUE;
+        case 2:
+          return INT_VALUE;
+        case 3:
+          return STRING_VALUE;
+        case 4:
+          return ENUM_VALUE;
+        case 5:
+          return DATETIME_VALUE;
+        case 6:
+          return TIMESTAMP_VALUE;
+        case 7:
+          return BOOLEAN_VALUE;
+        case 0:
+          return KIND_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public KindCase
-  getKindCase() {
-    return KindCase.forNumber(
-        kindCase_);
+  public KindCase getKindCase() {
+    return KindCase.forNumber(kindCase_);
   }
 
   public static final int FLOAT_VALUE_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Represents a float value.
    * 
* * float float_value = 1; + * * @return Whether the floatValue field is set. */ @java.lang.Override @@ -111,11 +144,14 @@ public boolean hasFloatValue() { return kindCase_ == 1; } /** + * + * *
    * Represents a float value.
    * 
* * float float_value = 1; + * * @return The floatValue. */ @java.lang.Override @@ -128,11 +164,14 @@ public float getFloatValue() { public static final int INT_VALUE_FIELD_NUMBER = 2; /** + * + * *
    * Represents a integer value.
    * 
* * int32 int_value = 2; + * * @return Whether the intValue field is set. */ @java.lang.Override @@ -140,11 +179,14 @@ public boolean hasIntValue() { return kindCase_ == 2; } /** + * + * *
    * Represents a integer value.
    * 
* * int32 int_value = 2; + * * @return The intValue. */ @java.lang.Override @@ -157,22 +199,28 @@ public int getIntValue() { public static final int STRING_VALUE_FIELD_NUMBER = 3; /** + * + * *
    * Represents a string value.
    * 
* * string string_value = 3; + * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return kindCase_ == 3; } /** + * + * *
    * Represents a string value.
    * 
* * string string_value = 3; + * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -183,8 +231,7 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (kindCase_ == 3) { kind_ = s; @@ -193,23 +240,24 @@ public java.lang.String getStringValue() { } } /** + * + * *
    * Represents a string value.
    * 
* * string string_value = 3; + * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (kindCase_ == 3) { ref = kind_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (kindCase_ == 3) { kind_ = b; } @@ -221,11 +269,14 @@ public java.lang.String getStringValue() { public static final int ENUM_VALUE_FIELD_NUMBER = 4; /** + * + * *
    * Represents an enum value.
    * 
* * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; + * * @return Whether the enumValue field is set. */ @java.lang.Override @@ -233,21 +284,26 @@ public boolean hasEnumValue() { return kindCase_ == 4; } /** + * + * *
    * Represents an enum value.
    * 
* * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; + * * @return The enumValue. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumValue getEnumValue() { if (kindCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.EnumValue) kind_; + return (com.google.cloud.contentwarehouse.v1.EnumValue) kind_; } return com.google.cloud.contentwarehouse.v1.EnumValue.getDefaultInstance(); } /** + * + * *
    * Represents an enum value.
    * 
@@ -257,18 +313,21 @@ public com.google.cloud.contentwarehouse.v1.EnumValue getEnumValue() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder getEnumValueOrBuilder() { if (kindCase_ == 4) { - return (com.google.cloud.contentwarehouse.v1.EnumValue) kind_; + return (com.google.cloud.contentwarehouse.v1.EnumValue) kind_; } return com.google.cloud.contentwarehouse.v1.EnumValue.getDefaultInstance(); } public static final int DATETIME_VALUE_FIELD_NUMBER = 5; /** + * + * *
    * Represents a datetime value.
    * 
* * .google.type.DateTime datetime_value = 5; + * * @return Whether the datetimeValue field is set. */ @java.lang.Override @@ -276,21 +335,26 @@ public boolean hasDatetimeValue() { return kindCase_ == 5; } /** + * + * *
    * Represents a datetime value.
    * 
* * .google.type.DateTime datetime_value = 5; + * * @return The datetimeValue. */ @java.lang.Override public com.google.type.DateTime getDatetimeValue() { if (kindCase_ == 5) { - return (com.google.type.DateTime) kind_; + return (com.google.type.DateTime) kind_; } return com.google.type.DateTime.getDefaultInstance(); } /** + * + * *
    * Represents a datetime value.
    * 
@@ -300,18 +364,21 @@ public com.google.type.DateTime getDatetimeValue() { @java.lang.Override public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder() { if (kindCase_ == 5) { - return (com.google.type.DateTime) kind_; + return (com.google.type.DateTime) kind_; } return com.google.type.DateTime.getDefaultInstance(); } public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 6; /** + * + * *
    * Represents a timestamp value.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; + * * @return Whether the timestampValue field is set. */ @java.lang.Override @@ -319,21 +386,26 @@ public boolean hasTimestampValue() { return kindCase_ == 6; } /** + * + * *
    * Represents a timestamp value.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; + * * @return The timestampValue. */ @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampValue getTimestampValue() { if (kindCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_; + return (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_; } return com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance(); } /** + * + * *
    * Represents a timestamp value.
    * 
@@ -343,18 +415,21 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue getTimestampValue() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getTimestampValueOrBuilder() { if (kindCase_ == 6) { - return (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_; + return (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_; } return com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance(); } public static final int BOOLEAN_VALUE_FIELD_NUMBER = 7; /** + * + * *
    * Represents a boolean value.
    * 
* * bool boolean_value = 7; + * * @return Whether the booleanValue field is set. */ @java.lang.Override @@ -362,11 +437,14 @@ public boolean hasBooleanValue() { return kindCase_ == 7; } /** + * + * *
    * Represents a boolean value.
    * 
* * bool boolean_value = 7; + * * @return The booleanValue. */ @java.lang.Override @@ -378,6 +456,7 @@ public boolean getBooleanValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -389,15 +468,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 (kindCase_ == 1) { - output.writeFloat( - 1, (float)((java.lang.Float) kind_)); + output.writeFloat(1, (float) ((java.lang.Float) kind_)); } if (kindCase_ == 2) { - output.writeInt32( - 2, (int)((java.lang.Integer) kind_)); + output.writeInt32(2, (int) ((java.lang.Integer) kind_)); } if (kindCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kind_); @@ -412,8 +488,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(6, (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_); } if (kindCase_ == 7) { - output.writeBool( - 7, (boolean)((java.lang.Boolean) kind_)); + output.writeBool(7, (boolean) ((java.lang.Boolean) kind_)); } getUnknownFields().writeTo(output); } @@ -425,34 +500,37 @@ public int getSerializedSize() { size = 0; if (kindCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 1, (float)((java.lang.Float) kind_)); + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 1, (float) ((java.lang.Float) kind_)); } if (kindCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 2, (int)((java.lang.Integer) kind_)); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 2, (int) ((java.lang.Integer) kind_)); } if (kindCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kind_); } if (kindCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.contentwarehouse.v1.EnumValue) kind_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.contentwarehouse.v1.EnumValue) kind_); } if (kindCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.type.DateTime) kind_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.type.DateTime) kind_); } if (kindCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_); } if (kindCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 7, (boolean)((java.lang.Boolean) kind_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 7, (boolean) ((java.lang.Boolean) kind_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -462,43 +540,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.contentwarehouse.v1.Value)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.Value other = (com.google.cloud.contentwarehouse.v1.Value) obj; + com.google.cloud.contentwarehouse.v1.Value other = + (com.google.cloud.contentwarehouse.v1.Value) obj; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 1: if (java.lang.Float.floatToIntBits(getFloatValue()) - != java.lang.Float.floatToIntBits( - other.getFloatValue())) return false; + != java.lang.Float.floatToIntBits(other.getFloatValue())) return false; break; case 2: - if (getIntValue() - != other.getIntValue()) return false; + if (getIntValue() != other.getIntValue()) return false; break; case 3: - if (!getStringValue() - .equals(other.getStringValue())) return false; + if (!getStringValue().equals(other.getStringValue())) return false; break; case 4: - if (!getEnumValue() - .equals(other.getEnumValue())) return false; + if (!getEnumValue().equals(other.getEnumValue())) return false; break; case 5: - if (!getDatetimeValue() - .equals(other.getDatetimeValue())) return false; + if (!getDatetimeValue().equals(other.getDatetimeValue())) return false; break; case 6: - if (!getTimestampValue() - .equals(other.getTimestampValue())) return false; + if (!getTimestampValue().equals(other.getTimestampValue())) return false; break; case 7: - if (getBooleanValue() - != other.getBooleanValue()) return false; + if (getBooleanValue() != other.getBooleanValue()) return false; break; case 0: default: @@ -517,8 +589,7 @@ public int hashCode() { switch (kindCase_) { case 1: hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getFloatValue()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFloatValue()); break; case 2: hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; @@ -542,8 +613,7 @@ public int hashCode() { break; case 7: hash = (37 * hash) + BOOLEAN_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBooleanValue()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBooleanValue()); break; case 0: default: @@ -553,99 +623,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.contentwarehouse.v1.Value parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.contentwarehouse.v1.Value parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.Value parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.Value parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.Value parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.Value 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.contentwarehouse.v1.Value parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.Value parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.Value parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.Value 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.contentwarehouse.v1.Value parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.Value parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.Value prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * `Value` represents a dynamically typed value which can be either be
    * a float, a integer, a string, or a datetime value. A producer of value is
@@ -655,33 +730,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.contentwarehouse.v1.Value}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.Value)
       com.google.cloud.contentwarehouse.v1.ValueOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Value_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.contentwarehouse.v1.DocumentProto
+          .internal_static_google_cloud_contentwarehouse_v1_Value_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable
+      return com.google.cloud.contentwarehouse.v1.DocumentProto
+          .internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.contentwarehouse.v1.Value.class, com.google.cloud.contentwarehouse.v1.Value.Builder.class);
+              com.google.cloud.contentwarehouse.v1.Value.class,
+              com.google.cloud.contentwarehouse.v1.Value.Builder.class);
     }
 
     // Construct using com.google.cloud.contentwarehouse.v1.Value.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -701,9 +775,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.contentwarehouse.v1.DocumentProto.internal_static_google_cloud_contentwarehouse_v1_Value_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.contentwarehouse.v1.DocumentProto
+          .internal_static_google_cloud_contentwarehouse_v1_Value_descriptor;
     }
 
     @java.lang.Override
@@ -722,8 +796,11 @@ public com.google.cloud.contentwarehouse.v1.Value build() {
 
     @java.lang.Override
     public com.google.cloud.contentwarehouse.v1.Value buildPartial() {
-      com.google.cloud.contentwarehouse.v1.Value result = new com.google.cloud.contentwarehouse.v1.Value(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.contentwarehouse.v1.Value result =
+          new com.google.cloud.contentwarehouse.v1.Value(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -736,16 +813,13 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.Value result) {
     private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Value result) {
       result.kindCase_ = kindCase_;
       result.kind_ = this.kind_;
-      if (kindCase_ == 4 &&
-          enumValueBuilder_ != null) {
+      if (kindCase_ == 4 && enumValueBuilder_ != null) {
         result.kind_ = enumValueBuilder_.build();
       }
-      if (kindCase_ == 5 &&
-          datetimeValueBuilder_ != null) {
+      if (kindCase_ == 5 && datetimeValueBuilder_ != null) {
         result.kind_ = datetimeValueBuilder_.build();
       }
-      if (kindCase_ == 6 &&
-          timestampValueBuilder_ != null) {
+      if (kindCase_ == 6 && timestampValueBuilder_ != null) {
         result.kind_ = timestampValueBuilder_.build();
       }
     }
@@ -754,38 +828,39 @@ private void buildPartialOneofs(com.google.cloud.contentwarehouse.v1.Value 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.contentwarehouse.v1.Value) {
-        return mergeFrom((com.google.cloud.contentwarehouse.v1.Value)other);
+        return mergeFrom((com.google.cloud.contentwarehouse.v1.Value) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -795,39 +870,47 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.Value other) {
       if (other == com.google.cloud.contentwarehouse.v1.Value.getDefaultInstance()) return this;
       switch (other.getKindCase()) {
-        case FLOAT_VALUE: {
-          setFloatValue(other.getFloatValue());
-          break;
-        }
-        case INT_VALUE: {
-          setIntValue(other.getIntValue());
-          break;
-        }
-        case STRING_VALUE: {
-          kindCase_ = 3;
-          kind_ = other.kind_;
-          onChanged();
-          break;
-        }
-        case ENUM_VALUE: {
-          mergeEnumValue(other.getEnumValue());
-          break;
-        }
-        case DATETIME_VALUE: {
-          mergeDatetimeValue(other.getDatetimeValue());
-          break;
-        }
-        case TIMESTAMP_VALUE: {
-          mergeTimestampValue(other.getTimestampValue());
-          break;
-        }
-        case BOOLEAN_VALUE: {
-          setBooleanValue(other.getBooleanValue());
-          break;
-        }
-        case KIND_NOT_SET: {
-          break;
-        }
+        case FLOAT_VALUE:
+          {
+            setFloatValue(other.getFloatValue());
+            break;
+          }
+        case INT_VALUE:
+          {
+            setIntValue(other.getIntValue());
+            break;
+          }
+        case STRING_VALUE:
+          {
+            kindCase_ = 3;
+            kind_ = other.kind_;
+            onChanged();
+            break;
+          }
+        case ENUM_VALUE:
+          {
+            mergeEnumValue(other.getEnumValue());
+            break;
+          }
+        case DATETIME_VALUE:
+          {
+            mergeDatetimeValue(other.getDatetimeValue());
+            break;
+          }
+        case TIMESTAMP_VALUE:
+          {
+            mergeTimestampValue(other.getTimestampValue());
+            break;
+          }
+        case BOOLEAN_VALUE:
+          {
+            setBooleanValue(other.getBooleanValue());
+            break;
+          }
+        case KIND_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -855,54 +938,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 13: {
-              kind_ = input.readFloat();
-              kindCase_ = 1;
-              break;
-            } // case 13
-            case 16: {
-              kind_ = input.readInt32();
-              kindCase_ = 2;
-              break;
-            } // case 16
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              kindCase_ = 3;
-              kind_ = s;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getEnumValueFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              kindCase_ = 4;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getDatetimeValueFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              kindCase_ = 5;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getTimestampValueFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              kindCase_ = 6;
-              break;
-            } // case 50
-            case 56: {
-              kind_ = input.readBool();
-              kindCase_ = 7;
-              break;
-            } // case 56
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 13:
+              {
+                kind_ = input.readFloat();
+                kindCase_ = 1;
+                break;
+              } // case 13
+            case 16:
+              {
+                kind_ = input.readInt32();
+                kindCase_ = 2;
+                break;
+              } // case 16
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                kindCase_ = 3;
+                kind_ = s;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getEnumValueFieldBuilder().getBuilder(), extensionRegistry);
+                kindCase_ = 4;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getDatetimeValueFieldBuilder().getBuilder(), extensionRegistry);
+                kindCase_ = 5;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getTimestampValueFieldBuilder().getBuilder(), extensionRegistry);
+                kindCase_ = 6;
+                break;
+              } // case 50
+            case 56:
+              {
+                kind_ = input.readBool();
+                kindCase_ = 7;
+                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) {
@@ -912,12 +997,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int kindCase_ = 0;
     private java.lang.Object kind_;
-    public KindCase
-        getKindCase() {
-      return KindCase.forNumber(
-          kindCase_);
+
+    public KindCase getKindCase() {
+      return KindCase.forNumber(kindCase_);
     }
 
     public Builder clearKind() {
@@ -930,22 +1015,28 @@ public Builder clearKind() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * Represents a float value.
      * 
* * float float_value = 1; + * * @return Whether the floatValue field is set. */ public boolean hasFloatValue() { return kindCase_ == 1; } /** + * + * *
      * Represents a float value.
      * 
* * float float_value = 1; + * * @return The floatValue. */ public float getFloatValue() { @@ -955,11 +1046,14 @@ public float getFloatValue() { return 0F; } /** + * + * *
      * Represents a float value.
      * 
* * float float_value = 1; + * * @param value The floatValue to set. * @return This builder for chaining. */ @@ -971,11 +1065,14 @@ public Builder setFloatValue(float value) { return this; } /** + * + * *
      * Represents a float value.
      * 
* * float float_value = 1; + * * @return This builder for chaining. */ public Builder clearFloatValue() { @@ -988,22 +1085,28 @@ public Builder clearFloatValue() { } /** + * + * *
      * Represents a integer value.
      * 
* * int32 int_value = 2; + * * @return Whether the intValue field is set. */ public boolean hasIntValue() { return kindCase_ == 2; } /** + * + * *
      * Represents a integer value.
      * 
* * int32 int_value = 2; + * * @return The intValue. */ public int getIntValue() { @@ -1013,11 +1116,14 @@ public int getIntValue() { return 0; } /** + * + * *
      * Represents a integer value.
      * 
* * int32 int_value = 2; + * * @param value The intValue to set. * @return This builder for chaining. */ @@ -1029,11 +1135,14 @@ public Builder setIntValue(int value) { return this; } /** + * + * *
      * Represents a integer value.
      * 
* * int32 int_value = 2; + * * @return This builder for chaining. */ public Builder clearIntValue() { @@ -1046,11 +1155,14 @@ public Builder clearIntValue() { } /** + * + * *
      * Represents a string value.
      * 
* * string string_value = 3; + * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -1058,11 +1170,14 @@ public boolean hasStringValue() { return kindCase_ == 3; } /** + * + * *
      * Represents a string value.
      * 
* * string string_value = 3; + * * @return The stringValue. */ @java.lang.Override @@ -1072,8 +1187,7 @@ public java.lang.String getStringValue() { ref = kind_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (kindCase_ == 3) { kind_ = s; @@ -1084,24 +1198,25 @@ public java.lang.String getStringValue() { } } /** + * + * *
      * Represents a string value.
      * 
* * string string_value = 3; + * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (kindCase_ == 3) { ref = kind_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (kindCase_ == 3) { kind_ = b; } @@ -1111,28 +1226,35 @@ public java.lang.String getStringValue() { } } /** + * + * *
      * Represents a string value.
      * 
* * string string_value = 3; + * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kindCase_ = 3; kind_ = value; onChanged(); return this; } /** + * + * *
      * Represents a string value.
      * 
* * string string_value = 3; + * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -1144,17 +1266,21 @@ public Builder clearStringValue() { return this; } /** + * + * *
      * Represents a string value.
      * 
* * string string_value = 3; + * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kindCase_ = 3; kind_ = value; @@ -1163,13 +1289,19 @@ public Builder setStringValueBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumValue, com.google.cloud.contentwarehouse.v1.EnumValue.Builder, com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder> enumValueBuilder_; + com.google.cloud.contentwarehouse.v1.EnumValue, + com.google.cloud.contentwarehouse.v1.EnumValue.Builder, + com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder> + enumValueBuilder_; /** + * + * *
      * Represents an enum value.
      * 
* * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; + * * @return Whether the enumValue field is set. */ @java.lang.Override @@ -1177,11 +1309,14 @@ public boolean hasEnumValue() { return kindCase_ == 4; } /** + * + * *
      * Represents an enum value.
      * 
* * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; + * * @return The enumValue. */ @java.lang.Override @@ -1199,6 +1334,8 @@ public com.google.cloud.contentwarehouse.v1.EnumValue getEnumValue() { } } /** + * + * *
      * Represents an enum value.
      * 
@@ -1219,6 +1356,8 @@ public Builder setEnumValue(com.google.cloud.contentwarehouse.v1.EnumValue value return this; } /** + * + * *
      * Represents an enum value.
      * 
@@ -1237,6 +1376,8 @@ public Builder setEnumValue( return this; } /** + * + * *
      * Represents an enum value.
      * 
@@ -1245,10 +1386,13 @@ public Builder setEnumValue( */ public Builder mergeEnumValue(com.google.cloud.contentwarehouse.v1.EnumValue value) { if (enumValueBuilder_ == null) { - if (kindCase_ == 4 && - kind_ != com.google.cloud.contentwarehouse.v1.EnumValue.getDefaultInstance()) { - kind_ = com.google.cloud.contentwarehouse.v1.EnumValue.newBuilder((com.google.cloud.contentwarehouse.v1.EnumValue) kind_) - .mergeFrom(value).buildPartial(); + if (kindCase_ == 4 + && kind_ != com.google.cloud.contentwarehouse.v1.EnumValue.getDefaultInstance()) { + kind_ = + com.google.cloud.contentwarehouse.v1.EnumValue.newBuilder( + (com.google.cloud.contentwarehouse.v1.EnumValue) kind_) + .mergeFrom(value) + .buildPartial(); } else { kind_ = value; } @@ -1264,6 +1408,8 @@ public Builder mergeEnumValue(com.google.cloud.contentwarehouse.v1.EnumValue val return this; } /** + * + * *
      * Represents an enum value.
      * 
@@ -1287,6 +1433,8 @@ public Builder clearEnumValue() { return this; } /** + * + * *
      * Represents an enum value.
      * 
@@ -1297,6 +1445,8 @@ public com.google.cloud.contentwarehouse.v1.EnumValue.Builder getEnumValueBuilde return getEnumValueFieldBuilder().getBuilder(); } /** + * + * *
      * Represents an enum value.
      * 
@@ -1315,6 +1465,8 @@ public com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder getEnumValueOrBui } } /** + * + * *
      * Represents an enum value.
      * 
@@ -1322,14 +1474,19 @@ public com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder getEnumValueOrBui * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumValue, com.google.cloud.contentwarehouse.v1.EnumValue.Builder, com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder> + com.google.cloud.contentwarehouse.v1.EnumValue, + com.google.cloud.contentwarehouse.v1.EnumValue.Builder, + com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder> getEnumValueFieldBuilder() { if (enumValueBuilder_ == null) { if (!(kindCase_ == 4)) { kind_ = com.google.cloud.contentwarehouse.v1.EnumValue.getDefaultInstance(); } - enumValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.EnumValue, com.google.cloud.contentwarehouse.v1.EnumValue.Builder, com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder>( + enumValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.EnumValue, + com.google.cloud.contentwarehouse.v1.EnumValue.Builder, + com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder>( (com.google.cloud.contentwarehouse.v1.EnumValue) kind_, getParentForChildren(), isClean()); @@ -1341,13 +1498,19 @@ public com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder getEnumValueOrBui } private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.DateTime, com.google.type.DateTime.Builder, com.google.type.DateTimeOrBuilder> datetimeValueBuilder_; + com.google.type.DateTime, + com.google.type.DateTime.Builder, + com.google.type.DateTimeOrBuilder> + datetimeValueBuilder_; /** + * + * *
      * Represents a datetime value.
      * 
* * .google.type.DateTime datetime_value = 5; + * * @return Whether the datetimeValue field is set. */ @java.lang.Override @@ -1355,11 +1518,14 @@ public boolean hasDatetimeValue() { return kindCase_ == 5; } /** + * + * *
      * Represents a datetime value.
      * 
* * .google.type.DateTime datetime_value = 5; + * * @return The datetimeValue. */ @java.lang.Override @@ -1377,6 +1543,8 @@ public com.google.type.DateTime getDatetimeValue() { } } /** + * + * *
      * Represents a datetime value.
      * 
@@ -1397,14 +1565,15 @@ public Builder setDatetimeValue(com.google.type.DateTime value) { return this; } /** + * + * *
      * Represents a datetime value.
      * 
* * .google.type.DateTime datetime_value = 5; */ - public Builder setDatetimeValue( - com.google.type.DateTime.Builder builderForValue) { + public Builder setDatetimeValue(com.google.type.DateTime.Builder builderForValue) { if (datetimeValueBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); @@ -1415,6 +1584,8 @@ public Builder setDatetimeValue( return this; } /** + * + * *
      * Represents a datetime value.
      * 
@@ -1423,10 +1594,11 @@ public Builder setDatetimeValue( */ public Builder mergeDatetimeValue(com.google.type.DateTime value) { if (datetimeValueBuilder_ == null) { - if (kindCase_ == 5 && - kind_ != com.google.type.DateTime.getDefaultInstance()) { - kind_ = com.google.type.DateTime.newBuilder((com.google.type.DateTime) kind_) - .mergeFrom(value).buildPartial(); + if (kindCase_ == 5 && kind_ != com.google.type.DateTime.getDefaultInstance()) { + kind_ = + com.google.type.DateTime.newBuilder((com.google.type.DateTime) kind_) + .mergeFrom(value) + .buildPartial(); } else { kind_ = value; } @@ -1442,6 +1614,8 @@ public Builder mergeDatetimeValue(com.google.type.DateTime value) { return this; } /** + * + * *
      * Represents a datetime value.
      * 
@@ -1465,6 +1639,8 @@ public Builder clearDatetimeValue() { return this; } /** + * + * *
      * Represents a datetime value.
      * 
@@ -1475,6 +1651,8 @@ public com.google.type.DateTime.Builder getDatetimeValueBuilder() { return getDatetimeValueFieldBuilder().getBuilder(); } /** + * + * *
      * Represents a datetime value.
      * 
@@ -1493,6 +1671,8 @@ public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder() { } } /** + * + * *
      * Represents a datetime value.
      * 
@@ -1500,17 +1680,20 @@ public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder() { * .google.type.DateTime datetime_value = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.DateTime, com.google.type.DateTime.Builder, com.google.type.DateTimeOrBuilder> + com.google.type.DateTime, + com.google.type.DateTime.Builder, + com.google.type.DateTimeOrBuilder> getDatetimeValueFieldBuilder() { if (datetimeValueBuilder_ == null) { if (!(kindCase_ == 5)) { kind_ = com.google.type.DateTime.getDefaultInstance(); } - datetimeValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.DateTime, com.google.type.DateTime.Builder, com.google.type.DateTimeOrBuilder>( - (com.google.type.DateTime) kind_, - getParentForChildren(), - isClean()); + datetimeValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.DateTime, + com.google.type.DateTime.Builder, + com.google.type.DateTimeOrBuilder>( + (com.google.type.DateTime) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 5; @@ -1519,13 +1702,19 @@ public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampValue, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> timestampValueBuilder_; + com.google.cloud.contentwarehouse.v1.TimestampValue, + com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, + com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> + timestampValueBuilder_; /** + * + * *
      * Represents a timestamp value.
      * 
* * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; + * * @return Whether the timestampValue field is set. */ @java.lang.Override @@ -1533,11 +1722,14 @@ public boolean hasTimestampValue() { return kindCase_ == 6; } /** + * + * *
      * Represents a timestamp value.
      * 
* * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; + * * @return The timestampValue. */ @java.lang.Override @@ -1555,6 +1747,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue getTimestampValue() { } } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1575,6 +1769,8 @@ public Builder setTimestampValue(com.google.cloud.contentwarehouse.v1.TimestampV return this; } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1593,6 +1789,8 @@ public Builder setTimestampValue( return this; } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1601,10 +1799,13 @@ public Builder setTimestampValue( */ public Builder mergeTimestampValue(com.google.cloud.contentwarehouse.v1.TimestampValue value) { if (timestampValueBuilder_ == null) { - if (kindCase_ == 6 && - kind_ != com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()) { - kind_ = com.google.cloud.contentwarehouse.v1.TimestampValue.newBuilder((com.google.cloud.contentwarehouse.v1.TimestampValue) kind_) - .mergeFrom(value).buildPartial(); + if (kindCase_ == 6 + && kind_ != com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance()) { + kind_ = + com.google.cloud.contentwarehouse.v1.TimestampValue.newBuilder( + (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_) + .mergeFrom(value) + .buildPartial(); } else { kind_ = value; } @@ -1620,6 +1821,8 @@ public Builder mergeTimestampValue(com.google.cloud.contentwarehouse.v1.Timestam return this; } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1643,6 +1846,8 @@ public Builder clearTimestampValue() { return this; } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1653,6 +1858,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getTimestampV return getTimestampValueFieldBuilder().getBuilder(); } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1660,7 +1867,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampValue.Builder getTimestampV * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; */ @java.lang.Override - public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getTimestampValueOrBuilder() { + public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder + getTimestampValueOrBuilder() { if ((kindCase_ == 6) && (timestampValueBuilder_ != null)) { return timestampValueBuilder_.getMessageOrBuilder(); } else { @@ -1671,6 +1879,8 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getTimestamp } } /** + * + * *
      * Represents a timestamp value.
      * 
@@ -1678,14 +1888,19 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getTimestamp * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampValue, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> + com.google.cloud.contentwarehouse.v1.TimestampValue, + com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, + com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder> getTimestampValueFieldBuilder() { if (timestampValueBuilder_ == null) { if (!(kindCase_ == 6)) { kind_ = com.google.cloud.contentwarehouse.v1.TimestampValue.getDefaultInstance(); } - timestampValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.contentwarehouse.v1.TimestampValue, com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder>( + timestampValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contentwarehouse.v1.TimestampValue, + com.google.cloud.contentwarehouse.v1.TimestampValue.Builder, + com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder>( (com.google.cloud.contentwarehouse.v1.TimestampValue) kind_, getParentForChildren(), isClean()); @@ -1697,22 +1912,28 @@ public com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getTimestamp } /** + * + * *
      * Represents a boolean value.
      * 
* * bool boolean_value = 7; + * * @return Whether the booleanValue field is set. */ public boolean hasBooleanValue() { return kindCase_ == 7; } /** + * + * *
      * Represents a boolean value.
      * 
* * bool boolean_value = 7; + * * @return The booleanValue. */ public boolean getBooleanValue() { @@ -1722,11 +1943,14 @@ public boolean getBooleanValue() { return false; } /** + * + * *
      * Represents a boolean value.
      * 
* * bool boolean_value = 7; + * * @param value The booleanValue to set. * @return This builder for chaining. */ @@ -1738,11 +1962,14 @@ public Builder setBooleanValue(boolean value) { return this; } /** + * + * *
      * Represents a boolean value.
      * 
* * bool boolean_value = 7; + * * @return This builder for chaining. */ public Builder clearBooleanValue() { @@ -1753,9 +1980,9 @@ public Builder clearBooleanValue() { } 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); } @@ -1765,12 +1992,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.Value) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.Value) private static final com.google.cloud.contentwarehouse.v1.Value DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.Value(); } @@ -1779,27 +2006,27 @@ public static com.google.cloud.contentwarehouse.v1.Value getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Value parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Value parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1814,6 +2041,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java similarity index 81% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java index 5a485d4bc3d7..42f8eac162dd 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/ValueOrBuilder.java @@ -1,98 +1,142 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/document.proto package com.google.cloud.contentwarehouse.v1; -public interface ValueOrBuilder extends +public interface ValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.Value) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Represents a float value.
    * 
* * float float_value = 1; + * * @return Whether the floatValue field is set. */ boolean hasFloatValue(); /** + * + * *
    * Represents a float value.
    * 
* * float float_value = 1; + * * @return The floatValue. */ float getFloatValue(); /** + * + * *
    * Represents a integer value.
    * 
* * int32 int_value = 2; + * * @return Whether the intValue field is set. */ boolean hasIntValue(); /** + * + * *
    * Represents a integer value.
    * 
* * int32 int_value = 2; + * * @return The intValue. */ int getIntValue(); /** + * + * *
    * Represents a string value.
    * 
* * string string_value = 3; + * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** + * + * *
    * Represents a string value.
    * 
* * string string_value = 3; + * * @return The stringValue. */ java.lang.String getStringValue(); /** + * + * *
    * Represents a string value.
    * 
* * string string_value = 3; + * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString - getStringValueBytes(); + com.google.protobuf.ByteString getStringValueBytes(); /** + * + * *
    * Represents an enum value.
    * 
* * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; + * * @return Whether the enumValue field is set. */ boolean hasEnumValue(); /** + * + * *
    * Represents an enum value.
    * 
* * .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4; + * * @return The enumValue. */ com.google.cloud.contentwarehouse.v1.EnumValue getEnumValue(); /** + * + * *
    * Represents an enum value.
    * 
@@ -102,24 +146,32 @@ public interface ValueOrBuilder extends com.google.cloud.contentwarehouse.v1.EnumValueOrBuilder getEnumValueOrBuilder(); /** + * + * *
    * Represents a datetime value.
    * 
* * .google.type.DateTime datetime_value = 5; + * * @return Whether the datetimeValue field is set. */ boolean hasDatetimeValue(); /** + * + * *
    * Represents a datetime value.
    * 
* * .google.type.DateTime datetime_value = 5; + * * @return The datetimeValue. */ com.google.type.DateTime getDatetimeValue(); /** + * + * *
    * Represents a datetime value.
    * 
@@ -129,24 +181,32 @@ public interface ValueOrBuilder extends com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder(); /** + * + * *
    * Represents a timestamp value.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; + * * @return Whether the timestampValue field is set. */ boolean hasTimestampValue(); /** + * + * *
    * Represents a timestamp value.
    * 
* * .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6; + * * @return The timestampValue. */ com.google.cloud.contentwarehouse.v1.TimestampValue getTimestampValue(); /** + * + * *
    * Represents a timestamp value.
    * 
@@ -156,20 +216,26 @@ public interface ValueOrBuilder extends com.google.cloud.contentwarehouse.v1.TimestampValueOrBuilder getTimestampValueOrBuilder(); /** + * + * *
    * Represents a boolean value.
    * 
* * bool boolean_value = 7; + * * @return Whether the booleanValue field is set. */ boolean hasBooleanValue(); /** + * + * *
    * Represents a boolean value.
    * 
* * bool boolean_value = 7; + * * @return The booleanValue. */ boolean getBooleanValue(); diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java similarity index 68% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java index 004aa45adc3c..8087e8c31295 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaProperty.java @@ -1,59 +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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; /** + * + * *
  * Specifies the schema property name.
  * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.WeightedSchemaProperty} */ -public final class WeightedSchemaProperty extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WeightedSchemaProperty extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.WeightedSchemaProperty) WeightedSchemaPropertyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WeightedSchemaProperty.newBuilder() to construct. private WeightedSchemaProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WeightedSchemaProperty() { documentSchemaName_ = ""; - propertyNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + propertyNames_ = 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 WeightedSchemaProperty(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.class, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder.class); + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.class, + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder.class); } public static final int DOCUMENT_SCHEMA_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object documentSchemaName_ = ""; /** + * + * *
    * The document schema name.
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The documentSchemaName. */ @java.lang.Override @@ -62,29 +84,29 @@ public java.lang.String getDocumentSchemaName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentSchemaName_ = s; return s; } } /** + * + * *
    * The document schema name.
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for documentSchemaName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDocumentSchemaNameBytes() { + public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { java.lang.Object ref = documentSchemaName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentSchemaName_ = b; return b; } else { @@ -93,38 +115,47 @@ public java.lang.String getDocumentSchemaName() { } public static final int PROPERTY_NAMES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; + * * @return A list containing the propertyNames. */ - public com.google.protobuf.ProtocolStringList - getPropertyNamesList() { + public com.google.protobuf.ProtocolStringList getPropertyNamesList() { return propertyNames_; } /** + * + * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; + * * @return The count of propertyNames. */ public int getPropertyNamesCount() { return propertyNames_.size(); } /** + * + * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; + * * @param index The index of the element to return. * @return The propertyNames at the given index. */ @@ -132,20 +163,23 @@ public java.lang.String getPropertyNames(int index) { return propertyNames_.get(index); } /** + * + * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; + * * @param index The index of the value to return. * @return The bytes of the propertyNames at the given index. */ - public com.google.protobuf.ByteString - getPropertyNamesBytes(int index) { + public com.google.protobuf.ByteString getPropertyNamesBytes(int index) { return propertyNames_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +191,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentSchemaName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentSchemaName_); } @@ -193,17 +226,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.contentwarehouse.v1.WeightedSchemaProperty)) { return super.equals(obj); } - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty other = (com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty) obj; + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty other = + (com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty) obj; - if (!getDocumentSchemaName() - .equals(other.getDocumentSchemaName())) return false; - if (!getPropertyNamesList() - .equals(other.getPropertyNamesList())) return false; + if (!getDocumentSchemaName().equals(other.getDocumentSchemaName())) return false; + if (!getPropertyNamesList().equals(other.getPropertyNamesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,145 +259,149 @@ public int hashCode() { } public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty 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.contentwarehouse.v1.WeightedSchemaProperty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty 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.contentwarehouse.v1.WeightedSchemaProperty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty prototype) { + + public static Builder newBuilder( + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Specifies the schema property name.
    * 
* * Protobuf type {@code google.cloud.contentwarehouse.v1.WeightedSchemaProperty} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.WeightedSchemaProperty) com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_fieldAccessorTable + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.class, com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder.class); + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.class, + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.Builder.class); } // Construct using com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; documentSchemaName_ = ""; - propertyNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.contentwarehouse.v1.FiltersProto.internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contentwarehouse.v1.FiltersProto + .internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; } @java.lang.Override @@ -384,8 +420,11 @@ public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty build() { @java.lang.Override public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty buildPartial() { - com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty result = new com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty result = + new com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,38 +444,39 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.WeightedSchemaPr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.contentwarehouse.v1.WeightedSchemaProperty) { - return mergeFrom((com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty)other); + return mergeFrom((com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty) other); } else { super.mergeFrom(other); return this; @@ -444,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty other) { - if (other == com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.getDefaultInstance()) return this; + if (other == com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty.getDefaultInstance()) + return this; if (!other.getDocumentSchemaName().isEmpty()) { documentSchemaName_ = other.documentSchemaName_; bitField0_ |= 0x00000001; @@ -486,23 +527,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - documentSchemaName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePropertyNamesIsMutable(); - propertyNames_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + documentSchemaName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePropertyNamesIsMutable(); + propertyNames_.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) { @@ -512,22 +556,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object documentSchemaName_ = ""; /** + * + * *
      * The document schema name.
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The documentSchemaName. */ public java.lang.String getDocumentSchemaName() { java.lang.Object ref = documentSchemaName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentSchemaName_ = s; return s; @@ -536,20 +583,21 @@ public java.lang.String getDocumentSchemaName() { } } /** + * + * *
      * The document schema name.
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for documentSchemaName. */ - public com.google.protobuf.ByteString - getDocumentSchemaNameBytes() { + public com.google.protobuf.ByteString getDocumentSchemaNameBytes() { java.lang.Object ref = documentSchemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentSchemaName_ = b; return b; } else { @@ -557,28 +605,35 @@ public java.lang.String getDocumentSchemaName() { } } /** + * + * *
      * The document schema name.
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The documentSchemaName to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentSchemaName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } documentSchemaName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The document schema name.
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearDocumentSchemaName() { @@ -588,17 +643,21 @@ public Builder clearDocumentSchemaName() { return this; } /** + * + * *
      * The document schema name.
      * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for documentSchemaName to set. * @return This builder for chaining. */ - public Builder setDocumentSchemaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDocumentSchemaNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); documentSchemaName_ = value; bitField0_ |= 0x00000001; @@ -608,6 +667,7 @@ public Builder setDocumentSchemaNameBytes( private com.google.protobuf.LazyStringArrayList propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePropertyNamesIsMutable() { if (!propertyNames_.isModifiable()) { propertyNames_ = new com.google.protobuf.LazyStringArrayList(propertyNames_); @@ -615,35 +675,43 @@ private void ensurePropertyNamesIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; + * * @return A list containing the propertyNames. */ - public com.google.protobuf.ProtocolStringList - getPropertyNamesList() { + public com.google.protobuf.ProtocolStringList getPropertyNamesList() { propertyNames_.makeImmutable(); return propertyNames_; } /** + * + * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; + * * @return The count of propertyNames. */ public int getPropertyNamesCount() { return propertyNames_.size(); } /** + * + * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; + * * @param index The index of the element to return. * @return The propertyNames at the given index. */ @@ -651,31 +719,37 @@ public java.lang.String getPropertyNames(int index) { return propertyNames_.get(index); } /** + * + * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; + * * @param index The index of the value to return. * @return The bytes of the propertyNames at the given index. */ - public com.google.protobuf.ByteString - getPropertyNamesBytes(int index) { + public com.google.protobuf.ByteString getPropertyNamesBytes(int index) { return propertyNames_.getByteString(index); } /** + * + * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; + * * @param index The index to set the value at. * @param value The propertyNames to set. * @return This builder for chaining. */ - public Builder setPropertyNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPropertyNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePropertyNamesIsMutable(); propertyNames_.set(index, value); bitField0_ |= 0x00000002; @@ -683,17 +757,21 @@ public Builder setPropertyNames( return this; } /** + * + * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; + * * @param value The propertyNames to add. * @return This builder for chaining. */ - public Builder addPropertyNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPropertyNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePropertyNamesIsMutable(); propertyNames_.add(value); bitField0_ |= 0x00000002; @@ -701,50 +779,58 @@ public Builder addPropertyNames( return this; } /** + * + * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; + * * @param values The propertyNames to add. * @return This builder for chaining. */ - public Builder addAllPropertyNames( - java.lang.Iterable values) { + public Builder addAllPropertyNames(java.lang.Iterable values) { ensurePropertyNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, propertyNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyNames_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; + * * @return This builder for chaining. */ public Builder clearPropertyNames() { - propertyNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + propertyNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * The property definition names in the schema.
      * 
* * repeated string property_names = 2; + * * @param value The bytes of the propertyNames to add. * @return This builder for chaining. */ - public Builder addPropertyNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPropertyNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePropertyNamesIsMutable(); propertyNames_.add(value); @@ -752,9 +838,9 @@ public Builder addPropertyNamesBytes( 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); } @@ -764,12 +850,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.contentwarehouse.v1.WeightedSchemaProperty) } // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.WeightedSchemaProperty) private static final com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty(); } @@ -778,27 +864,27 @@ public static com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WeightedSchemaProperty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 WeightedSchemaProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,6 +899,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java similarity index 65% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java index 26e3f465dd8f..4d982585a8c8 100644 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/WeightedSchemaPropertyOrBuilder.java @@ -1,70 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/contentwarehouse/v1/filters.proto package com.google.cloud.contentwarehouse.v1; -public interface WeightedSchemaPropertyOrBuilder extends +public interface WeightedSchemaPropertyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.WeightedSchemaProperty) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The document schema name.
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The documentSchemaName. */ java.lang.String getDocumentSchemaName(); /** + * + * *
    * The document schema name.
    * 
* * string document_schema_name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for documentSchemaName. */ - com.google.protobuf.ByteString - getDocumentSchemaNameBytes(); + com.google.protobuf.ByteString getDocumentSchemaNameBytes(); /** + * + * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; + * * @return A list containing the propertyNames. */ - java.util.List - getPropertyNamesList(); + java.util.List getPropertyNamesList(); /** + * + * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; + * * @return The count of propertyNames. */ int getPropertyNamesCount(); /** + * + * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; + * * @param index The index of the element to return. * @return The propertyNames at the given index. */ java.lang.String getPropertyNames(int index); /** + * + * *
    * The property definition names in the schema.
    * 
* * repeated string property_names = 2; + * * @param index The index of the value to return. * @return The bytes of the propertyNames at the given index. */ - com.google.protobuf.ByteString - getPropertyNamesBytes(int index); + com.google.protobuf.ByteString getPropertyNamesBytes(int index); } diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/async_document_service_request.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/async_document_service_request.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/async_document_service_request.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/async_document_service_request.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/common.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_link_service.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_link_service.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_link_service.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_link_service.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema_service.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema_service.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema_service.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_schema_service.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service_request.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service_request.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service_request.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/document_service_request.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/filters.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/histogram.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/histogram.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/histogram.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/histogram.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipeline_service.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/pipelines.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/rule_engine.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/rule_engine.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/rule_engine.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/rule_engine.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service_request.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service_request.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service_request.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/ruleset_service_request.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service_request.proto b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service_request.proto similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service_request.proto rename to java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/proto/google/cloud/contentwarehouse/v1/synonymset_service_request.proto diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetEndpoint.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetEndpoint.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/AsyncCreateDocumentLink.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/AsyncCreateDocumentLink.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/AsyncCreateDocumentLink.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/AsyncCreateDocumentLink.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLink.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLink.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLink.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLink.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkDocumentnameDocumentlink.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkDocumentnameDocumentlink.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkDocumentnameDocumentlink.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkDocumentnameDocumentlink.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkStringDocumentlink.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkStringDocumentlink.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkStringDocumentlink.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/createdocumentlink/SyncCreateDocumentLinkStringDocumentlink.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/AsyncDeleteDocumentLink.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/AsyncDeleteDocumentLink.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/AsyncDeleteDocumentLink.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/AsyncDeleteDocumentLink.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLink.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLink.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLink.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLink.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkDocumentlinkname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkDocumentlinkname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkDocumentlinkname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkDocumentlinkname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/deletedocumentlink/SyncDeleteDocumentLinkString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSources.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSources.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSources.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSources.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSourcesPaged.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSourcesPaged.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSourcesPaged.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/AsyncListLinkedSourcesPaged.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSources.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSources.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSources.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSources.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesDocumentname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesDocumentname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesDocumentname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesDocumentname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedsources/SyncListLinkedSourcesString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/AsyncListLinkedTargets.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/AsyncListLinkedTargets.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/AsyncListLinkedTargets.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/AsyncListLinkedTargets.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargets.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargets.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargets.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargets.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsDocumentname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsDocumentname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsDocumentname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsDocumentname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/listlinkedtargets/SyncListLinkedTargetsString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservicesettings/listlinkedtargets/SyncListLinkedTargets.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservicesettings/listlinkedtargets/SyncListLinkedTargets.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservicesettings/listlinkedtargets/SyncListLinkedTargets.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservicesettings/listlinkedtargets/SyncListLinkedTargets.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetEndpoint.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetEndpoint.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/AsyncCreateDocumentSchema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/AsyncCreateDocumentSchema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/AsyncCreateDocumentSchema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/AsyncCreateDocumentSchema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaLocationnameDocumentschema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaLocationnameDocumentschema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaLocationnameDocumentschema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaLocationnameDocumentschema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaStringDocumentschema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaStringDocumentschema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaStringDocumentschema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/createdocumentschema/SyncCreateDocumentSchemaStringDocumentschema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/AsyncDeleteDocumentSchema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/AsyncDeleteDocumentSchema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/AsyncDeleteDocumentSchema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/AsyncDeleteDocumentSchema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaDocumentschemaname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaDocumentschemaname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaDocumentschemaname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaDocumentschemaname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/deletedocumentschema/SyncDeleteDocumentSchemaString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/AsyncGetDocumentSchema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/AsyncGetDocumentSchema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/AsyncGetDocumentSchema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/AsyncGetDocumentSchema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaDocumentschemaname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaDocumentschemaname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaDocumentschemaname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaDocumentschemaname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/getdocumentschema/SyncGetDocumentSchemaString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemas.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemas.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemas.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemas.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemasPaged.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemasPaged.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemasPaged.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/AsyncListDocumentSchemasPaged.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemas.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemas.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemas.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemas.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasLocationname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasLocationname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasLocationname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasLocationname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/listdocumentschemas/SyncListDocumentSchemasString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/AsyncUpdateDocumentSchema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/AsyncUpdateDocumentSchema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/AsyncUpdateDocumentSchema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/AsyncUpdateDocumentSchema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaDocumentschemanameDocumentschema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaDocumentschemanameDocumentschema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaDocumentschemanameDocumentschema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaDocumentschemanameDocumentschema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaStringDocumentschema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaStringDocumentschema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaStringDocumentschema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/updatedocumentschema/SyncUpdateDocumentSchemaStringDocumentschema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservicesettings/createdocumentschema/SyncCreateDocumentSchema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservicesettings/createdocumentschema/SyncCreateDocumentSchema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservicesettings/createdocumentschema/SyncCreateDocumentSchema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservicesettings/createdocumentschema/SyncCreateDocumentSchema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetEndpoint.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetEndpoint.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/AsyncCreateDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/AsyncCreateDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/AsyncCreateDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/AsyncCreateDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentLocationnameDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentLocationnameDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentLocationnameDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentLocationnameDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentStringDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentStringDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentStringDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/createdocument/SyncCreateDocumentStringDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/AsyncDeleteDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/AsyncDeleteDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/AsyncDeleteDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/AsyncDeleteDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/deletedocument/SyncDeleteDocumentString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/AsyncFetchAcl.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/AsyncFetchAcl.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/AsyncFetchAcl.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/AsyncFetchAcl.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAcl.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAcl.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAcl.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAcl.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAclString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAclString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAclString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/fetchacl/SyncFetchAclString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/AsyncGetDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/AsyncGetDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/AsyncGetDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/AsyncGetDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/getdocument/SyncGetDocumentString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/AsyncLockDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/AsyncLockDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/AsyncLockDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/AsyncLockDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentDocumentname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentDocumentname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentDocumentname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentDocumentname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/lockdocument/SyncLockDocumentString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocuments.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocuments.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocuments.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocuments.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocumentsPaged.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocumentsPaged.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocumentsPaged.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/AsyncSearchDocumentsPaged.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocuments.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocuments.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocuments.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocuments.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsLocationname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsLocationname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsLocationname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsLocationname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/searchdocuments/SyncSearchDocumentsString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/AsyncSetAcl.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/AsyncSetAcl.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/AsyncSetAcl.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/AsyncSetAcl.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAcl.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAcl.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAcl.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAcl.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAclStringPolicy.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAclStringPolicy.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAclStringPolicy.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/setacl/SyncSetAclStringPolicy.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/AsyncUpdateDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/AsyncUpdateDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/AsyncUpdateDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/AsyncUpdateDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentDocumentnameDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentDocumentnameDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentDocumentnameDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentDocumentnameDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentStringDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentStringDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentStringDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/updatedocument/SyncUpdateDocumentStringDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservicesettings/createdocument/SyncCreateDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservicesettings/createdocument/SyncCreateDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservicesettings/createdocument/SyncCreateDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservicesettings/createdocument/SyncCreateDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetEndpoint.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetEndpoint.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipeline.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipeline.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipeline.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipeline.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipelineLRO.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipelineLRO.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipelineLRO.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/AsyncRunPipelineLRO.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipeline.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipeline.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipeline.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipeline.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineLocationname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineLocationname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineLocationname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineLocationname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/runpipeline/SyncRunPipelineString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservicesettings/runpipeline/SyncRunPipeline.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservicesettings/runpipeline/SyncRunPipeline.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservicesettings/runpipeline/SyncRunPipeline.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservicesettings/runpipeline/SyncRunPipeline.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetEndpoint.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetEndpoint.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/AsyncCreateRuleSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/AsyncCreateRuleSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/AsyncCreateRuleSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/AsyncCreateRuleSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetLocationnameRuleset.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetLocationnameRuleset.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetLocationnameRuleset.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetLocationnameRuleset.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetStringRuleset.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetStringRuleset.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetStringRuleset.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/createruleset/SyncCreateRuleSetStringRuleset.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/AsyncDeleteRuleSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/AsyncDeleteRuleSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/AsyncDeleteRuleSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/AsyncDeleteRuleSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetRulesetname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetRulesetname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetRulesetname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetRulesetname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/deleteruleset/SyncDeleteRuleSetString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/AsyncGetRuleSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/AsyncGetRuleSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/AsyncGetRuleSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/AsyncGetRuleSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetRulesetname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetRulesetname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetRulesetname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetRulesetname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/getruleset/SyncGetRuleSetString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSets.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSets.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSets.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSets.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSetsPaged.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSetsPaged.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSetsPaged.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/AsyncListRuleSetsPaged.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSets.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSets.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSets.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSets.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsLocationname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsLocationname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsLocationname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsLocationname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/listrulesets/SyncListRuleSetsString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/AsyncUpdateRuleSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/AsyncUpdateRuleSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/AsyncUpdateRuleSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/AsyncUpdateRuleSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetRulesetnameRuleset.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetRulesetnameRuleset.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetRulesetnameRuleset.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetRulesetnameRuleset.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetStringRuleset.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetStringRuleset.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetStringRuleset.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/updateruleset/SyncUpdateRuleSetStringRuleset.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservicesettings/createruleset/SyncCreateRuleSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservicesettings/createruleset/SyncCreateRuleSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservicesettings/createruleset/SyncCreateRuleSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservicesettings/createruleset/SyncCreateRuleSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentlinkservicestubsettings/listlinkedtargets/SyncListLinkedTargets.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentlinkservicestubsettings/listlinkedtargets/SyncListLinkedTargets.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentlinkservicestubsettings/listlinkedtargets/SyncListLinkedTargets.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentlinkservicestubsettings/listlinkedtargets/SyncListLinkedTargets.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentschemaservicestubsettings/createdocumentschema/SyncCreateDocumentSchema.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentschemaservicestubsettings/createdocumentschema/SyncCreateDocumentSchema.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentschemaservicestubsettings/createdocumentschema/SyncCreateDocumentSchema.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentschemaservicestubsettings/createdocumentschema/SyncCreateDocumentSchema.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentservicestubsettings/createdocument/SyncCreateDocument.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentservicestubsettings/createdocument/SyncCreateDocument.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentservicestubsettings/createdocument/SyncCreateDocument.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/documentservicestubsettings/createdocument/SyncCreateDocument.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/pipelineservicestubsettings/runpipeline/SyncRunPipeline.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/pipelineservicestubsettings/runpipeline/SyncRunPipeline.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/pipelineservicestubsettings/runpipeline/SyncRunPipeline.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/pipelineservicestubsettings/runpipeline/SyncRunPipeline.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/rulesetservicestubsettings/createruleset/SyncCreateRuleSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/rulesetservicestubsettings/createruleset/SyncCreateRuleSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/rulesetservicestubsettings/createruleset/SyncCreateRuleSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/rulesetservicestubsettings/createruleset/SyncCreateRuleSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/synonymsetservicestubsettings/createsynonymset/SyncCreateSynonymSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/synonymsetservicestubsettings/createsynonymset/SyncCreateSynonymSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/synonymsetservicestubsettings/createsynonymset/SyncCreateSynonymSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/stub/synonymsetservicestubsettings/createsynonymset/SyncCreateSynonymSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetEndpoint.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetEndpoint.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/AsyncCreateSynonymSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/AsyncCreateSynonymSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/AsyncCreateSynonymSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/AsyncCreateSynonymSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetLocationnameSynonymset.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetLocationnameSynonymset.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetLocationnameSynonymset.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetLocationnameSynonymset.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetStringSynonymset.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetStringSynonymset.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetStringSynonymset.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/createsynonymset/SyncCreateSynonymSetStringSynonymset.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/AsyncDeleteSynonymSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/AsyncDeleteSynonymSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/AsyncDeleteSynonymSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/AsyncDeleteSynonymSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetSynonymsetname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetSynonymsetname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetSynonymsetname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/deletesynonymset/SyncDeleteSynonymSetSynonymsetname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/AsyncGetSynonymSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/AsyncGetSynonymSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/AsyncGetSynonymSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/AsyncGetSynonymSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetSynonymsetname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetSynonymsetname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetSynonymsetname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/getsynonymset/SyncGetSynonymSetSynonymsetname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSets.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSets.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSets.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSets.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSetsPaged.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSetsPaged.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSetsPaged.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/AsyncListSynonymSetsPaged.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSets.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSets.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSets.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSets.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsLocationname.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsLocationname.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsLocationname.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsLocationname.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsString.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsString.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsString.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/listsynonymsets/SyncListSynonymSetsString.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/AsyncUpdateSynonymSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/AsyncUpdateSynonymSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/AsyncUpdateSynonymSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/AsyncUpdateSynonymSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetStringSynonymset.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetStringSynonymset.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetStringSynonymset.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetStringSynonymset.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetSynonymsetnameSynonymset.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetSynonymsetnameSynonymset.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetSynonymsetnameSynonymset.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/updatesynonymset/SyncUpdateSynonymSetSynonymsetnameSynonymset.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservicesettings/createsynonymset/SyncCreateSynonymSet.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservicesettings/createsynonymset/SyncCreateSynonymSet.java similarity index 100% rename from owl-bot-staging/java-contentwarehouse/v1/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservicesettings/createsynonymset/SyncCreateSynonymSet.java rename to java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservicesettings/createsynonymset/SyncCreateSynonymSet.java diff --git a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java deleted file mode 100644 index 40b20fa42b38..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java +++ /dev/null @@ -1,587 +0,0 @@ -package com.google.cloud.contentwarehouse.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * This service lets you manage document-links.
- * Document-Links are treated as sub-resources under source documents.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/document_link_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DocumentLinkServiceGrpc { - - private DocumentLinkServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.DocumentLinkService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListLinkedTargetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLinkedTargets", - requestType = com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListLinkedTargetsMethod() { - io.grpc.MethodDescriptor getListLinkedTargetsMethod; - if ((getListLinkedTargetsMethod = DocumentLinkServiceGrpc.getListLinkedTargetsMethod) == null) { - synchronized (DocumentLinkServiceGrpc.class) { - if ((getListLinkedTargetsMethod = DocumentLinkServiceGrpc.getListLinkedTargetsMethod) == null) { - DocumentLinkServiceGrpc.getListLinkedTargetsMethod = getListLinkedTargetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinkedTargets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DocumentLinkServiceMethodDescriptorSupplier("ListLinkedTargets")) - .build(); - } - } - } - return getListLinkedTargetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListLinkedSourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLinkedSources", - requestType = com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListLinkedSourcesMethod() { - io.grpc.MethodDescriptor getListLinkedSourcesMethod; - if ((getListLinkedSourcesMethod = DocumentLinkServiceGrpc.getListLinkedSourcesMethod) == null) { - synchronized (DocumentLinkServiceGrpc.class) { - if ((getListLinkedSourcesMethod = DocumentLinkServiceGrpc.getListLinkedSourcesMethod) == null) { - DocumentLinkServiceGrpc.getListLinkedSourcesMethod = getListLinkedSourcesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinkedSources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DocumentLinkServiceMethodDescriptorSupplier("ListLinkedSources")) - .build(); - } - } - } - return getListLinkedSourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateDocumentLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDocumentLink", - requestType = com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.DocumentLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDocumentLinkMethod() { - io.grpc.MethodDescriptor getCreateDocumentLinkMethod; - if ((getCreateDocumentLinkMethod = DocumentLinkServiceGrpc.getCreateDocumentLinkMethod) == null) { - synchronized (DocumentLinkServiceGrpc.class) { - if ((getCreateDocumentLinkMethod = DocumentLinkServiceGrpc.getCreateDocumentLinkMethod) == null) { - DocumentLinkServiceGrpc.getCreateDocumentLinkMethod = getCreateDocumentLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocumentLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DocumentLink.getDefaultInstance())) - .setSchemaDescriptor(new DocumentLinkServiceMethodDescriptorSupplier("CreateDocumentLink")) - .build(); - } - } - } - return getCreateDocumentLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDocumentLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDocumentLink", - requestType = com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDocumentLinkMethod() { - io.grpc.MethodDescriptor getDeleteDocumentLinkMethod; - if ((getDeleteDocumentLinkMethod = DocumentLinkServiceGrpc.getDeleteDocumentLinkMethod) == null) { - synchronized (DocumentLinkServiceGrpc.class) { - if ((getDeleteDocumentLinkMethod = DocumentLinkServiceGrpc.getDeleteDocumentLinkMethod) == null) { - DocumentLinkServiceGrpc.getDeleteDocumentLinkMethod = getDeleteDocumentLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocumentLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DocumentLinkServiceMethodDescriptorSupplier("DeleteDocumentLink")) - .build(); - } - } - } - return getDeleteDocumentLinkMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static DocumentLinkServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentLinkServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentLinkServiceStub(channel, callOptions); - } - }; - return DocumentLinkServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DocumentLinkServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentLinkServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentLinkServiceBlockingStub(channel, callOptions); - } - }; - return DocumentLinkServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static DocumentLinkServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentLinkServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentLinkServiceFutureStub(channel, callOptions); - } - }; - return DocumentLinkServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * This service lets you manage document-links.
-   * Document-Links are treated as sub-resources under source documents.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Return all target document-links from the document.
-     * 
- */ - default void listLinkedTargets(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLinkedTargetsMethod(), responseObserver); - } - - /** - *
-     * Return all source document-links from the document.
-     * 
- */ - default void listLinkedSources(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLinkedSourcesMethod(), responseObserver); - } - - /** - *
-     * Create a link between a source document and a target document.
-     * 
- */ - default void createDocumentLink(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDocumentLinkMethod(), responseObserver); - } - - /** - *
-     * Remove the link between the source and target documents.
-     * 
- */ - default void deleteDocumentLink(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentLinkMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DocumentLinkService. - *
-   * This service lets you manage document-links.
-   * Document-Links are treated as sub-resources under source documents.
-   * 
- */ - public static abstract class DocumentLinkServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return DocumentLinkServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service DocumentLinkService. - *
-   * This service lets you manage document-links.
-   * Document-Links are treated as sub-resources under source documents.
-   * 
- */ - public static final class DocumentLinkServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DocumentLinkServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentLinkServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentLinkServiceStub(channel, callOptions); - } - - /** - *
-     * Return all target document-links from the document.
-     * 
- */ - public void listLinkedTargets(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLinkedTargetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Return all source document-links from the document.
-     * 
- */ - public void listLinkedSources(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLinkedSourcesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Create a link between a source document and a target document.
-     * 
- */ - public void createDocumentLink(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDocumentLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Remove the link between the source and target documents.
-     * 
- */ - public void deleteDocumentLink(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDocumentLinkMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service DocumentLinkService. - *
-   * This service lets you manage document-links.
-   * Document-Links are treated as sub-resources under source documents.
-   * 
- */ - public static final class DocumentLinkServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DocumentLinkServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentLinkServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentLinkServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Return all target document-links from the document.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse listLinkedTargets(com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLinkedTargetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Return all source document-links from the document.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse listLinkedSources(com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLinkedSourcesMethod(), getCallOptions(), request); - } - - /** - *
-     * Create a link between a source document and a target document.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.DocumentLink createDocumentLink(com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDocumentLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Remove the link between the source and target documents.
-     * 
- */ - public com.google.protobuf.Empty deleteDocumentLink(com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDocumentLinkMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentLinkService. - *
-   * This service lets you manage document-links.
-   * Document-Links are treated as sub-resources under source documents.
-   * 
- */ - public static final class DocumentLinkServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DocumentLinkServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentLinkServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentLinkServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Return all target document-links from the document.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listLinkedTargets( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLinkedTargetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Return all source document-links from the document.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listLinkedSources( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLinkedSourcesMethod(), getCallOptions()), request); - } - - /** - *
-     * Create a link between a source document and a target document.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDocumentLink( - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDocumentLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Remove the link between the source and target documents.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDocumentLink( - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDocumentLinkMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_LINKED_TARGETS = 0; - private static final int METHODID_LIST_LINKED_SOURCES = 1; - private static final int METHODID_CREATE_DOCUMENT_LINK = 2; - private static final int METHODID_DELETE_DOCUMENT_LINK = 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_LIST_LINKED_TARGETS: - serviceImpl.listLinkedTargets((com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_LINKED_SOURCES: - serviceImpl.listLinkedSources((com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_DOCUMENT_LINK: - serviceImpl.createDocumentLink((com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DOCUMENT_LINK: - serviceImpl.deleteDocumentLink((com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest) 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( - getListLinkedTargetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest, - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse>( - service, METHODID_LIST_LINKED_TARGETS))) - .addMethod( - getListLinkedSourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest, - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse>( - service, METHODID_LIST_LINKED_SOURCES))) - .addMethod( - getCreateDocumentLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest, - com.google.cloud.contentwarehouse.v1.DocumentLink>( - service, METHODID_CREATE_DOCUMENT_LINK))) - .addMethod( - getDeleteDocumentLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_DOCUMENT_LINK))) - .build(); - } - - private static abstract class DocumentLinkServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DocumentLinkServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentLinkServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DocumentLinkService"); - } - } - - private static final class DocumentLinkServiceFileDescriptorSupplier - extends DocumentLinkServiceBaseDescriptorSupplier { - DocumentLinkServiceFileDescriptorSupplier() {} - } - - private static final class DocumentLinkServiceMethodDescriptorSupplier - extends DocumentLinkServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DocumentLinkServiceMethodDescriptorSupplier(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 (DocumentLinkServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DocumentLinkServiceFileDescriptorSupplier()) - .addMethod(getListLinkedTargetsMethod()) - .addMethod(getListLinkedSourcesMethod()) - .addMethod(getCreateDocumentLinkMethod()) - .addMethod(getDeleteDocumentLinkMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java deleted file mode 100644 index 4258decfaebb..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java +++ /dev/null @@ -1,703 +0,0 @@ -package com.google.cloud.contentwarehouse.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * This service lets you manage document schema.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/document_schema_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DocumentSchemaServiceGrpc { - - private DocumentSchemaServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.DocumentSchemaService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateDocumentSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDocumentSchema", - requestType = com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.DocumentSchema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDocumentSchemaMethod() { - io.grpc.MethodDescriptor getCreateDocumentSchemaMethod; - if ((getCreateDocumentSchemaMethod = DocumentSchemaServiceGrpc.getCreateDocumentSchemaMethod) == null) { - synchronized (DocumentSchemaServiceGrpc.class) { - if ((getCreateDocumentSchemaMethod = DocumentSchemaServiceGrpc.getCreateDocumentSchemaMethod) == null) { - DocumentSchemaServiceGrpc.getCreateDocumentSchemaMethod = getCreateDocumentSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocumentSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance())) - .setSchemaDescriptor(new DocumentSchemaServiceMethodDescriptorSupplier("CreateDocumentSchema")) - .build(); - } - } - } - return getCreateDocumentSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDocumentSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDocumentSchema", - requestType = com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.DocumentSchema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDocumentSchemaMethod() { - io.grpc.MethodDescriptor getUpdateDocumentSchemaMethod; - if ((getUpdateDocumentSchemaMethod = DocumentSchemaServiceGrpc.getUpdateDocumentSchemaMethod) == null) { - synchronized (DocumentSchemaServiceGrpc.class) { - if ((getUpdateDocumentSchemaMethod = DocumentSchemaServiceGrpc.getUpdateDocumentSchemaMethod) == null) { - DocumentSchemaServiceGrpc.getUpdateDocumentSchemaMethod = getUpdateDocumentSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDocumentSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance())) - .setSchemaDescriptor(new DocumentSchemaServiceMethodDescriptorSupplier("UpdateDocumentSchema")) - .build(); - } - } - } - return getUpdateDocumentSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDocumentSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDocumentSchema", - requestType = com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.DocumentSchema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDocumentSchemaMethod() { - io.grpc.MethodDescriptor getGetDocumentSchemaMethod; - if ((getGetDocumentSchemaMethod = DocumentSchemaServiceGrpc.getGetDocumentSchemaMethod) == null) { - synchronized (DocumentSchemaServiceGrpc.class) { - if ((getGetDocumentSchemaMethod = DocumentSchemaServiceGrpc.getGetDocumentSchemaMethod) == null) { - DocumentSchemaServiceGrpc.getGetDocumentSchemaMethod = getGetDocumentSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDocumentSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DocumentSchema.getDefaultInstance())) - .setSchemaDescriptor(new DocumentSchemaServiceMethodDescriptorSupplier("GetDocumentSchema")) - .build(); - } - } - } - return getGetDocumentSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDocumentSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDocumentSchema", - requestType = com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDocumentSchemaMethod() { - io.grpc.MethodDescriptor getDeleteDocumentSchemaMethod; - if ((getDeleteDocumentSchemaMethod = DocumentSchemaServiceGrpc.getDeleteDocumentSchemaMethod) == null) { - synchronized (DocumentSchemaServiceGrpc.class) { - if ((getDeleteDocumentSchemaMethod = DocumentSchemaServiceGrpc.getDeleteDocumentSchemaMethod) == null) { - DocumentSchemaServiceGrpc.getDeleteDocumentSchemaMethod = getDeleteDocumentSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocumentSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DocumentSchemaServiceMethodDescriptorSupplier("DeleteDocumentSchema")) - .build(); - } - } - } - return getDeleteDocumentSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDocumentSchemasMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDocumentSchemas", - requestType = com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDocumentSchemasMethod() { - io.grpc.MethodDescriptor getListDocumentSchemasMethod; - if ((getListDocumentSchemasMethod = DocumentSchemaServiceGrpc.getListDocumentSchemasMethod) == null) { - synchronized (DocumentSchemaServiceGrpc.class) { - if ((getListDocumentSchemasMethod = DocumentSchemaServiceGrpc.getListDocumentSchemasMethod) == null) { - DocumentSchemaServiceGrpc.getListDocumentSchemasMethod = getListDocumentSchemasMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDocumentSchemas")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse.getDefaultInstance())) - .setSchemaDescriptor(new DocumentSchemaServiceMethodDescriptorSupplier("ListDocumentSchemas")) - .build(); - } - } - } - return getListDocumentSchemasMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static DocumentSchemaServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentSchemaServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentSchemaServiceStub(channel, callOptions); - } - }; - return DocumentSchemaServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DocumentSchemaServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentSchemaServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentSchemaServiceBlockingStub(channel, callOptions); - } - }; - return DocumentSchemaServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static DocumentSchemaServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentSchemaServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentSchemaServiceFutureStub(channel, callOptions); - } - }; - return DocumentSchemaServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * This service lets you manage document schema.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Creates a document schema.
-     * 
- */ - default void createDocumentSchema(com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDocumentSchemaMethod(), responseObserver); - } - - /** - *
-     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
-     * Document Schema is non-empty and does not equal the existing name.
-     * Supports only appending new properties, adding new ENUM possible values,
-     * and updating the
-     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
-     * flag for ENUM possible values. Updating existing properties will result
-     * into INVALID_ARGUMENT.
-     * 
- */ - default void updateDocumentSchema(com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDocumentSchemaMethod(), responseObserver); - } - - /** - *
-     * Gets a document schema. Returns NOT_FOUND if the document schema does not
-     * exist.
-     * 
- */ - default void getDocumentSchema(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDocumentSchemaMethod(), responseObserver); - } - - /** - *
-     * Deletes a document schema. Returns NOT_FOUND if the document schema does
-     * not exist. Returns BAD_REQUEST if the document schema has documents
-     * depending on it.
-     * 
- */ - default void deleteDocumentSchema(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentSchemaMethod(), responseObserver); - } - - /** - *
-     * Lists document schemas.
-     * 
- */ - default void listDocumentSchemas(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDocumentSchemasMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DocumentSchemaService. - *
-   * This service lets you manage document schema.
-   * 
- */ - public static abstract class DocumentSchemaServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return DocumentSchemaServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service DocumentSchemaService. - *
-   * This service lets you manage document schema.
-   * 
- */ - public static final class DocumentSchemaServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DocumentSchemaServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentSchemaServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentSchemaServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a document schema.
-     * 
- */ - public void createDocumentSchema(com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDocumentSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
-     * Document Schema is non-empty and does not equal the existing name.
-     * Supports only appending new properties, adding new ENUM possible values,
-     * and updating the
-     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
-     * flag for ENUM possible values. Updating existing properties will result
-     * into INVALID_ARGUMENT.
-     * 
- */ - public void updateDocumentSchema(com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDocumentSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a document schema. Returns NOT_FOUND if the document schema does not
-     * exist.
-     * 
- */ - public void getDocumentSchema(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDocumentSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a document schema. Returns NOT_FOUND if the document schema does
-     * not exist. Returns BAD_REQUEST if the document schema has documents
-     * depending on it.
-     * 
- */ - public void deleteDocumentSchema(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDocumentSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists document schemas.
-     * 
- */ - public void listDocumentSchemas(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDocumentSchemasMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service DocumentSchemaService. - *
-   * This service lets you manage document schema.
-   * 
- */ - public static final class DocumentSchemaServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DocumentSchemaServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentSchemaServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentSchemaServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a document schema.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.DocumentSchema createDocumentSchema(com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDocumentSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
-     * Document Schema is non-empty and does not equal the existing name.
-     * Supports only appending new properties, adding new ENUM possible values,
-     * and updating the
-     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
-     * flag for ENUM possible values. Updating existing properties will result
-     * into INVALID_ARGUMENT.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.DocumentSchema updateDocumentSchema(com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDocumentSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a document schema. Returns NOT_FOUND if the document schema does not
-     * exist.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema(com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDocumentSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a document schema. Returns NOT_FOUND if the document schema does
-     * not exist. Returns BAD_REQUEST if the document schema has documents
-     * depending on it.
-     * 
- */ - public com.google.protobuf.Empty deleteDocumentSchema(com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDocumentSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists document schemas.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse listDocumentSchemas(com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDocumentSchemasMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentSchemaService. - *
-   * This service lets you manage document schema.
-   * 
- */ - public static final class DocumentSchemaServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DocumentSchemaServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentSchemaServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentSchemaServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a document schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDocumentSchema( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDocumentSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the
-     * Document Schema is non-empty and does not equal the existing name.
-     * Supports only appending new properties, adding new ENUM possible values,
-     * and updating the
-     * [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled]
-     * flag for ENUM possible values. Updating existing properties will result
-     * into INVALID_ARGUMENT.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDocumentSchema( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDocumentSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a document schema. Returns NOT_FOUND if the document schema does not
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDocumentSchema( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDocumentSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a document schema. Returns NOT_FOUND if the document schema does
-     * not exist. Returns BAD_REQUEST if the document schema has documents
-     * depending on it.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDocumentSchema( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDocumentSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists document schemas.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDocumentSchemas( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDocumentSchemasMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_DOCUMENT_SCHEMA = 0; - private static final int METHODID_UPDATE_DOCUMENT_SCHEMA = 1; - private static final int METHODID_GET_DOCUMENT_SCHEMA = 2; - private static final int METHODID_DELETE_DOCUMENT_SCHEMA = 3; - private static final int METHODID_LIST_DOCUMENT_SCHEMAS = 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_CREATE_DOCUMENT_SCHEMA: - serviceImpl.createDocumentSchema((com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DOCUMENT_SCHEMA: - serviceImpl.updateDocumentSchema((com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DOCUMENT_SCHEMA: - serviceImpl.getDocumentSchema((com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DOCUMENT_SCHEMA: - serviceImpl.deleteDocumentSchema((com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DOCUMENT_SCHEMAS: - serviceImpl.listDocumentSchemas((com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest) 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( - getCreateDocumentSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema>( - service, METHODID_CREATE_DOCUMENT_SCHEMA))) - .addMethod( - getUpdateDocumentSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema>( - service, METHODID_UPDATE_DOCUMENT_SCHEMA))) - .addMethod( - getGetDocumentSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest, - com.google.cloud.contentwarehouse.v1.DocumentSchema>( - service, METHODID_GET_DOCUMENT_SCHEMA))) - .addMethod( - getDeleteDocumentSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_DOCUMENT_SCHEMA))) - .addMethod( - getListDocumentSchemasMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest, - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse>( - service, METHODID_LIST_DOCUMENT_SCHEMAS))) - .build(); - } - - private static abstract class DocumentSchemaServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DocumentSchemaServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DocumentSchemaService"); - } - } - - private static final class DocumentSchemaServiceFileDescriptorSupplier - extends DocumentSchemaServiceBaseDescriptorSupplier { - DocumentSchemaServiceFileDescriptorSupplier() {} - } - - private static final class DocumentSchemaServiceMethodDescriptorSupplier - extends DocumentSchemaServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DocumentSchemaServiceMethodDescriptorSupplier(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 (DocumentSchemaServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DocumentSchemaServiceFileDescriptorSupplier()) - .addMethod(getCreateDocumentSchemaMethod()) - .addMethod(getUpdateDocumentSchemaMethod()) - .addMethod(getGetDocumentSchemaMethod()) - .addMethod(getDeleteDocumentSchemaMethod()) - .addMethod(getListDocumentSchemasMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java deleted file mode 100644 index b6c9d1972b40..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java +++ /dev/null @@ -1,953 +0,0 @@ -package com.google.cloud.contentwarehouse.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * This service lets you manage document.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/document_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DocumentServiceGrpc { - - private DocumentServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.DocumentService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDocument", - requestType = com.google.cloud.contentwarehouse.v1.CreateDocumentRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.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.contentwarehouse.v1.CreateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse.getDefaultInstance())) - .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("CreateDocument")) - .build(); - } - } - } - return getCreateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDocument", - requestType = com.google.cloud.contentwarehouse.v1.GetDocumentRequest.class, - responseType = com.google.cloud.contentwarehouse.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.contentwarehouse.v1.GetDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance())) - .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("GetDocument")) - .build(); - } - } - } - return getGetDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDocument", - requestType = com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.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.contentwarehouse.v1.UpdateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse.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.contentwarehouse.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.contentwarehouse.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 getSearchDocumentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchDocuments", - requestType = com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchDocumentsMethod() { - io.grpc.MethodDescriptor getSearchDocumentsMethod; - if ((getSearchDocumentsMethod = DocumentServiceGrpc.getSearchDocumentsMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getSearchDocumentsMethod = DocumentServiceGrpc.getSearchDocumentsMethod) == null) { - DocumentServiceGrpc.getSearchDocumentsMethod = getSearchDocumentsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchDocuments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("SearchDocuments")) - .build(); - } - } - } - return getSearchDocumentsMethod; - } - - private static volatile io.grpc.MethodDescriptor getLockDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LockDocument", - requestType = com.google.cloud.contentwarehouse.v1.LockDocumentRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.Document.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLockDocumentMethod() { - io.grpc.MethodDescriptor getLockDocumentMethod; - if ((getLockDocumentMethod = DocumentServiceGrpc.getLockDocumentMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getLockDocumentMethod = DocumentServiceGrpc.getLockDocumentMethod) == null) { - DocumentServiceGrpc.getLockDocumentMethod = getLockDocumentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LockDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.LockDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.Document.getDefaultInstance())) - .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("LockDocument")) - .build(); - } - } - } - return getLockDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor getFetchAclMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchAcl", - requestType = com.google.cloud.contentwarehouse.v1.FetchAclRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.FetchAclResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFetchAclMethod() { - io.grpc.MethodDescriptor getFetchAclMethod; - if ((getFetchAclMethod = DocumentServiceGrpc.getFetchAclMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getFetchAclMethod = DocumentServiceGrpc.getFetchAclMethod) == null) { - DocumentServiceGrpc.getFetchAclMethod = getFetchAclMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchAcl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.FetchAclRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.FetchAclResponse.getDefaultInstance())) - .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("FetchAcl")) - .build(); - } - } - } - return getFetchAclMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetAclMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetAcl", - requestType = com.google.cloud.contentwarehouse.v1.SetAclRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.SetAclResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetAclMethod() { - io.grpc.MethodDescriptor getSetAclMethod; - if ((getSetAclMethod = DocumentServiceGrpc.getSetAclMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getSetAclMethod = DocumentServiceGrpc.getSetAclMethod) == null) { - DocumentServiceGrpc.getSetAclMethod = getSetAclMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAcl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SetAclRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SetAclResponse.getDefaultInstance())) - .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("SetAcl")) - .build(); - } - } - } - return getSetAclMethod; - } - - /** - * 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); - } - - /** - *
-   * This service lets you manage document.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Creates a document.
-     * 
- */ - default void createDocument(com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDocumentMethod(), responseObserver); - } - - /** - *
-     * Gets a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - default void getDocument(com.google.cloud.contentwarehouse.v1.GetDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDocumentMethod(), responseObserver); - } - - /** - *
-     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
-     * is non-empty and does not equal the existing name.
-     * 
- */ - default void updateDocument(com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDocumentMethod(), responseObserver); - } - - /** - *
-     * Deletes a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - default void deleteDocument(com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentMethod(), responseObserver); - } - - /** - *
-     * Searches for documents using provided
-     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
-     * This call only returns documents that the caller has permission to search
-     * against.
-     * 
- */ - default void searchDocuments(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchDocumentsMethod(), responseObserver); - } - - /** - *
-     * Lock the document so the document cannot be updated by other users.
-     * 
- */ - default void lockDocument(com.google.cloud.contentwarehouse.v1.LockDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLockDocumentMethod(), responseObserver); - } - - /** - *
-     * Gets the access control policy for a resource. Returns NOT_FOUND error if
-     * the resource does not exist. Returns an empty policy if the resource exists
-     * but does not have a policy set.
-     * 
- */ - default void fetchAcl(com.google.cloud.contentwarehouse.v1.FetchAclRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchAclMethod(), responseObserver); - } - - /** - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * 
- */ - default void setAcl(com.google.cloud.contentwarehouse.v1.SetAclRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetAclMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DocumentService. - *
-   * This service lets you manage document.
-   * 
- */ - 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. - *
-   * This service lets you manage document.
-   * 
- */ - 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); - } - - /** - *
-     * Creates a document.
-     * 
- */ - public void createDocument(com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public void getDocument(com.google.cloud.contentwarehouse.v1.GetDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
-     * is non-empty and does not equal the existing name.
-     * 
- */ - public void updateDocument(com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public void deleteDocument(com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Searches for documents using provided
-     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
-     * This call only returns documents that the caller has permission to search
-     * against.
-     * 
- */ - public void searchDocuments(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchDocumentsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lock the document so the document cannot be updated by other users.
-     * 
- */ - public void lockDocument(com.google.cloud.contentwarehouse.v1.LockDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLockDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the access control policy for a resource. Returns NOT_FOUND error if
-     * the resource does not exist. Returns an empty policy if the resource exists
-     * but does not have a policy set.
-     * 
- */ - public void fetchAcl(com.google.cloud.contentwarehouse.v1.FetchAclRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchAclMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * 
- */ - public void setAcl(com.google.cloud.contentwarehouse.v1.SetAclRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetAclMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service DocumentService. - *
-   * This service lets you manage document.
-   * 
- */ - 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); - } - - /** - *
-     * Creates a document.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse createDocument(com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.Document getDocument(com.google.cloud.contentwarehouse.v1.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
-     * is non-empty and does not equal the existing name.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse updateDocument(com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public com.google.protobuf.Empty deleteDocument(com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Searches for documents using provided
-     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
-     * This call only returns documents that the caller has permission to search
-     * against.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse searchDocuments(com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchDocumentsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lock the document so the document cannot be updated by other users.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.Document lockDocument(com.google.cloud.contentwarehouse.v1.LockDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLockDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the access control policy for a resource. Returns NOT_FOUND error if
-     * the resource does not exist. Returns an empty policy if the resource exists
-     * but does not have a policy set.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.FetchAclResponse fetchAcl(com.google.cloud.contentwarehouse.v1.FetchAclRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchAclMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.SetAclResponse setAcl(com.google.cloud.contentwarehouse.v1.SetAclRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetAclMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentService. - *
-   * This service lets you manage document.
-   * 
- */ - 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); - } - - /** - *
-     * Creates a document.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDocument( - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDocument( - com.google.cloud.contentwarehouse.v1.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a document. Returns INVALID_ARGUMENT if the name of the document
-     * is non-empty and does not equal the existing name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDocument( - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a document. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDocument( - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Searches for documents using provided
-     * [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
-     * This call only returns documents that the caller has permission to search
-     * against.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture searchDocuments( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchDocumentsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lock the document so the document cannot be updated by other users.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture lockDocument( - com.google.cloud.contentwarehouse.v1.LockDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLockDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the access control policy for a resource. Returns NOT_FOUND error if
-     * the resource does not exist. Returns an empty policy if the resource exists
-     * but does not have a policy set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture fetchAcl( - com.google.cloud.contentwarehouse.v1.FetchAclRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchAclMethod(), getCallOptions()), request); - } - - /** - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setAcl( - com.google.cloud.contentwarehouse.v1.SetAclRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetAclMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_DOCUMENT = 0; - private static final int METHODID_GET_DOCUMENT = 1; - private static final int METHODID_UPDATE_DOCUMENT = 2; - private static final int METHODID_DELETE_DOCUMENT = 3; - private static final int METHODID_SEARCH_DOCUMENTS = 4; - private static final int METHODID_LOCK_DOCUMENT = 5; - private static final int METHODID_FETCH_ACL = 6; - private static final int METHODID_SET_ACL = 7; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_DOCUMENT: - serviceImpl.createDocument((com.google.cloud.contentwarehouse.v1.CreateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DOCUMENT: - serviceImpl.getDocument((com.google.cloud.contentwarehouse.v1.GetDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DOCUMENT: - serviceImpl.updateDocument((com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DOCUMENT: - serviceImpl.deleteDocument((com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_DOCUMENTS: - serviceImpl.searchDocuments((com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LOCK_DOCUMENT: - serviceImpl.lockDocument((com.google.cloud.contentwarehouse.v1.LockDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_ACL: - serviceImpl.fetchAcl((com.google.cloud.contentwarehouse.v1.FetchAclRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_ACL: - serviceImpl.setAcl((com.google.cloud.contentwarehouse.v1.SetAclRequest) 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( - getCreateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest, - com.google.cloud.contentwarehouse.v1.CreateDocumentResponse>( - service, METHODID_CREATE_DOCUMENT))) - .addMethod( - getGetDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.GetDocumentRequest, - com.google.cloud.contentwarehouse.v1.Document>( - service, METHODID_GET_DOCUMENT))) - .addMethod( - getUpdateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest, - com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse>( - service, METHODID_UPDATE_DOCUMENT))) - .addMethod( - getDeleteDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_DOCUMENT))) - .addMethod( - getSearchDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest, - com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse>( - service, METHODID_SEARCH_DOCUMENTS))) - .addMethod( - getLockDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.LockDocumentRequest, - com.google.cloud.contentwarehouse.v1.Document>( - service, METHODID_LOCK_DOCUMENT))) - .addMethod( - getFetchAclMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.FetchAclRequest, - com.google.cloud.contentwarehouse.v1.FetchAclResponse>( - service, METHODID_FETCH_ACL))) - .addMethod( - getSetAclMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.SetAclRequest, - com.google.cloud.contentwarehouse.v1.SetAclResponse>( - service, METHODID_SET_ACL))) - .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.contentwarehouse.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 String methodName; - - DocumentServiceMethodDescriptorSupplier(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(getCreateDocumentMethod()) - .addMethod(getGetDocumentMethod()) - .addMethod(getUpdateDocumentMethod()) - .addMethod(getDeleteDocumentMethod()) - .addMethod(getSearchDocumentsMethod()) - .addMethod(getLockDocumentMethod()) - .addMethod(getFetchAclMethod()) - .addMethod(getSetAclMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java deleted file mode 100644 index c7c7cb669eb7..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java +++ /dev/null @@ -1,671 +0,0 @@ -package com.google.cloud.contentwarehouse.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service to manage customer specific RuleSets.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/ruleset_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class RuleSetServiceGrpc { - - private RuleSetServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.RuleSetService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateRuleSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRuleSet", - requestType = com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.RuleSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRuleSetMethod() { - io.grpc.MethodDescriptor getCreateRuleSetMethod; - if ((getCreateRuleSetMethod = RuleSetServiceGrpc.getCreateRuleSetMethod) == null) { - synchronized (RuleSetServiceGrpc.class) { - if ((getCreateRuleSetMethod = RuleSetServiceGrpc.getCreateRuleSetMethod) == null) { - RuleSetServiceGrpc.getCreateRuleSetMethod = getCreateRuleSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRuleSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance())) - .setSchemaDescriptor(new RuleSetServiceMethodDescriptorSupplier("CreateRuleSet")) - .build(); - } - } - } - return getCreateRuleSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRuleSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRuleSet", - requestType = com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.RuleSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRuleSetMethod() { - io.grpc.MethodDescriptor getGetRuleSetMethod; - if ((getGetRuleSetMethod = RuleSetServiceGrpc.getGetRuleSetMethod) == null) { - synchronized (RuleSetServiceGrpc.class) { - if ((getGetRuleSetMethod = RuleSetServiceGrpc.getGetRuleSetMethod) == null) { - RuleSetServiceGrpc.getGetRuleSetMethod = getGetRuleSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRuleSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance())) - .setSchemaDescriptor(new RuleSetServiceMethodDescriptorSupplier("GetRuleSet")) - .build(); - } - } - } - return getGetRuleSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateRuleSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRuleSet", - requestType = com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.RuleSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateRuleSetMethod() { - io.grpc.MethodDescriptor getUpdateRuleSetMethod; - if ((getUpdateRuleSetMethod = RuleSetServiceGrpc.getUpdateRuleSetMethod) == null) { - synchronized (RuleSetServiceGrpc.class) { - if ((getUpdateRuleSetMethod = RuleSetServiceGrpc.getUpdateRuleSetMethod) == null) { - RuleSetServiceGrpc.getUpdateRuleSetMethod = getUpdateRuleSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRuleSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.RuleSet.getDefaultInstance())) - .setSchemaDescriptor(new RuleSetServiceMethodDescriptorSupplier("UpdateRuleSet")) - .build(); - } - } - } - return getUpdateRuleSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteRuleSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRuleSet", - requestType = com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteRuleSetMethod() { - io.grpc.MethodDescriptor getDeleteRuleSetMethod; - if ((getDeleteRuleSetMethod = RuleSetServiceGrpc.getDeleteRuleSetMethod) == null) { - synchronized (RuleSetServiceGrpc.class) { - if ((getDeleteRuleSetMethod = RuleSetServiceGrpc.getDeleteRuleSetMethod) == null) { - RuleSetServiceGrpc.getDeleteRuleSetMethod = getDeleteRuleSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRuleSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new RuleSetServiceMethodDescriptorSupplier("DeleteRuleSet")) - .build(); - } - } - } - return getDeleteRuleSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRuleSetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRuleSets", - requestType = com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRuleSetsMethod() { - io.grpc.MethodDescriptor getListRuleSetsMethod; - if ((getListRuleSetsMethod = RuleSetServiceGrpc.getListRuleSetsMethod) == null) { - synchronized (RuleSetServiceGrpc.class) { - if ((getListRuleSetsMethod = RuleSetServiceGrpc.getListRuleSetsMethod) == null) { - RuleSetServiceGrpc.getListRuleSetsMethod = getListRuleSetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuleSets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new RuleSetServiceMethodDescriptorSupplier("ListRuleSets")) - .build(); - } - } - } - return getListRuleSetsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static RuleSetServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RuleSetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RuleSetServiceStub(channel, callOptions); - } - }; - return RuleSetServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static RuleSetServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RuleSetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RuleSetServiceBlockingStub(channel, callOptions); - } - }; - return RuleSetServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static RuleSetServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RuleSetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RuleSetServiceFutureStub(channel, callOptions); - } - }; - return RuleSetServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service to manage customer specific RuleSets.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Creates a ruleset.
-     * 
- */ - default void createRuleSet(com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRuleSetMethod(), responseObserver); - } - - /** - *
-     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
-     * 
- */ - default void getRuleSet(com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRuleSetMethod(), responseObserver); - } - - /** - *
-     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
-     * is non-empty and does not equal the existing name.
-     * 
- */ - default void updateRuleSet(com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRuleSetMethod(), responseObserver); - } - - /** - *
-     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - default void deleteRuleSet(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRuleSetMethod(), responseObserver); - } - - /** - *
-     * Lists rulesets.
-     * 
- */ - default void listRuleSets(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuleSetsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service RuleSetService. - *
-   * Service to manage customer specific RuleSets.
-   * 
- */ - public static abstract class RuleSetServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return RuleSetServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service RuleSetService. - *
-   * Service to manage customer specific RuleSets.
-   * 
- */ - public static final class RuleSetServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private RuleSetServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RuleSetServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RuleSetServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a ruleset.
-     * 
- */ - public void createRuleSet(com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRuleSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
-     * 
- */ - public void getRuleSet(com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRuleSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
-     * is non-empty and does not equal the existing name.
-     * 
- */ - public void updateRuleSet(com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRuleSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public void deleteRuleSet(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRuleSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists rulesets.
-     * 
- */ - public void listRuleSets(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRuleSetsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service RuleSetService. - *
-   * Service to manage customer specific RuleSets.
-   * 
- */ - public static final class RuleSetServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private RuleSetServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RuleSetServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RuleSetServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a ruleset.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.RuleSet createRuleSet(com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRuleSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet(com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRuleSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
-     * is non-empty and does not equal the existing name.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.RuleSet updateRuleSet(com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRuleSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public com.google.protobuf.Empty deleteRuleSet(com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRuleSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists rulesets.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse listRuleSets(com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRuleSetsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service RuleSetService. - *
-   * Service to manage customer specific RuleSets.
-   * 
- */ - public static final class RuleSetServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private RuleSetServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RuleSetServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RuleSetServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a ruleset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createRuleSet( - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRuleSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRuleSet( - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRuleSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset
-     * is non-empty and does not equal the existing name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateRuleSet( - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRuleSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a ruleset. Returns NOT_FOUND if the document does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteRuleSet( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRuleSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists rulesets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRuleSets( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRuleSetsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_RULE_SET = 0; - private static final int METHODID_GET_RULE_SET = 1; - private static final int METHODID_UPDATE_RULE_SET = 2; - private static final int METHODID_DELETE_RULE_SET = 3; - private static final int METHODID_LIST_RULE_SETS = 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_CREATE_RULE_SET: - serviceImpl.createRuleSet((com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_RULE_SET: - serviceImpl.getRuleSet((com.google.cloud.contentwarehouse.v1.GetRuleSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_RULE_SET: - serviceImpl.updateRuleSet((com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_RULE_SET: - serviceImpl.deleteRuleSet((com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RULE_SETS: - serviceImpl.listRuleSets((com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest) 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( - getCreateRuleSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet>( - service, METHODID_CREATE_RULE_SET))) - .addMethod( - getGetRuleSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet>( - service, METHODID_GET_RULE_SET))) - .addMethod( - getUpdateRuleSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest, - com.google.cloud.contentwarehouse.v1.RuleSet>( - service, METHODID_UPDATE_RULE_SET))) - .addMethod( - getDeleteRuleSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_RULE_SET))) - .addMethod( - getListRuleSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest, - com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse>( - service, METHODID_LIST_RULE_SETS))) - .build(); - } - - private static abstract class RuleSetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - RuleSetServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.contentwarehouse.v1.RuleSetServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("RuleSetService"); - } - } - - private static final class RuleSetServiceFileDescriptorSupplier - extends RuleSetServiceBaseDescriptorSupplier { - RuleSetServiceFileDescriptorSupplier() {} - } - - private static final class RuleSetServiceMethodDescriptorSupplier - extends RuleSetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - RuleSetServiceMethodDescriptorSupplier(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 (RuleSetServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new RuleSetServiceFileDescriptorSupplier()) - .addMethod(getCreateRuleSetMethod()) - .addMethod(getGetRuleSetMethod()) - .addMethod(getUpdateRuleSetMethod()) - .addMethod(getDeleteRuleSetMethod()) - .addMethod(getListRuleSetsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java b/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java deleted file mode 100644 index 648005add03f..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java +++ /dev/null @@ -1,695 +0,0 @@ -package com.google.cloud.contentwarehouse.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * A Service that manage/custom customer specified SynonymSets.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/synonymset_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SynonymSetServiceGrpc { - - private SynonymSetServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.contentwarehouse.v1.SynonymSetService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateSynonymSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSynonymSet", - requestType = com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.SynonymSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSynonymSetMethod() { - io.grpc.MethodDescriptor getCreateSynonymSetMethod; - if ((getCreateSynonymSetMethod = SynonymSetServiceGrpc.getCreateSynonymSetMethod) == null) { - synchronized (SynonymSetServiceGrpc.class) { - if ((getCreateSynonymSetMethod = SynonymSetServiceGrpc.getCreateSynonymSetMethod) == null) { - SynonymSetServiceGrpc.getCreateSynonymSetMethod = getCreateSynonymSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSynonymSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())) - .setSchemaDescriptor(new SynonymSetServiceMethodDescriptorSupplier("CreateSynonymSet")) - .build(); - } - } - } - return getCreateSynonymSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSynonymSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSynonymSet", - requestType = com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.SynonymSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSynonymSetMethod() { - io.grpc.MethodDescriptor getGetSynonymSetMethod; - if ((getGetSynonymSetMethod = SynonymSetServiceGrpc.getGetSynonymSetMethod) == null) { - synchronized (SynonymSetServiceGrpc.class) { - if ((getGetSynonymSetMethod = SynonymSetServiceGrpc.getGetSynonymSetMethod) == null) { - SynonymSetServiceGrpc.getGetSynonymSetMethod = getGetSynonymSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSynonymSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())) - .setSchemaDescriptor(new SynonymSetServiceMethodDescriptorSupplier("GetSynonymSet")) - .build(); - } - } - } - return getGetSynonymSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSynonymSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSynonymSet", - requestType = com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.SynonymSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSynonymSetMethod() { - io.grpc.MethodDescriptor getUpdateSynonymSetMethod; - if ((getUpdateSynonymSetMethod = SynonymSetServiceGrpc.getUpdateSynonymSetMethod) == null) { - synchronized (SynonymSetServiceGrpc.class) { - if ((getUpdateSynonymSetMethod = SynonymSetServiceGrpc.getUpdateSynonymSetMethod) == null) { - SynonymSetServiceGrpc.getUpdateSynonymSetMethod = getUpdateSynonymSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSynonymSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.SynonymSet.getDefaultInstance())) - .setSchemaDescriptor(new SynonymSetServiceMethodDescriptorSupplier("UpdateSynonymSet")) - .build(); - } - } - } - return getUpdateSynonymSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSynonymSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSynonymSet", - requestType = com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSynonymSetMethod() { - io.grpc.MethodDescriptor getDeleteSynonymSetMethod; - if ((getDeleteSynonymSetMethod = SynonymSetServiceGrpc.getDeleteSynonymSetMethod) == null) { - synchronized (SynonymSetServiceGrpc.class) { - if ((getDeleteSynonymSetMethod = SynonymSetServiceGrpc.getDeleteSynonymSetMethod) == null) { - SynonymSetServiceGrpc.getDeleteSynonymSetMethod = getDeleteSynonymSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSynonymSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new SynonymSetServiceMethodDescriptorSupplier("DeleteSynonymSet")) - .build(); - } - } - } - return getDeleteSynonymSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSynonymSetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSynonymSets", - requestType = com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.class, - responseType = com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSynonymSetsMethod() { - io.grpc.MethodDescriptor getListSynonymSetsMethod; - if ((getListSynonymSetsMethod = SynonymSetServiceGrpc.getListSynonymSetsMethod) == null) { - synchronized (SynonymSetServiceGrpc.class) { - if ((getListSynonymSetsMethod = SynonymSetServiceGrpc.getListSynonymSetsMethod) == null) { - SynonymSetServiceGrpc.getListSynonymSetsMethod = getListSynonymSetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSynonymSets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SynonymSetServiceMethodDescriptorSupplier("ListSynonymSets")) - .build(); - } - } - } - return getListSynonymSetsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SynonymSetServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SynonymSetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SynonymSetServiceStub(channel, callOptions); - } - }; - return SynonymSetServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SynonymSetServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SynonymSetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SynonymSetServiceBlockingStub(channel, callOptions); - } - }; - return SynonymSetServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SynonymSetServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SynonymSetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SynonymSetServiceFutureStub(channel, callOptions); - } - }; - return SynonymSetServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * A Service that manage/custom customer specified SynonymSets.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Creates a SynonymSet for a single context.
-     * Throws an ALREADY_EXISTS exception if a synonymset already exists
-     * for the context.
-     * 
- */ - default void createSynonymSet(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSynonymSetMethod(), responseObserver); - } - - /** - *
-     * Gets a SynonymSet for a particular context.
-     * Throws a NOT_FOUND exception if the Synonymset
-     * does not exist
-     * 
- */ - default void getSynonymSet(com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSynonymSetMethod(), responseObserver); - } - - /** - *
-     * Remove the existing SynonymSet for the context and replaces it
-     * with a new one.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - default void updateSynonymSet(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSynonymSetMethod(), responseObserver); - } - - /** - *
-     * Deletes a SynonymSet for a given context.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - default void deleteSynonymSet(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSynonymSetMethod(), responseObserver); - } - - /** - *
-     * Returns all SynonymSets (for all contexts) for the specified location.
-     * 
- */ - default void listSynonymSets(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSynonymSetsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service SynonymSetService. - *
-   * A Service that manage/custom customer specified SynonymSets.
-   * 
- */ - public static abstract class SynonymSetServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return SynonymSetServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service SynonymSetService. - *
-   * A Service that manage/custom customer specified SynonymSets.
-   * 
- */ - public static final class SynonymSetServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private SynonymSetServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SynonymSetServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SynonymSetServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a SynonymSet for a single context.
-     * Throws an ALREADY_EXISTS exception if a synonymset already exists
-     * for the context.
-     * 
- */ - public void createSynonymSet(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSynonymSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a SynonymSet for a particular context.
-     * Throws a NOT_FOUND exception if the Synonymset
-     * does not exist
-     * 
- */ - public void getSynonymSet(com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSynonymSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Remove the existing SynonymSet for the context and replaces it
-     * with a new one.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - public void updateSynonymSet(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSynonymSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a SynonymSet for a given context.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - public void deleteSynonymSet(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSynonymSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all SynonymSets (for all contexts) for the specified location.
-     * 
- */ - public void listSynonymSets(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSynonymSetsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service SynonymSetService. - *
-   * A Service that manage/custom customer specified SynonymSets.
-   * 
- */ - public static final class SynonymSetServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SynonymSetServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SynonymSetServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SynonymSetServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a SynonymSet for a single context.
-     * Throws an ALREADY_EXISTS exception if a synonymset already exists
-     * for the context.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.SynonymSet createSynonymSet(com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSynonymSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a SynonymSet for a particular context.
-     * Throws a NOT_FOUND exception if the Synonymset
-     * does not exist
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet(com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSynonymSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Remove the existing SynonymSet for the context and replaces it
-     * with a new one.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.SynonymSet updateSynonymSet(com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSynonymSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a SynonymSet for a given context.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - public com.google.protobuf.Empty deleteSynonymSet(com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSynonymSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all SynonymSets (for all contexts) for the specified location.
-     * 
- */ - public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse listSynonymSets(com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSynonymSetsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service SynonymSetService. - *
-   * A Service that manage/custom customer specified SynonymSets.
-   * 
- */ - public static final class SynonymSetServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SynonymSetServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SynonymSetServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SynonymSetServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a SynonymSet for a single context.
-     * Throws an ALREADY_EXISTS exception if a synonymset already exists
-     * for the context.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSynonymSet( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSynonymSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a SynonymSet for a particular context.
-     * Throws a NOT_FOUND exception if the Synonymset
-     * does not exist
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSynonymSet( - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSynonymSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Remove the existing SynonymSet for the context and replaces it
-     * with a new one.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSynonymSet( - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSynonymSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a SynonymSet for a given context.
-     * Throws a NOT_FOUND exception if the SynonymSet is not found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSynonymSet( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSynonymSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all SynonymSets (for all contexts) for the specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSynonymSets( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSynonymSetsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SYNONYM_SET = 0; - private static final int METHODID_GET_SYNONYM_SET = 1; - private static final int METHODID_UPDATE_SYNONYM_SET = 2; - private static final int METHODID_DELETE_SYNONYM_SET = 3; - private static final int METHODID_LIST_SYNONYM_SETS = 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_CREATE_SYNONYM_SET: - serviceImpl.createSynonymSet((com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SYNONYM_SET: - serviceImpl.getSynonymSet((com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SYNONYM_SET: - serviceImpl.updateSynonymSet((com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SYNONYM_SET: - serviceImpl.deleteSynonymSet((com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SYNONYM_SETS: - serviceImpl.listSynonymSets((com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest) 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( - getCreateSynonymSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet>( - service, METHODID_CREATE_SYNONYM_SET))) - .addMethod( - getGetSynonymSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet>( - service, METHODID_GET_SYNONYM_SET))) - .addMethod( - getUpdateSynonymSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest, - com.google.cloud.contentwarehouse.v1.SynonymSet>( - service, METHODID_UPDATE_SYNONYM_SET))) - .addMethod( - getDeleteSynonymSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_SYNONYM_SET))) - .addMethod( - getListSynonymSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest, - com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse>( - service, METHODID_LIST_SYNONYM_SETS))) - .build(); - } - - private static abstract class SynonymSetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SynonymSetServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.contentwarehouse.v1.SynonymSetServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SynonymSetService"); - } - } - - private static final class SynonymSetServiceFileDescriptorSupplier - extends SynonymSetServiceBaseDescriptorSupplier { - SynonymSetServiceFileDescriptorSupplier() {} - } - - private static final class SynonymSetServiceMethodDescriptorSupplier - extends SynonymSetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SynonymSetServiceMethodDescriptorSupplier(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 (SynonymSetServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SynonymSetServiceFileDescriptorSupplier()) - .addMethod(getCreateSynonymSetMethod()) - .addMethod(getGetSynonymSetMethod()) - .addMethod(getUpdateSynonymSetMethod()) - .addMethod(getDeleteSynonymSetMethod()) - .addMethod(getListSynonymSetsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java deleted file mode 100644 index 72224199d205..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/AsyncDocumentServiceRequestProto.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/async_document_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class AsyncDocumentServiceRequestProto { - private AsyncDocumentServiceRequestProto() {} - 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_contentwarehouse_v1_CreateDocumentMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_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/contentwarehouse/v1/async" + - "_document_service_request.proto\022 google." + - "cloud.contentwarehouse.v1\032\037google/api/fi" + - "eld_behavior.proto\032\031google/api/resource." + - "proto\"\030\n\026CreateDocumentMetadata\"\030\n\026Updat" + - "eDocumentMetadataB\210\002\n$com.google.cloud.c" + - "ontentwarehouse.v1B AsyncDocumentService" + - "RequestProtoP\001ZPcloud.google.com/go/cont" + - "entwarehouse/apiv1/contentwarehousepb;co" + - "ntentwarehousepb\252\002 Google.Cloud.ContentW" + - "arehouse.V1\312\002 Google\\Cloud\\ContentWareho" + - "use\\V1\352\002#Google::Cloud::ContentWarehouse" + - "::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(), - }); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentMetadata_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentMetadata_descriptor, - new java.lang.String[] { }); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java deleted file mode 100644 index 16880b3ec0a1..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CommonProto.java +++ /dev/null @@ -1,141 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/common.proto - -package com.google.cloud.contentwarehouse.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_contentwarehouse_v1_RequestMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_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/contentwarehouse/v1/commo" + - "n.proto\022 google.cloud.contentwarehouse.v" + - "1\032\031google/api/resource.proto\032 google/pro" + - "tobuf/field_mask.proto\"P\n\017RequestMetadat" + - "a\022=\n\tuser_info\030\001 \001(\0132*.google.cloud.cont" + - "entwarehouse.v1.UserInfo\"&\n\020ResponseMeta" + - "data\022\022\n\nrequest_id\030\001 \001(\t\")\n\010UserInfo\022\n\n\002" + - "id\030\001 \001(\t\022\021\n\tgroup_ids\030\002 \003(\t\"\327\001\n\rUpdateOp" + - "tions\022A\n\013update_type\030\001 \001(\0162,.google.clou" + - "d.contentwarehouse.v1.UpdateType\022/\n\013upda" + - "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + - "k\022R\n\024merge_fields_options\030\003 \001(\01324.google" + - ".cloud.contentwarehouse.v1.MergeFieldsOp" + - "tions\"\226\001\n\022MergeFieldsOptions\022#\n\026replace_" + - "message_fields\030\001 \001(\010H\000\210\001\001\022$\n\027replace_rep" + - "eated_fields\030\002 \001(\010H\001\210\001\001B\031\n\027_replace_mess" + - "age_fieldsB\032\n\030_replace_repeated_fields*\237" + - "\002\n\nUpdateType\022\033\n\027UPDATE_TYPE_UNSPECIFIED" + - "\020\000\022\027\n\023UPDATE_TYPE_REPLACE\020\001\022\025\n\021UPDATE_TY" + - "PE_MERGE\020\002\022*\n&UPDATE_TYPE_INSERT_PROPERT" + - "IES_BY_NAMES\020\003\022+\n\'UPDATE_TYPE_REPLACE_PR" + - "OPERTIES_BY_NAMES\020\004\022*\n&UPDATE_TYPE_DELET" + - "E_PROPERTIES_BY_NAMES\020\005\022?\n;UPDATE_TYPE_M" + - "ERGE_AND_REPLACE_OR_INSERT_PROPERTIES_BY" + - "_NAMES\020\006*S\n\014DatabaseType\022\016\n\nDB_UNKNOWN\020\000" + - "\022\024\n\020DB_INFRA_SPANNER\020\001\022\035\n\025DB_CLOUD_SQL_P" + - "OSTGRES\020\002\032\002\010\001*\252\001\n\021AccessControlMode\022\024\n\020A" + - "CL_MODE_UNKNOWN\020\000\022\035\n\031ACL_MODE_UNIVERSAL_" + - "ACCESS\020\001\0220\n,ACL_MODE_DOCUMENT_LEVEL_ACCE" + - "SS_CONTROL_BYOID\020\002\022.\n*ACL_MODE_DOCUMENT_" + - "LEVEL_ACCESS_CONTROL_GCI\020\003*\211\001\n\032DocumentC" + - "reatorDefaultRole\022-\n)DOCUMENT_CREATOR_DE" + - "FAULT_ROLE_UNSPECIFIED\020\000\022\022\n\016DOCUMENT_ADM" + - "IN\020\001\022\023\n\017DOCUMENT_EDITOR\020\002\022\023\n\017DOCUMENT_VI" + - "EWER\020\003B\311\002\n$com.google.cloud.contentwareh" + - "ouse.v1B\013CommonProtoP\001ZPcloud.google.com" + - "/go/contentwarehouse/apiv1/contentwareho" + - "usepb;contentwarehousepb\252\002 Google.Cloud." + - "ContentWarehouse.V1\312\002 Google\\Cloud\\Conte" + - "ntWarehouse\\V1\352\002#Google::Cloud::ContentW" + - "arehouse::V1\352AS\n(contentwarehouse.google" + - "apis.com/Location\022\'projects/{project}/lo" + - "cations/{location}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RequestMetadata_descriptor, - new java.lang.String[] { "UserInfo", }); - internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ResponseMetadata_descriptor, - new java.lang.String[] { "RequestId", }); - internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_UserInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UserInfo_descriptor, - new java.lang.String[] { "Id", "GroupIds", }); - internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateOptions_descriptor, - new java.lang.String[] { "UpdateType", "UpdateMask", "MergeFieldsOptions", }); - internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_MergeFieldsOptions_descriptor, - new java.lang.String[] { "ReplaceMessageFields", "ReplaceRepeatedFields", "ReplaceMessageFields", "ReplaceRepeatedFields", }); - 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(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java deleted file mode 100644 index 2f7f3aa6ff87..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/async_document_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface CreateDocumentMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java deleted file mode 100644 index 46b60acd4cfb..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateDocumentSchemaRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_schema_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface CreateDocumentSchemaRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent name.
-   * 
- * - * 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 schema to create.
-   * 
- * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the documentSchema field is set. - */ - boolean hasDocumentSchema(); - /** - *
-   * Required. The document schema to create.
-   * 
- * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The documentSchema. - */ - com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema(); - /** - *
-   * Required. The document schema to create.
-   * 
- * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder(); -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java deleted file mode 100644 index 3337da593af9..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateRuleSetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface CreateRuleSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateRuleSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent name.
-   * Format: projects/{project_number}/locations/{location}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent name.
-   * Format: projects/{project_number}/locations/{location}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The rule set to create.
-   * 
- * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the ruleSet field is set. - */ - boolean hasRuleSet(); - /** - *
-   * Required. The rule set to create.
-   * 
- * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The ruleSet. - */ - com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet(); - /** - *
-   * Required. The rule set to create.
-   * 
- * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder(); -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java deleted file mode 100644 index 33c525937428..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/CreateSynonymSetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface CreateSynonymSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.CreateSynonymSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent name.
-   * Format: projects/{project_number}/locations/{location}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent name.
-   * Format: projects/{project_number}/locations/{location}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The synonymSet to be created for a context
-   * 
- * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the synonymSet field is set. - */ - boolean hasSynonymSet(); - /** - *
-   * Required. The synonymSet to be created for a context
-   * 
- * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The synonymSet. - */ - com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet(); - /** - *
-   * Required. The synonymSet to be created for a context
-   * 
- * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder(); -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java deleted file mode 100644 index d463263065f8..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DateTimeTypeOptionsOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface DateTimeTypeOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DateTimeTypeOptions) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java deleted file mode 100644 index 426723765f55..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentActionOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/rule_engine.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface DeleteDocumentActionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteDocumentAction) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Boolean field to select between hard vs soft delete options.
-   * Set 'true' for 'hard delete' and 'false' for 'soft delete'.
-   * 
- * - * bool enable_hard_delete = 1; - * @return The enableHardDelete. - */ - boolean getEnableHardDelete(); -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java deleted file mode 100644 index 727824f933d6..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteDocumentSchemaRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_schema_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface DeleteDocumentSchemaRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the document schema to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the document schema to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java deleted file mode 100644 index 8dc2fd77be89..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteRuleSetRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface DeleteRuleSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteRuleSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the rule set to delete.
-   * Format:
-   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the rule set to delete.
-   * Format:
-   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java deleted file mode 100644 index 7152009b100b..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DeleteSynonymSetRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface DeleteSynonymSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the synonymSet to delete
-   * Format:
-   * projects/{project_number}/locations/{location}/synonymSets/{context}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the synonymSet to delete
-   * Format:
-   * projects/{project_number}/locations/{location}/synonymSets/{context}.
-   * 
- * - * 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-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java deleted file mode 100644 index 4eddb4bca449..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceProto.java +++ /dev/null @@ -1,221 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_link_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class DocumentLinkServiceProto { - private DocumentLinkServiceProto() {} - 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_contentwarehouse_v1_ListLinkedTargetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListLinkedTargetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListLinkedSourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DocumentLink_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DocumentLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentLinkRequest_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\nproperti" + - "es\030\007 \003(\0132*.google.cloud.contentwarehouse" + - ".v1.Property\0225\n\013update_time\030\010 \001(\0132\032.goog" + - "le.protobuf.TimestampB\004\342A\001\003\0225\n\013create_ti" + - "me\030\t \001(\0132\032.google.protobuf.TimestampB\004\342A" + - "\001\003\022U\n\026raw_document_file_type\030\n \001(\01625.goo" + - "gle.cloud.contentwarehouse.v1.RawDocumen" + - "tFileType\022\031\n\rasync_enabled\030\014 \001(\010B\002\030\001\022K\n\020" + - "content_category\030\024 \001(\01621.google.cloud.co" + - "ntentwarehouse.v1.ContentCategory\022$\n\030tex" + - "t_extraction_disabled\030\023 \001(\010B\002\030\001\022\037\n\027text_" + - "extraction_enabled\030\025 \001(\010\022\017\n\007creator\030\r \001(" + - "\t\022\017\n\007updater\030\016 \001(\t\022:\n\020disposition_time\030\026" + - " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\030" + - "\n\nlegal_hold\030\027 \001(\010B\004\342A\001\003:\272\001\352A\266\001\n(content" + - "warehouse.googleapis.com/Document\022\n\nproperties\030\001 \003" + - "(\0132*.google.cloud.contentwarehouse.v1.Pr" + - "operty\"\260\001\n\013MapProperty\022I\n\006fields\030\001 \003(\01329" + - ".google.cloud.contentwarehouse.v1.MapPro" + - "perty.FieldsEntry\032V\n\013FieldsEntry\022\013\n\003key\030" + - "\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google.cloud.cont" + - "entwarehouse.v1.Value:\0028\001\"\255\002\n\005Value\022\025\n\013f" + - "loat_value\030\001 \001(\002H\000\022\023\n\tint_value\030\002 \001(\005H\000\022" + - "\026\n\014string_value\030\003 \001(\tH\000\022A\n\nenum_value\030\004 " + - "\001(\0132+.google.cloud.contentwarehouse.v1.E" + - "numValueH\000\022/\n\016datetime_value\030\005 \001(\0132\025.goo" + - "gle.type.DateTimeH\000\022K\n\017timestamp_value\030\006" + - " \001(\01320.google.cloud.contentwarehouse.v1." + - "TimestampValueH\000\022\027\n\rboolean_value\030\007 \001(\010H" + - "\000B\006\n\004kind\"\032\n\tEnumValue\022\r\n\005value\030\001 \001(\t*\202\002" + - "\n\023RawDocumentFileType\022&\n\"RAW_DOCUMENT_FI" + - "LE_TYPE_UNSPECIFIED\020\000\022\036\n\032RAW_DOCUMENT_FI" + - "LE_TYPE_PDF\020\001\022\037\n\033RAW_DOCUMENT_FILE_TYPE_" + - "DOCX\020\002\022\037\n\033RAW_DOCUMENT_FILE_TYPE_XLSX\020\003\022" + - "\037\n\033RAW_DOCUMENT_FILE_TYPE_PPTX\020\004\022\037\n\033RAW_" + - "DOCUMENT_FILE_TYPE_TEXT\020\005\022\037\n\033RAW_DOCUMEN" + - "T_FILE_TYPE_TIFF\020\006*\207\001\n\017ContentCategory\022 " + - "\n\034CONTENT_CATEGORY_UNSPECIFIED\020\000\022\032\n\026CONT" + - "ENT_CATEGORY_IMAGE\020\001\022\032\n\026CONTENT_CATEGORY" + - "_AUDIO\020\002\022\032\n\026CONTENT_CATEGORY_VIDEO\020\003B\365\001\n" + - "$com.google.cloud.contentwarehouse.v1B\rD" + - "ocumentProtoP\001ZPcloud.google.com/go/cont" + - "entwarehouse/apiv1/contentwarehousepb;co" + - "ntentwarehousepb\252\002 Google.Cloud.ContentW" + - "arehouse.V1\312\002 Google\\Cloud\\ContentWareho" + - "use\\V1\352\002#Google::Cloud::ContentWarehouse" + - "::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.documentai.v1.DocumentProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.DateTimeProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_Document_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_Document_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_Document_descriptor, - new java.lang.String[] { "Name", "ReferenceId", "DisplayName", "Title", "DisplayUri", "DocumentSchemaName", "PlainText", "CloudAiDocument", "StructuredContentUri", "RawDocumentPath", "InlineRawDocument", "Properties", "UpdateTime", "CreateTime", "RawDocumentFileType", "AsyncEnabled", "ContentCategory", "TextExtractionDisabled", "TextExtractionEnabled", "Creator", "Updater", "DispositionTime", "LegalHold", "StructuredContent", "RawDocument", }); - internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_DocumentReference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DocumentReference_descriptor, - new java.lang.String[] { "DocumentName", "DisplayName", "Snippet", "DocumentIsFolder", "UpdateTime", "CreateTime", "DeleteTime", "DocumentIsRetentionFolder", "DocumentIsLegalHoldFolder", }); - internal_static_google_cloud_contentwarehouse_v1_Property_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_Property_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_Property_descriptor, - new java.lang.String[] { "Name", "IntegerValues", "FloatValues", "TextValues", "EnumValues", "PropertyValues", "DateTimeValues", "MapProperty", "TimestampValues", "Values", }); - internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_IntegerArray_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_IntegerArray_descriptor, - new java.lang.String[] { "Values", }); - internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_FloatArray_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_FloatArray_descriptor, - new java.lang.String[] { "Values", }); - internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_TextArray_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_TextArray_descriptor, - new java.lang.String[] { "Values", }); - internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_contentwarehouse_v1_EnumArray_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_EnumArray_descriptor, - new java.lang.String[] { "Values", }); - internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DateTimeArray_descriptor, - new java.lang.String[] { "Values", }); - internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_contentwarehouse_v1_TimestampArray_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_TimestampArray_descriptor, - new java.lang.String[] { "Values", }); - internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_contentwarehouse_v1_TimestampValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_TimestampValue_descriptor, - new java.lang.String[] { "TimestampValue", "TextValue", "Value", }); - internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_contentwarehouse_v1_PropertyArray_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_PropertyArray_descriptor, - new java.lang.String[] { "Properties", }); - internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_contentwarehouse_v1_MapProperty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor, - new java.lang.String[] { "Fields", }); - internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor = - internal_static_google_cloud_contentwarehouse_v1_MapProperty_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_MapProperty_FieldsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_contentwarehouse_v1_Value_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_contentwarehouse_v1_Value_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_Value_descriptor, - new java.lang.String[] { "FloatValue", "IntValue", "StringValue", "EnumValue", "DatetimeValue", "TimestampValue", "BooleanValue", "Kind", }); - internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_contentwarehouse_v1_EnumValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_EnumValue_descriptor, - new java.lang.String[] { "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.documentai.v1.DocumentProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.DateTimeProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java deleted file mode 100644 index b23e9d445617..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaProto.java +++ /dev/null @@ -1,229 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class DocumentSchemaProto { - private DocumentSchemaProto() {} - 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_contentwarehouse_v1_DocumentSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_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/contentwarehouse/v1/docum" + - "ent_schema.proto\022 google.cloud.contentwa" + - "rehouse.v1\032\037google/api/field_behavior.pr" + - "oto\032\031google/api/resource.proto\032\037google/p" + - "rotobuf/timestamp.proto\"\255\003\n\016DocumentSche" + - "ma\022\014\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004" + - "\342A\001\002\022R\n\024property_definitions\030\003 \003(\01324.goo" + - "gle.cloud.contentwarehouse.v1.PropertyDe" + - "finition\022\032\n\022document_is_folder\030\004 \001(\010\0225\n\013" + - "update_time\030\005 \001(\0132\032.google.protobuf.Time" + - "stampB\004\342A\001\003\0225\n\013create_time\030\006 \001(\0132\032.googl" + - "e.protobuf.TimestampB\004\342A\001\003\022\023\n\013descriptio" + - "n\030\007 \001(\t:~\352A{\n.contentwarehouse.googleapi" + - "s.com/DocumentSchema\022Iprojects/{project}" + - "/locations/{location}/documentSchemas/{d" + - "ocument_schema}\"\336\t\n\022PropertyDefinition\022\022" + - "\n\004name\030\001 \001(\tB\004\342A\001\002\022\024\n\014display_name\030\014 \001(\t" + - "\022\025\n\ris_repeatable\030\002 \001(\010\022\025\n\ris_filterable" + - "\030\003 \001(\010\022\025\n\ris_searchable\030\004 \001(\010\022\023\n\013is_meta" + - "data\030\005 \001(\010\022\023\n\013is_required\030\016 \001(\010\022f\n\024retri" + - "eval_importance\030\022 \001(\0162H.google.cloud.con" + - "tentwarehouse.v1.PropertyDefinition.Retr" + - "ievalImportance\022T\n\024integer_type_options\030" + - "\007 \001(\01324.google.cloud.contentwarehouse.v1" + - ".IntegerTypeOptionsH\000\022P\n\022float_type_opti" + - "ons\030\010 \001(\01322.google.cloud.contentwarehous" + - "e.v1.FloatTypeOptionsH\000\022N\n\021text_type_opt" + - "ions\030\t \001(\01321.google.cloud.contentwarehou" + - "se.v1.TextTypeOptionsH\000\022V\n\025property_type" + - "_options\030\n \001(\01325.google.cloud.contentwar" + - "ehouse.v1.PropertyTypeOptionsH\000\022N\n\021enum_" + - "type_options\030\013 \001(\01321.google.cloud.conten" + - "twarehouse.v1.EnumTypeOptionsH\000\022W\n\026date_" + - "time_type_options\030\r \001(\01325.google.cloud.c" + - "ontentwarehouse.v1.DateTimeTypeOptionsH\000" + - "\022L\n\020map_type_options\030\017 \001(\01320.google.clou" + - "d.contentwarehouse.v1.MapTypeOptionsH\000\022X" + - "\n\026timestamp_type_options\030\020 \001(\01326.google." + - "cloud.contentwarehouse.v1.TimestampTypeO" + - "ptionsH\000\022Y\n\016schema_sources\030\023 \003(\0132A.googl" + - "e.cloud.contentwarehouse.v1.PropertyDefi" + - "nition.SchemaSource\0324\n\014SchemaSource\022\014\n\004n" + - "ame\030\001 \001(\t\022\026\n\016processor_type\030\002 \001(\t\"\177\n\023Ret" + - "rievalImportance\022$\n RETRIEVAL_IMPORTANCE" + - "_UNSPECIFIED\020\000\022\013\n\007HIGHEST\020\001\022\n\n\006HIGHER\020\002\022" + - "\010\n\004HIGH\020\003\022\n\n\006MEDIUM\020\004\022\007\n\003LOW\020\005\022\n\n\006LOWEST" + - "\020\006B\024\n\022value_type_options\"\024\n\022IntegerTypeO" + - "ptions\"\022\n\020FloatTypeOptions\"\021\n\017TextTypeOp" + - "tions\"\025\n\023DateTimeTypeOptions\"\020\n\016MapTypeO" + - "ptions\"\026\n\024TimestampTypeOptions\"o\n\023Proper" + - "tyTypeOptions\022X\n\024property_definitions\030\001 " + - "\003(\01324.google.cloud.contentwarehouse.v1.P" + - "ropertyDefinitionB\004\342A\001\002\"S\n\017EnumTypeOptio" + - "ns\022\035\n\017possible_values\030\001 \003(\tB\004\342A\001\002\022!\n\031val" + - "idation_check_disabled\030\002 \001(\010B\373\001\n$com.goo" + - "gle.cloud.contentwarehouse.v1B\023DocumentS" + - "chemaProtoP\001ZPcloud.google.com/go/conten" + - "twarehouse/apiv1/contentwarehousepb;cont" + - "entwarehousepb\252\002 Google.Cloud.ContentWar" + - "ehouse.V1\312\002 Google\\Cloud\\ContentWarehous" + - "e\\V1\352\002#Google::Cloud::ContentWarehouse::" + - "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_contentwarehouse_v1_DocumentSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DocumentSchema_descriptor, - new java.lang.String[] { "Name", "DisplayName", "PropertyDefinitions", "DocumentIsFolder", "UpdateTime", "CreateTime", "Description", }); - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor, - new java.lang.String[] { "Name", "DisplayName", "IsRepeatable", "IsFilterable", "IsSearchable", "IsMetadata", "IsRequired", "RetrievalImportance", "IntegerTypeOptions", "FloatTypeOptions", "TextTypeOptions", "PropertyTypeOptions", "EnumTypeOptions", "DateTimeTypeOptions", "MapTypeOptions", "TimestampTypeOptions", "SchemaSources", "ValueTypeOptions", }); - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor = - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor, - new java.lang.String[] { "Name", "ProcessorType", }); - internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_IntegerTypeOptions_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_FloatTypeOptions_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_TextTypeOptions_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DateTimeTypeOptions_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_MapTypeOptions_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_TimestampTypeOptions_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_PropertyTypeOptions_descriptor, - new java.lang.String[] { "PropertyDefinitions", }); - internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_EnumTypeOptions_descriptor, - new java.lang.String[] { "PossibleValues", "ValidationCheckDisabled", }); - 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.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java deleted file mode 100644 index 42583ed6dc0f..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceProto.java +++ /dev/null @@ -1,187 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_schema_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class DocumentSchemaServiceProto { - private DocumentSchemaServiceProto() {} - 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_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_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/contentwarehouse/v1/docum" + - "ent_schema_service.proto\022 google.cloud.c" + - "ontentwarehouse.v1\032\034google/api/annotatio" + - "ns.proto\032\027google/api/client.proto\032\037googl" + - "e/api/field_behavior.proto\032\031google/api/r" + - "esource.proto\0326google/cloud/contentwareh" + - "ouse/v1/document_schema.proto\032\033google/pr" + - "otobuf/empty.proto\"\261\001\n\033CreateDocumentSch" + - "emaRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(con" + - "tentwarehouse.googleapis.com/Location\022O\n" + - "\017document_schema\030\002 \001(\01320.google.cloud.co" + - "ntentwarehouse.v1.DocumentSchemaB\004\342A\001\002\"a" + - "\n\030GetDocumentSchemaRequest\022E\n\004name\030\001 \001(\t" + - "B7\342A\001\002\372A0\n.contentwarehouse.googleapis.c" + - "om/DocumentSchema\"\265\001\n\033UpdateDocumentSche" + - "maRequest\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.conten" + - "twarehouse.googleapis.com/DocumentSchema" + - "\022O\n\017document_schema\030\002 \001(\01320.google.cloud" + - ".contentwarehouse.v1.DocumentSchemaB\004\342A\001" + - "\002\"d\n\033DeleteDocumentSchemaRequest\022E\n\004name" + - "\030\001 \001(\tB7\342A\001\002\372A0\n.contentwarehouse.google" + - "apis.com/DocumentSchema\"\206\001\n\032ListDocument" + - "SchemasRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n" + - "(contentwarehouse.googleapis.com/Locatio" + - "n\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + - "\"\202\001\n\033ListDocumentSchemasResponse\022J\n\020docu" + - "ment_schemas\030\001 \003(\01320.google.cloud.conten" + - "twarehouse.v1.DocumentSchema\022\027\n\017next_pag" + - "e_token\030\002 \001(\t2\225\t\n\025DocumentSchemaService\022" + - "\356\001\n\024CreateDocumentSchema\022=.google.cloud." + - "contentwarehouse.v1.CreateDocumentSchema" + - "Request\0320.google.cloud.contentwarehouse." + - "v1.DocumentSchema\"e\332A\026parent,document_sc" + - "hema\202\323\344\223\002F\"3/v1/{parent=projects/*/locat" + - "ions/*}/documentSchemas:\017document_schema" + - "\022\336\001\n\024UpdateDocumentSchema\022=.google.cloud" + - ".contentwarehouse.v1.UpdateDocumentSchem" + - "aRequest\0320.google.cloud.contentwarehouse" + - ".v1.DocumentSchema\"U\332A\024name,document_sch" + - "ema\202\323\344\223\002823/v1/{name=projects/*/location" + - "s/*/documentSchemas/*}:\001*\022\305\001\n\021GetDocumen" + - "tSchema\022:.google.cloud.contentwarehouse." + - "v1.GetDocumentSchemaRequest\0320.google.clo" + - "ud.contentwarehouse.v1.DocumentSchema\"B\332" + - "A\004name\202\323\344\223\0025\0223/v1/{name=projects/*/locat" + - "ions/*/documentSchemas/*}\022\261\001\n\024DeleteDocu" + - "mentSchema\022=.google.cloud.contentwarehou" + - "se.v1.DeleteDocumentSchemaRequest\032\026.goog" + - "le.protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3/v1/{n" + - "ame=projects/*/locations/*/documentSchem" + - "as/*}\022\330\001\n\023ListDocumentSchemas\022<.google.c" + - "loud.contentwarehouse.v1.ListDocumentSch" + - "emasRequest\032=.google.cloud.contentwareho" + - "use.v1.ListDocumentSchemasResponse\"D\332A\006p" + - "arent\202\323\344\223\0025\0223/v1/{parent=projects/*/loca" + - "tions/*}/documentSchemas\032S\312A\037contentware" + - "house.googleapis.com\322A.https://www.googl" + - "eapis.com/auth/cloud-platformB\202\002\n$com.go" + - "ogle.cloud.contentwarehouse.v1B\032Document" + - "SchemaServiceProtoP\001ZPcloud.google.com/g" + - "o/contentwarehouse/apiv1/contentwarehous" + - "epb;contentwarehousepb\252\002 Google.Cloud.Co" + - "ntentWarehouse.V1\312\002 Google\\Cloud\\Content" + - "Warehouse\\V1\352\002#Google::Cloud::ContentWar" + - "ehouse::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.contentwarehouse.v1.DocumentSchemaProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentSchemaRequest_descriptor, - new java.lang.String[] { "Parent", "DocumentSchema", }); - internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_GetDocumentSchemaRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentSchemaRequest_descriptor, - new java.lang.String[] { "Name", "DocumentSchema", }); - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentSchemaRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ListDocumentSchemasResponse_descriptor, - new java.lang.String[] { "DocumentSchemas", "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.contentwarehouse.v1.DocumentSchemaProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java deleted file mode 100644 index db393ed419ec..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceProto.java +++ /dev/null @@ -1,259 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_service.proto - -package com.google.cloud.contentwarehouse.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_contentwarehouse_v1_CreateDocumentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_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/contentwarehouse/v1/docum" + - "ent_service.proto\022 google.cloud.contentw" + - "arehouse.v1\032\034google/api/annotations.prot" + - "o\032\027google/api/client.proto\032\031google/api/r" + - "esource.proto\032-google/cloud/contentwareh" + - "ouse/v1/common.proto\032/google/cloud/conte" + - "ntwarehouse/v1/document.proto\032?google/cl" + - "oud/contentwarehouse/v1/document_service" + - "_request.proto\0320google/cloud/contentware" + - "house/v1/histogram.proto\0322google/cloud/c" + - "ontentwarehouse/v1/rule_engine.proto\032\032go" + - "ogle/iam/v1/policy.proto\032#google/longrun" + - "ning/operations.proto\032\033google/protobuf/e" + - "mpty.proto\"\254\002\n\026CreateDocumentResponse\022<\n" + - "\010document\030\001 \001(\0132*.google.cloud.contentwa" + - "rehouse.v1.Document\022N\n\022rule_engine_outpu" + - "t\030\002 \001(\01322.google.cloud.contentwarehouse." + - "v1.RuleEngineOutput\022D\n\010metadata\030\003 \001(\01322." + - "google.cloud.contentwarehouse.v1.Respons" + - "eMetadata\022>\n\027long_running_operations\030\004 \003" + - "(\0132\035.google.longrunning.Operation\"\354\001\n\026Up" + - "dateDocumentResponse\022<\n\010document\030\001 \001(\0132*" + - ".google.cloud.contentwarehouse.v1.Docume" + - "nt\022N\n\022rule_engine_output\030\002 \001(\01322.google." + - "cloud.contentwarehouse.v1.RuleEngineOutp" + - "ut\022D\n\010metadata\030\003 \001(\01322.google.cloud.cont" + - "entwarehouse.v1.ResponseMetadata\"\243\001\n\010QAR" + - "esult\022H\n\nhighlights\030\001 \003(\01324.google.cloud" + - ".contentwarehouse.v1.QAResult.Highlight\022" + - "\030\n\020confidence_score\030\002 \001(\002\0323\n\tHighlight\022\023" + - "\n\013start_index\030\001 \001(\005\022\021\n\tend_index\030\002 \001(\005\"\225" + - "\004\n\027SearchDocumentsResponse\022f\n\022matching_d" + - "ocuments\030\001 \003(\0132J.google.cloud.contentwar" + - "ehouse.v1.SearchDocumentsResponse.Matchi" + - "ngDocument\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\nt" + - "otal_size\030\003 \001(\005\022D\n\010metadata\030\004 \001(\01322.goog" + - "le.cloud.contentwarehouse.v1.ResponseMet" + - "adata\022W\n\027histogram_query_results\030\006 \003(\01326" + - ".google.cloud.contentwarehouse.v1.Histog" + - "ramQueryResult\022\027\n\017question_answer\030\007 \001(\t\032" + - "\254\001\n\020MatchingDocument\022<\n\010document\030\001 \001(\0132*" + - ".google.cloud.contentwarehouse.v1.Docume" + - "nt\022\033\n\023search_text_snippet\030\002 \001(\t\022=\n\tqa_re" + - "sult\030\003 \001(\0132*.google.cloud.contentwarehou" + - "se.v1.QAResult\"\177\n\020FetchAclResponse\022%\n\006po" + - "licy\030\001 \001(\0132\025.google.iam.v1.Policy\022D\n\010met" + - "adata\030\002 \001(\01322.google.cloud.contentwareho" + - "use.v1.ResponseMetadata\"}\n\016SetAclRespons" + - "e\022%\n\006policy\030\001 \001(\0132\025.google.iam.v1.Policy" + - "\022D\n\010metadata\030\002 \001(\01322.google.cloud.conten" + - "twarehouse.v1.ResponseMetadata2\242\017\n\017Docum" + - "entService\022\317\001\n\016CreateDocument\0227.google.c" + - "loud.contentwarehouse.v1.CreateDocumentR" + - "equest\0328.google.cloud.contentwarehouse.v" + - "1.CreateDocumentResponse\"J\332A\017parent,docu" + - "ment\202\323\344\223\0022\"-/v1/{parent=projects/*/locat" + - "ions/*}/documents:\001*\022\371\001\n\013GetDocument\0224.g" + - "oogle.cloud.contentwarehouse.v1.GetDocum" + - "entRequest\032*.google.cloud.contentwarehou" + - "se.v1.Document\"\207\001\332A\004name\202\323\344\223\002z\"1/v1/{nam" + - "e=projects/*/locations/*/documents/*}:ge" + - "t:\001*ZB\"=/v1/{name=projects/*/locations/*" + - "/documents/referenceId/*}:get:\001*\022\216\002\n\016Upd" + - "ateDocument\0227.google.cloud.contentwareho" + - "use.v1.UpdateDocumentRequest\0328.google.cl" + - "oud.contentwarehouse.v1.UpdateDocumentRe" + - "sponse\"\210\001\332A\rname,document\202\323\344\223\002r2-/v1/{na" + - "me=projects/*/locations/*/documents/*}:\001" + - "*Z>29/v1/{name=projects/*/locations/*/do" + - "cuments/referenceId/*}:\001*\022\362\001\n\016DeleteDocu" + - "ment\0227.google.cloud.contentwarehouse.v1." + - "DeleteDocumentRequest\032\026.google.protobuf." + - "Empty\"\216\001\332A\004name\202\323\344\223\002\200\001\"4/v1/{name=projec" + - "ts/*/locations/*/documents/*}:delete:\001*Z" + - "E\"@/v1/{name=projects/*/locations/*/docu" + - "ments/referenceId/*}:delete:\001*\022\320\001\n\017Searc" + - "hDocuments\0228.google.cloud.contentwarehou" + - "se.v1.SearchDocumentsRequest\0329.google.cl" + - "oud.contentwarehouse.v1.SearchDocumentsR" + - "esponse\"H\332A\006parent\202\323\344\223\0029\"4/v1/{parent=pr" + - "ojects/*/locations/*}/documents:search:\001" + - "*\022\267\001\n\014LockDocument\0225.google.cloud.conten" + - "twarehouse.v1.LockDocumentRequest\032*.goog" + - "le.cloud.contentwarehouse.v1.Document\"D\332" + - "A\004name\202\323\344\223\0027\"2/v1/{name=projects/*/locat" + - "ions/*/documents/*}:lock:\001*\022\354\001\n\010FetchAcl" + - "\0221.google.cloud.contentwarehouse.v1.Fetc" + - "hAclRequest\0322.google.cloud.contentwareho" + - "use.v1.FetchAclResponse\"y\332A\010resource\202\323\344\223" + - "\002h\":/v1/{resource=projects/*/locations/*" + - "/documents/*}:fetchAcl:\001*Z\'\"\"/v1/{resour" + - "ce=projects/*}:fetchAcl:\001*\022\351\001\n\006SetAcl\022/." + - "google.cloud.contentwarehouse.v1.SetAclR" + - "equest\0320.google.cloud.contentwarehouse.v" + - "1.SetAclResponse\"|\332A\017resource,policy\202\323\344\223" + - "\002d\"8/v1/{resource=projects/*/locations/*" + - "/documents/*}:setAcl:\001*Z%\" /v1/{resource" + - "=projects/*}:setAcl:\001*\032S\312A\037contentwareho" + - "use.googleapis.com\322A.https://www.googlea" + - "pis.com/auth/cloud-platformB\374\001\n$com.goog" + - "le.cloud.contentwarehouse.v1B\024DocumentSe" + - "rviceProtoP\001ZPcloud.google.com/go/conten" + - "twarehouse/apiv1/contentwarehousepb;cont" + - "entwarehousepb\252\002 Google.Cloud.ContentWar" + - "ehouse.V1\312\002 Google\\Cloud\\ContentWarehous" + - "e\\V1\352\002#Google::Cloud::ContentWarehouse::" + - "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.ResourceProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentResponse_descriptor, - new java.lang.String[] { "Document", "RuleEngineOutput", "Metadata", "LongRunningOperations", }); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentResponse_descriptor, - new java.lang.String[] { "Document", "RuleEngineOutput", "Metadata", }); - internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_QAResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor, - new java.lang.String[] { "Highlights", "ConfidenceScore", }); - internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor = - internal_static_google_cloud_contentwarehouse_v1_QAResult_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_QAResult_Highlight_descriptor, - new java.lang.String[] { "StartIndex", "EndIndex", }); - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor, - new java.lang.String[] { "MatchingDocuments", "NextPageToken", "TotalSize", "Metadata", "HistogramQueryResults", "QuestionAnswer", }); - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor = - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsResponse_MatchingDocument_descriptor, - new java.lang.String[] { "Document", "SearchTextSnippet", "QaResult", }); - internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_FetchAclResponse_descriptor, - new java.lang.String[] { "Policy", "Metadata", }); - internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SetAclResponse_descriptor, - new java.lang.String[] { "Policy", "Metadata", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.CommonProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.DocumentServiceRequestProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java deleted file mode 100644 index f354854811d5..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceRequestProto.java +++ /dev/null @@ -1,248 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class DocumentServiceRequestProto { - private DocumentServiceRequestProto() {} - 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_contentwarehouse_v1_CloudAIDocumentOption_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_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/contentwarehouse/v1/docum" + - "ent_service_request.proto\022 google.cloud." + - "contentwarehouse.v1\032\037google/api/field_be" + - "havior.proto\032\031google/api/resource.proto\032" + - "-google/cloud/contentwarehouse/v1/common" + - ".proto\032/google/cloud/contentwarehouse/v1" + - "/document.proto\032.google/cloud/contentwar" + - "ehouse/v1/filters.proto\0320google/cloud/co" + - "ntentwarehouse/v1/histogram.proto\032\032googl" + - "e/iam/v1/policy.proto\032 google/protobuf/f" + - "ield_mask.proto\"\247\002\n\025CloudAIDocumentOptio" + - "n\022#\n\033enable_entities_conversions\030\001 \001(\010\022\230" + - "\001\n*customized_entities_properties_conver" + - "sions\030\002 \003(\0132d.google.cloud.contentwareho" + - "use.v1.CloudAIDocumentOption.CustomizedE" + - "ntitiesPropertiesConversionsEntry\032N\n,Cus" + - "tomizedEntitiesPropertiesConversionsEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\236\003\n\025Cr" + - "eateDocumentRequest\022A\n\006parent\030\001 \001(\tB1\342A\001" + - "\002\372A*\n(contentwarehouse.googleapis.com/Lo" + - "cation\022B\n\010document\030\002 \001(\0132*.google.cloud." + - "contentwarehouse.v1.DocumentB\004\342A\001\002\022K\n\020re" + - "quest_metadata\030\003 \001(\01321.google.cloud.cont" + - "entwarehouse.v1.RequestMetadata\022%\n\006polic" + - "y\030\004 \001(\0132\025.google.iam.v1.Policy\022Y\n\030cloud_" + - "ai_document_option\030\005 \001(\01327.google.cloud." + - "contentwarehouse.v1.CloudAIDocumentOptio" + - "n\022/\n\013create_mask\030\006 \001(\0132\032.google.protobuf" + - ".FieldMask\"\242\001\n\022GetDocumentRequest\022?\n\004nam" + - "e\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehouse.googl" + - "eapis.com/Document\022K\n\020request_metadata\030\002" + - " \001(\01321.google.cloud.contentwarehouse.v1." + - "RequestMetadata\"\215\003\n\025UpdateDocumentReques" + - "t\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehou" + - "se.googleapis.com/Document\022B\n\010document\030\002" + - " \001(\0132*.google.cloud.contentwarehouse.v1." + - "DocumentB\004\342A\001\002\022K\n\020request_metadata\030\003 \001(\013" + - "21.google.cloud.contentwarehouse.v1.Requ" + - "estMetadata\022Y\n\030cloud_ai_document_option\030" + - "\005 \001(\01327.google.cloud.contentwarehouse.v1" + - ".CloudAIDocumentOption\022G\n\016update_options" + - "\030\006 \001(\0132/.google.cloud.contentwarehouse.v" + - "1.UpdateOptions\"\245\001\n\025DeleteDocumentReques" + - "t\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehou" + - "se.googleapis.com/Document\022K\n\020request_me" + - "tadata\030\002 \001(\01321.google.cloud.contentwareh" + - "ouse.v1.RequestMetadata\"\372\004\n\026SearchDocume" + - "ntsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(con" + - "tentwarehouse.googleapis.com/Location\022K\n" + - "\020request_metadata\030\003 \001(\01321.google.cloud.c" + - "ontentwarehouse.v1.RequestMetadata\022G\n\016do" + - "cument_query\030\004 \001(\0132/.google.cloud.conten" + - "twarehouse.v1.DocumentQuery\022\016\n\006offset\030\005 " + - "\001(\005\022\021\n\tpage_size\030\006 \001(\005\022\022\n\npage_token\030\007 \001" + - "(\t\022\020\n\010order_by\030\010 \001(\t\022K\n\021histogram_querie" + - "s\030\t \003(\01320.google.cloud.contentwarehouse." + - "v1.HistogramQuery\022\032\n\022require_total_size\030" + - "\n \001(\010\022c\n\021total_result_size\030\014 \001(\0162H.googl" + - "e.cloud.contentwarehouse.v1.SearchDocume" + - "ntsRequest.TotalResultSize\022\025\n\rqa_size_li" + - "mit\030\013 \001(\005\"Y\n\017TotalResultSize\022!\n\035TOTAL_RE" + - "SULT_SIZE_UNSPECIFIED\020\000\022\022\n\016ESTIMATED_SIZ" + - "E\020\001\022\017\n\013ACTUAL_SIZE\020\002\"\257\001\n\023LockDocumentReq" + - "uest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentware" + - "house.googleapis.com/Document\022\025\n\rcollect" + - "ion_id\030\002 \001(\t\022@\n\014locking_user\030\003 \001(\0132*.goo" + - "gle.cloud.contentwarehouse.v1.UserInfo\"\215" + - "\001\n\017FetchAclRequest\022\026\n\010resource\030\001 \001(\tB\004\342A" + - "\001\002\022K\n\020request_metadata\030\002 \001(\01321.google.cl" + - "oud.contentwarehouse.v1.RequestMetadata\022" + - "\025\n\rproject_owner\030\003 \001(\010\"\270\001\n\rSetAclRequest" + - "\022\026\n\010resource\030\001 \001(\tB\004\342A\001\002\022+\n\006policy\030\002 \001(\013" + - "2\025.google.iam.v1.PolicyB\004\342A\001\002\022K\n\020request" + - "_metadata\030\003 \001(\01321.google.cloud.contentwa" + - "rehouse.v1.RequestMetadata\022\025\n\rproject_ow" + - "ner\030\004 \001(\010B\203\002\n$com.google.cloud.contentwa" + - "rehouse.v1B\033DocumentServiceRequestProtoP" + - "\001ZPcloud.google.com/go/contentwarehouse/" + - "apiv1/contentwarehousepb;contentwarehous" + - "epb\252\002 Google.Cloud.ContentWarehouse.V1\312\002" + - " Google\\Cloud\\ContentWarehouse\\V1\352\002#Goog" + - "le::Cloud::ContentWarehouse::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.contentwarehouse.v1.CommonProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.FiltersProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor, - new java.lang.String[] { "EnableEntitiesConversions", "CustomizedEntitiesPropertiesConversions", }); - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor = - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CloudAIDocumentOption_CustomizedEntitiesPropertiesConversionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CreateDocumentRequest_descriptor, - new java.lang.String[] { "Parent", "Document", "RequestMetadata", "Policy", "CloudAiDocumentOption", "CreateMask", }); - internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_GetDocumentRequest_descriptor, - new java.lang.String[] { "Name", "RequestMetadata", }); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateDocumentRequest_descriptor, - new java.lang.String[] { "Name", "Document", "RequestMetadata", "CloudAiDocumentOption", "UpdateOptions", }); - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentRequest_descriptor, - new java.lang.String[] { "Name", "RequestMetadata", }); - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SearchDocumentsRequest_descriptor, - new java.lang.String[] { "Parent", "RequestMetadata", "DocumentQuery", "Offset", "PageSize", "PageToken", "OrderBy", "HistogramQueries", "RequireTotalSize", "TotalResultSize", "QaSizeLimit", }); - internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_LockDocumentRequest_descriptor, - new java.lang.String[] { "Name", "CollectionId", "LockingUser", }); - internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_FetchAclRequest_descriptor, - new java.lang.String[] { "Resource", "RequestMetadata", "ProjectOwner", }); - internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SetAclRequest_descriptor, - new java.lang.String[] { "Resource", "Policy", "RequestMetadata", "ProjectOwner", }); - 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.contentwarehouse.v1.CommonProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.DocumentProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.FiltersProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.HistogramProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java deleted file mode 100644 index 2f358d12a054..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java +++ /dev/null @@ -1,153 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/filters.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class FiltersProto { - private FiltersProto() {} - 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_contentwarehouse_v1_DocumentQuery_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_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/contentwarehouse/v1/filte" + - "rs.proto\022 google.cloud.contentwarehouse." + - "v1\032\031google/api/resource.proto\032\032google/ty" + - "pe/interval.proto\"\235\004\n\rDocumentQuery\022\r\n\005q" + - "uery\030\001 \001(\t\022\023\n\013is_nl_query\030\014 \001(\010\022\"\n\026custo" + - "m_property_filter\030\004 \001(\tB\002\030\001\022B\n\014time_filt" + - "ers\030\005 \003(\0132,.google.cloud.contentwarehous" + - "e.v1.TimeFilter\022\035\n\025document_schema_names" + - "\030\006 \003(\t\022I\n\017property_filter\030\007 \003(\01320.google" + - ".cloud.contentwarehouse.v1.PropertyFilte" + - "r\022J\n\020file_type_filter\030\010 \001(\01320.google.clo" + - "ud.contentwarehouse.v1.FileTypeFilter\022\032\n" + - "\022folder_name_filter\030\t \001(\t\022\034\n\024document_na" + - "me_filter\030\016 \003(\t\022\025\n\rquery_context\030\n \003(\t\022\037" + - "\n\027document_creator_filter\030\013 \003(\t\022X\n\027custo" + - "m_weights_metadata\030\r \001(\01327.google.cloud." + - "contentwarehouse.v1.CustomWeightsMetadat" + - "a\"\344\001\n\nTimeFilter\022)\n\ntime_range\030\001 \001(\0132\025.g" + - "oogle.type.Interval\022J\n\ntime_field\030\002 \001(\0162" + - "6.google.cloud.contentwarehouse.v1.TimeF" + - "ilter.TimeField\"_\n\tTimeField\022\032\n\026TIME_FIE" + - "LD_UNSPECIFIED\020\000\022\017\n\013CREATE_TIME\020\001\022\017\n\013UPD" + - "ATE_TIME\020\002\022\024\n\020DISPOSITION_TIME\020\003\"v\n\016Prop" + - "ertyFilter\022Q\n\024document_schema_name\030\001 \001(\t" + - "B3\372A0\n.contentwarehouse.googleapis.com/D" + - "ocumentSchema\022\021\n\tcondition\030\002 \001(\t\"\271\001\n\016Fil" + - "eTypeFilter\022L\n\tfile_type\030\001 \001(\01629.google." + - "cloud.contentwarehouse.v1.FileTypeFilter" + - ".FileType\"Y\n\010FileType\022\031\n\025FILE_TYPE_UNSPE" + - "CIFIED\020\000\022\007\n\003ALL\020\001\022\n\n\006FOLDER\020\002\022\014\n\010DOCUMEN" + - "T\020\003\022\017\n\013ROOT_FOLDER\020\004\"u\n\025CustomWeightsMet" + - "adata\022\\\n\032weighted_schema_properties\030\001 \003(" + - "\01328.google.cloud.contentwarehouse.v1.Wei" + - "ghtedSchemaProperty\"\203\001\n\026WeightedSchemaPr" + - "operty\022Q\n\024document_schema_name\030\001 \001(\tB3\372A" + - "0\n.contentwarehouse.googleapis.com/Docum" + - "entSchema\022\026\n\016property_names\030\002 \003(\tB\364\001\n$co" + - "m.google.cloud.contentwarehouse.v1B\014Filt" + - "ersProtoP\001ZPcloud.google.com/go/contentw" + - "arehouse/apiv1/contentwarehousepb;conten" + - "twarehousepb\252\002 Google.Cloud.ContentWareh" + - "ouse.V1\312\002 Google\\Cloud\\ContentWarehouse\\" + - "V1\352\002#Google::Cloud::ContentWarehouse::V1" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.type.IntervalProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DocumentQuery_descriptor, - new java.lang.String[] { "Query", "IsNlQuery", "CustomPropertyFilter", "TimeFilters", "DocumentSchemaNames", "PropertyFilter", "FileTypeFilter", "FolderNameFilter", "DocumentNameFilter", "QueryContext", "DocumentCreatorFilter", "CustomWeightsMetadata", }); - internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_TimeFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_TimeFilter_descriptor, - new java.lang.String[] { "TimeRange", "TimeField", }); - internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_PropertyFilter_descriptor, - new java.lang.String[] { "DocumentSchemaName", "Condition", }); - internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_FileTypeFilter_descriptor, - new java.lang.String[] { "FileType", }); - internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CustomWeightsMetadata_descriptor, - new java.lang.String[] { "WeightedSchemaProperties", }); - internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_WeightedSchemaProperty_descriptor, - new java.lang.String[] { "DocumentSchemaName", "PropertyNames", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.type.IntervalProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java deleted file mode 100644 index 2d55c7b5e607..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FloatTypeOptionsOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface FloatTypeOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.FloatTypeOptions) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java deleted file mode 100644 index 8aa88719413e..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetDocumentSchemaRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_schema_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface GetDocumentSchemaRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the document schema to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the document schema to retrieve.
-   * 
- * - * 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-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java deleted file mode 100644 index 6aa9c50a9d3e..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetRuleSetRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface GetRuleSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetRuleSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the rule set to retrieve.
-   * Format:
-   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the rule set to retrieve.
-   * Format:
-   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_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-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java deleted file mode 100644 index 72c28f48ceaf..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/GetSynonymSetRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface GetSynonymSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.GetSynonymSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the synonymSet to retrieve
-   * Format:
-   * projects/{project_number}/locations/{location}/synonymSets/{context}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the synonymSet to retrieve
-   * Format:
-   * projects/{project_number}/locations/{location}/synonymSets/{context}.
-   * 
- * - * 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-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java deleted file mode 100644 index 4c2f4c61d56c..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/HistogramProto.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/histogram.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class HistogramProto { - private HistogramProto() {} - 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_contentwarehouse_v1_HistogramQuery_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_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/contentwarehouse/v1/histo" + - "gram.proto\022 google.cloud.contentwarehous" + - "e.v1\032\037google/api/field_behavior.proto\032\031g" + - "oogle/api/resource.proto\"\251\001\n\016HistogramQu" + - "ery\022\027\n\017histogram_query\030\001 \001(\t\022#\n\033require_" + - "precise_result_size\030\002 \001(\010\022Y\n\007filters\030\003 \001" + - "(\0132B.google.cloud.contentwarehouse.v1.Hi" + - "stogramQueryPropertyNameFilterB\004\342A\001\001\"\272\002\n" + - " HistogramQueryPropertyNameFilter\022M\n\020doc" + - "ument_schemas\030\001 \003(\tB3\372A0\n.contentwarehou" + - "se.googleapis.com/DocumentSchema\022\026\n\016prop" + - "erty_names\030\002 \003(\t\022a\n\006y_axis\030\003 \001(\0162Q.googl" + - "e.cloud.contentwarehouse.v1.HistogramQue" + - "ryPropertyNameFilter.HistogramYAxis\"L\n\016H" + - "istogramYAxis\022\034\n\030HISTOGRAM_YAXIS_DOCUMEN" + - "T\020\000\022\034\n\030HISTOGRAM_YAXIS_PROPERTY\020\001\"\273\001\n\024Hi" + - "stogramQueryResult\022\027\n\017histogram_query\030\001 " + - "\001(\t\022X\n\thistogram\030\002 \003(\0132E.google.cloud.co" + - "ntentwarehouse.v1.HistogramQueryResult.H" + - "istogramEntry\0320\n\016HistogramEntry\022\013\n\003key\030\001" + - " \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001B\366\001\n$com.google.c" + - "loud.contentwarehouse.v1B\016HistogramProto" + - "P\001ZPcloud.google.com/go/contentwarehouse" + - "/apiv1/contentwarehousepb;contentwarehou" + - "sepb\252\002 Google.Cloud.ContentWarehouse.V1\312" + - "\002 Google\\Cloud\\ContentWarehouse\\V1\352\002#Goo" + - "gle::Cloud::ContentWarehouse::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(), - }); - internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_HistogramQuery_descriptor, - new java.lang.String[] { "HistogramQuery", "RequirePreciseResultSize", "Filters", }); - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryPropertyNameFilter_descriptor, - new java.lang.String[] { "DocumentSchemas", "PropertyNames", "YAxis", }); - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor, - new java.lang.String[] { "HistogramQuery", "Histogram", }); - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor = - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_HistogramQueryResult_HistogramEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java deleted file mode 100644 index 436a891adbe1..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IntegerTypeOptionsOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface IntegerTypeOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.IntegerTypeOptions) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java deleted file mode 100644 index c58634f60b60..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/MapTypeOptionsOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface MapTypeOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.MapTypeOptions) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java deleted file mode 100644 index 621dec2acad1..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceProto.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/pipeline_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class PipelineServiceProto { - private PipelineServiceProto() {} - 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_contentwarehouse_v1_RunPipelineRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_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/contentwarehouse/v1/pipel" + - "ine_service.proto\022 google.cloud.contentw" + - "arehouse.v1\032\034google/api/annotations.prot" + - "o\032\027google/api/client.proto\032\037google/api/f" + - "ield_behavior.proto\032\031google/api/resource" + - ".proto\032-google/cloud/contentwarehouse/v1" + - "/common.proto\0320google/cloud/contentwareh" + - "ouse/v1/pipelines.proto\032#google/longrunn" + - "ing/operations.proto\"\272\004\n\022RunPipelineRequ" + - "est\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareh" + - "ouse.googleapis.com/Location\022R\n\023gcs_inge" + - "st_pipeline\030\002 \001(\01323.google.cloud.content" + - "warehouse.v1.GcsIngestPipelineH\000\022|\n*gcs_" + - "ingest_with_doc_ai_processors_pipeline\030\003" + - " \001(\0132F.google.cloud.contentwarehouse.v1." + - "GcsIngestWithDocAiProcessorsPipelineH\000\022T" + - "\n\023export_cdw_pipeline\030\004 \001(\01325.google.clo" + - "ud.contentwarehouse.v1.ExportToCdwPipeli" + - "neH\000\022b\n\034process_with_doc_ai_pipeline\030\005 \001" + - "(\0132:.google.cloud.contentwarehouse.v1.Pr" + - "ocessWithDocAiPipelineH\000\022K\n\020request_meta" + - "data\030\006 \001(\01321.google.cloud.contentwarehou" + - "se.v1.RequestMetadataB\n\n\010pipeline2\271\002\n\017Pi" + - "pelineService\022\320\001\n\013RunPipeline\0224.google.c" + - "loud.contentwarehouse.v1.RunPipelineRequ" + - "est\032\035.google.longrunning.Operation\"l\312A*\n" + - "\023RunPipelineResponse\022\023RunPipelineMetadat" + - "a\332A\004name\202\323\344\223\0022\"-/v1/{name=projects/*/loc" + - "ations/*}:runPipeline:\001*\032S\312A\037contentware" + - "house.googleapis.com\322A.https://www.googl" + - "eapis.com/auth/cloud-platformB\374\001\n$com.go" + - "ogle.cloud.contentwarehouse.v1B\024Pipeline" + - "ServiceProtoP\001ZPcloud.google.com/go/cont" + - "entwarehouse/apiv1/contentwarehousepb;co" + - "ntentwarehousepb\252\002 Google.Cloud.ContentW" + - "arehouse.V1\312\002 Google\\Cloud\\ContentWareho" + - "use\\V1\352\002#Google::Cloud::ContentWarehouse" + - "::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.contentwarehouse.v1.CommonProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.PipelinesProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RunPipelineRequest_descriptor, - new java.lang.String[] { "Name", "GcsIngestPipeline", "GcsIngestWithDocAiProcessorsPipeline", "ExportCdwPipeline", "ProcessWithDocAiPipeline", "RequestMetadata", "Pipeline", }); - 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.contentwarehouse.v1.CommonProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.PipelinesProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java deleted file mode 100644 index 00a399939525..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java +++ /dev/null @@ -1,255 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/pipelines.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class PipelinesProto { - private PipelinesProto() {} - 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_contentwarehouse_v1_RunPipelineResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_GcsIngestPipelineMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ExportToCdwPipelineMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_ProcessWithDocAiPipelineMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RunPipelineMetadata_IndividualDocumentStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ProcessorInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_IngestPipelineConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_GcsIngestPipeline_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_GcsIngestWithDocAiProcessorsPipeline_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ExportToCdwPipeline_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ProcessWithDocAiPipeline_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/contentwarehouse/v1/pipel" + - "ines.proto\022 google.cloud.contentwarehous" + - "e.v1\032\037google/api/field_behavior.proto\032\031g" + - "oogle/api/resource.proto\032-google/cloud/c" + - "ontentwarehouse/v1/common.proto\032\032google/" + - "iam/v1/policy.proto\032\027google/rpc/status.p" + - "roto\"\025\n\023RunPipelineResponse\"\372\007\n\023RunPipel" + - "ineMetadata\022\030\n\020total_file_count\030\001 \001(\005\022\031\n" + - "\021failed_file_count\030\002 \001(\005\022=\n\tuser_info\030\003 " + - "\001(\0132*.google.cloud.contentwarehouse.v1.U" + - "serInfo\022w\n\034gcs_ingest_pipeline_metadata\030" + - "\004 \001(\0132O.google.cloud.contentwarehouse.v1" + - ".RunPipelineMetadata.GcsIngestPipelineMe" + - "tadataH\000\022|\n\037export_to_cdw_pipeline_metad" + - "ata\030\006 \001(\0132Q.google.cloud.contentwarehous" + - "e.v1.RunPipelineMetadata.ExportToCdwPipe" + - "lineMetadataH\000\022\207\001\n%process_with_doc_ai_p" + - "ipeline_metadata\030\007 \001(\0132V.google.cloud.co" + - "ntentwarehouse.v1.RunPipelineMetadata.Pr" + - "ocessWithDocAiPipelineMetadataH\000\022t\n\034indi" + - "vidual_document_statuses\030\005 \003(\0132N.google." + - "cloud.contentwarehouse.v1.RunPipelineMet" + - "adata.IndividualDocumentStatus\032/\n\031GcsIng" + - "estPipelineMetadata\022\022\n\ninput_path\030\001 \001(\t\032" + - "]\n\033ExportToCdwPipelineMetadata\022\021\n\tdocume" + - "nts\030\001 \003(\t\022\026\n\016doc_ai_dataset\030\002 \001(\t\022\023\n\013out" + - "put_path\030\003 \001(\t\032~\n ProcessWithDocAiPipeli" + - "neMetadata\022\021\n\tdocuments\030\001 \003(\t\022G\n\016process" + - "or_info\030\002 \001(\0132/.google.cloud.contentware" + - "house.v1.ProcessorInfo\032S\n\030IndividualDocu" + - "mentStatus\022\023\n\013document_id\030\001 \001(\t\022\"\n\006statu" + - "s\030\002 \001(\0132\022.google.rpc.StatusB\023\n\021pipeline_" + - "metadata\"S\n\rProcessorInfo\022\026\n\016processor_n" + - "ame\030\001 \001(\t\022\025\n\rdocument_type\030\002 \001(\t\022\023\n\013sche" + - "ma_name\030\003 \001(\t\"\323\001\n\024IngestPipelineConfig\0222" + - "\n\023document_acl_policy\030\001 \001(\0132\025.google.iam" + - ".v1.Policy\022\'\n\037enable_document_text_extra" + - "ction\030\002 \001(\010\022\024\n\006folder\030\003 \001(\tB\004\342A\001\001\022H\n\016clo" + - "ud_function\030\004 \001(\tB0\372A-\n+cloudfunctions.g" + - "oogleapis.com/CloudFunction\"\314\001\n\021GcsInges" + - "tPipeline\022\022\n\ninput_path\030\001 \001(\t\022\023\n\013schema_" + - "name\030\002 \001(\t\022\026\n\016processor_type\030\003 \001(\t\022\037\n\027sk" + - "ip_ingested_documents\030\004 \001(\010\022U\n\017pipeline_" + - "config\030\005 \001(\01326.google.cloud.contentwareh" + - "ouse.v1.IngestPipelineConfigB\004\342A\001\001\"\203\003\n$G" + - "csIngestWithDocAiProcessorsPipeline\022\022\n\ni" + - "nput_path\030\001 \001(\t\022V\n\035split_classify_proces" + - "sor_info\030\002 \001(\0132/.google.cloud.contentwar" + - "ehouse.v1.ProcessorInfo\022P\n\027extract_proce" + - "ssor_infos\030\003 \003(\0132/.google.cloud.contentw" + - "arehouse.v1.ProcessorInfo\022%\n\035processor_r" + - "esults_folder_path\030\004 \001(\t\022\037\n\027skip_ingeste" + - "d_documents\030\005 \001(\010\022U\n\017pipeline_config\030\006 \001" + - "(\01326.google.cloud.contentwarehouse.v1.In" + - "gestPipelineConfigB\004\342A\001\001\"\200\001\n\023ExportToCdw" + - "Pipeline\022\021\n\tdocuments\030\001 \003(\t\022\032\n\022export_fo" + - "lder_path\030\002 \001(\t\022\034\n\016doc_ai_dataset\030\003 \001(\tB" + - "\004\342A\001\001\022\034\n\024training_split_ratio\030\004 \001(\002\"\271\001\n\030" + - "ProcessWithDocAiPipeline\022\021\n\tdocuments\030\001 " + - "\003(\t\022\032\n\022export_folder_path\030\002 \001(\t\022G\n\016proce" + - "ssor_info\030\003 \001(\0132/.google.cloud.contentwa" + - "rehouse.v1.ProcessorInfo\022%\n\035processor_re" + - "sults_folder_path\030\004 \001(\tB\344\002\n$com.google.c" + - "loud.contentwarehouse.v1B\016PipelinesProto" + - "P\001ZPcloud.google.com/go/contentwarehouse" + - "/apiv1/contentwarehousepb;contentwarehou" + - "sepb\252\002 Google.Cloud.ContentWarehouse.V1\312" + - "\002 Google\\Cloud\\ContentWarehouse\\V1\352\002#Goo" + - "gle::Cloud::ContentWarehouse::V1\352Ak\n+clo" + - "udfunctions.googleapis.com/CloudFunction" + - "\022 - * Required. List of property definitions. - *
- * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getPropertyDefinitionsList(); - /** - *
-   * Required. List of property definitions.
-   * 
- * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.contentwarehouse.v1.PropertyDefinition getPropertyDefinitions(int index); - /** - *
-   * Required. List of property definitions.
-   * 
- * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getPropertyDefinitionsCount(); - /** - *
-   * Required. List of property definitions.
-   * 
- * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getPropertyDefinitionsOrBuilderList(); - /** - *
-   * Required. List of property definitions.
-   * 
- * - * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition property_definitions = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder getPropertyDefinitionsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java deleted file mode 100644 index e75a0f921214..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleEngineProto.java +++ /dev/null @@ -1,331 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/rule_engine.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class RuleEngineProto { - private RuleEngineProto() {} - 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_contentwarehouse_v1_RuleSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_Action_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ActionOutput_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/contentwarehouse/v1/rule_" + - "engine.proto\022 google.cloud.contentwareho" + - "use.v1\032\037google/api/field_behavior.proto\032" + - "\031google/api/resource.proto\032\032google/iam/v" + - "1/policy.proto\"\336\001\n\007RuleSet\022\014\n\004name\030\006 \001(\t" + - "\022\023\n\013description\030\001 \001(\t\022\016\n\006source\030\002 \001(\t\0225\n" + - "\005rules\030\003 \003(\0132&.google.cloud.contentwareh" + - "ouse.v1.Rule:i\352Af\n\'contentwarehouse.goog" + - "leapis.com/RuleSet\022;projects/{project}/l" + - "ocations/{location}/ruleSets/{rule_set}\"" + - "\246\002\n\004Rule\022\023\n\013description\030\001 \001(\t\022\017\n\007rule_id" + - "\030\002 \001(\t\022H\n\014trigger_type\030\003 \001(\01622.google.cl" + - "oud.contentwarehouse.v1.Rule.TriggerType" + - "\022\021\n\tcondition\030\004 \001(\t\0229\n\007actions\030\005 \003(\0132(.g" + - "oogle.cloud.contentwarehouse.v1.Action\"`" + - "\n\013TriggerType\022\013\n\007UNKNOWN\020\000\022\r\n\tON_CREATE\020" + - "\001\022\r\n\tON_UPDATE\020\004\022\022\n\016ON_CREATE_LINK\020\007\022\022\n\016" + - "ON_DELETE_LINK\020\010\"\352\004\n\006Action\022\021\n\taction_id" + - "\030\001 \001(\t\022O\n\016access_control\030\002 \001(\01325.google." + - "cloud.contentwarehouse.v1.AccessControlA" + - "ctionH\000\022Q\n\017data_validation\030\003 \001(\01326.googl" + - "e.cloud.contentwarehouse.v1.DataValidati" + - "onActionH\000\022I\n\013data_update\030\004 \001(\01322.google" + - ".cloud.contentwarehouse.v1.DataUpdateAct" + - "ionH\000\022L\n\radd_to_folder\030\005 \001(\01323.google.cl" + - "oud.contentwarehouse.v1.AddToFolderActio" + - "nH\000\022M\n\022publish_to_pub_sub\030\006 \001(\0132/.google" + - ".cloud.contentwarehouse.v1.PublishAction" + - "H\000\022]\n\031remove_from_folder_action\030\t \001(\01328." + - "google.cloud.contentwarehouse.v1.RemoveF" + - "romFolderActionH\000\022X\n\026delete_document_act" + - "ion\030\n \001(\01326.google.cloud.contentwarehous" + - "e.v1.DeleteDocumentActionH\000B\010\n\006action\"\206\002" + - "\n\023AccessControlAction\022[\n\016operation_type\030" + - "\001 \001(\0162C.google.cloud.contentwarehouse.v1" + - ".AccessControlAction.OperationType\022%\n\006po" + - "licy\030\002 \001(\0132\025.google.iam.v1.Policy\"k\n\rOpe" + - "rationType\022\013\n\007UNKNOWN\020\000\022\026\n\022ADD_POLICY_BI" + - "NDING\020\001\022\031\n\025REMOVE_POLICY_BINDING\020\002\022\032\n\026RE" + - "PLACE_POLICY_BINDING\020\003\"\245\001\n\024DataValidatio" + - "nAction\022Z\n\nconditions\030\001 \003(\0132F.google.clo" + - "ud.contentwarehouse.v1.DataValidationAct" + - "ion.ConditionsEntry\0321\n\017ConditionsEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\224\001\n\020DataU" + - "pdateAction\022P\n\007entries\030\001 \003(\0132?.google.cl" + - "oud.contentwarehouse.v1.DataUpdateAction" + - ".EntriesEntry\032.\n\014EntriesEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\021AddToFolderActi" + - "on\022>\n\007folders\030\001 \003(\tB-\372A*\n(contentwarehou" + - "se.googleapis.com/Document\"j\n\026RemoveFrom" + - "FolderAction\022\021\n\tcondition\030\001 \001(\t\022=\n\006folde" + - "r\030\002 \001(\tB-\372A*\n(contentwarehouse.googleapi" + - "s.com/Document\"3\n\rPublishAction\022\020\n\010topic" + - "_id\030\001 \001(\t\022\020\n\010messages\030\002 \003(\t\"2\n\024DeleteDoc" + - "umentAction\022\032\n\022enable_hard_delete\030\001 \001(\010\"" + - "\327\001\n\020RuleEngineOutput\022\025\n\rdocument_name\030\003 " + - "\001(\t\022T\n\025rule_evaluator_output\030\001 \001(\01325.goo" + - "gle.cloud.contentwarehouse.v1.RuleEvalua" + - "torOutput\022V\n\026action_executor_output\030\002 \001(" + - "\01326.google.cloud.contentwarehouse.v1.Act" + - "ionExecutorOutput\"\333\001\n\023RuleEvaluatorOutpu" + - "t\022?\n\017triggered_rules\030\001 \003(\0132&.google.clou" + - "d.contentwarehouse.v1.Rule\022=\n\rmatched_ru" + - "les\030\002 \003(\0132&.google.cloud.contentwarehous" + - "e.v1.Rule\022D\n\rinvalid_rules\030\003 \003(\0132-.googl" + - "e.cloud.contentwarehouse.v1.InvalidRule\"" + - "R\n\013InvalidRule\0224\n\004rule\030\001 \001(\0132&.google.cl" + - "oud.contentwarehouse.v1.Rule\022\r\n\005error\030\002 " + - "\001(\t\"e\n\024ActionExecutorOutput\022M\n\022rule_acti" + - "ons_pairs\030\001 \003(\01321.google.cloud.contentwa" + - "rehouse.v1.RuleActionsPair\"\217\001\n\017RuleActio" + - "nsPair\0224\n\004rule\030\001 \001(\0132&.google.cloud.cont" + - "entwarehouse.v1.Rule\022F\n\016action_outputs\030\002" + - " \003(\0132..google.cloud.contentwarehouse.v1." + - "ActionOutput\"\356\001\n\014ActionOutput\022\021\n\taction_" + - "id\030\001 \001(\t\022J\n\014action_state\030\002 \001(\01624.google." + - "cloud.contentwarehouse.v1.ActionOutput.S" + - "tate\022\026\n\016output_message\030\003 \001(\t\"g\n\005State\022\013\n" + - "\007UNKNOWN\020\000\022\024\n\020ACTION_SUCCEEDED\020\001\022\021\n\rACTI" + - "ON_FAILED\020\002\022\024\n\020ACTION_TIMED_OUT\020\003\022\022\n\016ACT" + - "ION_PENDING\020\004B\367\001\n$com.google.cloud.conte" + - "ntwarehouse.v1B\017RuleEngineProtoP\001ZPcloud" + - ".google.com/go/contentwarehouse/apiv1/co" + - "ntentwarehousepb;contentwarehousepb\252\002 Go" + - "ogle.Cloud.ContentWarehouse.V1\312\002 Google\\" + - "Cloud\\ContentWarehouse\\V1\352\002#Google::Clou" + - "d::ContentWarehouse::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.iam.v1.PolicyProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_RuleSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RuleSet_descriptor, - new java.lang.String[] { "Name", "Description", "Source", "Rules", }); - internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_Rule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_Rule_descriptor, - new java.lang.String[] { "Description", "RuleId", "TriggerType", "Condition", "Actions", }); - internal_static_google_cloud_contentwarehouse_v1_Action_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_Action_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_Action_descriptor, - new java.lang.String[] { "ActionId", "AccessControl", "DataValidation", "DataUpdate", "AddToFolder", "PublishToPubSub", "RemoveFromFolderAction", "DeleteDocumentAction", "Action", }); - internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_AccessControlAction_descriptor, - new java.lang.String[] { "OperationType", "Policy", }); - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor, - new java.lang.String[] { "Conditions", }); - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor = - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DataValidationAction_ConditionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor, - new java.lang.String[] { "Entries", }); - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor = - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DataUpdateAction_EntriesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_AddToFolderAction_descriptor, - new java.lang.String[] { "Folders", }); - internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RemoveFromFolderAction_descriptor, - new java.lang.String[] { "Condition", "Folder", }); - internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_contentwarehouse_v1_PublishAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_PublishAction_descriptor, - new java.lang.String[] { "TopicId", "Messages", }); - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DeleteDocumentAction_descriptor, - new java.lang.String[] { "EnableHardDelete", }); - internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RuleEngineOutput_descriptor, - new java.lang.String[] { "DocumentName", "RuleEvaluatorOutput", "ActionExecutorOutput", }); - internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RuleEvaluatorOutput_descriptor, - new java.lang.String[] { "TriggeredRules", "MatchedRules", "InvalidRules", }); - internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_contentwarehouse_v1_InvalidRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_InvalidRule_descriptor, - new java.lang.String[] { "Rule", "Error", }); - internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ActionExecutorOutput_descriptor, - new java.lang.String[] { "RuleActionsPairs", }); - internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_RuleActionsPair_descriptor, - new java.lang.String[] { "Rule", "ActionOutputs", }); - internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_contentwarehouse_v1_ActionOutput_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ActionOutput_descriptor, - new java.lang.String[] { "ActionId", "ActionState", "OutputMessage", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java deleted file mode 100644 index 2bc7d0904e85..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceProto.java +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/ruleset_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class RuleSetServiceProto { - private RuleSetServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/contentwarehouse/v1/rules" + - "et_service.proto\022 google.cloud.contentwa" + - "rehouse.v1\032\034google/api/annotations.proto" + - "\032\027google/api/client.proto\0322google/cloud/" + - "contentwarehouse/v1/rule_engine.proto\032>g" + - "oogle/cloud/contentwarehouse/v1/ruleset_" + - "service_request.proto\032\033google/protobuf/e" + - "mpty.proto2\364\007\n\016RuleSetService\022\304\001\n\rCreate" + - "RuleSet\0226.google.cloud.contentwarehouse." + - "v1.CreateRuleSetRequest\032).google.cloud.c" + - "ontentwarehouse.v1.RuleSet\"P\332A\017parent,ru" + - "le_set\202\323\344\223\0028\",/v1/{parent=projects/*/loc" + - "ations/*}/ruleSets:\010rule_set\022\251\001\n\nGetRule" + - "Set\0223.google.cloud.contentwarehouse.v1.G" + - "etRuleSetRequest\032).google.cloud.contentw" + - "arehouse.v1.RuleSet\";\332A\004name\202\323\344\223\002.\022,/v1/" + - "{name=projects/*/locations/*/ruleSets/*}" + - "\022\273\001\n\rUpdateRuleSet\0226.google.cloud.conten" + - "twarehouse.v1.UpdateRuleSetRequest\032).goo" + - "gle.cloud.contentwarehouse.v1.RuleSet\"G\332" + - "A\rname,rule_set\202\323\344\223\00212,/v1/{name=project" + - "s/*/locations/*/ruleSets/*}:\001*\022\234\001\n\rDelet" + - "eRuleSet\0226.google.cloud.contentwarehouse" + - ".v1.DeleteRuleSetRequest\032\026.google.protob" + - "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1/{name=proje" + - "cts/*/locations/*/ruleSets/*}\022\274\001\n\014ListRu" + - "leSets\0225.google.cloud.contentwarehouse.v" + - "1.ListRuleSetsRequest\0326.google.cloud.con" + - "tentwarehouse.v1.ListRuleSetsResponse\"=\332" + - "A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/l" + - "ocations/*}/ruleSets\032S\312A\037contentwarehous" + - "e.googleapis.com\322A.https://www.googleapi" + - "s.com/auth/cloud-platformB\373\001\n$com.google" + - ".cloud.contentwarehouse.v1B\023RuleSetServi" + - "ceProtoP\001ZPcloud.google.com/go/contentwa" + - "rehouse/apiv1/contentwarehousepb;content" + - "warehousepb\252\002 Google.Cloud.ContentWareho" + - "use.V1\312\002 Google\\Cloud\\ContentWarehouse\\V" + - "1\352\002#Google::Cloud::ContentWarehouse::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.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.RuleEngineProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.RuleSetServiceRequestProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java deleted file mode 100644 index a644d43b891e..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceRequestProto.java +++ /dev/null @@ -1,143 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class RuleSetServiceRequestProto { - private RuleSetServiceRequestProto() {} - 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_contentwarehouse_v1_CreateRuleSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_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/contentwarehouse/v1/rules" + - "et_service_request.proto\022 google.cloud.c" + - "ontentwarehouse.v1\032\037google/api/field_beh" + - "avior.proto\032\031google/api/resource.proto\0322" + - "google/cloud/contentwarehouse/v1/rule_en" + - "gine.proto\"\234\001\n\024CreateRuleSetRequest\022A\n\006p" + - "arent\030\001 \001(\tB1\342A\001\002\372A*\n(contentwarehouse.g" + - "oogleapis.com/Location\022A\n\010rule_set\030\002 \001(\013" + - "2).google.cloud.contentwarehouse.v1.Rule" + - "SetB\004\342A\001\002\"S\n\021GetRuleSetRequest\022>\n\004name\030\001" + - " \001(\tB0\342A\001\002\372A)\n\'contentwarehouse.googleap" + - "is.com/RuleSet\"\231\001\n\024UpdateRuleSetRequest\022" + - ">\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'contentwarehouse" + - ".googleapis.com/RuleSet\022A\n\010rule_set\030\002 \001(" + - "\0132).google.cloud.contentwarehouse.v1.Rul" + - "eSetB\004\342A\001\002\"V\n\024DeleteRuleSetRequest\022>\n\004na" + - "me\030\001 \001(\tB0\342A\001\002\372A)\n\'contentwarehouse.goog" + - "leapis.com/RuleSet\"\177\n\023ListRuleSetsReques" + - "t\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareh" + - "ouse.googleapis.com/Location\022\021\n\tpage_siz" + - "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"m\n\024ListRuleS" + - "etsResponse\022<\n\trule_sets\030\001 \003(\0132).google." + - "cloud.contentwarehouse.v1.RuleSet\022\027\n\017nex" + - "t_page_token\030\002 \001(\tB\202\002\n$com.google.cloud." + - "contentwarehouse.v1B\032RuleSetServiceReque" + - "stProtoP\001ZPcloud.google.com/go/contentwa" + - "rehouse/apiv1/contentwarehousepb;content" + - "warehousepb\252\002 Google.Cloud.ContentWareho" + - "use.V1\312\002 Google\\Cloud\\ContentWarehouse\\V" + - "1\352\002#Google::Cloud::ContentWarehouse::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.contentwarehouse.v1.RuleEngineProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CreateRuleSetRequest_descriptor, - new java.lang.String[] { "Parent", "RuleSet", }); - internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_GetRuleSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateRuleSetRequest_descriptor, - new java.lang.String[] { "Name", "RuleSet", }); - internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DeleteRuleSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ListRuleSetsResponse_descriptor, - new java.lang.String[] { "RuleSets", "NextPageToken", }); - 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.contentwarehouse.v1.RuleEngineProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java deleted file mode 100644 index 430f96472c5d..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RunPipelineResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/pipelines.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface RunPipelineResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.RunPipelineResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java deleted file mode 100644 index dfc5588035d0..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetProto.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/synonymset.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class SynonymSetProto { - private SynonymSetProto() {} - 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_contentwarehouse_v1_SynonymSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_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/contentwarehouse/v1/synon" + - "ymset.proto\022 google.cloud.contentwarehou" + - "se.v1\032\031google/api/resource.proto\"\375\001\n\nSyn" + - "onymSet\022\014\n\004name\030\001 \001(\t\022\017\n\007context\030\002 \001(\t\022F" + - "\n\010synonyms\030\003 \003(\01324.google.cloud.contentw" + - "arehouse.v1.SynonymSet.Synonym\032\030\n\007Synony" + - "m\022\r\n\005words\030\001 \003(\t:n\352Ak\n*contentwarehouse." + - "googleapis.com/SynonymSet\022=projects/{pro" + - "ject}/locations/{location}/synonymSets/{" + - "context}B\367\001\n$com.google.cloud.contentwar" + - "ehouse.v1B\017SynonymSetProtoP\001ZPcloud.goog" + - "le.com/go/contentwarehouse/apiv1/content" + - "warehousepb;contentwarehousepb\252\002 Google." + - "Cloud.ContentWarehouse.V1\312\002 Google\\Cloud" + - "\\ContentWarehouse\\V1\352\002#Google::Cloud::Co" + - "ntentWarehouse::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor, - new java.lang.String[] { "Name", "Context", "Synonyms", }); - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor = - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_SynonymSet_Synonym_descriptor, - new java.lang.String[] { "Words", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - 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-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java deleted file mode 100644 index 4c0f30367918..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceProto.java +++ /dev/null @@ -1,94 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/synonymset_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class SynonymSetServiceProto { - private SynonymSetServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/contentwarehouse/v1/synon" + - "ymset_service.proto\022 google.cloud.conten" + - "twarehouse.v1\032\034google/api/annotations.pr" + - "oto\032\027google/api/client.proto\0321google/clo" + - "ud/contentwarehouse/v1/synonymset.proto\032" + - "Agoogle/cloud/contentwarehouse/v1/synony" + - "mset_service_request.proto\032\033google/proto" + - "buf/empty.proto2\303\010\n\021SynonymSetService\022\326\001" + - "\n\020CreateSynonymSet\0229.google.cloud.conten" + - "twarehouse.v1.CreateSynonymSetRequest\032,." + - "google.cloud.contentwarehouse.v1.Synonym" + - "Set\"Y\332A\022parent,synonym_set\202\323\344\223\002>\"//v1/{p" + - "arent=projects/*/locations/*}/synonymSet" + - "s:\013synonym_set\022\265\001\n\rGetSynonymSet\0226.googl" + - "e.cloud.contentwarehouse.v1.GetSynonymSe" + - "tRequest\032,.google.cloud.contentwarehouse" + - ".v1.SynonymSet\">\332A\004name\202\323\344\223\0021\022//v1/{name" + - "=projects/*/locations/*/synonymSets/*}\022\324" + - "\001\n\020UpdateSynonymSet\0229.google.cloud.conte" + - "ntwarehouse.v1.UpdateSynonymSetRequest\032," + - ".google.cloud.contentwarehouse.v1.Synony" + - "mSet\"W\332A\020name,synonym_set\202\323\344\223\002>2//v1/{na" + - "me=projects/*/locations/*/synonymSets/*}" + - ":\013synonym_set\022\245\001\n\020DeleteSynonymSet\0229.goo" + - "gle.cloud.contentwarehouse.v1.DeleteSyno" + - "nymSetRequest\032\026.google.protobuf.Empty\">\332" + - "A\004name\202\323\344\223\0021*//v1/{name=projects/*/locat" + - "ions/*/synonymSets/*}\022\310\001\n\017ListSynonymSet" + - "s\0228.google.cloud.contentwarehouse.v1.Lis" + - "tSynonymSetsRequest\0329.google.cloud.conte" + - "ntwarehouse.v1.ListSynonymSetsResponse\"@" + - "\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/" + - "locations/*}/synonymSets\032S\312A\037contentware" + - "house.googleapis.com\322A.https://www.googl" + - "eapis.com/auth/cloud-platformB\376\001\n$com.go" + - "ogle.cloud.contentwarehouse.v1B\026SynonymS" + - "etServiceProtoP\001ZPcloud.google.com/go/co" + - "ntentwarehouse/apiv1/contentwarehousepb;" + - "contentwarehousepb\252\002 Google.Cloud.Conten" + - "tWarehouse.V1\312\002 Google\\Cloud\\ContentWare" + - "house\\V1\352\002#Google::Cloud::ContentWarehou" + - "se::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.cloud.contentwarehouse.v1.SynonymSetProto.getDescriptor(), - com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.SynonymSetProto.getDescriptor(); - com.google.cloud.contentwarehouse.v1.SynonymSetServiceRequestProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java deleted file mode 100644 index fee397d03f36..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceRequestProto.java +++ /dev/null @@ -1,144 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public final class SynonymSetServiceRequestProto { - private SynonymSetServiceRequestProto() {} - 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_contentwarehouse_v1_CreateSynonymSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_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/contentwarehouse/v1/synon" + - "ymset_service_request.proto\022 google.clou" + - "d.contentwarehouse.v1\032\037google/api/field_" + - "behavior.proto\032\031google/api/resource.prot" + - "o\0321google/cloud/contentwarehouse/v1/syno" + - "nymset.proto\"\245\001\n\027CreateSynonymSetRequest" + - "\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(contentwareho" + - "use.googleapis.com/Location\022G\n\013synonym_s" + - "et\030\002 \001(\0132,.google.cloud.contentwarehouse" + - ".v1.SynonymSetB\004\342A\001\002\"Y\n\024GetSynonymSetReq" + - "uest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*contentware" + - "house.googleapis.com/SynonymSet\"\202\001\n\026List" + - "SynonymSetsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002" + - "\372A*\n(contentwarehouse.googleapis.com/Loc" + - "ation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + - " \001(\t\"v\n\027ListSynonymSetsResponse\022B\n\014synon" + - "ym_sets\030\001 \003(\0132,.google.cloud.contentware" + - "house.v1.SynonymSet\022\027\n\017next_page_token\030\002" + - " \001(\t\"\245\001\n\027UpdateSynonymSetRequest\022A\n\004name" + - "\030\001 \001(\tB3\342A\001\002\372A,\n*contentwarehouse.google" + - "apis.com/SynonymSet\022G\n\013synonym_set\030\002 \001(\013" + - "2,.google.cloud.contentwarehouse.v1.Syno" + - "nymSetB\004\342A\001\002\"\\\n\027DeleteSynonymSetRequest\022" + - "A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*contentwarehouse" + - ".googleapis.com/SynonymSetB\205\002\n$com.googl" + - "e.cloud.contentwarehouse.v1B\035SynonymSetS" + - "erviceRequestProtoP\001ZPcloud.google.com/g" + - "o/contentwarehouse/apiv1/contentwarehous" + - "epb;contentwarehousepb\252\002 Google.Cloud.Co" + - "ntentWarehouse.V1\312\002 Google\\Cloud\\Content" + - "Warehouse\\V1\352\002#Google::Cloud::ContentWar" + - "ehouse::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.contentwarehouse.v1.SynonymSetProto.getDescriptor(), - }); - internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_CreateSynonymSetRequest_descriptor, - new java.lang.String[] { "Parent", "SynonymSet", }); - internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_GetSynonymSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_ListSynonymSetsResponse_descriptor, - new java.lang.String[] { "SynonymSets", "NextPageToken", }); - internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_UpdateSynonymSetRequest_descriptor, - new java.lang.String[] { "Name", "SynonymSet", }); - internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_contentwarehouse_v1_DeleteSynonymSetRequest_descriptor, - new java.lang.String[] { "Name", }); - 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.contentwarehouse.v1.SynonymSetProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java deleted file mode 100644 index 6103d2919128..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TextTypeOptionsOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface TextTypeOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TextTypeOptions) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java deleted file mode 100644 index 759000314130..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/TimestampTypeOptionsOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_schema.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface TimestampTypeOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.TimestampTypeOptions) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java deleted file mode 100644 index 40589d1bc4a2..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/async_document_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface UpdateDocumentMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateDocumentMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java deleted file mode 100644 index 7c1757af31eb..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateDocumentSchemaRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/document_schema_service.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface UpdateDocumentSchemaRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the document schema to update.
-   * Format:
-   * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the document schema to update.
-   * Format:
-   * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The document schema to update with.
-   * 
- * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the documentSchema field is set. - */ - boolean hasDocumentSchema(); - /** - *
-   * Required. The document schema to update with.
-   * 
- * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The documentSchema. - */ - com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema(); - /** - *
-   * Required. The document schema to update with.
-   * 
- * - * .google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.contentwarehouse.v1.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder(); -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java deleted file mode 100644 index 47ecf76b8675..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateRuleSetRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/ruleset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface UpdateRuleSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateRuleSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the rule set to update.
-   * Format:
-   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the rule set to update.
-   * Format:
-   * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The rule set to update.
-   * 
- * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the ruleSet field is set. - */ - boolean hasRuleSet(); - /** - *
-   * Required. The rule set to update.
-   * 
- * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The ruleSet. - */ - com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet(); - /** - *
-   * Required. The rule set to update.
-   * 
- * - * .google.cloud.contentwarehouse.v1.RuleSet rule_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.contentwarehouse.v1.RuleSetOrBuilder getRuleSetOrBuilder(); -} diff --git a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java b/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java deleted file mode 100644 index 1b8e12bc1fdf..000000000000 --- a/owl-bot-staging/java-contentwarehouse/v1/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/UpdateSynonymSetRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/contentwarehouse/v1/synonymset_service_request.proto - -package com.google.cloud.contentwarehouse.v1; - -public interface UpdateSynonymSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the synonymSet to update
-   * Format:
-   * projects/{project_number}/locations/{location}/synonymSets/{context}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the synonymSet to update
-   * Format:
-   * projects/{project_number}/locations/{location}/synonymSets/{context}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The synonymSet to be updated for the customer
-   * 
- * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the synonymSet field is set. - */ - boolean hasSynonymSet(); - /** - *
-   * Required. The synonymSet to be updated for the customer
-   * 
- * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The synonymSet. - */ - com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet(); - /** - *
-   * Required. The synonymSet to be updated for the customer
-   * 
- * - * .google.cloud.contentwarehouse.v1.SynonymSet synonym_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.contentwarehouse.v1.SynonymSetOrBuilder getSynonymSetOrBuilder(); -}